EW 2604 then UX 1156 at Lisbon
Stuttgart → Lisbon → Madrid
Timetable, Lisbon time
16:45EW 2604 from Stuttgart at the gate
16:05UX 1156 to Madrid leaves the gate
23 h 20 apart on the timetable, overnight
UX 1156 leaves 23 h 20 after EW 2604 arrives on the timetable: more than half a day, so not a connection we count.