DY 3658 then QR 3619 at Barcelona
Copenhagen → Barcelona → Bari
Timetable, Barcelona time
20:00DY 3658 from Copenhagen at the gate
18:15QR 3619 to Bari leaves the gate
22 h 15 apart on the timetable, overnight
QR 3619 leaves 22 h 15 after DY 3658 arrives on the timetable: more than half a day, so not a connection we count.