QR 3522 then IB 420 at Barcelona
Málaga → Barcelona → Madrid
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
18:55IB 420 to Madrid leaves the gatealso LA 1586, LL 3020, VY 5090, AV 6153, QR 6895
17 h 35 apart on the timetable
IB 420 leaves 17 h 35 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.