question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which HAAT has 65944? | CREATE TABLE "stations" (
"station" text,
"city_of_license" text,
"channels_tv_rf" text,
"first_air_date" text,
"haat" text,
"facility_id" real,
"public_license_information" text
); | SELECT "haat" FROM "stations" WHERE "facility_id"=65944; | 2-1381064-1 |
Which City of license has a Channels TV / RF of 36 (psip) 36 (uhf)? Question 5 | CREATE TABLE "stations" (
"station" text,
"city_of_license" text,
"channels_tv_rf" text,
"first_air_date" text,
"haat" text,
"facility_id" real,
"public_license_information" text
); | SELECT "city_of_license" FROM "stations" WHERE "channels_tv_rf"='36 (psip) 36 (uhf)'; | 2-1381064-1 |
What format is dated October 29, 2004? | CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
); | SELECT "format" FROM "release_history" WHERE "date"='october 29, 2004'; | 2-1523673-2 |
What is the date with the catalogue number ptcd-1015-6? | CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
); | SELECT "date" FROM "release_history" WHERE "catalogue_num"='ptcd-1015-6'; | 2-1523673-2 |
What is the label for December 2004? | CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
); | SELECT "label" FROM "release_history" WHERE "date"='december 2004'; | 2-1523673-2 |
What is the date for Hydra Head Records with a CD format? | CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
); | SELECT "date" FROM "release_history" WHERE "label"='hydra head records' AND "format"='cd'; | 2-1523673-2 |
Which country has Hydra Head Records on February 2005? | CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
); | SELECT "country" FROM "release_history" WHERE "label"='hydra head records' AND "date"='february 2005'; | 2-1523673-2 |
Which country has Hydra Head Records with a 2lp format? | CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
); | SELECT "country" FROM "release_history" WHERE "format"='2lp' AND "label"='hydra head records'; | 2-1523673-2 |
Who rode mad rush? | CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" real,
"barrier_b" text,
"placing" text
); | SELECT "jockey" FROM "race_starters" WHERE "horse"='mad rush'; | 2-14240165-1 |
What place was the horse with a barrier of 20 and weighing less than 54 kg | CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" real,
"barrier_b" text,
"placing" text
); | SELECT "placing" FROM "race_starters" WHERE "weight_kg"<54 AND "barrier_b"='20'; | 2-14240165-1 |
What place was the viewed horse? | CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" real,
"barrier_b" text,
"placing" text
); | SELECT "placing" FROM "race_starters" WHERE "horse"='viewed'; | 2-14240165-1 |
What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts? | CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
); | SELECT AVG("wins") FROM "nascar_nationwide_series" WHERE "top_10"<5 AND "winnings"='$39,190' AND "starts"<2; | 2-1458412-2 |
What is the highest number of poles of the year before 1992 with more than 18 starts and winnings of $125,102? | CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
); | SELECT MAX("poles") FROM "nascar_nationwide_series" WHERE "starts">18 AND "winnings"='$125,102' AND "year"<1992; | 2-1458412-2 |
Author of stanisław wyspiański, and a Year of 1969 happened in what theatre? | CREATE TABLE "notable_works" (
"year" real,
"play" text,
"author" text,
"theatre" text,
"type" text,
"role" text
); | SELECT "theatre" FROM "notable_works" WHERE "author"='stanisław wyspiański' AND "year"=1969; | 2-13877182-1 |
Which game did New Jersey Devils played in? | CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "game" FROM "schedule_and_results" WHERE "opponent"='new jersey devils'; | 2-14532362-7 |
What score has a record of 21-25-7-4? | CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "score" FROM "schedule_and_results" WHERE "record"='21-25-7-4'; | 2-14532362-7 |
What score has a record of 22-28-7-4? | CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "score" FROM "schedule_and_results" WHERE "record"='22-28-7-4'; | 2-14532362-7 |
What group has 1200 m as the distance? | CREATE TABLE "2000_01_season_as_a_two_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" text
); | SELECT "group" FROM "2000_01_season_as_a_two_year_old" WHERE "distance"='1200 m'; | 2-1360997-1 |
What venue has g1 as the group? | CREATE TABLE "2000_01_season_as_a_two_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" text
); | SELECT "venue" FROM "2000_01_season_as_a_two_year_old" WHERE "group"='g1'; | 2-1360997-1 |
What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MAX("points") FROM "torneo_apertura" WHERE "team"='tacuary' AND "losses"<4; | 2-14911550-1 |
What's the sum of Losses that Scored larger than 15, has Points that's larger than 16, and Played that's larger than 9? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT SUM("losses") FROM "torneo_apertura" WHERE "scored">15 AND "points">16 AND "played">9; | 2-14911550-1 |
What's the highest Played with a Scored of 15, and Draws that's less than 1? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MAX("played") FROM "torneo_apertura" WHERE "scored"=15 AND "draws"<1; | 2-14911550-1 |
What's the sum of WIns with Draws that's larger than 1, Losses that's smaller than 4, and Conceded of 20? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT SUM("wins") FROM "torneo_apertura" WHERE "draws">1 AND "losses"<4 AND "conceded"=20; | 2-14911550-1 |
What's the lowest Position with a Conceded that's larger than 16, Draws of 3, and Losses that's larger than 3? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MIN("position") FROM "torneo_apertura" WHERE "conceded">16 AND "draws"=3 AND "losses">3; | 2-14911550-1 |
Which processors are supported with a PCI-express of x16: 1 slot x1: 4 slots and the nforce 550 model? | CREATE TABLE "series" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" text,
"pata" text,
"sound" text
); | SELECT "processors_supported" FROM "series" WHERE "pci_express"='x16: 1 slot x1: 4 slots' AND "model"='nforce 550'; | 2-14306107-6 |
What are the processors supported by a ddr2 memory and the nforce 550 model? | CREATE TABLE "series" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" text,
"pata" text,
"sound" text
); | SELECT "processors_supported" FROM "series" WHERE "memory"='ddr2' AND "model"='nforce 550'; | 2-14306107-6 |
What is the PCI-express with a ddr2 memory and a nforce 520 model? | CREATE TABLE "series" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" text,
"pata" text,
"sound" text
); | SELECT "pci_express" FROM "series" WHERE "memory"='ddr2' AND "model"='nforce 520'; | 2-14306107-6 |
What is the Russian word for wine glass that contains 4.16 fl. oz.? | CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
); | SELECT "russian" FROM "liquid_measures" WHERE "us_customary"='4.16 fl. oz.'; | 2-1375378-3 |
What are the imperial size for the unit that has a ratio of 1/20? | CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
); | SELECT "imperial" FROM "liquid_measures" WHERE "ratio"='1/20'; | 2-1375378-3 |
How big in metric terms is the unit that has a ratio of 1/20? | CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
); | SELECT "metric_value" FROM "liquid_measures" WHERE "ratio"='1/20'; | 2-1375378-3 |
How large in US customary terms is the unit called butylka (vodochnaya)? | CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
); | SELECT "us_customary" FROM "liquid_measures" WHERE "unit"='butylka (vodochnaya)'; | 2-1375378-3 |
What is the translation of chetvert? | CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
); | SELECT "translation" FROM "liquid_measures" WHERE "unit"='chetvert'; | 2-1375378-3 |
What Russian word translates to bucket? | CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
); | SELECT "russian" FROM "liquid_measures" WHERE "translation"='bucket'; | 2-1375378-3 |
Points larger than 6, and a Results of 522:443 had what lowest matches? | CREATE TABLE "results" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
); | SELECT MIN("matches") FROM "results" WHERE "points">6 AND "results"='522:443'; | 2-13841481-3 |
Loses of 2, and a Pos. smaller than 2 had how many highest matches? | CREATE TABLE "results" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
); | SELECT MAX("matches") FROM "results" WHERE "loses"=2 AND "pos"<2; | 2-13841481-3 |
What was the outcome when the game was played on clay and on 2 May 2009? | CREATE TABLE "doubles_6_5_titles_1_runner_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
); | SELECT "outcome" FROM "doubles_6_5_titles_1_runner_up" WHERE "surface"='clay' AND "date"='2 may 2009'; | 2-15088158-8 |
What person was played against when the playing surface was hard? | CREATE TABLE "doubles_6_5_titles_1_runner_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "doubles_6_5_titles_1_runner_up" WHERE "surface"='hard'; | 2-15088158-8 |
With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent? | CREATE TABLE "doubles_6_5_titles_1_runner_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "doubles_6_5_titles_1_runner_up" WHERE "surface"='clay' AND "score"='6–3, 2–6, [10–8]'; | 2-15088158-8 |
What is the lowest number of live births of Syria when the natural change was 9.4 and the crude death rate was greater than 29.3? | CREATE TABLE "1900_1912" (
"average_population_x_1_000" real,
"live_births" real,
"deaths" real,
"natural_change" real,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_change_per_1_000" real
); | SELECT MIN("live_births") FROM "1900_1912" WHERE "natural_change_per_1_000"=9.4 AND "crude_death_rate_per_1_000">29.3; | 2-1508951-1 |
What is the natural change number of Syria when there were 67,000 deaths and an average population greater than 2,820? | CREATE TABLE "1900_1912" (
"average_population_x_1_000" real,
"live_births" real,
"deaths" real,
"natural_change" real,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_change_per_1_000" real
); | SELECT SUM("natural_change") FROM "1900_1912" WHERE "deaths"='67,000' AND "average_population_x_1_000">'2,820'; | 2-1508951-1 |
What is the rank of the park in pigeon forge, tennessee in the best food category? | CREATE TABLE "2013_winners" (
"category" text,
"rank" real,
"2013_recipient" text,
"location" text,
"vote" text
); | SELECT COUNT("rank") FROM "2013_winners" WHERE "location"='pigeon forge, tennessee' AND "category"='best food'; | 2-14938664-1 |
What building is in Shenzhen, have less than 115 floors, and was completed before 2017? | CREATE TABLE "under_construction" (
"name" text,
"pinnacle_height" text,
"floors" real,
"completion" real,
"city" text
); | SELECT "name" FROM "under_construction" WHERE "city"='shenzhen' AND "completion"<2017 AND "floors"<115; | 2-15023357-2 |
What is the earliest year having a length of 11:25? | CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
); | SELECT MIN("year") FROM "official_versions" WHERE "length"='11:25'; | 2-15154382-2 |
What year had a version called Wolf Mix? | CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
); | SELECT AVG("year") FROM "official_versions" WHERE "version"='wolf mix'; | 2-15154382-2 |
In 1978 what is the NFL team? | CREATE TABLE "cowboys_drafted_into_the_nfl" (
"draft_year" real,
"player" text,
"position" text,
"round" real,
"overall" real,
"nfl_team" text
); | SELECT "nfl_team" FROM "cowboys_drafted_into_the_nfl" WHERE "draft_year"=1978; | 2-13758243-1 |
Who was the opponent with attendance at 64,002? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "attendance"='64,002'; | 2-14604250-1 |
What was the highest week with 84,856 in attendance? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT MAX("week") FROM "schedule" WHERE "attendance"='84,856'; | 2-14604250-1 |
What was the record in a week less than 13 on November 9, 2003? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT "record" FROM "schedule" WHERE "week"<13 AND "date"='november 9, 2003'; | 2-14604250-1 |
On what date was the result w 20-17? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "result"='w 20-17'; | 2-14604250-1 |
What was the attendance for record 2-0? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "record"='2-0'; | 2-14604250-1 |
On what date was the game at Lincoln Financial Field? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "game_site"='lincoln financial field'; | 2-14604250-1 |
Which player has a pick of 175? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT "player" FROM "nfl_draft" WHERE "pick"=175; | 2-14656212-1 |
Zack Jordan has the lowest pick and a round of less than 28? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT MIN("pick") FROM "nfl_draft" WHERE "player"='zack jordan' AND "round"<28; | 2-14656212-1 |
What is the sum of the pick for player roger zatkoff? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT SUM("pick") FROM "nfl_draft" WHERE "player"='roger zatkoff'; | 2-14656212-1 |
Which metal has a size that is 26mm (across scallops)? | CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
); | SELECT "metal" FROM "aluminium_series" WHERE "size"='26mm (across scallops)'; | 2-1467510-5 |
What is the weight with the shape of scalloped, and that is a size of 20mm (across scallops)? | CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
); | SELECT "weight" FROM "aluminium_series" WHERE "shape"='scalloped' AND "size"='20mm (across scallops)'; | 2-1467510-5 |
What is the weight with a denomination that is three paise? | CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
); | SELECT "weight" FROM "aluminium_series" WHERE "denomination"='three paise'; | 2-1467510-5 |
What is the weight with a denomination that is ten paise? | CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
); | SELECT "weight" FROM "aluminium_series" WHERE "denomination"='ten paise'; | 2-1467510-5 |
What is the highest number of games drawn, where the games played was less than 7? | CREATE TABLE "world_championship_group_c_hungary" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT MAX("drawn") FROM "world_championship_group_c_hungary" WHERE "games"<7; | 2-14148130-5 |
Which October is the lowest one that has an Opponent of washington capitals? | CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT MIN("october") FROM "game_log" WHERE "opponent"='washington capitals'; | 2-14347546-3 |
Which Score has a Game larger than 7, and Points smaller than 14? | CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "score" FROM "game_log" WHERE "game">7 AND "points"<14; | 2-14347546-3 |
How many Points have an Opponent of @ calgary flames? | CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT SUM("points") FROM "game_log" WHERE "opponent"='@ calgary flames'; | 2-14347546-3 |
What is the mean number of events where the rank is 1 and there are more than 3 wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT AVG("events") FROM "leaders" WHERE "rank"=1 AND "wins">3; | 2-14640450-3 |
Which Supercopa 1994 has a Team of estudiantes? | CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
); | SELECT "supercopa_1994" FROM "argentine_clubs_in_international_competi" WHERE "team"='estudiantes'; | 2-14323347-2 |
Which CONMEBOL 1994 has a Supercopa 1994 of n/a, and a Recopa 1994 of n/a, and a Team of san lorenzo? | CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
); | SELECT "conmebol_1994" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1994"='n/a' AND "recopa_1994"='n/a' AND "team"='san lorenzo'; | 2-14323347-2 |
Which Recopa 1994 has a Supercopa 1994 of 1st round, and a Team of argentinos juniors? | CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
); | SELECT "recopa_1994" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1994"='1st round' AND "team"='argentinos juniors'; | 2-14323347-2 |
Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round? | CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
); | SELECT "team" FROM "argentine_clubs_in_international_competi" WHERE "recopa_1994"='n/a' AND "conmebol_1994"='1st round'; | 2-14323347-2 |
Which Social and Liberal Democrats/ Liberal Democrats has a Control of labour hold, and a Liberal larger than 0? | CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" real,
"independent" real,
"green" real,
"other" text,
"control" text
); | SELECT SUM("social_and_liberal_democrats_liberal_democrats") FROM "summary_of_election_results_1973_2003" WHERE "control"='labour hold' AND "liberal">0; | 2-152358-3 |
Which Social and Liberal Democrats/ Liberal Democrats has an Independent of 1, and an Election larger than 1988, and a Green smaller than 1? | CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" real,
"independent" real,
"green" real,
"other" text,
"control" text
); | SELECT "social_and_liberal_democrats_liberal_democrats" FROM "summary_of_election_results_1973_2003" WHERE "independent"=1 AND "election">1988 AND "green"<1; | 2-152358-3 |
Which Other has a Green of 0, and an Independent of 1, and a Labour smaller than 45, and a Control of labour lose to no overall control? | CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" real,
"independent" real,
"green" real,
"other" text,
"control" text
); | SELECT "other" FROM "summary_of_election_results_1973_2003" WHERE "green"=0 AND "independent"=1 AND "labour"<45 AND "control"='labour lose to no overall control'; | 2-152358-3 |
Which Social Democratic Party has a Green smaller than 0? | CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" real,
"independent" real,
"green" real,
"other" text,
"control" text
); | SELECT AVG("social_democratic_party") FROM "summary_of_election_results_1973_2003" WHERE "green"<0; | 2-152358-3 |
When the try bonus was 10 what was the losing bonus? | CREATE TABLE "2009_2010_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 "2009_2010_table" WHERE "try_bonus"='10'; | 2-14070062-3 |
When the losing bonus was 2 what was drawn score? | CREATE TABLE "2009_2010_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 "drawn" FROM "2009_2010_table" WHERE "losing_bonus"='2'; | 2-14070062-3 |
If the try bonus was 5 what was the try against score? | CREATE TABLE "2009_2010_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 "tries_against" FROM "2009_2010_table" WHERE "try_bonus"='5'; | 2-14070062-3 |
When the tries against is 90 how many points are there? | CREATE TABLE "2009_2010_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 "2009_2010_table" WHERE "tries_against"='90'; | 2-14070062-3 |
What club has tries against of 75? | CREATE TABLE "2009_2010_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 "club" FROM "2009_2010_table" WHERE "tries_against"='75'; | 2-14070062-3 |
What is the total number of overall figures when duke was the college and the round was higher than 7? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='duke' AND "round">7; | 2-15198842-48 |
Which of the highest pick numbers had a round of less than 2? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MAX("pick_num") FROM "atlanta_falcons_draft_history" WHERE "round"<2; | 2-15198842-48 |
Which pick number had a round of less than 7, an overall of less than 127, and where the name was Robert Alford? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "pick_num" FROM "atlanta_falcons_draft_history" WHERE "round"<7 AND "overall"<127 AND "name"='robert alford'; | 2-15198842-48 |
Which highest overall figure had Robert Alford as a name and a round of more than 2? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "name"='robert alford' AND "round">2; | 2-15198842-48 |
What Game site has an Opponent of Miami Dolphins? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT "game_site" FROM "schedule" WHERE "opponent"='miami dolphins'; | 2-13962594-1 |
What's the Lowest Attendance with a Game site of Riverfront Stadium? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT MIN("attendance") FROM "schedule" WHERE "game_site"='riverfront stadium'; | 2-13962594-1 |
What's the lowest Attendance for a Week of 2? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT MIN("attendance") FROM "schedule" WHERE "week"=2; | 2-13962594-1 |
How many bronze medals does South Korea have? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "bronze" FROM "medal_table" WHERE "nation"='south korea'; | 2-15276042-1 |
What is the smallest number of total medals for Georgia with 0 silver and 1 bronze? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "silver">0 AND "nation"='georgia' AND "bronze"<1; | 2-15276042-1 |
What is the lowest year that had foil team as the event at Melbourne? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT MIN("year") FROM "achievements" WHERE "event"='foil team' AND "venue"='melbourne'; | 2-14971607-1 |
What is the number of years that the event was foil team and took place in Los Angeles? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT COUNT("year") FROM "achievements" WHERE "venue"='los angeles' AND "event"='foil team'; | 2-14971607-1 |
What was the position at the venue of lyon? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "position" FROM "achievements" WHERE "venue"='lyon'; | 2-14971607-1 |
What was the position for mauro at the world championships in 1985 during the foil individual event? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "position" FROM "achievements" WHERE "event"='foil individual' AND "competition"='world championships' AND "year"=1985; | 2-14971607-1 |
What was the playoff status when the head coach was Brent Sutter, the finish was 4th central, and the points were 82? | CREATE TABLE "season_by_season_record" (
"season" text,
"points" text,
"finish" text,
"playoffs" text,
"head_coach" text
); | SELECT "playoffs" FROM "season_by_season_record" WHERE "head_coach"='brent sutter' AND "finish"='4th central' AND "points"='82'; | 2-1431742-1 |
2001 of 2–4 was in which tournament? | CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "tournament" FROM "grand_slam_tournaments" WHERE "2001"='2–4'; | 2-1417888-1 |
2013 of 4–4 is involved in what 2006? | CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2006" FROM "grand_slam_tournaments" WHERE "2013"='4–4'; | 2-1417888-1 |
2007 of 1r is involved in what 2001? | CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2001" FROM "grand_slam_tournaments" WHERE "2007"='1r'; | 2-1417888-1 |
2007 of 8–4 is involved in what 2002? | CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2002" FROM "grand_slam_tournaments" WHERE "2007"='8–4'; | 2-1417888-1 |
2005 of 3r, and a 2000 of lq, and a 2002 of 3r is in what 2004? | CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2004" FROM "grand_slam_tournaments" WHERE "2005"='3r' AND "2000"='lq' AND "2002"='3r'; | 2-1417888-1 |
2006 of 10–4 is in which 2000? | CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2000" FROM "grand_slam_tournaments" WHERE "2006"='10–4'; | 2-1417888-1 |
What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games? | CREATE TABLE "world_championship_group_c_poland" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT MIN("drawn") FROM "world_championship_group_c_poland" WHERE "points"<4 AND "lost">4; | 2-14246778-5 |
What is the sum of the points when there are fewer than 4 games? | CREATE TABLE "world_championship_group_c_poland" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT SUM("points") FROM "world_championship_group_c_poland" WHERE "games"<4; | 2-14246778-5 |
Who holds the lead role when Aanders Brorson is third? | CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
); | SELECT "lead" FROM "teams" WHERE "third"='aanders brorson'; | 2-15075508-1 |
Who has the role of skip when the lead is Dominik Greindl? | CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
); | SELECT "skip" FROM "teams" WHERE "lead"='dominik greindl'; | 2-15075508-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.