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 highest profits in billions of the company headquartered in the USA with a market value of 194.87 billions and less than 76.66 billions in sales? | CREATE TABLE "2004_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT MAX("profits_billion") FROM "2004_list" WHERE "headquarters"='usa' AND "market_value_billion"=194.87 AND "sales_billion"<76.66; | 2-1682026-10 |
Which Total has a Nation of japan, and a Silver larger than 2? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "nation"='japan' AND "silver">2; | 2-16669292-1 |
Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "nation" FROM "medal_table" WHERE "gold">0 AND "total">4 AND "rank"='6'; | 2-16669292-1 |
Which Silver has a Rank of 1, and a Total smaller than 11? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("silver") FROM "medal_table" WHERE "rank"='1' AND "total"<11; | 2-16669292-1 |
Which Total has a Nation of united states, and a Bronze larger than 3? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("total") FROM "medal_table" WHERE "nation"='united states' AND "bronze">3; | 2-16669292-1 |
Where did jamie cox & daniel marsh play against queensland? | CREATE TABLE "list_a_partnership_records" (
"wicket" text,
"runs" text,
"batsmen" text,
"opponent" text,
"venue" text,
"season" text
); | SELECT "venue" FROM "list_a_partnership_records" WHERE "opponent"='queensland' AND "batsmen"='jamie cox & daniel marsh'; | 2-16351707-14 |
Where were jamie cox & scott kremerskothen paired? | CREATE TABLE "list_a_partnership_records" (
"wicket" text,
"runs" text,
"batsmen" text,
"opponent" text,
"venue" text,
"season" text
); | SELECT "venue" FROM "list_a_partnership_records" WHERE "batsmen"='jamie cox & scott kremerskothen'; | 2-16351707-14 |
Who were the batsmen paired for wicket 7? | CREATE TABLE "list_a_partnership_records" (
"wicket" text,
"runs" text,
"batsmen" text,
"opponent" text,
"venue" text,
"season" text
); | SELECT "batsmen" FROM "list_a_partnership_records" WHERE "wicket"='7'; | 2-16351707-14 |
How many runs did they get against new south wales in 2002/03? | CREATE TABLE "list_a_partnership_records" (
"wicket" text,
"runs" text,
"batsmen" text,
"opponent" text,
"venue" text,
"season" text
); | SELECT "runs" FROM "list_a_partnership_records" WHERE "opponent"='new south wales' AND "season"='2002/03'; | 2-16351707-14 |
What season did they play queensland at wicket 4? | CREATE TABLE "list_a_partnership_records" (
"wicket" text,
"runs" text,
"batsmen" text,
"opponent" text,
"venue" text,
"season" text
); | SELECT "season" FROM "list_a_partnership_records" WHERE "opponent"='queensland' AND "wicket"='4'; | 2-16351707-14 |
What was the Peak Position on July 11, 2001? | CREATE TABLE "singles" (
"date" text,
"title" text,
"peak_position" real,
"weeks" text,
"sales" real
); | SELECT "peak_position" FROM "singles" WHERE "date"='july 11, 2001'; | 2-1754908-3 |
On December 12, 2001, how many weeks had the single been in its position? | CREATE TABLE "singles" (
"date" text,
"title" text,
"peak_position" real,
"weeks" text,
"sales" real
); | SELECT "weeks" FROM "singles" WHERE "date"='december 12, 2001'; | 2-1754908-3 |
What is the nationality of the Team Purdue? | CREATE TABLE "c" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "nationality" FROM "c" WHERE "school_club_team"='purdue'; | 2-16494599-3 |
What is the nationality of the Team Georgia Tech? | CREATE TABLE "c" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "nationality" FROM "c" WHERE "school_club_team"='georgia tech'; | 2-16494599-3 |
What is the nationality of the forward position on the Grizzlies in 2011? | CREATE TABLE "c" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "nationality" FROM "c" WHERE "position"='forward' AND "years_for_grizzlies"='2011'; | 2-16494599-3 |
Who was the runner-up at the event held in Tartu, Estonia? | CREATE TABLE "individual_champions" (
"year" real,
"venue" text,
"winner" text,
"runner_up" text,
"third_place" text
); | SELECT "runner_up" FROM "individual_champions" WHERE "venue"='tartu, estonia'; | 2-17382818-1 |
For the event held in Tartu, Estonia, what is the name of the runner-up? | CREATE TABLE "individual_champions" (
"year" real,
"venue" text,
"winner" text,
"runner_up" text,
"third_place" text
); | SELECT "runner_up" FROM "individual_champions" WHERE "venue"='tartu, estonia'; | 2-17382818-1 |
Who took third place in 2012? | CREATE TABLE "individual_champions" (
"year" real,
"venue" text,
"winner" text,
"runner_up" text,
"third_place" text
); | SELECT "third_place" FROM "individual_champions" WHERE "year"=2012; | 2-17382818-1 |
In what year was this event held in Oslo, Norway? | CREATE TABLE "individual_champions" (
"year" real,
"venue" text,
"winner" text,
"runner_up" text,
"third_place" text
); | SELECT "year" FROM "individual_champions" WHERE "venue"='oslo, norway'; | 2-17382818-1 |
What is the head of government for Don Stephen Senanayake? | CREATE TABLE "list_of_foreign_ministers" (
"name" text,
"party" text,
"tenure" text,
"head_s_of_government" text,
"ministerial_title" text
); | SELECT "head_s_of_government" FROM "list_of_foreign_ministers" WHERE "name"='don stephen senanayake'; | 2-17115052-1 |
Which team is in 14th position? | CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "pos"='14th'; | 2-16514890-1 |
Which position has a Year larger than 1997, and a Class Position of 3rd? | CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "year">1997 AND "class_pos"='3rd'; | 2-16514890-1 |
What is 2nd Leg, when Team #2 is "San Lorenzo"? | CREATE TABLE "round_of_16" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num2"='san lorenzo'; | 2-16795394-3 |
Which Clock Speed has a FSB Speed of 400 mhz, and a Model Number of c7-m 794? | CREATE TABLE "standard_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"clock_multiplier" text,
"voltage_range" text,
"socket" text,
"release_date" text
); | SELECT "clock_speed" FROM "standard_voltage_90_nm" WHERE "fsb_speed"='400 mhz' AND "model_number"='c7-m 794'; | 2-16316920-3 |
Which Socket has a FSB Speed of 400 mhz, and a Voltage Range of 1.004 v? | CREATE TABLE "standard_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"clock_multiplier" text,
"voltage_range" text,
"socket" text,
"release_date" text
); | SELECT "socket" FROM "standard_voltage_90_nm" WHERE "fsb_speed"='400 mhz' AND "voltage_range"='1.004 v'; | 2-16316920-3 |
Which Clock Multiplier has a Clock Speed of 1.6 ghz, and a Model Number of c7-m 764? | CREATE TABLE "standard_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"clock_multiplier" text,
"voltage_range" text,
"socket" text,
"release_date" text
); | SELECT "clock_multiplier" FROM "standard_voltage_90_nm" WHERE "clock_speed"='1.6 ghz' AND "model_number"='c7-m 764'; | 2-16316920-3 |
Which FSB Speed has a Model Number of c7-m 765? | CREATE TABLE "standard_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"clock_multiplier" text,
"voltage_range" text,
"socket" text,
"release_date" text
); | SELECT "fsb_speed" FROM "standard_voltage_90_nm" WHERE "model_number"='c7-m 765'; | 2-16316920-3 |
Which Clock Multiplier has a Model Number of c7-m 764? | CREATE TABLE "standard_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"clock_multiplier" text,
"voltage_range" text,
"socket" text,
"release_date" text
); | SELECT "clock_multiplier" FROM "standard_voltage_90_nm" WHERE "model_number"='c7-m 764'; | 2-16316920-3 |
Which Release Date has a Voltage Range of 1.148 v - 1.196 v? | CREATE TABLE "standard_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"clock_multiplier" text,
"voltage_range" text,
"socket" text,
"release_date" text
); | SELECT "release_date" FROM "standard_voltage_90_nm" WHERE "voltage_range"='1.148 v - 1.196 v'; | 2-16316920-3 |
Who are the players that placed t2? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT "player" FROM "first_round" WHERE "place"='t2'; | 2-17245540-4 |
Which country is Lee Trevino from? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT "country" FROM "first_round" WHERE "player"='lee trevino'; | 2-17245540-4 |
Which player(s) is from South Africa? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT "player" FROM "first_round" WHERE "country"='south africa'; | 2-17245540-4 |
what is the record when the year is after 1992, manager is tom kotchman and finish is 2nd? | CREATE TABLE "year_by_year_record" (
"year" real,
"mlb_club" text,
"record" text,
"finish" text,
"manager" text
); | SELECT "record" FROM "year_by_year_record" WHERE "year">1992 AND "manager"='tom kotchman' AND "finish"='2nd'; | 2-1655022-1 |
what is the finish when the manager is tom kotchman and record is 43-33? | CREATE TABLE "year_by_year_record" (
"year" real,
"mlb_club" text,
"record" text,
"finish" text,
"manager" text
); | SELECT "finish" FROM "year_by_year_record" WHERE "manager"='tom kotchman' AND "record"='43-33'; | 2-1655022-1 |
what is the finish when the manager is tom kotchman and the record is 40-36? | CREATE TABLE "year_by_year_record" (
"year" real,
"mlb_club" text,
"record" text,
"finish" text,
"manager" text
); | SELECT "finish" FROM "year_by_year_record" WHERE "manager"='tom kotchman' AND "record"='40-36'; | 2-1655022-1 |
who is the manager when the year is before 1994 and finish is 5th? | CREATE TABLE "year_by_year_record" (
"year" real,
"mlb_club" text,
"record" text,
"finish" text,
"manager" text
); | SELECT "manager" FROM "year_by_year_record" WHERE "year"<1994 AND "finish"='5th'; | 2-1655022-1 |
what is the record when the year is 2011? | CREATE TABLE "year_by_year_record" (
"year" real,
"mlb_club" text,
"record" text,
"finish" text,
"manager" text
); | SELECT "record" FROM "year_by_year_record" WHERE "year"=2011; | 2-1655022-1 |
What is Player, when Total is "294", and when Year(s) Won is "1955"? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT "player" FROM "made_the_cut" WHERE "total"=294 AND "year_s_won"='1955'; | 2-17290101-1 |
What is Player, when To Par is less than 14? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT "player" FROM "made_the_cut" WHERE "to_par"<14; | 2-17290101-1 |
What is To Par, when Player is "Tommy Bolt"? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT "to_par" FROM "made_the_cut" WHERE "player"='tommy bolt'; | 2-17290101-1 |
What is the sum of Total, when Player is "Tommy Bolt"? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT SUM("total") FROM "made_the_cut" WHERE "player"='tommy bolt'; | 2-17290101-1 |
What is the total number of Total, when To Par is "7"? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT COUNT("total") FROM "made_the_cut" WHERE "to_par"=7; | 2-17290101-1 |
Which award was won when the nomination was Senses Around? | CREATE TABLE "award_and_nominations" (
"year" real,
"award" text,
"category" text,
"nomination" text,
"result" text
); | SELECT "award" FROM "award_and_nominations" WHERE "result"='won' AND "nomination"='senses around'; | 2-16488467-2 |
What was the nomination in a year earlier than 2009? | CREATE TABLE "award_and_nominations" (
"year" real,
"award" text,
"category" text,
"nomination" text,
"result" text
); | SELECT "nomination" FROM "award_and_nominations" WHERE "year"<2009; | 2-16488467-2 |
Which award is for the category Best New Artist? | CREATE TABLE "award_and_nominations" (
"year" real,
"award" text,
"category" text,
"nomination" text,
"result" text
); | SELECT "award" FROM "award_and_nominations" WHERE "category"='best new artist'; | 2-16488467-2 |
What is the earliest year with a category of Top 10 Selling Mandarin Albums of the Year? | CREATE TABLE "award_and_nominations" (
"year" real,
"award" text,
"category" text,
"nomination" text,
"result" text
); | SELECT MIN("year") FROM "award_and_nominations" WHERE "category"='top 10 selling mandarin albums of the year'; | 2-16488467-2 |
For the USAC National Championship, what is the Discipline? | CREATE TABLE "j" (
"discipline" text,
"championship" text,
"circuit" text,
"event" text,
"session" text
); | SELECT "discipline" FROM "j" WHERE "championship"='usac national championship'; | 2-1632486-11 |
In the Indianapolis Sweepstakes race session, what is the championship? | CREATE TABLE "j" (
"discipline" text,
"championship" text,
"circuit" text,
"event" text,
"session" text
); | SELECT "championship" FROM "j" WHERE "session"='race' AND "event"='indianapolis sweepstakes'; | 2-1632486-11 |
What circuit is the Sprint Cup series championship? | CREATE TABLE "j" (
"discipline" text,
"championship" text,
"circuit" text,
"event" text,
"session" text
); | SELECT "circuit" FROM "j" WHERE "championship"='sprint cup series'; | 2-1632486-11 |
What were the Results for 25,000 Attendance? | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "result" FROM "schedule" WHERE "attendance"='25,000'; | 2-16518708-3 |
What was the result on 10/06/1934? | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "result" FROM "schedule" WHERE "date"='10/06/1934'; | 2-16518708-3 |
What year was the team Club of atlético de san juan fc who plays at hiram bithorn stadium founded. | CREATE TABLE "former_teams" (
"club" text,
"home_city" text,
"stadium" text,
"founded" real,
"seasons_in_prsl" text
); | SELECT SUM("founded") FROM "former_teams" WHERE "stadium"='hiram bithorn stadium' AND "club"='atlético de san juan fc'; | 2-17430068-2 |
What is the Branding of the Iloilo City Frequency with a Power of 10 Kw? | CREATE TABLE "fbs_radio_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power" text,
"location" text
); | SELECT "branding" FROM "fbs_radio_stations" WHERE "power"='10 kw' AND "location"='iloilo city'; | 2-16615322-1 |
What is the Power of the Frequency with a Callsign of DXLL? | CREATE TABLE "fbs_radio_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power" text,
"location" text
); | SELECT "power" FROM "fbs_radio_stations" WHERE "callsign"='dxll'; | 2-16615322-1 |
What is the Frequency in Davao City? | CREATE TABLE "fbs_radio_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power" text,
"location" text
); | SELECT "frequency" FROM "fbs_radio_stations" WHERE "location"='davao city'; | 2-16615322-1 |
What is the Branding with a Callsign DWLL? | CREATE TABLE "fbs_radio_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power" text,
"location" text
); | SELECT "branding" FROM "fbs_radio_stations" WHERE "callsign"='dwll'; | 2-16615322-1 |
What is the Branding of the Metro Manila Frequency with a Callsign of DWBL? | CREATE TABLE "fbs_radio_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power" text,
"location" text
); | SELECT "branding" FROM "fbs_radio_stations" WHERE "location"='metro manila' AND "callsign"='dwbl'; | 2-16615322-1 |
What is the Location of the Frequency with a Callsign of DXBL? | CREATE TABLE "fbs_radio_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power" text,
"location" text
); | SELECT "location" FROM "fbs_radio_stations" WHERE "callsign"='dxbl'; | 2-16615322-1 |
What name in a year after 1997 has a longitude of 213.0e? | CREATE TABLE "chasma" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" real
); | SELECT "name" FROM "chasma" WHERE "year_named">1997 AND "longitude"='213.0e'; | 2-16799784-16 |
How many years correspond to longitude of 36.8e and diameter greater than 697? | CREATE TABLE "chasma" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"year_named" real
); | SELECT COUNT("year_named") FROM "chasma" WHERE "longitude"='36.8e' AND "diameter_km">697; | 2-16799784-16 |
What was the pick # for a center picked before round 6? | CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
); | SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "position"='center' AND "round"<6; | 2-17386094-1 |
What team with a seed value greater than 7 has a note that they were an NCRAA champion? | CREATE TABLE "participating_teams" (
"seed" real,
"team" text,
"league" text,
"notes" text,
"eliminated_at" text
); | SELECT "team" FROM "participating_teams" WHERE "seed">7 AND "notes"='ncraa champion'; | 2-17072031-6 |
WHAT IS THE ORICON PEAK NUMBER WITH AN ATLANTIC LABEL, SUBHUMAN RACE, LATER THAN 1995? | CREATE TABLE "studio_albums" (
"date_of_release" real,
"title" text,
"label" text,
"oricon_peak" real,
"riaa_cert" text
); | SELECT COUNT("oricon_peak") FROM "studio_albums" WHERE "label"='atlantic' AND "title"='subhuman race' AND "date_of_release">1995; | 2-1690020-1 |
WHAT LABEL HAD A RELEASE DATE OF 1991? | CREATE TABLE "studio_albums" (
"date_of_release" real,
"title" text,
"label" text,
"oricon_peak" real,
"riaa_cert" text
); | SELECT "label" FROM "studio_albums" WHERE "date_of_release"=1991; | 2-1690020-1 |
WHAT IS THE AVERAGE DATE OF RELEASE FOR THICKSKIN? | CREATE TABLE "studio_albums" (
"date_of_release" real,
"title" text,
"label" text,
"oricon_peak" real,
"riaa_cert" text
); | SELECT AVG("date_of_release") FROM "studio_albums" WHERE "title"='thickskin'; | 2-1690020-1 |
What is the lowest enrollment amount for a year left of 2012 and a current conference of Mid-South? | CREATE TABLE "former_members" (
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
); | SELECT MIN("enrollment") FROM "former_members" WHERE "left"=2012 AND "current_conference"='mid-south'; | 2-1715730-2 |
Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT SUM("season") FROM "results" WHERE "score"='1:3' AND "venue"='national stadium, maldives'; | 2-16707879-8 |
What was the venue of the match where the score was 1:3 and team 2 was binh duong? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT "venue" FROM "results" WHERE "score"='1:3' AND "team_2"='binh duong'; | 2-16707879-8 |
What was the score of the game when team 2 was club valencia? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT "score" FROM "results" WHERE "team_2"='club valencia'; | 2-16707879-8 |
What was the venue of the match where team 2 was pea and the score was 1:3? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT "venue" FROM "results" WHERE "team_2"='pea' AND "score"='1:3'; | 2-16707879-8 |
In 2011 with a hydroelectricity less than 119.6, what was the solar? | CREATE TABLE "world_top_10_renewable_electricity_produ" (
"country" text,
"year" real,
"total" real,
"hydroelectricity" real,
"wind_power" real,
"biomass_and_waste" text,
"solar" real
); | SELECT "solar" FROM "world_top_10_renewable_electricity_produ" WHERE "year"=2011 AND "hydroelectricity"<119.6; | 2-17068413-1 |
What is the minimum hydroelectricity with a less than 116.4 total, and a greater than 18.637 solar? | CREATE TABLE "world_top_10_renewable_electricity_produ" (
"country" text,
"year" real,
"total" real,
"hydroelectricity" real,
"wind_power" real,
"biomass_and_waste" text,
"solar" real
); | SELECT MIN("hydroelectricity") FROM "world_top_10_renewable_electricity_produ" WHERE "total"<116.4 AND "solar">18.637; | 2-17068413-1 |
In 2011 with a less than 13.333 wind power what is the mean hydroelectricity? | CREATE TABLE "world_top_10_renewable_electricity_produ" (
"country" text,
"year" real,
"total" real,
"hydroelectricity" real,
"wind_power" real,
"biomass_and_waste" text,
"solar" real
); | SELECT AVG("hydroelectricity") FROM "world_top_10_renewable_electricity_produ" WHERE "year">2011 AND "wind_power"<13.333; | 2-17068413-1 |
What country has a less than 136.1 total and a 0.02 solar? | CREATE TABLE "world_top_10_renewable_electricity_produ" (
"country" text,
"year" real,
"total" real,
"hydroelectricity" real,
"wind_power" real,
"biomass_and_waste" text,
"solar" real
); | SELECT "country" FROM "world_top_10_renewable_electricity_produ" WHERE "total"<136.1 AND "solar"=0.02; | 2-17068413-1 |
Home for away of hispano? | CREATE TABLE "round_13" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "home" FROM "round_13" WHERE "away"='hispano'; | 2-17026847-15 |
Which Position has a Pick # smaller than 23, and a Player of garrett sutherland? | CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "position" FROM "round_four" WHERE "pick_num"<23 AND "player"='garrett sutherland'; | 2-16441561-4 |
Name the CFL Team which has a Player of chris evraire? | CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "cfl_team" FROM "round_four" WHERE "player"='chris evraire'; | 2-16441561-4 |
Name The Player who has a Pick # of 27? | CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "player" FROM "round_four" WHERE "pick_num"=27; | 2-16441561-4 |
Name the Player who has a CFL Team of toronto? | CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "player" FROM "round_four" WHERE "cfl_team"='toronto'; | 2-16441561-4 |
Name the Pick # which has a Position of lb, and a CFL Team of winnipeg? | CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT SUM("pick_num") FROM "round_four" WHERE "position"='lb' AND "cfl_team"='winnipeg'; | 2-16441561-4 |
WHAT IS THE SUM OF ATTENDANCE FOR DETROIT, WHEN POINTS ARE LARGER THAN 33? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
); | SELECT SUM("attendance") FROM "game_log" WHERE "home"='detroit' AND "points">33; | 2-17190456-6 |
What was the location and attendance for the game on December 12? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "location_attendance" FROM "game_log" WHERE "date"='december 12'; | 2-17311759-5 |
What is the lowest Touchdowns, when Player is Andrew Glover, and when Yards is greater than 281? | CREATE TABLE "receiving" (
"player" text,
"attempts" real,
"yards" real,
"avg_yards" real,
"long" real,
"touchdowns" real
); | SELECT MIN("touchdowns") FROM "receiving" WHERE "player"='andrew glover' AND "yards">281; | 2-16710999-5 |
What is the average Touchdowns, when Yards is less than 293, and when Long is greater than 39? | CREATE TABLE "receiving" (
"player" text,
"attempts" real,
"yards" real,
"avg_yards" real,
"long" real,
"touchdowns" real
); | SELECT AVG("touchdowns") FROM "receiving" WHERE "yards"<293 AND "long">39; | 2-16710999-5 |
What is the total number of Attempts, when Touchdowns is 6? | CREATE TABLE "receiving" (
"player" text,
"attempts" real,
"yards" real,
"avg_yards" real,
"long" real,
"touchdowns" real
); | SELECT COUNT("attempts") FROM "receiving" WHERE "touchdowns"=6; | 2-16710999-5 |
What is Venue, when Extra is Pentathlon? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
); | SELECT "venue" FROM "achievements" WHERE "extra"='pentathlon'; | 2-16909739-1 |
What is the highest Year, when Extra is Pentathlon? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
); | SELECT MAX("year") FROM "achievements" WHERE "extra"='pentathlon'; | 2-16909739-1 |
What is the sum of Year, when Result is 9th? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
); | SELECT SUM("year") FROM "achievements" WHERE "result"='9th'; | 2-16909739-1 |
What is Tournament, when Result is 2nd, and when Year is 2009? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
); | SELECT "tournament" FROM "achievements" WHERE "result"='2nd' AND "year"=2009; | 2-16909739-1 |
What is Result, when Venue is Götzis , Austria? | CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
); | SELECT "result" FROM "achievements" WHERE "venue"='götzis , austria'; | 2-16909739-1 |
What label does Germany have? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "region"='germany'; | 2-16248783-2 |
What region has the Chrysalis label, and a Catalog of chr 1047? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "region" FROM "release_history" WHERE "label"='chrysalis' AND "catalog"='chr 1047'; | 2-16248783-2 |
When did the United Kingdom format a stereo LP? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "date" FROM "release_history" WHERE "region"='united kingdom' AND "format"='stereo lp'; | 2-16248783-2 |
What region goes along with January 1974? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "region" FROM "release_history" WHERE "date"='january 1974'; | 2-16248783-2 |
What is the label from 1973 that has a catalog number of l 35023? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "date"='1973' AND "catalog"='l 35023'; | 2-16248783-2 |
How many wins did the driver with 1 second and more than 12 races have? | CREATE TABLE "season_by_season" (
"driver" text,
"points" real,
"races" real,
"wins" text,
"second" text,
"third" text
); | SELECT "wins" FROM "season_by_season" WHERE "second"='1' AND "races">12; | 2-16945036-1 |
What is the lowest Loss number when the Gain is less than 61 and the Avg/G is 6? | CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
); | SELECT MIN("loss") FROM "rushing" WHERE "gain"<61 AND "avg_g"=6; | 2-17362664-5 |
What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 34? | CREATE TABLE "rushing" (
"name" text,
"gp_gs" real,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
); | SELECT SUM("avg_g") FROM "rushing" WHERE "loss"=0 AND "name"='dan dierking' AND "gain">34; | 2-17362664-5 |
Who was the visiting team on April 6? | CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "date"='april 6'; | 2-17323640-3 |
What was the date of the game that led to a 4-3 record? | CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "date" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "record"='4-3'; | 2-17323640-3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.