U2 7838 then TK 1958 at Schiphol
Edinburgh → Amsterdam → Istanbul
Timetable, Amsterdam time
15:20U2 7838 from Edinburgh at the gate
14:30TK 1958 to Istanbul leaves the gate
23 h 10 apart on the timetable, overnight
TK 1958 leaves 23 h 10 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.