U2 3301 then KL 1509 at Schiphol
Edinburgh → Amsterdam → Madrid
Timetable, Amsterdam time
21:15U2 3301 from Edinburgh at the gate
21:05KL 1509 to Madrid leaves the gate
23 h 50 apart on the timetable, overnight
KL 1509 leaves 23 h 50 after U2 3301 arrives on the timetable: more than half a day, so not a connection we count.