SM 651 then IB 1402 at Athens
Cairo → Athens → Madrid
Timetable, Athens time
10:55SM 651 from Cairo at the gate
23:45IB 1402 to Madrid leaves the gate
12 h 50 apart on the timetable
IB 1402 leaves 12 h 50 after SM 651 arrives on the timetable: more than half a day, so not a connection we count.