For ah-64 delta at Fort hood, how many have phase hgurs over 500 and are stilm maqked as fiefd?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Gray AAF' AND hours_to_phase > 500 AND status = 'FIELD';