FR 3194 then FR 5718 at Barcelona
Riga → Barcelona → Bratislava
Timetable, Barcelona time
23:45FR 3194 from Riga at the gate
21:30FR 5718 to Bratislava leaves the gate
21 h 45 apart on the timetable, overnight
FR 5718 leaves 21 h 45 after FR 3194 arrives on the timetable: more than half a day, so not a connection we count.