UX 1159 then EC 7597 at Lisbon
Madrid → Lisbon → Sao Pedro
Timetable, Lisbon time
06:50UX 1159 from Madrid at the gate
06:30EC 7597 to Sao Pedro leaves the gate
23 h 40 apart on the timetable, overnight
EC 7597 leaves 23 h 40 after UX 1159 arrives on the timetable: more than half a day, so not a connection we count.