QR 3692 then FR 333 at Barcelona
Rome → Barcelona → Gdansk
Timetable, Barcelona time
17:05QR 3692 from Rome at the gate
11:40FR 333 to Gdansk leaves the gate
18 h 35 apart on the timetable, overnight
FR 333 leaves 18 h 35 after QR 3692 arrives on the timetable: more than half a day, so not a connection we count.