QR 3704 then LA 5743 at Barcelona
Bari → Barcelona → Málaga
Timetable, Barcelona time
16:50QR 3704 from Bari at the gate
13:00LA 5743 to Málaga leaves the gate
20 h 10 apart on the timetable, overnight
LA 5743 leaves 20 h 10 after QR 3704 arrives on the timetable: more than half a day, so not a connection we count.