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