IB 52 then QR 8041 at Madrid
Málaga → Madrid → Palma de Mallorca
Timetable, Madrid time
15:10IB 52 from Málaga at the gate
12:30QR 8041 to Palma de Mallorca leaves the gate
21 h 20 apart on the timetable, overnight
QR 8041 leaves 21 h 20 after IB 52 arrives on the timetable: more than half a day, so not a connection we count.