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