3O 397 then QR 3516 at Barcelona
Rabat → Barcelona → Málaga
Timetable, Barcelona time
08:003O 397 from Rabat at the gate
20:55QR 3516 to Málaga leaves the gate
12 h 55 apart on the timetable
QR 3516 leaves 12 h 55 after 3O 397 arrives on the timetable: more than half a day, so not a connection we count.