IB 5389 then IB 5834 at Barcelona
Bari → Barcelona → London Gatwick
Timetable, Barcelona time
23:20IB 5389 from Bari at the gatealso LL 5389, VY 6113
19:50IB 5834 to London Gatwick leaves the gatealso LL 5834, VY 7626, BA 8080
20 h 30 apart on the timetable, overnight
IB 5834 leaves 20 h 30 after IB 5389 arrives on the timetable: more than half a day, so not a connection we count.