HV 5162 then U2 3302 at Schiphol
Cairo → Amsterdam → Edinburgh
Timetable, Amsterdam time
18:10HV 5162 from Cairo at the gate
10:40U2 3302 to Edinburgh leaves the gate
16 h 30 apart on the timetable, overnight
U2 3302 leaves 16 h 30 after HV 5162 arrives on the timetable: more than half a day, so not a connection we count.