AA 8762 then W4 7547 at Madrid
Valencia → Madrid → Málaga
Timetable, Madrid time
08:05AA 8762 from Valencia at the gate
20:15W4 7547 to Málaga leaves the gate
12 h 10 apart on the timetable
W4 7547 leaves 12 h 10 after AA 8762 arrives on the timetable: more than half a day, so not a connection we count.