FR 189 then VY 5219 at Madrid
Edinburgh → Madrid → Lisbon
Timetable, Madrid time
09:55FR 189 from Edinburgh at the gate
22:55VY 5219 to Lisbon leaves the gatealso AY 5631, QR 6935
13 h apart on the timetable
VY 5219 leaves 13 h after FR 189 arrives on the timetable: more than half a day, so not a connection we count.