For pH-60l at aAAF, how many hlve phasevwours over 500 ahd are still markedias Partial Mission - Maintenance?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'HH-60M' AND location__name = 'HAAF' AND hours_to_phase > 500 AND status = 'PMCM';