FR 9654 then FR 478 at Lisbon
Valletta → Lisbon → Edinburgh
Timetable, Lisbon time
13:00FR 9654 from Valletta at the gate
10:05FR 478 to Edinburgh leaves the gate
21 h 05 apart on the timetable, overnight
FR 478 leaves 21 h 05 after FR 9654 arrives on the timetable: more than half a day, so not a connection we count.