question
stringlengths
82
179
sql
stringclasses
503 values
Hey, just curious: for ah-64 delta at wsaaf, how many have phase hours over 500 and are still marked as fmc??
SELECT COUNT(*) AS count FROM aircraft WHERE model = 'AH-64D' AND location__name = 'WSAAF' AND hours_to_phase > 500 AND status = 'FMC';
Need info on which location has the highest combined total airframe hours for AH-64D models with deadlined administrative status??
SELECT location__name, SUM(total_airframe_hours) AS total_hours FROM aircraft WHERE model = 'AH-64D' AND status = 'DADE' GROUP BY location__name ORDER BY total_hours DESC LIMIT 1;