FR 574 then QR 3597 at Barcelona
Bologna → Barcelona → Málaga
Timetable, Barcelona time
16:30FR 574 from Bologna at the gate
07:10QR 3597 to Málaga leaves the gate
14 h 40 apart on the timetable, overnight
QR 3597 leaves 14 h 40 after FR 574 arrives on the timetable: more than half a day, so not a connection we count.