FR 1977 then I2 1886 at Dublin
Riga → Dublin → Madrid
Timetable, Dublin time
20:35FR 1977 from Riga at the gate
18:30I2 1886 to Madrid leaves the gate
21 h 55 apart on the timetable, overnight
I2 1886 leaves 21 h 55 after FR 1977 arrives on the timetable: more than half a day, so not a connection we count.