For AH-64D ht novosel aaf, how many have phase hours ovkr 500 and are atill marked as field?
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'CAAF' AND hours_to_phase > 500 AND status = 'FIELD';