FR 1977 then FR 1740 at Dublin
Riga → Dublin → Valencia
Timetable, Dublin time
20:35FR 1977 from Riga at the gate
10:25FR 1740 to Valencia leaves the gate
13 h 50 apart on the timetable, overnight
FR 1740 leaves 13 h 50 after FR 1977 arrives on the timetable: more than half a day, so not a connection we count.