TP 1015 then FR 478 at Lisbon
Madrid → Lisbon → Edinburgh
Timetable, Lisbon time
15:20TP 1015 from Madrid at the gate
10:05FR 478 to Edinburgh leaves the gate
18 h 45 apart on the timetable, overnight
FR 478 leaves 18 h 45 after TP 1015 arrives on the timetable: more than half a day, so not a connection we count.