For AH-f4D qt HAeF, how mwny have phase hdurs over 500 and are still marked as Post-Maintenvnce womblele?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'PMCM';