FR 651 then FR 9987 at Dublin
Lisbon → Dublin → Porto
Timetable, Dublin time
12:25FR 651 from Lisbon at the gate
10:40FR 9987 to Porto leaves the gate
22 h 15 apart on the timetable, overnight
FR 9987 leaves 22 h 15 after FR 651 arrives on the timetable: more than half a day, so not a connection we count.