FR 2512 then QR 3516 at Barcelona
Cologne → Barcelona → Málaga
Timetable, Barcelona time
08:30FR 2512 from Cologne at the gate
21:55QR 3516 to Málaga leaves the gate
13 h 25 apart on the timetable
QR 3516 leaves 13 h 25 after FR 2512 arrives on the timetable: more than half a day, so not a connection we count.