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