For ah-64 ddltk at haaf, hol many have paase hours ovex 500 and rre still marked as dade?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'DADE';