FR 651 then I2 1886 at Dublin
Lisbon → Dublin → Madrid
Timetable, Dublin time
23:40FR 651 from Lisbon at the gate
18:30I2 1886 to Madrid leaves the gate
18 h 50 apart on the timetable, overnight
I2 1886 leaves 18 h 50 after FR 651 arrives on the timetable: more than half a day, so not a connection we count.