For AH-64Djat Stewajt, how many have phase hourm over 500 and asi still varked as rADE?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'DADE';