question
stringlengths 30
98
| sql
stringclasses 68
values |
---|---|
Which base has the highest number of aircraft under the status PMCM? | SELECT location__name, COUNT(*) FROM aircraft WHERE status = 'PMCM' GROUP BY location__name ORDER BY COUNT(*) DESC LIMIT 1; |
Which base has the highest number of aircraft under the status PMCM? | SELECT location__name, COUNT(*) FROM aircraft WHERE status = 'PMCM' GROUP BY location__name ORDER BY COUNT(*) DESC LIMIT 1; |
Which base has the highest number of aircraft under the status PMCM? | SELECT location__name, COUNT(*) FROM aircraft WHERE status = 'PMCM' GROUP BY location__name ORDER BY COUNT(*) DESC LIMIT 1; |
Which base has the highest number of aircraft under the status PMCM? | SELECT location__name, COUNT(*) FROM aircraft WHERE status = 'PMCM' GROUP BY location__name ORDER BY COUNT(*) DESC LIMIT 1; |
Which base has the highest number of aircraft under the status PMCM? | SELECT location__name, COUNT(*) FROM aircraft WHERE status = 'PMCM' GROUP BY location__name ORDER BY COUNT(*) DESC LIMIT 1; |
List the units that have reported the most flight hours last month at Fort Stewart. | SELECT current_unit, SUM(flight_hours) AS total_hours FROM aircraft WHERE location__name = 'Fort Stewart' AND last_update_time BETWEEN DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH) AND CURRENT_DATE GROUP BY current_unit ORDER BY total_hours DESC; |
List the units that have reported the most flight hours last month at Huntsville. | SELECT current_unit, SUM(flight_hours) AS total_hours FROM aircraft WHERE location__name = 'Huntsville' AND last_update_time BETWEEN DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH) AND CURRENT_DATE GROUP BY current_unit ORDER BY total_hours DESC; |
List the units that have reported the most flight hours last month at Fort Campbell. | SELECT current_unit, SUM(flight_hours) AS total_hours FROM aircraft WHERE location__name = 'Fort Campbell' AND last_update_time BETWEEN DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH) AND CURRENT_DATE GROUP BY current_unit ORDER BY total_hours DESC; |
List the units that have reported the most flight hours last month at Fort Drum. | SELECT current_unit, SUM(flight_hours) AS total_hours FROM aircraft WHERE location__name = 'Fort Drum' AND last_update_time BETWEEN DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH) AND CURRENT_DATE GROUP BY current_unit ORDER BY total_hours DESC; |
List the units that have reported the most flight hours last month at Fort Hood. | SELECT current_unit, SUM(flight_hours) AS total_hours FROM aircraft WHERE location__name = 'Fort Hood' AND last_update_time BETWEEN DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH) AND CURRENT_DATE GROUP BY current_unit ORDER BY total_hours DESC; |
How many AH-64D have been deployed more than three times at Fort Stewart? | SELECT COUNT(*) FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Fort Stewart' AND remarks LIKE '%deployed%'; |
How many AH-64D have been deployed more than three times at Huntsville? | SELECT COUNT(*) FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Huntsville' AND remarks LIKE '%deployed%'; |
How many AH-64D have been deployed more than three times at Fort Campbell? | SELECT COUNT(*) FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Fort Campbell' AND remarks LIKE '%deployed%'; |
How many AH-64D have been deployed more than three times at Fort Drum? | SELECT COUNT(*) FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Fort Drum' AND remarks LIKE '%deployed%'; |
How many AH-64D have been deployed more than three times at Fort Hood? | SELECT COUNT(*) FROM aircraft WHERE model = 'AH-64D' AND location__name = 'Fort Hood' AND remarks LIKE '%deployed%'; |
Which base has updated its aircraft records most frequently? | SELECT location__name, MAX(last_update_time) FROM aircraft GROUP BY location__name ORDER BY MAX(last_update_time) DESC LIMIT 1; |
Which base has updated its aircraft records most frequently? | SELECT location__name, MAX(last_update_time) FROM aircraft GROUP BY location__name ORDER BY MAX(last_update_time) DESC LIMIT 1; |
Which base has updated its aircraft records most frequently? | SELECT location__name, MAX(last_update_time) FROM aircraft GROUP BY location__name ORDER BY MAX(last_update_time) DESC LIMIT 1; |
Which base has updated its aircraft records most frequently? | SELECT location__name, MAX(last_update_time) FROM aircraft GROUP BY location__name ORDER BY MAX(last_update_time) DESC LIMIT 1; |
Which base has updated its aircraft records most frequently? | SELECT location__name, MAX(last_update_time) FROM aircraft GROUP BY location__name ORDER BY MAX(last_update_time) DESC LIMIT 1; |
How many UH-60M Black Hawks are overdue for phase maintenance at Fort Stewart? | SELECT COUNT(*) FROM aircraft WHERE model = 'UH-60M' AND location__name = 'Fort Stewart' AND hours_to_phase < 0; |
How many UH-60M Black Hawks are overdue for phase maintenance at Huntsville? | SELECT COUNT(*) FROM aircraft WHERE model = 'UH-60M' AND location__name = 'Huntsville' AND hours_to_phase < 0; |
How many UH-60M Black Hawks are overdue for phase maintenance at Fort Campbell? | SELECT COUNT(*) FROM aircraft WHERE model = 'UH-60M' AND location__name = 'Fort Campbell' AND hours_to_phase < 0; |
How many UH-60M Black Hawks are overdue for phase maintenance at Fort Drum? | SELECT COUNT(*) FROM aircraft WHERE model = 'UH-60M' AND location__name = 'Fort Drum' AND hours_to_phase < 0; |
How many UH-60M Black Hawks are overdue for phase maintenance at Fort Hood? | SELECT COUNT(*) FROM aircraft WHERE model = 'UH-60M' AND location__name = 'Fort Hood' AND hours_to_phase < 0; |
What is the total number of NMCM status aircraft for each model at Fort Stewart? | SELECT model, COUNT(*) AS nmcm_count FROM aircraft WHERE status = 'NMCM' AND location__name = 'Fort Stewart' GROUP BY model; |
What is the total number of NMCM status aircraft for each model at Huntsville? | SELECT model, COUNT(*) AS nmcm_count FROM aircraft WHERE status = 'NMCM' AND location__name = 'Huntsville' GROUP BY model; |
What is the total number of NMCM status aircraft for each model at Fort Campbell? | SELECT model, COUNT(*) AS nmcm_count FROM aircraft WHERE status = 'NMCM' AND location__name = 'Fort Campbell' GROUP BY model; |
What is the total number of NMCM status aircraft for each model at Fort Drum? | SELECT model, COUNT(*) AS nmcm_count FROM aircraft WHERE status = 'NMCM' AND location__name = 'Fort Drum' GROUP BY model; |
What is the total number of NMCM status aircraft for each model at Fort Hood? | SELECT model, COUNT(*) AS nmcm_count FROM aircraft WHERE status = 'NMCM' AND location__name = 'Fort Hood' GROUP BY model; |
List all aircrafts and their last mission date at Fort Stewart. | SELECT serial, last_sync_time AS last_mission FROM aircraft WHERE location__name = 'Fort Stewart'; |
List all aircrafts and their last mission date at Huntsville. | SELECT serial, last_sync_time AS last_mission FROM aircraft WHERE location__name = 'Huntsville'; |
List all aircrafts and their last mission date at Fort Campbell. | SELECT serial, last_sync_time AS last_mission FROM aircraft WHERE location__name = 'Fort Campbell'; |
List all aircrafts and their last mission date at Fort Drum. | SELECT serial, last_sync_time AS last_mission FROM aircraft WHERE location__name = 'Fort Drum'; |
List all aircrafts and their last mission date at Fort Hood. | SELECT serial, last_sync_time AS last_mission FROM aircraft WHERE location__name = 'Fort Hood'; |
Which model at Fort Stewart has the highest number of FMC status but zero flight hours this year? | SELECT model FROM aircraft WHERE location__name = 'Fort Stewart' AND status = 'FMC' AND flight_hours = 0 AND YEAR(last_update_time) = YEAR(CURRENT_DATE) GROUP BY model ORDER BY COUNT(*) DESC LIMIT 1; |
Which model at Huntsville has the highest number of FMC status but zero flight hours this year? | SELECT model FROM aircraft WHERE location__name = 'Huntsville' AND status = 'FMC' AND flight_hours = 0 AND YEAR(last_update_time) = YEAR(CURRENT_DATE) GROUP BY model ORDER BY COUNT(*) DESC LIMIT 1; |
Which model at Fort Campbell has the highest number of FMC status but zero flight hours this year? | SELECT model FROM aircraft WHERE location__name = 'Fort Campbell' AND status = 'FMC' AND flight_hours = 0 AND YEAR(last_update_time) = YEAR(CURRENT_DATE) GROUP BY model ORDER BY COUNT(*) DESC LIMIT 1; |
Which model at Fort Drum has the highest number of FMC status but zero flight hours this year? | SELECT model FROM aircraft WHERE location__name = 'Fort Drum' AND status = 'FMC' AND flight_hours = 0 AND YEAR(last_update_time) = YEAR(CURRENT_DATE) GROUP BY model ORDER BY COUNT(*) DESC LIMIT 1; |
Which model at Fort Hood has the highest number of FMC status but zero flight hours this year? | SELECT model FROM aircraft WHERE location__name = 'Fort Hood' AND status = 'FMC' AND flight_hours = 0 AND YEAR(last_update_time) = YEAR(CURRENT_DATE) GROUP BY model ORDER BY COUNT(*) DESC LIMIT 1; |
Calculate the average hours to phase for all Blackhawks across all bases. | SELECT AVG(hours_to_phase) AS avg_to_phase FROM aircraft WHERE model LIKE 'UH-60%'; |
Calculate the average hours to phase for all Blackhawks across all bases. | SELECT AVG(hours_to_phase) AS avg_to_phase FROM aircraft WHERE model LIKE 'UH-60%'; |
Calculate the average hours to phase for all Blackhawks across all bases. | SELECT AVG(hours_to_phase) AS avg_to_phase FROM aircraft WHERE model LIKE 'UH-60%'; |
Calculate the average hours to phase for all Blackhawks across all bases. | SELECT AVG(hours_to_phase) AS avg_to_phase FROM aircraft WHERE model LIKE 'UH-60%'; |
Calculate the average hours to phase for all Blackhawks across all bases. | SELECT AVG(hours_to_phase) AS avg_to_phase FROM aircraft WHERE model LIKE 'UH-60%'; |
Subsets and Splits