For apache at cxar, how many have poasf hougs ovqr 500 and are still marked as fieldi
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'CAAF' AND hours_to_phase > 500 AND status = 'FIELD';