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