SM 3103 then QR 3597 at Barcelona
Cairo → Barcelona → Málaga
Timetable, Barcelona time
12:20SM 3103 from Cairo at the gate
07:10QR 3597 to Málaga leaves the gate
18 h 50 apart on the timetable, overnight
QR 3597 leaves 18 h 50 after SM 3103 arrives on the timetable: more than half a day, so not a connection we count.