QR 3704 then VY 1008 at Barcelona
Bari → Barcelona → Madrid
Timetable, Barcelona time
16:50QR 3704 from Bari at the gate
16:30VY 1008 to Madrid leaves the gatealso QR 3515, QR 5529, IB 5992, LL 5992
23 h 40 apart on the timetable, overnight
VY 1008 leaves 23 h 40 after QR 3704 arrives on the timetable: more than half a day, so not a connection we count.