FR 7070 then FR 188 at Madrid
Gdansk → Madrid → Edinburgh
Timetable, Madrid time
19:55FR 7070 from Gdansk at the gate
19:10FR 188 to Edinburgh leaves the gate
23 h 15 apart on the timetable, overnight
FR 188 leaves 23 h 15 after FR 7070 arrives on the timetable: more than half a day, so not a connection we count.