W4 6017 then FR 2507 at Barcelona
Rome → Barcelona → Cologne
Timetable, Barcelona time
09:15W4 6017 from Rome at the gate
22:20FR 2507 to Cologne leaves the gate
13 h 05 apart on the timetable
FR 2507 leaves 13 h 05 after W4 6017 arrives on the timetable: more than half a day, so not a connection we count.