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