QR 3774 then LA 5749 at Barcelona
Torino → Barcelona → Bari
Timetable, Barcelona time
20:25QR 3774 from Torino at the gatealso IB 5811, LL 5811, VY 6129
11:40LA 5749 to Bari leaves the gate
15 h 15 apart on the timetable, overnight
LA 5749 leaves 15 h 15 after QR 3774 arrives on the timetable: more than half a day, so not a connection we count.