UX 1042 then U2 7646 at Madrid
Rome → Madrid → Lisbon
Timetable, Madrid time
18:30UX 1042 from Rome at the gatealso EY 4338, AD 6905
18:00U2 7646 to Lisbon leaves the gate
23 h 30 apart on the timetable, overnight
U2 7646 leaves 23 h 30 after UX 1042 arrives on the timetable: more than half a day, so not a connection we count.