EW 2520 then QR 3513 at Barcelona
Stuttgart → Barcelona → Málaga
Timetable, Barcelona time
08:35EW 2520 from Stuttgart at the gate
21:55QR 3513 to Málaga leaves the gate
13 h 20 apart on the timetable
QR 3513 leaves 13 h 20 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.