U2 7638 then IB 1146 at Lisbon
Nantes → Lisbon → Madrid
Timetable, Lisbon time
22:45U2 7638 from Nantes at the gate
20:45IB 1146 to Madrid leaves the gate
22 h apart on the timetable, overnight
IB 1146 leaves 22 h after U2 7638 arrives on the timetable: more than half a day, so not a connection we count.