W4 6315 then QR 3511 at Barcelona
Milan → Barcelona → Málaga
Timetable, Barcelona time
12:25W4 6315 from Milan at the gate
11:35QR 3511 to Málaga leaves the gate
23 h 10 apart on the timetable, overnight
QR 3511 leaves 23 h 10 after W4 6315 arrives on the timetable: more than half a day, so not a connection we count.