FR 189 then U2 7652 at Madrid
Edinburgh → Madrid → Lisbon
Timetable, Madrid time
09:45FR 189 from Edinburgh at the gate
22:05U2 7652 to Lisbon leaves the gate
12 h 20 apart on the timetable
U2 7652 leaves 12 h 20 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.