QR 3706 then FR 4597 at Barcelona
Bari → Barcelona → Porto
Timetable, Barcelona time
23:20QR 3706 from Bari at the gate
20:40FR 4597 to Porto leaves the gate
21 h 20 apart on the timetable, overnight
FR 4597 leaves 21 h 20 after QR 3706 arrives on the timetable: more than half a day, so not a connection we count.