TP 561 then QS 1177 at Lisbon
Hamburg → Lisbon → Prague
Timetable, Lisbon time
15:40TP 561 from Hamburg at the gate
14:50QS 1177 to Prague leaves the gate
23 h 10 apart on the timetable, overnight
QS 1177 leaves 23 h 10 after TP 561 arrives on the timetable: more than half a day, so not a connection we count.