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