U2 3301 then UX 1094 at Schiphol
Edinburgh → Amsterdam → Madrid
Timetable, Amsterdam time
21:05U2 3301 from Edinburgh at the gate
19:00UX 1094 to Madrid leaves the gate
21 h 55 apart on the timetable, overnight
UX 1094 leaves 21 h 55 after U2 3301 arrives on the timetable: more than half a day, so not a connection we count.