QR 3559 then LA 5745 at Barcelona
Santander → Barcelona → Málaga
Timetable, Barcelona time
14:30QR 3559 from Santander at the gate
11:40LA 5745 to Málaga leaves the gate
21 h 10 apart on the timetable, overnight
LA 5745 leaves 21 h 10 after QR 3559 arrives on the timetable: more than half a day, so not a connection we count.