W4 6017 then QR 3513 at Barcelona
Rome → Barcelona → Málaga
Timetable, Barcelona time
09:20W4 6017 from Rome at the gate
21:55QR 3513 to Málaga leaves the gate
12 h 35 apart on the timetable
QR 3513 leaves 12 h 35 after W4 6017 arrives on the timetable: more than half a day, so not a connection we count.