PU 502 then QR 8041 at Madrid
Buenos Aires → Madrid → Palma de Mallorca
Timetable, Madrid time
15:45PU 502 from Buenos Aires at the gate
12:30QR 8041 to Palma de Mallorca leaves the gate
20 h 45 apart on the timetable, overnight
QR 8041 leaves 20 h 45 after PU 502 arrives on the timetable: more than half a day, so not a connection we count.