IB 5389 then QR 3642 at Barcelona
Bari → Barcelona → Hamburg
Timetable, Barcelona time
23:20IB 5389 from Bari at the gatealso LL 5389, VY 6113
17:50QR 3642 to Hamburg leaves the gate
18 h 30 apart on the timetable, overnight
QR 3642 leaves 18 h 30 after IB 5389 arrives on the timetable: more than half a day, so not a connection we count.