query
stringlengths
29
423
question
stringlengths
17
126
db_id
stringclasses
8 values
SELECT T2.state FROM FINREV_FED_KEY_17 as T2 JOIN FINREV_FED_17 as T1 ON T1.state_code = T2.State_Code GROUP BY T1.state_code ORDER BY sum(t_fed_rev)
What are the top five states in descending order in terms of revenue provided to school districts?
StudentMathScore
SELECT T2.state FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code GROUP BY T2.state ORDER BY count(school_district) DESC LIMIT 5
What are the top five states in descending order in terms of the number of school districts per state?
StudentMathScore
SELECT state, max(year) FROM NDECoreExcel_Math_Grade8 GROUP BY state
For each state, when was the last time the average score data was collected?
StudentMathScore
SELECT t_fed_rev FROM FINREV_FED_17 WHERE school_district = "FAIRFAX CO SCHS"
How much federal funding did Faifaix County, VA schools receive in all forms?
StudentMathScore
SELECT sum(c14) FROM FINREV_FED_17 WHERE yr_data = 17
How much did the federal government spend in No Child Left Behind funding in 2017?
StudentMathScore
SELECT count(*) FROM FINREV_FED_17 WHERE school_district LIKE "%Wisconsin%"
How many Wisconsin school districts receive federal funding?
StudentMathScore
SELECT state FROM NDECoreExcel_Math_Grade8 ORDER BY average_scale_score DESC LIMIT 1
Which state performs best on the NAEP 8th grade math test?
StudentMathScore
SELECT state FROM NDECoreExcel_Math_Grade8 ORDER BY average_scale_score LIMIT 1
Which federally-funded state performs worst on the NAEP math exam for eighth graders?
StudentMathScore
SELECT avg(average_scale_score) FROM NDECoreExcel_Math_Grade8
What is the average NAEP math score for all eighth graders in federally-funded states?
StudentMathScore
SELECT T1.school_district FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code WHERE T2.state = "Wisconsin" ORDER BY T1.t_fed_rev DESC LIMIT 1
Which school district receive the most of federal revenue through state in Wisconsin?
StudentMathScore
SELECT avg(T1.c14) FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code WHERE T2.state = "Virginia"
What is the average Title 1 fund in Virginia?
StudentMathScore
SELECT T2.state, sum(c14),sum(c25) FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code JOIN NDECoreExcel_Math_Grade8 as T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY T3.average_scale_score DESC LIMIT 10
What are the top 10 states that have the highest average math score and federal revenue they got through different categories?
StudentMathScore
SELECT T1.school_district, max(T1.c14), T3.average_scale_score FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code JOIN NDECoreExcel_Math_Grade8 as T3 ON T2.state = T3.state UNION SELECT T1.school_district, max(T1.c25), T3.average_scale_score FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code JOIN NDECoreExcel_Math_Grade8 as T3 ON T2.state = T3.state
What are the schools with highest federal revenue in each federal revenue categories and what's their state average scores?
StudentMathScore
SELECT state FROM NDECoreExcel_Math_Grade8 ORDER BY average_scale_score DESC LIMIT 1
State with highest average math score
StudentMathScore
SELECT T1.school_district, max(T1.t_fed_rev / T3.average_scale_score) FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 on T1.state_code = T2.state_code JOIN NDECoreExcel_Math_Grade8 as T3 ON T2.state = T3.state
School with highest ratio of total revenue and average scores
StudentMathScore
SELECT T2.state, T3.average_scale_score FROM FINREV_FED_KEY_17 as T2 JOIN FINREV_FED_17 as T1 ON T1.state_code = T2.state_code JOIN NDECoreExcel_Math_Grade8 as T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY sum(T1.t_fed_rev) DESC LIMIT 1
Which state spent the most revenue towards schools and whats the state average score
StudentMathScore
SELECT T1.school_district, min(T1.t_fed_rev / T3.average_scale_score) FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 on T1.state_code = T2.state_code JOIN NDECoreExcel_Math_Grade8 as T3 ON T2.state = T3.state
School with lowest ratio of total revenue and average scores
StudentMathScore
SELECT T2.state, T3.average_scale_score FROM FINREV_FED_KEY_17 as T2 JOIN FINREV_FED_17 as T1 ON T1.state_code = T2.state_code JOIN NDECoreExcel_Math_Grade8 as T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY sum(T1.t_fed_rev) LIMIT 1
Which state spent the least revenue towards schools and whats the state average score
StudentMathScore
SELECT state FROM NDECoreExcel_Math_Grade8 ORDER BY average_scale_score DESC LIMIT 1
Which state has the highest average score in math exam?
StudentMathScore
SELECT average_scale_score FROM NDECoreExcel_Math_Grade8 WHERE state = "California"
What is the average match score of CA?
StudentMathScore
SELECT count(DISTINCT school_district) FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code WHERE T2.state = "Indiana"
How many unique school districts in Indiana?
StudentMathScore
SELECT state_code FROM FINREV_FED_KEY_17 WHERE state = "Virginia"
What is the state code of VA?
StudentMathScore
SELECT T2.state FROM FINREV_FED_KEY_17 as T2 JOIN FINREV_FED_17 as T1 ON T1.state_code = T2.state_code GROUP BY T2.state ORDER BY sum(t_fed_rev) DESC LIMIT 1
Which state get the highest revenue?
StudentMathScore
SELECT sum(T1.c14), sum(T1.c25) FROM FINREV_FED_17 as T1 JOIN FINREV_FED_KEY_17 as T2 ON T1.state_code = T2.state_code WHERE T2.state = "Colorado"
How much funding does Colorado schools receive from Title 1 and the Child Nutrition program respectively?
StudentMathScore
SELECT t_fed_rev FROM FINREV_FED_17 WHERE school_district LIKE "%Pecatonia Area%"
How much federal funding does Pecatonia Area School district get?
StudentMathScore
SELECT average_scale_score FROM NDECoreExcel_Math_Grade8 WHERE state = "North Carolina" UNION SELECT average_scale_score FROM NDECoreExcel_Math_Grade8 WHERE state = "South Carolina"
What are the student scores on the NAEP math exam for 8th graders in North Carolina and South Carolina?
StudentMathScore
SELECT average_scale_score FROM NDECoreExcel_Math_Grade8 WHERE state = "North Carolina" UNION SELECT average_scale_score FROM NDECoreExcel_Math_Grade8 WHERE state = "New York"
What are the averge score of students in NC and in NY?
StudentMathScore
SELECT count(*) FROM FINREV_FED_17 WHERE c25 > c14
How many schools get higher revenue via Child Nutrition A than revenue via child left school behind act?
StudentMathScore
SELECT Country FROM nuclear_power_plants WHERE Status = "Operational" GROUP BY Country ORDER BY count(Name) DESC LIMIT 10
What are the top 10 countries with most number of operational plants?
GeoNuclearData
SELECT Name, Country FROM nuclear_power_plants WHERE Status = "Planned"
What are the planed nuclear power plants and their located countries?
GeoNuclearData
SELECT ReactorModel FROM nuclear_power_plants GROUP BY ReactorModel ORDER BY count(*) DESC LIMIT 1
What’s the most used nuclear reactor model?
GeoNuclearData
SELECT Country FROM nuclear_power_plants WHERE Name = "Kaiga-4"
Which country is Kaiga-4 built in?
GeoNuclearData
SELECT count(*) FROM nuclear_power_plants WHERE ReactorType = "PHWR"
How many PHWR are there today?
GeoNuclearData
SELECT count(DISTINCT ReactorModel) FROM nuclear_power_plants
How many kinds of nuclear reactor model in the world?
GeoNuclearData
SELECT count(*) FROM nuclear_power_plants WHERE Status = "Shutdown"
How many nuclear power plants were shut down now?
GeoNuclearData
SELECT Country FROM nuclear_power_plants Group BY Country HAVING count(Name) > 3
How many countries have at least 3 nuclear power plants?
GeoNuclearData
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY count(name) DESC LIMIT 1
Which country has the most nuclear power plants?
GeoNuclearData
SELECT Country FROM nuclear_power_plants GROUP BY Country HAVING count(Name) = 1
Which country has only one nuclear power plants?
GeoNuclearData
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Capacity) DESC LIMIT 1
Which country has the most capacities of nuclear power plants?
GeoNuclearData
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Capacity) LIMIT 1
Which country has the least capacities of nuclear power plants?
GeoNuclearData
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Name) DESC LIMIT 3
What are the top 3 countries which have the most nuclear power plants?
GeoNuclearData
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY count(Name) DESC LIMIT 1
Which country has the most nuclear station?
GeoNuclearData
SELECT Country FROM nuclear_power_plants WHERE Status = "Shutdown" GROUP BY Country ORDER BY count(Name) DESC LIMIT 1
Which county has the most nuclear station shut down?
GeoNuclearData
SELECT Name FROM nuclear_power_plants ORDER BY Capacity DESC LIMIT 1
What nuclear station has the largest nuclear power plant capacity?
GeoNuclearData
SELECT count(*) FROM nuclear_power_plants WHERE Country = "France" and Status = "Operational"
How many operating nuclear station in France?
GeoNuclearData
SELECT count(Name) FROM nuclear_power_plants WHERE Status = "Under Construction"
How many nuclear station are under construction?
GeoNuclearData
SELECT ReactorModel FROM nuclear_power_plants GROUP BY ReactorModel ORDER BY count(*) DESC LIMIT 1
What nuclear reactor model is the most popular?
GeoNuclearData
SELECT Country FROM nuclear_power_plants WHERE Name = "Chinon-A3"
Which country is Chinon-A3 in?
GeoNuclearData
SELECT Name FROM nuclear_power_plants where Status = "Operational" and Country = "Japan"
What are operational nuclear power plants in Japan called?
GeoNuclearData
SELECT Country FROM nuclear_power_plants ORDER BY OperationalFrom LIMIT 1
Which country first started using nuclear power plant(s)?
GeoNuclearData
SELECT count(*) FROM nuclear_power_plants WHERE Country = "Japan" AND Status = "Under Construction"
How many nuclear power plants are in preparation to be used in Japan?
GeoNuclearData
SELECT Status FROM nuclear_power_plants WHERE Country = "United States" ORDER BY Capacity DESC LIMIT 1
What is the current situation of the nuclear power plant in the United States with the maximum capacity?
GeoNuclearData
SELECT max(Capacity) FROM nuclear_power_plants WHERE ReactorType = "PWR" and Status = "Operational"
What is the maximum capacity of existing pressurized water reactor?
GeoNuclearData
SELECT Country FROM nuclear_power_plants WHERE Status = "Under Construction" GROUP BY Country ORDER BY count(*) DESC LIMIT 1
Which nation has the most nuclear plants under construction?
GeoNuclearData
SELECT Country FROM nuclear_power_plants WHERE Status = "Under Construction" GROUP BY Country ORDER BY count(*) DESC LIMIT 1
Which country has the most under constriction power plants to date?
GeoNuclearData
SELECT Longitude, Latitude FROM nuclear_power_plants WHERE ReactorType = "BWR" ORDER BY ConstructionStartAt LIMIT 1
Where is the first BWR type power plant built and located?
GeoNuclearData
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Capacity) DESC LIMIT 1
Which country lead the total capacity of the power plants it held?
GeoNuclearData
SELECT Source FROM nuclear_power_plants GROUP BY Source ORDER BY count(*) DESC LIMIT 1
What is the main source of the information for this table?
GeoNuclearData
SELECT ReactorType FROM nuclear_power_plants GROUP BY ReactorType ORDER BY avg(Capacity) DESC LIMIT 1
Which reactor type has the largest average capacity?
GeoNuclearData
SELECT Country FROM nuclear_power_plants WHERE Name = "Kursk-1"
Which country is Kursk-1 in?
GeoNuclearData
SELECT T2.birth_state FROM player AS T2 JOIN hall_of_fame as T1 ON T1.player_id = T2.player_id WHERE inducted = "Y" GROUP BY T2.birth_state ORDER BY count(T1.player_id) DESC LIMIT 1
Which states have produced the largest number of candidates inducted into the hall of fame?
TheHistoryofBaseball
SELECT league_id FROM salary GROUP BY league_id ORDER BY sum(salary) DESC LIMIT 1
What is the top league that pays the most to their players?
TheHistoryofBaseball
SELECT league_id FROM salary GROUP BY league_id ORDER BY max(salary) - min(salary) DESC LIMIT 1
Which leage have the largest difference in pay among their team players?
TheHistoryofBaseball
SELECT avg(T2.salary) FROM salary as T2 JOIN hall_of_fame as T1 ON T1.player_id = T2.player_id WHERE T1.inducted = "Y"
What is the average pay for players inducted into the hall of fame?
TheHistoryofBaseball
SELECT avg(T2.salary) FROM salary as T2 JOIN hall_of_fame as T1 ON T1.player_id = T2.player_id WHERE T1.inducted = "N"
What is the average pay for players not inducted into the hall of fame?
TheHistoryofBaseball
SELECT league_id FROM salary GROUP BY league_id ORDER BY avg(salary) DESC LIMIT 1
Which leage has higher average salaries for player?
TheHistoryofBaseball
SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) DESC LIMIT 1
Which Country are most baseball players from?
TheHistoryofBaseball
SELECT name_first, name_last FROM player ORDER BY birth_year DESC LIMIT 1
Who is the youngest baseball player so far?
TheHistoryofBaseball
SELECT league_id FROM salary GROUP BY league_id ORDER BY sum(salary) DESC LIMIT 1
Which league gets paid the most?
TheHistoryofBaseball
SELECT T2.points_won FROM player_award as T1 JOIN player_award_vote as T2 ON T1.player_id = T2.player_id WHERE T1.league_id = "NL" AND T1.award_id = "Most Valuable Player" AND T1.year = "1990" AND T2.league_id = "NL" AND T2.year = "1990"
How much points were received by the NL league's most valuable player winner in 1990?
TheHistoryofBaseball
SELECT avg( death_year - birth_year) FROM player WHERE birth_country = "USA"
What is the average age of players from USA?
TheHistoryofBaseball
SELECT avg( death_year - birth_year ) FROM player
What is the average lifespan of a baseball player?
TheHistoryofBaseball
SELECT votedby FROM hall_of_fame WHERE yearid = "2000" GROUP BY votedby ORDER BY count(*) DESC LIMIT 1
Which is the most popular voting method for Hall of Fame in 2000?
TheHistoryofBaseball
SELECT count(*) FROM player WHERE weight > 200
How many players weigh over 200 pounds?
TheHistoryofBaseball
SELECT player_id FROM player_award WHERE year = 2010 AND award_id = "Rookie of the Year"
Who is the winner of Rookie of the Year in 2010?
TheHistoryofBaseball
SELECT player_id FROM salary WHERE year >= 2010 ORDER BY salary DESC LIMIT 1
Who is the highest paid player since 2010?
TheHistoryofBaseball
SELECT T2.salary FROM salary as T2 JOIN hall_of_fame as T1 ON T1.player_id = T2.player_id WHERE T1.inducted = "Y"
What are the salaries of players who have ever enter hall of fame?
TheHistoryofBaseball
SELECT min(votes), yearid FROM hall_of_fame WHERE inducted = "Y" AND yearid >= 1871 GROUP BY yearid
What are the minimum votes needed to enter hall of fame for each year since 1871?
TheHistoryofBaseball
SELECT salary FROM salary WHERE league_id = "NL"
What are the salaries in National League?
TheHistoryofBaseball
SELECT salary FROM salary WHERE league_id = "AL"
What are the salaries in American League?
TheHistoryofBaseball
SELECT birth_country FROM player as T1 JOIN player_award as T2 ON T1.player_id = T2.player_id GROUP BY T1.birth_country ORDER BY count(*) DESC LIMIT 1
Which birth place has the most player awards?
TheHistoryofBaseball
SELECT T1.birth_country FROM hall_of_fame as T2 JOIN player as T1 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" AND T2.yearid >= 1871
What are the birth places of players won on hall of fame since 1871?
TheHistoryofBaseball
SELECT award_id FROM player_award as T1 JOIN salary as T2 ON T1.player_id = T2.player_id GROUP BY T1.award_id ORDER BY avg(T2.salary) DESC LIMIT 1
Which award has the highest player's salary?
TheHistoryofBaseball
SELECT DISTINCT yearid FROM hall_of_fame WHERE needed_note != ""
What were the years when any special elections happened in hall of fame?
TheHistoryofBaseball
SELECT T1.birth_country FROM player as T1 JOIN hall_of_fame as T2 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" GROUP BY T1.birth_country ORDER BY count(*) DESC LIMIT 10
Top 10 countries with the most hall of fame players
TheHistoryofBaseball
SELECT T1.player_id, T1.award_id , min(T1.year - T2.birth_year) FROM player_award as T1 JOIN player as T2 ON T1.player_id = T2.player_id GROUP BY T1.award_id
For every award, who is the youngest winner?
TheHistoryofBaseball
SELECT T1.player_id, T1.award_id , max(T1.year - T2.birth_year) FROM player_award as T1 JOIN player as T2 ON T1.player_id = T2.player_id GROUP BY T1.award_id
For every award, who is the oldest winner?
TheHistoryofBaseball
SELECT T2.team_id FROM hall_of_fame as T1 JOIN salary as T2 ON T1.player_id = T2.player_id AND T1.yearid = T2.year WHERE T1.inducted = "Y" GROUP BY T2.team_id ORDER BY count(*) DESC LIMIT 10
Top 10 teams with the most hall of fame players
TheHistoryofBaseball
SELECT avg(T1.death_year - T1.birth_year) FROM player as T1 JOIN hall_of_fame as T2 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y"
Average lifespan of hall of fame players
TheHistoryofBaseball
SELECT avg(T1.weight) FROM player as T1 JOIN player_award as T2 ON T1.player_id = T2.player_id GROUP BY notes
For award winners, what's average weight for each position
TheHistoryofBaseball
SELECT T2.notes FROM hall_of_fame as T1 JOIN player_award as T2 ON T1.player_id = T2.player_id WHERE T1.inducted = "Y" GROUP BY notes ORDER BY count(*) DESC LIMIT 1
For award winners, which position that has the most hall of fame players?
TheHistoryofBaseball
SELECT player_id FROM player_award_vote WHERE year = "1971" ORDER BY points_won DESC LIMIT 1
Which player get the highest score in 1971?
TheHistoryofBaseball
SELECT T1.birth_month FROM player as T1 JOIN hall_of_fame as T2 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" GROUP BY T1.birth_month ORDER BY count(*) DESC LIMIT 1
Which month that players were born has the highest likelihood to be elected as hall of fame?
TheHistoryofBaseball
SELECT league_id FROM player_award WHERE year = "2006" GROUP BY league_id ORDER BY count(*) DESC LIMIT 1
Which league has the most player awarded in 2006?
TheHistoryofBaseball
SELECT DISTINCT notes FROM player_award WHERE player_id = "willite01"
What defense position the player ID willite01 is?
TheHistoryofBaseball
SELECT count(*) FROM (SELECT player_id FROM player_award GROUP BY player_id HAVING count(*) > 10)
How many players were awarded more than ten times?
TheHistoryofBaseball
SELECT birth_city FROM player GROUP BY birth_city ORDER BY count(*) DESC LIMIT 1
Which city the most players were born?
TheHistoryofBaseball
SELECT avg(T1.weight) FROM player as T1 JOIN player_award as T2 ON T1.player_id = T2.player_id WHERE T2.award_id = "TSN All-Star" AND notes = "3B"
What is the average weight of players who were awarded third-base man in TSN all-star award?
TheHistoryofBaseball
SELECT player_id FROM salary WHERE year = "2015" ORDER BY salary DESC LIMIT 1
Who is the player had the highest salary in 2015?
TheHistoryofBaseball
SELECT DISTINCT commod FROM resultsdata15 WHERE concen != ""
Provide the list of products with pesticide residues detected.
Pesticide
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
3
Edit dataset card