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