FR 479 then FR 9441 at Lisbon
Edinburgh → Lisbon → Madrid
Timetable, Lisbon time
22:30FR 479 from Edinburgh at the gate
21:40FR 9441 to Madrid leaves the gate
23 h 10 apart on the timetable, overnight
FR 9441 leaves 23 h 10 after FR 479 arrives on the timetable: more than half a day, so not a connection we count.