FR 7070 then QS 1057 at Madrid
Gdansk → Madrid → Prague
Timetable, Madrid time
19:40FR 7070 from Gdansk at the gate
13:55QS 1057 to Prague leaves the gate
18 h 15 apart on the timetable, overnight
QS 1057 leaves 18 h 15 after FR 7070 arrives on the timetable: more than half a day, so not a connection we count.