FR 7140 then FR 495 at Dublin
Vilnius → Dublin → Madrid
Timetable, Dublin time
17:35FR 7140 from Vilnius at the gate
10:00FR 495 to Madrid leaves the gate
16 h 25 apart on the timetable, overnight
FR 495 leaves 16 h 25 after FR 7140 arrives on the timetable: more than half a day, so not a connection we count.