TP 1038 then QR 3619 at Barcelona
Lisbon → Barcelona → Bari
Timetable, Barcelona time
20:20TP 1038 from Lisbon at the gate
13:25QR 3619 to Bari leaves the gate
17 h 05 apart on the timetable, overnight
QR 3619 leaves 17 h 05 after TP 1038 arrives on the timetable: more than half a day, so not a connection we count.