AZ 74 then FR 333 at Barcelona
Rome → Barcelona → Gdansk
Timetable, Barcelona time
10:50AZ 74 from Rome at the gate
10:00FR 333 to Gdansk leaves the gate
23 h 10 apart on the timetable, overnight
FR 333 leaves 23 h 10 after AZ 74 arrives on the timetable: more than half a day, so not a connection we count.