FR 6926 then FR 333 at Barcelona
Rome → Barcelona → Gdansk
Timetable, Barcelona time
20:20FR 6926 from Rome at the gate
09:50FR 333 to Gdansk leaves the gate
13 h 30 apart on the timetable, overnight
FR 333 leaves 13 h 30 after FR 6926 arrives on the timetable: more than half a day, so not a connection we count.