question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who is the player who played for the Miami Sol and went to school at North Carolina State? | CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" (
"pick" real,
"player" text,
"nationality" text,
"new_wnba_team" text,
"former_wnba_team" text,
"college_country_team" text
); | SELECT "player" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "new_wnba_team"='miami sol' AND "college_country_team"='north carolina state'; | 2-17308269-4 |
WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331? | CREATE TABLE "assists" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ast_avg" real,
"total_assists" real
); | SELECT AVG("ast_avg") FROM "assists" WHERE "games">101 AND "rank"=5 AND "total_assists"<331; | 2-16835332-4 |
WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108? | CREATE TABLE "assists" (
"rank" real,
"player" text,
"years" text,
"games" real,
"ast_avg" real,
"total_assists" real
); | SELECT SUM("ast_avg") FROM "assists" WHERE "rank"=5 AND "games">108; | 2-16835332-4 |
Which Round has a Name of john goodyear? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "round" FROM "washington_redskins_draft_history" WHERE "name"='john goodyear'; | 2-17100961-11 |
Which Round has a College of appalachian state, and an Overall smaller than 156? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "college"='appalachian state' AND "overall"<156; | 2-17100961-11 |
Which Pick has a Round larger than 17, and a Name of gene stewart? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "round">17 AND "name"='gene stewart'; | 2-17100961-11 |
What was the result when the opponent was Rory Markham? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='rory markham'; | 2-17433784-2 |
Which Branding has a frequency of 1080khz? | CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
); | SELECT "branding" FROM "am_stations_radyo_agila" WHERE "frequency"='1080khz'; | 2-17368176-3 |
Which frequency is located in Dagupan? | CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
); | SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "location"='dagupan'; | 2-17368176-3 |
What frequency does branding dzec radyo agila 1062 have? | CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
); | SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "branding"='dzec radyo agila 1062'; | 2-17368176-3 |
Which frequency has 40kw power? | CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
); | SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "power_k_w"='40kw'; | 2-17368176-3 |
Which frequency is located in Davao? | CREATE TABLE "am_stations_radyo_agila" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
); | SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "location"='davao'; | 2-17368176-3 |
what is the peak population (year) for scranton? | CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_population" text
); | SELECT "peak_population_year" FROM "cities_formerly_over_100_000_people" WHERE "city"='scranton'; | 2-1649321-6 |
what is the numeric decline from peak population when the perfect decline from peak population is -16.76% | CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_population" text
); | SELECT "numeric_decline_from_peak_population" FROM "cities_formerly_over_100_000_people" WHERE "percent_decline_from_peak_population"='-16.76%'; | 2-1649321-6 |
what is the numeric decline from peak population when 2010 population is 88857? | CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_population" text
); | SELECT "numeric_decline_from_peak_population" FROM "cities_formerly_over_100_000_people" WHERE "2010_population"='88857'; | 2-1649321-6 |
what is the state when the peak population (year) is 134995 (1950)? | CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_population" text
); | SELECT "state" FROM "cities_formerly_over_100_000_people" WHERE "peak_population_year"='134995 (1950)'; | 2-1649321-6 |
what is the percent decline from peak population when the peak population (year) is 178320 (1960)? | CREATE TABLE "cities_formerly_over_100_000_people" (
"city" text,
"state" text,
"2010_population" text,
"peak_population_year" text,
"numeric_decline_from_peak_population" text,
"percent_decline_from_peak_population" text
); | SELECT "percent_decline_from_peak_population" FROM "cities_formerly_over_100_000_people" WHERE "peak_population_year"='178320 (1960)'; | 2-1649321-6 |
WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES? | CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
); | SELECT "rank" FROM "highest_grossing_films_u_s" WHERE "studio"='universal' AND "director"='john hughes'; | 2-171615-1 |
WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL? | CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
); | SELECT "title" FROM "highest_grossing_films_u_s" WHERE "rank">10 AND "director"='walter hill'; | 2-171615-1 |
WHAT IS THE STUDIO WITH THE TITLE MASK? | CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
); | SELECT "studio" FROM "highest_grossing_films_u_s" WHERE "title"='mask'; | 2-171615-1 |
WHAT IS THE RANK WITH A GROSS OF $96,773,200? | CREATE TABLE "highest_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director" text,
"gross" text
); | SELECT COUNT("rank") FROM "highest_grossing_films_u_s" WHERE "gross"='$96,773,200'; | 2-171615-1 |
How many times was the player drawn that had less than 12 losses and a goal difference of +20? | CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
); | SELECT "drawn" FROM "premier_division_final_table" WHERE "lost"<12 AND "goal_difference"='+20'; | 2-17609068-1 |
What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42? | CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
); | SELECT SUM("position") FROM "premier_division_final_table" WHERE "drawn"=10 AND "lost"<25 AND "goal_difference"='+20' AND "played"<42; | 2-17609068-1 |
What is the highest number played when there were less than 13 losses and a goal difference of +46? | CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
); | SELECT MAX("played") FROM "premier_division_final_table" WHERE "lost"<13 AND "goal_difference"='+46'; | 2-17609068-1 |
What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses? | CREATE TABLE "premier_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
); | SELECT "points_1" FROM "premier_division_final_table" WHERE "position">4 AND "goals_for"=54 AND "lost">11; | 2-17609068-1 |
Who was the worship leader that had a lead supporting vocal Marcus Temu? | CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
); | SELECT "worship_leader" FROM "track_listing_cd" WHERE "lead_supporting_vocal"='marcus temu'; | 2-16755452-1 |
Who was the lead supporting vocalist on the song that was 4:54 long? | CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
); | SELECT "lead_supporting_vocal" FROM "track_listing_cd" WHERE "time"='4:54'; | 2-16755452-1 |
Who was the Worship Leader for the song that was 7:05 long? | CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
); | SELECT "worship_leader" FROM "track_listing_cd" WHERE "time"='7:05'; | 2-16755452-1 |
What is the song name that featured Marcus Temu as the lead supporting vocalist? | CREATE TABLE "track_listing_cd" (
"track" real,
"song" text,
"author" text,
"worship_leader" text,
"lead_supporting_vocal" text,
"time" text
); | SELECT "song" FROM "track_listing_cd" WHERE "lead_supporting_vocal"='marcus temu'; | 2-16755452-1 |
What's the lowest diameter when the longitude is 71.1w? | CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
); | SELECT MIN("diameter") FROM "sulci" WHERE "longitude"='71.1w'; | 2-16768245-5 |
What's the longitude for philae sulcus in 1997 with a diameter less than 1,575.0? | CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
); | SELECT "longitude" FROM "sulci" WHERE "diameter"<'1,575.0' AND "year_named"=1997 AND "name"='philae sulcus'; | 2-16768245-5 |
What is dardanus sulcus' lowest diameter? | CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
); | SELECT MIN("diameter") FROM "sulci" WHERE "name"='dardanus sulcus'; | 2-16768245-5 |
How many years is ur sulcus listed with a diameter less than 1,145.0? | CREATE TABLE "sulci" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" real,
"year_named" real
); | SELECT COUNT("year_named") FROM "sulci" WHERE "name"='ur sulcus' AND "diameter"<'1,145.0'; | 2-16768245-5 |
When the attendance was 3188 what was the score? | CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "score" FROM "round_6" WHERE "attendance"=3188; | 2-17026847-8 |
What is the maximum number of people in attendance on 16 August 2008 when the home team was Deportes Savio? | CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT MAX("attendance") FROM "round_6" WHERE "date"='16 august 2008' AND "home"='deportes savio'; | 2-17026847-8 |
What team was the away team when the Deportes Savio was the home team? | CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "away" FROM "round_6" WHERE "home"='deportes savio'; | 2-17026847-8 |
What was the away team when the score was 3:1? | CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "away" FROM "round_6" WHERE "score"='3:1'; | 2-17026847-8 |
When Platense was the away team on 16 August 2008 how many people attended the game? | CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "attendance" FROM "round_6" WHERE "date"='16 august 2008' AND "away"='platense'; | 2-17026847-8 |
What was the score when 2441 people were in attendance? | CREATE TABLE "round_6" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "score" FROM "round_6" WHERE "attendance"=2441; | 2-17026847-8 |
Which driver had 35+3 points? | CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
); | SELECT "driver" FROM "classification" WHERE "points"='35+3'; | 2-17241736-1 |
What was the time/retired for the driver with 14 points? | CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_retired" text,
"grid" text,
"laps_led" text,
"points" text
); | SELECT "time_retired" FROM "classification" WHERE "points"='14'; | 2-17241736-1 |
What is the sum of goals when the league cup goals are 4 and the FA cup goals are 0? | CREATE TABLE "second_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" text,
"league_cup_goals" text,
"total" real
); | SELECT "total" FROM "second_division" WHERE "league_cup_goals"='4' AND "fa_cup_goals"='0'; | 2-16454477-13 |
What is the amount of FA cups goals that were made when the total goals is greater than 16, and the league cup goals is 1 for the Norwich City club? | CREATE TABLE "second_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" text,
"league_cup_goals" text,
"total" real
); | SELECT "fa_cup_goals" FROM "second_division" WHERE "total">16 AND "league_cup_goals"='1' AND "club"='norwich city'; | 2-16454477-13 |
What is the number of league goals when Bill Dearden was the scorer and there was 0 league cup goals? | CREATE TABLE "second_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" text,
"league_cup_goals" text,
"total" real
); | SELECT "league_goals" FROM "second_division" WHERE "league_cup_goals"='0' AND "scorer"='bill dearden'; | 2-16454477-13 |
What is the name of the player with a transfer window in summer, an undisclosed transfer fee, and is moving from brussels? | CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "name" FROM "players_in" WHERE "transfer_window"='summer' AND "transfer_fee"='undisclosed' AND "moving_from"='brussels'; | 2-17200019-2 |
What is the type of bulykin, which has a summer transfer window? | CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "type" FROM "players_in" WHERE "transfer_window"='summer' AND "name"='bulykin'; | 2-17200019-2 |
What is the country of cordier? | CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "country" FROM "players_in" WHERE "name"='cordier'; | 2-17200019-2 |
What is the country of the player moving from belgrano with a summer transfer window? | CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "country" FROM "players_in" WHERE "transfer_window"='summer' AND "moving_from"='belgrano'; | 2-17200019-2 |
What is the transfer window of the player moving from barueri? | CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "transfer_window" FROM "players_in" WHERE "moving_from"='barueri'; | 2-17200019-2 |
What is the type of the player moving from belgrano? | CREATE TABLE "players_in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "type" FROM "players_in" WHERE "moving_from"='belgrano'; | 2-17200019-2 |
Average round for 22 pick that is overall smaller than 229? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("round") FROM "washington_redskins_draft_history" WHERE "pick"=22 AND "overall"<229; | 2-17100961-82 |
What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200? | CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
); | SELECT AVG("2002") FROM "copper_production_thousands_tonnes" WHERE "country"='peru' AND "2007">'1,200'; | 2-16702710-1 |
What is the most reduced 2007 that has 2008 littler than 1,270, and 2003 bigger than 870? | CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
); | SELECT MIN("2007") FROM "copper_production_thousands_tonnes" WHERE "2008"<'1,270' AND "2003">870; | 2-16702710-1 |
What is the most noteworthy 2006 that has 2008 littler than 5,330, and a Country of Peru, and 2009 littler than 1,260? | CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
); | SELECT MAX("2006") FROM "copper_production_thousands_tonnes" WHERE "2008"<'5,330' AND "country"='peru' AND "2009"<'1,260'; | 2-16702710-1 |
What is the least 2009 that has 2005 littler than 640, and 2011 of 425, and 2003 littler than 500? | CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
); | SELECT MIN("2009") FROM "copper_production_thousands_tonnes" WHERE "2005"<640 AND "2011"=425 AND "2003"<500; | 2-16702710-1 |
What is the aggregate number of 2005 that has 2004 bigger than 1,040, and a Country of Chile, and 2006 littler than 5,560? | CREATE TABLE "copper_production_thousands_tonnes" (
"country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
); | SELECT COUNT("2005") FROM "copper_production_thousands_tonnes" WHERE "2004">'1,040' AND "country"='chile' AND "2006"<'5,560'; | 2-16702710-1 |
How many Bronze medals did the Nation with 0 Silver receive? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "medal_table" WHERE "silver"<0; | 2-16852841-1 |
How many Gold medals did the Nation with less than 8 Total medals including 1 Bronze and 0 Silver receive? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_table" WHERE "total"<8 AND "bronze"<1 AND "silver"<1; | 2-16852841-1 |
How many Total medals did the Nation the got 0 Bronze medals receive? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "bronze"<0; | 2-16852841-1 |
What Nation had a more than 1 Total medal including less than 3 Silver, less than 4 Gold and a Rank of 4? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "nation" FROM "medal_table" WHERE "silver"<3 AND "total">1 AND "gold"<4 AND "rank"='4'; | 2-16852841-1 |
How many Silver medals did the Nation ranking 8 with more than 1 Total medal but less than 1 Gold receive? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("silver") FROM "medal_table" WHERE "gold"<1 AND "rank"='8' AND "total">1; | 2-16852841-1 |
What is the start date with Luke Jacobz hosting and Dannii Minogue as a winning mentor? | CREATE TABLE "series_summary" (
"series" text,
"start" text,
"finish" text,
"winner" text,
"runner_up" text,
"third_place" text,
"winning_mentor" text,
"main_host" text
); | SELECT "start" FROM "series_summary" WHERE "main_host"='luke jacobz' AND "winning_mentor"='dannii minogue'; | 2-1658647-1 |
Who was in third place when Guy Sebastian was the winning mentor and Andrew Wishart was the runner-up? | CREATE TABLE "series_summary" (
"series" text,
"start" text,
"finish" text,
"winner" text,
"runner_up" text,
"third_place" text,
"winning_mentor" text,
"main_host" text
); | SELECT "third_place" FROM "series_summary" WHERE "winning_mentor"='guy sebastian' AND "runner_up"='andrew wishart'; | 2-1658647-1 |
In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants? | CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
); | SELECT SUM("election") FROM "municipalities_in_trentino" WHERE "mayor"='adalberto mosaner' AND "inhabitants"<'16,170'; | 2-17305625-1 |
In what Election year were there less than 16,170 Inhabitants? | CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
); | SELECT COUNT("election") FROM "municipalities_in_trentino" WHERE "inhabitants"<'16,170'; | 2-17305625-1 |
What is the Mayor of Riva del Garda in 2010? | CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
); | SELECT "mayor" FROM "municipalities_in_trentino" WHERE "election"=2010 AND "municipality"='riva del garda'; | 2-17305625-1 |
How many Inhabitants were there after 2009 in the Municipality with a Party of union for trentino? | CREATE TABLE "municipalities_in_trentino" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
); | SELECT AVG("inhabitants") FROM "municipalities_in_trentino" WHERE "party"='union for trentino' AND "election">2009; | 2-17305625-1 |
What is the lowest enrolled school that was founded in 1992 and joined a conference before 1998? | CREATE TABLE "members" (
"institution" text,
"location" text,
"founded" text,
"joined_conference" real,
"enrollment" real,
"nickname" text
); | SELECT MIN("enrollment") FROM "members" WHERE "founded"='1992' AND "joined_conference"<1998; | 2-16459982-1 |
Which foot ball team played soccer at wooster, and Gold in Ashland? | CREATE TABLE "boys_league_championships" (
"school_year" text,
"football" text,
"cross_country" text,
"soccer" text,
"golf" text
); | SELECT "football" FROM "boys_league_championships" WHERE "soccer"='wooster' AND "golf"='ashland'; | 2-16423070-3 |
What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver? | CREATE TABLE "women" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "women" WHERE "bronze"<2 AND "rank"<4 AND "silver"<1; | 2-1747960-4 |
How many silver for the team with more than 2 bronze and more than 7 gold? | CREATE TABLE "women" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("silver") FROM "women" WHERE "bronze">2 AND "gold">7; | 2-1747960-4 |
What is the total for the team with 0 bronze and 3 silver? | CREATE TABLE "women" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("total") FROM "women" WHERE "bronze"=0 AND "silver"=3; | 2-1747960-4 |
What is the total number of Rounds held in Nevada, United States in which the time was 1:55? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "location"='nevada, united states' AND "time"='1:55'; | 2-17442625-2 |
What was the time when his opponent was Rudy Martin? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='rudy martin'; | 2-17442625-2 |
What was the method when the fight's time was 1:52? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='1:52'; | 2-17442625-2 |
What is the lowest overs of the Chennai Super Kings when the Economy Rate is less than 5.92 with a Best Bowling number of 2/17? | CREATE TABLE "best_economy" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"economy_rate" real,
"wickets" real,
"average" real,
"strike_rate" real,
"best_bowling" text
); | SELECT MIN("overs") FROM "best_economy" WHERE "team"='chennai super kings' AND "best_bowling"='2/17' AND "economy_rate"<5.92; | 2-17529767-12 |
What is the lowest number of Overs for the Royal Challengers Bangalore? | CREATE TABLE "best_economy" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"economy_rate" real,
"wickets" real,
"average" real,
"strike_rate" real,
"best_bowling" text
); | SELECT MIN("overs") FROM "best_economy" WHERE "team"='royal challengers bangalore'; | 2-17529767-12 |
What is the highest Strike Rate when the average is less than 50.25 with less than 13 matches played? | CREATE TABLE "best_economy" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"economy_rate" real,
"wickets" real,
"average" real,
"strike_rate" real,
"best_bowling" text
); | SELECT MAX("strike_rate") FROM "best_economy" WHERE "matches"<13 AND "average"<50.25; | 2-17529767-12 |
What is the venue of the race where Lineth Chepkurui placed 4th? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "venue" FROM "achievements" WHERE "position"='4th'; | 2-16682679-1 |
What is the venue of the team race that was before 2010? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "venue" FROM "achievements" WHERE "notes"='team' AND "year"<2010; | 2-16682679-1 |
What is the venue of the team race that was after 2008? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "venue" FROM "achievements" WHERE "year">2008 AND "notes"='team'; | 2-16682679-1 |
What competition did Lineth Chepkurui place 5th? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "competition" FROM "achievements" WHERE "position"='5th'; | 2-16682679-1 |
How many votes did Lee Teng-Hui receive when he was elected? | CREATE TABLE "presidential_elections" (
"election" real,
"candidate" text,
"running_mate" text,
"total_votes" real,
"share_of_votes" text,
"outcome" text
); | SELECT MAX("total_votes") FROM "presidential_elections" WHERE "outcome"='elected' AND "candidate"='lee teng-hui'; | 2-16903-1 |
What was the score for a match before 13, and a home game on April 21, 2008? | CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
); | SELECT "score" FROM "s_league" WHERE "match"<13 AND "home_away"='home' AND "date"='april 21, 2008'; | 2-17540458-3 |
What home/away game is on February 29, 2008? | CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
); | SELECT "home_away" FROM "s_league" WHERE "date"='february 29, 2008'; | 2-17540458-3 |
What team was the home team when Manchester City was the away team? | CREATE TABLE "third_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "third_round" WHERE "away_team"='manchester city'; | 2-17540875-4 |
What is the sum of Points, when Equipment was "Zabel-BSU", and when Position was 42? | CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
); | SELECT SUM("points") FROM "riders" WHERE "equipment"='zabel-bsu' AND "position"=42; | 2-17075870-4 |
What is Equipment, when Points is less than 6, and when Position is 53? | CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
); | SELECT "equipment" FROM "riders" WHERE "points"<6 AND "position"=53; | 2-17075870-4 |
What is Second, when Position is greater than 33, when Points is greater than 12, and when Equipment is Zabel-VMC? | CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
); | SELECT "second" FROM "riders" WHERE "position">33 AND "points">12 AND "equipment"='zabel-vmc'; | 2-17075870-4 |
What is Equipment, when Position is greater than 28, and when Points is greater than 10? | CREATE TABLE "riders" (
"position" real,
"equipment" text,
"points" real,
"wins" text,
"second" text,
"third" text
); | SELECT "equipment" FROM "riders" WHERE "position">28 AND "points">10; | 2-17075870-4 |
When Hawthorn is the away team, what is their score? | CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "1st_round" WHERE "away_team"='hawthorn'; | 2-16387653-1 |
Which ground has a crowd over 41,185? | CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
); | SELECT "ground" FROM "1st_round" WHERE "crowd">'41,185'; | 2-16387653-1 |
When the crowd is larger than 12,314 and the home team score is 17.7 (109), what is the away team score? | CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "1st_round" WHERE "crowd">'12,314' AND "home_team_score"='17.7 (109)'; | 2-16387653-1 |
What place has a 67-68-78-77=290 score? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
); | SELECT "place" FROM "final_round" WHERE "score"='67-68-78-77=290'; | 2-17245513-1 |
What is the highest to par of the player from the United States with a t3 place and a 74-73-72-69=288 place? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
); | SELECT MAX("to_par") FROM "final_round" WHERE "country"='united states' AND "place"='t3' AND "score"='74-73-72-69=288'; | 2-17245513-1 |
What is the place of player peter oosterhuis, who has $7,500? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
); | SELECT "place" FROM "final_round" WHERE "money"='7,500' AND "player"='peter oosterhuis'; | 2-17245513-1 |
What country has a 72-70-75-72=289 score? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
); | SELECT "country" FROM "final_round" WHERE "score"='72-70-75-72=289'; | 2-17245513-1 |
Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
); | SELECT "player" FROM "final_round" WHERE "country"='united states' AND "to_par"=4 AND "score"='74-73-72-69=288'; | 2-17245513-1 |
How much money does the player with a to par less than 4 and a score of 74-72-68-73=287 have? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" text
); | SELECT "money" FROM "final_round" WHERE "to_par"<4 AND "score"='74-72-68-73=287'; | 2-17245513-1 |
What is High Assists, when High Points is "Tayshaun Prince (23)"? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_assists" FROM "game_log" WHERE "high_points"='tayshaun prince (23)'; | 2-17325937-6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.