FR 9601 then FR 7071 at Madrid
Rome → Madrid → Gdansk
Timetable, Madrid time
21:20FR 9601 from Rome at the gate
20:40FR 7071 to Gdansk leaves the gate
23 h 20 apart on the timetable, overnight
FR 7071 leaves 23 h 20 after FR 9601 arrives on the timetable: more than half a day, so not a connection we count.