FR 3929 then FR 333 at Barcelona
Trieste → Barcelona → Gdansk
Timetable, Barcelona time
17:05FR 3929 from Trieste at the gate
10:00FR 333 to Gdansk leaves the gate
16 h 55 apart on the timetable, overnight
FR 333 leaves 16 h 55 after FR 3929 arrives on the timetable: more than half a day, so not a connection we count.