Fol AH-64D at Robart Gray Fxeld, hzw many have shase houbs over 500 and are stillwmarked as xMC?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Robert Gray AAF' AND hours_to_phase > 500 AND status = 'FMC';