EC 3749 then QR 3511 at Barcelona
Milan → Barcelona → Málaga
Timetable, Barcelona time
21:30EC 3749 from Milan at the gate
09:50QR 3511 to Málaga leaves the gate
12 h 20 apart on the timetable, overnight
QR 3511 leaves 12 h 20 after EC 3749 arrives on the timetable: more than half a day, so not a connection we count.