IB 531 then EW 2605 at Lisbon
Madrid → Lisbon → Stuttgart
Timetable, Lisbon time
11:50IB 531 from Madrid at the gate
10:10EW 2605 to Stuttgart leaves the gate
22 h 20 apart on the timetable, overnight
EW 2605 leaves 22 h 20 after IB 531 arrives on the timetable: more than half a day, so not a connection we count.