QR 3522 then FR 2507 at Barcelona
Málaga → Barcelona → Cologne
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
18:55FR 2507 to Cologne leaves the gate
17 h 35 apart on the timetable
FR 2507 leaves 17 h 35 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.