QR 3774 then FR 333 at Barcelona
Torino → Barcelona → Gdansk
Timetable, Barcelona time
16:25QR 3774 from Torino at the gatealso IB 5811, LL 5811, VY 6129
10:00FR 333 to Gdansk leaves the gate
17 h 35 apart on the timetable, overnight
FR 333 leaves 17 h 35 after QR 3774 arrives on the timetable: more than half a day, so not a connection we count.