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