QR 147 then W4 7547 at Madrid
Doha → Madrid → Málaga
Timetable, Madrid time
06:35QR 147 from Doha at the gate
20:55W4 7547 to Málaga leaves the gate
14 h 20 apart on the timetable
W4 7547 leaves 14 h 20 after QR 147 arrives on the timetable: more than half a day, so not a connection we count.