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 fewest number of wins when he has 3 poles in 2010? | CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"points" text,
"position" text
); | SELECT MIN("wins") FROM "career_summary" WHERE "poles"=3 AND "season"='2010'; | 2-13808686-1 |
What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%? | CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
); | SELECT "2012" FROM "professional_organizations" WHERE "2011"='7.7%' AND "2008"='7.9%'; | 2-147777-1 |
What is listed for the 2011 that has a 2005 of 4.2%? | CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
); | SELECT "2011" FROM "professional_organizations" WHERE "2005"='4.2%'; | 2-147777-1 |
What is listed for the 2012 that has a 2011 of 28.9%? | CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
); | SELECT "2012" FROM "professional_organizations" WHERE "2011"='28.9%'; | 2-147777-1 |
What is listed for the 2005 that has a 2012 of 4.2%? | CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
); | SELECT "2005" FROM "professional_organizations" WHERE "2012"='4.2%'; | 2-147777-1 |
What is listed the Favorite Professional Sport that's got a 2005 of 17.1%? | CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
); | SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2005"='17.1%'; | 2-147777-1 |
What is listed as the Favorite Professional Sport that has a 2008 of 8.9%? | CREATE TABLE "professional_organizations" (
"favorite_professional_sport" text,
"2005" text,
"2008" text,
"2011" text,
"2012" text
); | SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2008"='8.9%'; | 2-147777-1 |
What was the score of the game that led to a 79-77 record? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "game_log" WHERE "record"='79-77'; | 2-14255774-8 |
What was the record after the game in which Rosales (1-1) took the loss? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "loss"='rosales (1-1)'; | 2-14255774-8 |
Which supercentenarians were born in Manitoba? | CREATE TABLE "living_canadian_supercentenarians" (
"name" text,
"birth_date" text,
"age_as_of_1_february_2014" text,
"province_or_country_of_birth" text,
"province_of_residence" text
); | SELECT "name" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='manitoba'; | 2-14715875-1 |
What is the average age as of February 1, 2014 for the supercentenarians born in the United States? | CREATE TABLE "living_canadian_supercentenarians" (
"name" text,
"birth_date" text,
"age_as_of_1_february_2014" text,
"province_or_country_of_birth" text,
"province_of_residence" text
); | SELECT "age_as_of_1_february_2014" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='united states'; | 2-14715875-1 |
Which 2010 Tournament has a 2001 of grand slam tournaments? | CREATE TABLE "singles" (
"tournament" text,
"1999" 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
); | SELECT "2010" FROM "singles" WHERE "2001"='grand slam tournaments'; | 2-1498593-4 |
Which 2006 Tournament has a 2004, and a 2002 of not tier i? | CREATE TABLE "singles" (
"tournament" text,
"1999" 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
); | SELECT "2006" FROM "singles" WHERE "2004"='a' AND "2002"='not tier i'; | 2-1498593-4 |
Which 2008 Tournament has a 2007 of a and a 2010 of qf? | CREATE TABLE "singles" (
"tournament" text,
"1999" 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
); | SELECT "2008" FROM "singles" WHERE "2007"='a' AND "2010"='qf'; | 2-1498593-4 |
Which Tournament has a 2002 of grand slam tournaments? | CREATE TABLE "singles" (
"tournament" text,
"1999" 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
); | SELECT "tournament" FROM "singles" WHERE "2002"='grand slam tournaments'; | 2-1498593-4 |
Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r? | CREATE TABLE "singles" (
"tournament" text,
"1999" 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
); | SELECT "2000" FROM "singles" WHERE "2002"='not tier i' AND "2006"='2r'; | 2-1498593-4 |
Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道? | CREATE TABLE "non_mandarin_satellite_television" (
"name" text,
"hanzi" text,
"language" text,
"launch" real,
"owner" text
); | SELECT "language" FROM "non_mandarin_satellite_television" WHERE "launch"=2006 AND "hanzi"='青海电视台藏语综合频道'; | 2-15147453-3 |
Which hanzi's name is nmtv mongolian satellite television? | CREATE TABLE "non_mandarin_satellite_television" (
"name" text,
"hanzi" text,
"language" text,
"launch" real,
"owner" text
); | SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "name"='nmtv mongolian satellite television'; | 2-15147453-3 |
Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel? | CREATE TABLE "non_mandarin_satellite_television" (
"name" text,
"hanzi" text,
"language" text,
"launch" real,
"owner" text
); | SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "launch"<2009 AND "language"='tibetan' AND "name"='qinghai tibetian general channel'; | 2-15147453-3 |
What Team had a 1:24.365 Qual 2? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:24.365'; | 2-14171191-1 |
What Team had a 1:24.152 Best? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "team" FROM "qualifying_results" WHERE "best"='1:24.152'; | 2-14171191-1 |
What was Robert Doornbos' Best? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "best" FROM "qualifying_results" WHERE "name"='robert doornbos'; | 2-14171191-1 |
What was Alex Figge's Best? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "best" FROM "qualifying_results" WHERE "name"='alex figge'; | 2-14171191-1 |
What Team had a 1:25.602 Best? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "team" FROM "qualifying_results" WHERE "best"='1:25.602'; | 2-14171191-1 |
What was the Name of the person with a Qual 1 of 1:26.056? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "name" FROM "qualifying_results" WHERE "qual_1"='1:26.056'; | 2-14171191-1 |
How many picks were there for the Bentley team? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT COUNT("pick") FROM "nfl_draft" WHERE "school_club_team"='bentley'; | 2-15201858-1 |
What is the largest round number for Dan Connor, the player? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT MAX("round") FROM "nfl_draft" WHERE "player"='dan connor'; | 2-15201858-1 |
What is the largest round number for the dt position when the pick number is bigger than 181? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT MAX("round") FROM "nfl_draft" WHERE "position"='dt' AND "pick">181; | 2-15201858-1 |
what circuit is in italy | CREATE TABLE "season_calendar" (
"date" text,
"round" text,
"circuit" text,
"race_1_winner" text,
"race_2_winner" text,
"report" text
); | SELECT "circuit" FROM "season_calendar" WHERE "round"='italy'; | 2-14800042-1 |
What is the average pick for clarence mason? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
); | SELECT AVG("pick") FROM "nfl_draft" WHERE "player"='clarence mason'; | 2-14887221-1 |
What is the frequency for the city of Lamar, Colorado? | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT AVG("frequency_m_hz") FROM "translators" WHERE "city_of_license"='lamar, colorado'; | 2-13831309-2 |
What is the average ERP W for callsign K207BK? | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k207bk'; | 2-13831309-2 |
Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz? | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz">88.7 AND "erp_w"=99; | 2-13831309-2 |
Which city has ERP W under 14 and a frequency over 93.7MHz? | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "city_of_license" FROM "translators" WHERE "erp_w"<14 AND "frequency_m_hz">93.7; | 2-13831309-2 |
What were the total number of field goals when there were 0 touchdowns and 2 extra points? | CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT COUNT("field_goals") FROM "michigan_28_wisconsin_0" WHERE "touchdowns"=0 AND "extra_points"=2; | 2-14342592-9 |
How many field goals did Carter get when he had 0 extra points? | CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT SUM("field_goals") FROM "michigan_28_wisconsin_0" WHERE "player"='carter' AND "extra_points"<0; | 2-14342592-9 |
What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals? | CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT MAX("extra_points") FROM "michigan_28_wisconsin_0" WHERE "points"=28 AND "field_goals"<0; | 2-14342592-9 |
What is the average field goal someone has when they have 0 extra points but more than 5 touch downs? | CREATE TABLE "michigan_28_wisconsin_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT AVG("field_goals") FROM "michigan_28_wisconsin_0" WHERE "extra_points">0 AND "touchdowns">5; | 2-14342592-9 |
What is the lowest number of wins with more than 113 points in 4th rank? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
); | SELECT MIN("wins") FROM "grand_prix_career_statistics" WHERE "points">113 AND "rank"='4th'; | 2-13815322-3 |
How many wins had less than 91 points in 25th rank? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
); | SELECT "wins" FROM "grand_prix_career_statistics" WHERE "points"<91 AND "rank"='25th'; | 2-13815322-3 |
How many wins in 1992? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
); | SELECT "wins" FROM "grand_prix_career_statistics" WHERE "year"=1992; | 2-13815322-3 |
How many wins occurred for 6th rank? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
); | SELECT COUNT("wins") FROM "grand_prix_career_statistics" WHERE "rank"='6th'; | 2-13815322-3 |
Who was the constructor of the car driven by Heikki Kovalainen? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
); | SELECT "constructor" FROM "race" WHERE "driver"='heikki kovalainen'; | 2-13612148-2 |
Which Reg Season has a Division of 2? | CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
); | SELECT "reg_season" FROM "year_by_year" WHERE "division"=2; | 2-15291356-1 |
Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2? | CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
); | SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='3rd, western' AND "division">2; | 2-15291356-1 |
Which year is the lowest one when the playoffs did not qualify? | CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
); | SELECT MIN("year") FROM "year_by_year" WHERE "playoffs"='did not qualify'; | 2-15291356-1 |
Which Year has a Reg Season of 3rd, western? | CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
); | SELECT AVG("year") FROM "year_by_year" WHERE "reg_season"='3rd, western'; | 2-15291356-1 |
Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013? | CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text
); | SELECT AVG("division") FROM "year_by_year" WHERE "reg_season"='1st, western' AND "playoffs"='champions' AND "year"<2013; | 2-15291356-1 |
Who was the opponent during the game that had more than 31,891 people in attendance? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "opponent" FROM "schedule" WHERE "attendance">'31,891'; | 2-15123196-1 |
What is the average attendance for the game before week 4 that was on october 16, 1955? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 16, 1955' AND "week"<4; | 2-15123196-1 |
What is the total number of weeks that were on September 25, 1955 with more than 16,901 people in attendance? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT COUNT("week") FROM "schedule" WHERE "attendance">'16,901' AND "date"='september 25, 1955'; | 2-15123196-1 |
Who was the opponent for the game on November 20, 1955? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1955'; | 2-15123196-1 |
What is the highest number of successful defenses in brandon, florida and a reign less than 1? | CREATE TABLE "title_history" (
"reign" real,
"days_held" text,
"location" text,
"successful_defenses" real,
"event" text
); | SELECT MAX("successful_defenses") FROM "title_history" WHERE "location"='brandon, florida' AND "reign"<1; | 2-14134152-2 |
What was the date of the game against Norway with a 1:1 result? | CREATE TABLE "1965" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
); | SELECT "date" FROM "1965" WHERE "opponent"='norway' AND "results"='1:1'; | 2-14305653-43 |
What type of game had a 0:0 result? | CREATE TABLE "1965" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
); | SELECT "type_of_game" FROM "1965" WHERE "results"='0:0'; | 2-14305653-43 |
What city held that game with a 5:2 result? | CREATE TABLE "1965" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
); | SELECT "city" FROM "1965" WHERE "results"='5:2'; | 2-14305653-43 |
What is the score of the game that has a record of 1-2-1? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "score" FROM "schedule_and_results" WHERE "record"='1-2-1'; | 2-13912739-2 |
What is the team's record in games against the Hartford Whalers? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "record" FROM "schedule_and_results" WHERE "opponent"='hartford whalers'; | 2-13912739-2 |
What was the Record on Week 13 at the Hoosier Dome? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
); | SELECT "record" FROM "schedule" WHERE "game_site"='hoosier dome' AND "week"=13; | 2-14876891-2 |
What was the Week on October 18, 1992? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
); | SELECT SUM("week") FROM "schedule" WHERE "date"='october 18, 1992'; | 2-14876891-2 |
What loss has 16-6 as the record? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='16-6'; | 2-14255774-3 |
What loss has 4-2 as the record? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='4-2'; | 2-14255774-3 |
What attendance has astros as the opponent, and april 29 as the date? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='astros' AND "date"='april 29'; | 2-14255774-3 |
Which Operator has a Width of 2.65 m, and a Type designation of m5000? | CREATE TABLE "high_floor_versions" (
"city" text,
"operator" text,
"type_designation" text,
"number_of_vehicles" real,
"width" text
); | SELECT "operator" FROM "high_floor_versions" WHERE "width"='2.65 m' AND "type_designation"='m5000'; | 2-1437522-2 |
Which Width has a Number of vehicles larger than 15, and a Type designation of k5000? | CREATE TABLE "high_floor_versions" (
"city" text,
"operator" text,
"type_designation" text,
"number_of_vehicles" real,
"width" text
); | SELECT "width" FROM "high_floor_versions" WHERE "number_of_vehicles">15 AND "type_designation"='k5000'; | 2-1437522-2 |
Which Number of vehicles has a Type designation of u5-25 (bi-directional)? | CREATE TABLE "high_floor_versions" (
"city" text,
"operator" text,
"type_designation" text,
"number_of_vehicles" real,
"width" text
); | SELECT "number_of_vehicles" FROM "high_floor_versions" WHERE "type_designation"='u5-25 (bi-directional)'; | 2-1437522-2 |
Province of leinster, and a County of fingal has which irish name? | CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
); | SELECT "irish_name" FROM "list_of_counties" WHERE "province"='leinster' AND "county"='fingal'; | 2-15033-1 |
Irish name of an dún (contae an dúin) has what county town? | CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
); | SELECT "county_town" FROM "list_of_counties" WHERE "irish_name"='an dún (contae an dúin)'; | 2-15033-1 |
Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region? | CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
); | SELECT "region" FROM "list_of_counties" WHERE "most_populous_city_town"='clonmel' AND "irish_name"='tiobraid árann (contae thiobraid árann)'; | 2-15033-1 |
County town of dún laoghaire has the most populous city/town? | CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
); | SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='dún laoghaire'; | 2-15033-1 |
Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town? | CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
); | SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "irish_name"='dún na ngall (contae dhún na ngall)'; | 2-15033-1 |
County town of castlebar has the most populous city/town? | CREATE TABLE "list_of_counties" (
"county" text,
"irish_name" text,
"county_town" text,
"most_populous_city_town" text,
"province" text,
"region" text
); | SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='castlebar'; | 2-15033-1 |
Name the games for rubén limardo | CREATE TABLE "medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
); | SELECT "games" FROM "medalists" WHERE "name"='rubén limardo'; | 2-14778294-1 |
Name the sport for men's light flyweight with medal of gold | CREATE TABLE "medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
); | SELECT "sport" FROM "medalists" WHERE "medal"='gold' AND "event"='men''s light flyweight'; | 2-14778294-1 |
Tell me the name for men's featherweight and sport of weightlifting | CREATE TABLE "medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
); | SELECT "name" FROM "medalists" WHERE "event"='men''s featherweight' AND "sport"='weightlifting'; | 2-14778294-1 |
Which details of journey had simon hoggart as a narrator? | CREATE TABLE "great_little_railways" (
"episode_no" real,
"episode_title" text,
"uk_broadcast_date" text,
"narrator" text,
"writer" text,
"details_of_journey" text,
"countries_visited" text
); | SELECT "details_of_journey" FROM "great_little_railways" WHERE "narrator"='simon hoggart'; | 2-15211468-5 |
Which countries visited had an episode number of less than 7 when Ray Gosling was the writer? | CREATE TABLE "great_little_railways" (
"episode_no" real,
"episode_title" text,
"uk_broadcast_date" text,
"narrator" text,
"writer" text,
"details_of_journey" text,
"countries_visited" text
); | SELECT "countries_visited" FROM "great_little_railways" WHERE "episode_no"<7 AND "writer"='ray gosling'; | 2-15211468-5 |
How tall is Zipp Duncan? | CREATE TABLE "louisville" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
); | SELECT "height" FROM "louisville" WHERE "name"='zipp duncan'; | 2-14624447-20 |
What is the average games of Tony Dixon? | CREATE TABLE "louisville" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
); | SELECT AVG("games") FROM "louisville" WHERE "name"='tony dixon'; | 2-14624447-20 |
What is the total of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT SUM("wins") FROM "summary" WHERE "top_25"=6 AND "top_10">2 AND "events"<19; | 2-1507431-4 |
What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT SUM("cuts_made") FROM "summary" WHERE "top_25"<6 AND "top_5">0; | 2-1507431-4 |
How many top-10 numbers had a top 25 of more than 6 with less than 2 wins? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT COUNT("top_10") FROM "summary" WHERE "top_25">6 AND "wins"<2; | 2-1507431-4 |
Name the 2011 with 2010 of 1r and 2012 of sf | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2011" FROM "doubles_performance_timeline" WHERE "2010"='1r' AND "2012"='sf'; | 2-15081782-6 |
Name the 2008 with 2012 of 2r and 2006 of 2r | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='2r' AND "2006"='2r'; | 2-15081782-6 |
Name the 2008 for 2012 of sf | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='sf'; | 2-15081782-6 |
Name the 2013 for 2011 of 1r | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2013" FROM "doubles_performance_timeline" WHERE "2011"='1r'; | 2-15081782-6 |
Name the 2011 with 2006 of 2r and 2008 of 2r | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2011" FROM "doubles_performance_timeline" WHERE "2006"='2r' AND "2008"='2r'; | 2-15081782-6 |
Name the 2012 with 2013 of 2r and 2009 of 3r | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2006" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2012" FROM "doubles_performance_timeline" WHERE "2013"='2r' AND "2009"='3r'; | 2-15081782-6 |
How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0? | CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT COUNT("field_goals") FROM "michigan_48_ohio_northern_0" WHERE "points">5 AND "touchdowns">2 AND "extra_points"<0; | 2-14342592-3 |
How many Touchdowns have Extra points larger than 0, and Points of 48? | CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT COUNT("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points">0 AND "points"=48; | 2-14342592-3 |
Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0? | CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT AVG("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points"<5 AND "player"='clark' AND "field_goals">0; | 2-14342592-3 |
Which Points have Touchdowns larger than 0, and an Extra points smaller than 0? | CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT SUM("points") FROM "michigan_48_ohio_northern_0" WHERE "touchdowns">0 AND "extra_points"<0; | 2-14342592-3 |
Which Semifinalists has a Champions of michael chang 6-0 6-4? | CREATE TABLE "september" (
"week_of" text,
"tournament" text,
"champions" text,
"runners_up" text,
"semifinalists" text
); | SELECT "semifinalists" FROM "september" WHERE "champions"='michael chang 6-0 6-4'; | 2-14105892-10 |
Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi? | CREATE TABLE "september" (
"week_of" text,
"tournament" text,
"champions" text,
"runners_up" text,
"semifinalists" text
); | SELECT "runners_up" FROM "september" WHERE "semifinalists"='guillermo pérez-roldán andrea gaudenzi'; | 2-14105892-10 |
Tell me the least season with level less than 1 | CREATE TABLE "club_career_stats" (
"season" real,
"team" text,
"country" text,
"league" text,
"level" real,
"apps" text,
"goals" real
); | SELECT MIN("season") FROM "club_career_stats" WHERE "level"<1; | 2-15267923-1 |
Which 2007/ 08 has a 2010/ 11 of not held, and a 2011/ 12 of not held, and a 2008/ 09 of not held, and a 2006/ 07 of lq? | CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
); | SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2010_11"='not held' AND "2011_12"='not held' AND "2008_09"='not held' AND "2006_07"='lq'; | 2-14643093-1 |
Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held? | CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
); | SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2005_06"='not held' AND "2010_11"='not held'; | 2-14643093-1 |
Which 2011/ 12 has a 2006/ 07 of not held, and a 2008/ 09 of not held, and a 2012/ 13 of dnq? | CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
); | SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2006_07"='not held' AND "2008_09"='not held' AND "2012_13"='dnq'; | 2-14643093-1 |
Which 2011/ 12 has a 2010/ 11 of A, and a 2007/ 08 of not held, and a 2012/ 13 of lq? | CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
); | SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2010_11"='a' AND "2007_08"='not held' AND "2012_13"='lq'; | 2-14643093-1 |
Which 2007/ 08 has a 2005/ 06 of A, and a 2009/ 10 of A, and a 2012/ 13 of A? | CREATE TABLE "performance_and_rankings_timeline" (
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text,
"2009_10" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
); | SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2005_06"='a' AND "2009_10"='a' AND "2012_13"='a'; | 2-14643093-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.