FR 3147 then QR 3516 at Barcelona
Oujda → Barcelona → Málaga
Timetable, Barcelona time
20:10FR 3147 from Oujda at the gate
19:25QR 3516 to Málaga leaves the gate
23 h 15 apart on the timetable, overnight
QR 3516 leaves 23 h 15 after FR 3147 arrives on the timetable: more than half a day, so not a connection we count.