FR 334 then QR 3559 at Barcelona
Gdansk → Barcelona → Bari
Timetable, Barcelona time
11:05FR 334 from Gdansk at the gate
07:20QR 3559 to Bari leaves the gate
20 h 15 apart on the timetable, overnight
QR 3559 leaves 20 h 15 after FR 334 arrives on the timetable: more than half a day, so not a connection we count.