FR 7070 then FR 494 at Madrid
Gdansk → Madrid → Dublin
Timetable, Madrid time
21:00FR 7070 from Gdansk at the gate
18:25FR 494 to Dublin leaves the gate
21 h 25 apart on the timetable, overnight
FR 494 leaves 21 h 25 after FR 7070 arrives on the timetable: more than half a day, so not a connection we count.