EW 7524 then QR 3597 at Barcelona
Hamburg → Barcelona → Málaga
Timetable, Barcelona time
18:05EW 7524 from Hamburg at the gate
07:10QR 3597 to Málaga leaves the gate
13 h 05 apart on the timetable, overnight
QR 3597 leaves 13 h 05 after EW 7524 arrives on the timetable: more than half a day, so not a connection we count.