FR 2508 then FR 3193 at Barcelona
Cologne → Barcelona → Riga
Timetable, Barcelona time
21:45FR 2508 from Cologne at the gate
19:45FR 3193 to Riga leaves the gate
22 h apart on the timetable, overnight
FR 3193 leaves 22 h after FR 2508 arrives on the timetable: more than half a day, so not a connection we count.