KL 1580 then U2 7837 at Schiphol
Lisbon → Amsterdam → Edinburgh
Timetable, Amsterdam time
15:30KL 1580 from Lisbon at the gate
11:40U2 7837 to Edinburgh leaves the gate
20 h 10 apart on the timetable, overnight
U2 7837 leaves 20 h 10 after KL 1580 arrives on the timetable: more than half a day, so not a connection we count.