QR 3522 then IB 5940 at Barcelona
Málaga → Barcelona → Nice
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
21:20IB 5940 to Nice leaves the gatealso LL 5940, VY 8136
20 h apart on the timetable
IB 5940 leaves 20 h after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.