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