TP 1017 then QS 1177 at Lisbon
Madrid → Lisbon → Prague
Timetable, Lisbon time
18:25TP 1017 from Madrid at the gate
15:00QS 1177 to Prague leaves the gate
20 h 35 apart on the timetable, overnight
QS 1177 leaves 20 h 35 after TP 1017 arrives on the timetable: more than half a day, so not a connection we count.