QR 145 then IB 5388 at Barcelona
Doha → Barcelona → Bari
Timetable, Barcelona time
13:25QR 145 from Doha at the gatealso LA 6070, IB 6203
07:20IB 5388 to Bari leaves the gatealso LL 5388, VY 6112
17 h 55 apart on the timetable, overnight
IB 5388 leaves 17 h 55 after QR 145 arrives on the timetable: more than half a day, so not a connection we count.