U2 7838 then KL 685 at Schiphol
Edinburgh → Amsterdam → Mexico City
Timetable, Amsterdam time
17:20U2 7838 from Edinburgh at the gate
14:30KL 685 to Mexico City leaves the gate
21 h 10 apart on the timetable, overnight
KL 685 leaves 21 h 10 after U2 7838 arrives on the timetable: more than half a day, so not a connection we count.