IB 629 then LX 918 at Zurich
Madrid → Zurich → Dresden
Timetable, Zurich time
13:35IB 629 from Madrid at the gate
07:45LX 918 to Dresden leaves the gate
18 h 10 apart on the timetable, overnight
LX 918 leaves 18 h 10 after IB 629 arrives on the timetable: more than half a day, so not a connection we count.