QR 3700 then LA 5745 at Barcelona
Berlin → Barcelona → Málaga
Timetable, Barcelona time
13:20QR 3700 from Berlin at the gate
11:40LA 5745 to Málaga leaves the gate
22 h 20 apart on the timetable, overnight
LA 5745 leaves 22 h 20 after QR 3700 arrives on the timetable: more than half a day, so not a connection we count.