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