FR 5325 then FR 1976 at Dublin
Kosice → Dublin → Riga
Timetable, Dublin time
14:25FR 5325 from Kosice at the gate
13:50FR 1976 to Riga leaves the gate
23 h 25 apart on the timetable, overnight
FR 1976 leaves 23 h 25 after FR 5325 arrives on the timetable: more than half a day, so not a connection we count.