FR 797 then FR 5298 at Dublin
Riga → Dublin → Amsterdam
Timetable, Dublin time
00:45FR 797 from Riga at the gate
16:20FR 5298 to Amsterdam leaves the gate
15 h 35 apart on the timetable
FR 5298 leaves 15 h 35 after FR 797 arrives on the timetable: more than half a day, so not a connection we count.