QR 3704 then VY 1178 at Barcelona
Bari → Barcelona → Porto
Timetable, Barcelona time
16:50QR 3704 from Bari at the gate
13:00VY 1178 to Porto leaves the gate
20 h 10 apart on the timetable, overnight
VY 1178 leaves 20 h 10 after QR 3704 arrives on the timetable: more than half a day, so not a connection we count.