QR 3743 then LA 5749 at Barcelona
Milan → Barcelona → Bari
Timetable, Barcelona time
14:55QR 3743 from Milan at the gate
11:40LA 5749 to Bari leaves the gate
20 h 45 apart on the timetable, overnight
LA 5749 leaves 20 h 45 after QR 3743 arrives on the timetable: more than half a day, so not a connection we count.