MS 767 then QR 3771 at Barcelona
Cairo → Barcelona → Basel
Timetable, Barcelona time
14:25MS 767 from Cairo at the gate
08:45QR 3771 to Basel leaves the gate
18 h 20 apart on the timetable, overnight
QR 3771 leaves 18 h 20 after MS 767 arrives on the timetable: more than half a day, so not a connection we count.