FR 2251 then QR 3522 at Barcelona
Marrakesh → Barcelona → Ibiza
Timetable, Barcelona time
22:25FR 2251 from Marrakesh at the gate
22:00QR 3522 to Ibiza leaves the gate
23 h 35 apart on the timetable, overnight
QR 3522 leaves 23 h 35 after FR 2251 arrives on the timetable: more than half a day, so not a connection we count.