question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? | CREATE TABLE "group_i" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT AVG("played") FROM "group_i" WHERE "wins"<11 AND "goals_for">42 AND "points">22 AND "losses"=11; | 2-17416195-2 |
What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8? | CREATE TABLE "group_i" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT COUNT("goal_difference") FROM "group_i" WHERE "goals_for"<49 AND "position"<8; | 2-17416195-2 |
What is the lowest played for the entry with position of 2 and fewer than 9 losses? | CREATE TABLE "group_i" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("played") FROM "group_i" WHERE "position"=2 AND "losses"<9; | 2-17416195-2 |
What is the total number of losses for entries that have 12 wins and a goal difference smaller than -14? | CREATE TABLE "group_i" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT COUNT("losses") FROM "group_i" WHERE "wins"=12 AND "goal_difference"<-14; | 2-17416195-2 |
What are the goals for Pelletieri in ARG? | CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" text,
"app_l_c_e" text,
"goals_l_c_e" text,
"ends" real,
"transfer_fee" text
); | SELECT "goals_l_c_e" FROM "squad_information" WHERE "nat"='arg' AND "name"='pelletieri'; | 2-17426846-1 |
What are the fewest ends with an App(L/C/E) of 51 (44/6/1)? | CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" text,
"app_l_c_e" text,
"goals_l_c_e" text,
"ends" real,
"transfer_fee" text
); | SELECT MIN("ends") FROM "squad_information" WHERE "app_l_c_e"='51 (44/6/1)'; | 2-17426846-1 |
Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)? | CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" text,
"app_l_c_e" text,
"goals_l_c_e" text,
"ends" real,
"transfer_fee" text
); | SELECT "name" FROM "squad_information" WHERE "nat"='gre' AND "app_l_c_e"='49 (40/8/1)'; | 2-17426846-1 |
What are the gaols(L/C/E) with an App(L/C/E) of 55 (47/5/3)? | CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" text,
"app_l_c_e" text,
"goals_l_c_e" text,
"ends" real,
"transfer_fee" text
); | SELECT "goals_l_c_e" FROM "squad_information" WHERE "app_l_c_e"='55 (47/5/3)'; | 2-17426846-1 |
How many times was the reader's vote na and the lifetime achievement na? | CREATE TABLE "previous_winners" (
"year" real,
"best_teenage_young_adult" text,
"reader_s_vote" text,
"best_non_fiction" text,
"lifetime_achievement" text
); | SELECT COUNT("year") FROM "previous_winners" WHERE "reader_s_vote"='na' AND "lifetime_achievement"='na'; | 2-16369528-1 |
who won the lifetime achievement in the year 1998? | CREATE TABLE "previous_winners" (
"year" real,
"best_teenage_young_adult" text,
"reader_s_vote" text,
"best_non_fiction" text,
"lifetime_achievement" text
); | SELECT "lifetime_achievement" FROM "previous_winners" WHERE "year"=1998; | 2-16369528-1 |
who won the lifetime achievement when the best non-fiction is na, reader's vote is ne and the year is after 2005? | CREATE TABLE "previous_winners" (
"year" real,
"best_teenage_young_adult" text,
"reader_s_vote" text,
"best_non_fiction" text,
"lifetime_achievement" text
); | SELECT "lifetime_achievement" FROM "previous_winners" WHERE "best_non_fiction"='na' AND "reader_s_vote"='na' AND "year">2005; | 2-16369528-1 |
what is the reader's vote for 2011? | CREATE TABLE "previous_winners" (
"year" real,
"best_teenage_young_adult" text,
"reader_s_vote" text,
"best_non_fiction" text,
"lifetime_achievement" text
); | SELECT "reader_s_vote" FROM "previous_winners" WHERE "year"=2011; | 2-16369528-1 |
Constructor with total time of 2:45.416 | CREATE TABLE "qualifying" (
"driver" text,
"constructor" text,
"q1_order" real,
"q1_time" text,
"q1_pos" real,
"q1_q2_time" text
); | SELECT "constructor" FROM "qualifying" WHERE "q1_q2_time"='2:45.416'; | 2-1706942-1 |
Driver at larger than 10 with a Q1 of 18. | CREATE TABLE "qualifying" (
"driver" text,
"constructor" text,
"q1_order" real,
"q1_time" text,
"q1_pos" real,
"q1_q2_time" text
); | SELECT "driver" FROM "qualifying" WHERE "q1_order">10 AND "q1_pos"=18; | 2-1706942-1 |
Who was the opponent when the record was 55-14? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='55-14'; | 2-17344651-8 |
What was the game number when record is 59-15? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
); | SELECT MIN("game") FROM "game_log" WHERE "record"='59-15'; | 2-17344651-8 |
What is the date that the record was 51-14? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='51-14'; | 2-17344651-8 |
What is the sum of Pick #, when College is Laurier? | CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT SUM("pick_num") FROM "round_five" WHERE "college"='laurier'; | 2-16575609-5 |
What is CFL Team, when Pick # is greater than 34, and when College is Boise State? | CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "cfl_team" FROM "round_five" WHERE "pick_num">34 AND "college"='boise state'; | 2-16575609-5 |
What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats? | CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT MIN("pick_num") FROM "round_five" WHERE "position"='rec' AND "cfl_team"='hamilton tiger-cats'; | 2-16575609-5 |
What is Player, when Position is DB, and when College is Saint Mary's? | CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "player" FROM "round_five" WHERE "position"='db' AND "college"='saint mary''s'; | 2-16575609-5 |
What is Position, when Pick # is less than 40, and when College is Western? | CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "position" FROM "round_five" WHERE "pick_num"<40 AND "college"='western'; | 2-16575609-5 |
Which Date has a Time of 12:00? | CREATE TABLE "pool_e" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "date" FROM "pool_e" WHERE "time"='12:00'; | 2-16593943-11 |
Set 1 of 25–20, what was Set 2? | CREATE TABLE "pool_e" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_2" FROM "pool_e" WHERE "set_1"='25–20'; | 2-16593943-11 |
Whose rule began in 1906 BC? | CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
); | SELECT "name" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='1906 bc'; | 2-17606888-6 |
What is the title of the one who ruled from 2007 BC? | CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
); | SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='2007 bc'; | 2-17606888-6 |
What is the name of the ruler whose rule began in 1924 BC? | CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
); | SELECT "name" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='1924 bc'; | 2-17606888-6 |
What royal house did Shaokang belong to? | CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
); | SELECT "royal_house" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='shaokang'; | 2-17606888-6 |
What is the highest rank of a building erected in 1976 with fewer than 21 floors? | CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
); | SELECT MAX("rank") FROM "tallest_buildings" WHERE "year"=1976 AND "floors"<21; | 2-17265352-1 |
What team was the opponent when February shows more than 2, with a game number less than 55? | CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "opponent" FROM "schedule_and_results" WHERE "february">2 AND "game"<55; | 2-17562956-6 |
What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17? | CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
); | SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='toronto maple leafs' AND "february"<17; | 2-17562956-6 |
What is the number of the game when the opponent was the New York Islanders, and a February less than 24? | CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
); | SELECT SUM("game") FROM "schedule_and_results" WHERE "opponent"='new york islanders' AND "february"<24; | 2-17562956-6 |
What is the lowest game number when the record was 26-24-9? | CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
); | SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='26-24-9'; | 2-17562956-6 |
What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14? | CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "rank" FROM "medal_table" WHERE "gold"<16 AND "bronze">2 AND "silver">2 AND "total"=14; | 2-16744814-5 |
What's the silver for rank 1 with less than 2 bronze? | CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "medal_table" WHERE "rank"='1' AND "bronze"<2; | 2-16744814-5 |
What's the lowest total when there's less than 16 bronze and more than 6 silver? | CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "bronze"<16 AND "silver">6; | 2-16744814-5 |
What's the lowest gold with a total over 15 and less than 16 silver? | CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_table" WHERE "total">15 AND "silver"<16; | 2-16744814-5 |
Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='7' AND "nation"='italy' AND "silver"<0; | 2-16877259-1 |
Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("gold") FROM "medal_table" WHERE "total">3 AND "rank"='total' AND "silver">8; | 2-16877259-1 |
Which Club team has a Pick larger than 139? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
); | SELECT "club_team" FROM "draft_picks" WHERE "pick">139; | 2-17040191-21 |
Which Nationality has a Pick larger than 109, and a Round smaller than 5? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
); | SELECT "nationality" FROM "draft_picks" WHERE "pick">109 AND "round"<5; | 2-17040191-21 |
Which school was Lawrence Roberts from ? | CREATE TABLE "r" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "school_club_team" FROM "r" WHERE "player"='lawrence roberts'; | 2-16494599-17 |
Which school was Chris Robinson from? | CREATE TABLE "r" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "school_club_team" FROM "r" WHERE "player"='chris robinson'; | 2-16494599-17 |
What was the position that Chris Robinson played? | CREATE TABLE "r" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "position" FROM "r" WHERE "player"='chris robinson'; | 2-16494599-17 |
In which years did Zach Randolph play for the Grizzlies? | CREATE TABLE "r" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "years_for_grizzlies" FROM "r" WHERE "player"='zach randolph'; | 2-16494599-17 |
Which player played for Western Kentucky? | CREATE TABLE "r" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "player" FROM "r" WHERE "school_club_team"='western kentucky'; | 2-16494599-17 |
What was the score on January 14 when the Chicago Black Hawks were home against the New York Rangers? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "home"='chicago black hawks' AND "visitor"='new york rangers' AND "date"='january 14'; | 2-17450539-4 |
Who was the home team on February 18 that had a visitor of the Chicago Black Hawks? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "regular_season" WHERE "visitor"='chicago black hawks' AND "date"='february 18'; | 2-17450539-4 |
What is points diff when points against is 123? | CREATE TABLE "pool_4" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
); | SELECT "points_diff" FROM "pool_4" WHERE "points_against"='123'; | 2-16770037-5 |
Which team has 123 points agaibst the other team? | CREATE TABLE "pool_4" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
); | SELECT "team" FROM "pool_4" WHERE "points_against"='123'; | 2-16770037-5 |
What is the points against when try diff is +23? | CREATE TABLE "pool_4" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
); | SELECT "points_against" FROM "pool_4" WHERE "try_diff"='+23'; | 2-16770037-5 |
What is points when try diff is +23? | CREATE TABLE "pool_4" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
); | SELECT "points_for" FROM "pool_4" WHERE "try_diff"='+23'; | 2-16770037-5 |
What is points sgsinst when points diff is +96? | CREATE TABLE "pool_4" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
"points_against" text,
"points_diff" text
); | SELECT "points_against" FROM "pool_4" WHERE "points_diff"='+96'; | 2-16770037-5 |
How many laps led when the Grid was 15? | 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 "laps_led" FROM "classification" WHERE "grid"='15'; | 2-17258554-1 |
Name the Time/Retired when the points were 32. | 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"='32'; | 2-17258554-1 |
What car number had 24 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 "car_no" FROM "classification" WHERE "points"='24'; | 2-17258554-1 |
What team does Dan Wheldon drive for when he led 0 laps? | 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 "team" FROM "classification" WHERE "laps_led"='0' AND "driver"='dan wheldon'; | 2-17258554-1 |
How many points when the Grid was 1? | 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 "points" FROM "classification" WHERE "grid"='1'; | 2-17258554-1 |
What is the average game number that was on october 19? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT AVG("game") FROM "schedule_and_results" WHERE "october"=19; | 2-17310913-2 |
What is the sum of October, when Opponent is "Pittsburgh Penguins"? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT SUM("october") FROM "schedule_and_results" WHERE "opponent"='pittsburgh penguins'; | 2-17311408-2 |
What is the sum of Game, when Record is "2-1-1", and when October is less than 21? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT SUM("game") FROM "schedule_and_results" WHERE "record"='2-1-1' AND "october"<21; | 2-17311408-2 |
What is Opponent, when October is less than 31, and when Game is greater than 7? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "opponent" FROM "schedule_and_results" WHERE "october"<31 AND "game">7; | 2-17311408-2 |
What is the tie number for the home team Orient? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "tie_no" FROM "third_round_proper" WHERE "home_team"='orient'; | 2-17608125-4 |
What is the score for the away team Chelsea? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "third_round_proper" WHERE "away_team"='chelsea'; | 2-17608125-4 |
What is the away team for the tie no. 29? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "third_round_proper" WHERE "tie_no"='29'; | 2-17608125-4 |
What is the coronie with a 0.7% nickerie? | CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
); | SELECT "coronie" FROM "demography" WHERE "nickerie"='0.7%'; | 2-16886076-1 |
What is the marowijne with an 18.8% saramacca? | CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
); | SELECT "marowijne" FROM "demography" WHERE "saramacca"='18.8%'; | 2-16886076-1 |
What is the para with a 0.1% sipaliwini? | CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
); | SELECT "para" FROM "demography" WHERE "sipaliwini"='0.1%'; | 2-16886076-1 |
What religion has a para of 56.5%? | CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
); | SELECT "religion" FROM "demography" WHERE "para"='56.5%'; | 2-16886076-1 |
What is the suriname with a 16.8% brokopondo? | CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
); | SELECT "suriname" FROM "demography" WHERE "brokopondo"='16.8%'; | 2-16886076-1 |
What's the rank average when the gold medals are less than 0? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("rank") FROM "medal_table" WHERE "gold"<0; | 2-16581439-2 |
What is the total rank of Hungary (HUN) when the bronze medals were less than 0? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("rank") FROM "medal_table" WHERE "nation"='hungary (hun)' AND "bronze"<0; | 2-16581439-2 |
What is the sum of the total number of medals when silver is less than 0? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_table" WHERE "silver"<0; | 2-16581439-2 |
What is Born-Died, when Term Start is 4 December 1941? | CREATE TABLE "1939_1943" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "born_died" FROM "1939_1943" WHERE "term_start"='4 december 1941'; | 2-167235-5 |
What is Term Start, when Name is Prime Ministers 1939 - 1943? | CREATE TABLE "1939_1943" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "term_start" FROM "1939_1943" WHERE "name"='prime ministers 1939 - 1943'; | 2-167235-5 |
What is Born-Died, when Name is Maliq Bushati? | CREATE TABLE "1939_1943" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "born_died" FROM "1939_1943" WHERE "name"='maliq bushati'; | 2-167235-5 |
What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939? | CREATE TABLE "1939_1943" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "term_end" FROM "1939_1943" WHERE "political_party"='albanian fascist party' AND "term_start"='12 april 1939'; | 2-167235-5 |
What is Term Start, when Born-Died is Prime Ministers 1939 - 1943? | CREATE TABLE "1939_1943" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "term_start" FROM "1939_1943" WHERE "born_died"='prime ministers 1939 - 1943'; | 2-167235-5 |
What is Born-Died, when Term End is 19 January 1943? | CREATE TABLE "1939_1943" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "born_died" FROM "1939_1943" WHERE "term_end"='19 january 1943'; | 2-167235-5 |
What is the Score of the game with a Record of 5–4–3? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "record"='5–4–3'; | 2-17308750-2 |
What is the Score on January 23? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "date"='january 23'; | 2-17308750-2 |
What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "regular_season" WHERE "home"='montreal canadiens' AND "record"='6–4–4'; | 2-17308750-2 |
What is the Date of the game with a Record of 12–7–6? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "date" FROM "regular_season" WHERE "record"='12–7–6'; | 2-17308750-2 |
What is the Record of the Montreal Canadiens Home game on March 23? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "regular_season" WHERE "home"='montreal canadiens' AND "date"='march 23'; | 2-17308750-2 |
What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)? | CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" text,
"winner_s_share" text
); | SELECT "tournament_location" FROM "winners" WHERE "margin_of_victory"='1 stroke' AND "purse"='1,200,000'; | 2-17424546-2 |
What tournament location has south korea as the country? | CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" text,
"winner_s_share" text
); | SELECT "tournament_location" FROM "winners" WHERE "country"='south korea'; | 2-17424546-2 |
What is the total population of American Samoa (US) that has less than 16,280 km² arable land, less than 240 km² land area, and has a population density of more than 291? | CREATE TABLE "ranking" (
"country" text,
"population_july_2005_est" real,
"land_area_km" real,
"pct_of_arable_land_2005_est" text,
"arable_land_km" real,
"population_density_pop_per_km" real
); | SELECT COUNT("population_july_2005_est") FROM "ranking" WHERE "arable_land_km"<'16,280' AND "land_area_km"<240 AND "country"='american samoa (us)' AND "population_density_pop_per_km">291; | 2-17503825-1 |
What's the arable land for the population of 20,090,437? | CREATE TABLE "ranking" (
"country" text,
"population_july_2005_est" real,
"land_area_km" real,
"pct_of_arable_land_2005_est" text,
"arable_land_km" real,
"population_density_pop_per_km" real
); | SELECT MAX("arable_land_km") FROM "ranking" WHERE "population_july_2005_est"='20,090,437'; | 2-17503825-1 |
What is the land area of Switzerland with a population density fewer than 188 km²? | CREATE TABLE "ranking" (
"country" text,
"population_july_2005_est" real,
"land_area_km" real,
"pct_of_arable_land_2005_est" text,
"arable_land_km" real,
"population_density_pop_per_km" real
); | SELECT AVG("land_area_km") FROM "ranking" WHERE "country"='switzerland' AND "population_density_pop_per_km"<188; | 2-17503825-1 |
What's the population density of the Democratic Republic of the Congo when the population is greater than 37,762,842, and the arable land is more than 200 km²? | CREATE TABLE "ranking" (
"country" text,
"population_july_2005_est" real,
"land_area_km" real,
"pct_of_arable_land_2005_est" text,
"arable_land_km" real,
"population_density_pop_per_km" real
); | SELECT "population_density_pop_per_km" FROM "ranking" WHERE "population_july_2005_est">'37,762,842' AND "arable_land_km">200 AND "country"='democratic republic of the congo'; | 2-17503825-1 |
What lost has 86 points? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "lost" FROM "league_table" WHERE "points"='86'; | 2-17625749-2 |
With 37 tries against, what is the try bonus? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "try_bonus" FROM "league_table" WHERE "tries_against"='37'; | 2-17625749-2 |
How many points against when 41 is the tries for? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points_against" FROM "league_table" WHERE "tries_for"='41'; | 2-17625749-2 |
With a lost of lost what was the losing bonus? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "losing_bonus" FROM "league_table" WHERE "lost"='lost'; | 2-17625749-2 |
What points has points for as points for? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points" FROM "league_table" WHERE "points_for"='points for'; | 2-17625749-2 |
What is the points when the club is Barry RFC with a 5 as the try bonus? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points" FROM "league_table" WHERE "try_bonus"='5' AND "club"='barry rfc'; | 2-17625749-2 |
What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61? | CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_table" WHERE "silver">6 AND "rank"='1' AND "bronze"<61; | 2-16777236-1 |
What is the lowest Silver, when Bronze is 1, and when Total is less than 3? | CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=1 AND "total"<3; | 2-16777236-1 |
What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3? | CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("gold") FROM "medal_table" WHERE "silver"<107 AND "bronze">42 AND "rank"='3'; | 2-16777236-1 |
Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams? | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"<28 AND "grid"<9 AND "rider"='jeremy mcwilliams'; | 2-17040374-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.