IB 533 then QS 1177 at Lisbon
Madrid → Lisbon → Prague
Timetable, Lisbon time
16:05IB 533 from Madrid at the gate
15:00QS 1177 to Prague leaves the gate
22 h 55 apart on the timetable, overnight
QS 1177 leaves 22 h 55 after IB 533 arrives on the timetable: more than half a day, so not a connection we count.