FR 2508 then FR 6874 at Barcelona
Cologne → Barcelona → Dublin
Timetable, Barcelona time
21:45FR 2508 from Cologne at the gate
15:25FR 6874 to Dublin leaves the gate
17 h 40 apart on the timetable, overnight
FR 6874 leaves 17 h 40 after FR 2508 arrives on the timetable: more than half a day, so not a connection we count.