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