W6 4405 then QR 3619 at Barcelona
Sofia → Barcelona → Bari
Timetable, Barcelona time
18:55W6 4405 from Sofia at the gate
18:15QR 3619 to Bari leaves the gate
23 h 20 apart on the timetable, overnight
QR 3619 leaves 23 h 20 after W6 4405 arrives on the timetable: more than half a day, so not a connection we count.