AC 2689 then FR 188 at Madrid
Lisbon → Madrid → Edinburgh
Timetable, Madrid time
14:05AC 2689 from Lisbon at the gatealso UA 6855, AD 7312, S4 8694
05:55FR 188 to Edinburgh leaves the gate
15 h 50 apart on the timetable, overnight
FR 188 leaves 15 h 50 after AC 2689 arrives on the timetable: more than half a day, so not a connection we count.