question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what location?
CREATE TABLE "top_5_jamaican_100_m_athletes_women" ( "rank" real, "time" real, "athlete" text, "nation" text, "date" text, "location" text );
SELECT "location" FROM "top_5_jamaican_100_m_athletes_women" WHERE "rank"<5 AND "time">10.7 AND "date"='10 july 2009';
2-15166232-1
Faith of rc, and a Opened larger than 1966 which has the highest DCSF number?
CREATE TABLE "berkhamsted" ( "name" text, "faith" text, "type" text, "opened" real, "intake" real, "dcsf_number" real, "ofsted_number" real );
SELECT MAX("dcsf_number") FROM "berkhamsted" WHERE "faith"='rc' AND "opened">1966;
2-15089329-4
Faith of –, and a Name of greenway has what type?
CREATE TABLE "berkhamsted" ( "name" text, "faith" text, "type" text, "opened" real, "intake" real, "dcsf_number" real, "ofsted_number" real );
SELECT "type" FROM "berkhamsted" WHERE "faith"='–' AND "name"='greenway';
2-15089329-4
Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?
CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text );
SELECT "opponent" FROM "lowest_team_totals_against" WHERE "venue"='launceston cricket club ground, launceston' AND "season"='1853/54';
2-14412861-4
What was the rank of the team during season 2006/07?
CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text );
SELECT "rank" FROM "lowest_team_totals_against" WHERE "season"='2006/07';
2-14412861-4
What was the venue where there were 55 runs?
CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text );
SELECT "venue" FROM "lowest_team_totals_against" WHERE "runs"='55';
2-14412861-4
What was the venue where there were 62 runs?
CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text );
SELECT "venue" FROM "lowest_team_totals_against" WHERE "runs"='62';
2-14412861-4
Which driver had an accident and laps smaller than 53?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" text );
SELECT "driver" FROM "race" WHERE "laps"<53 AND "time_retired"='accident';
2-14270662-2
What language has a publication range from 1955–1999?
CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text );
SELECT "language" FROM "scholarly_journals" WHERE "publication_range"='1955–1999';
2-1467267-2
What is the status for a journal with the ISSN of 0149-1830?
CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text );
SELECT "status" FROM "scholarly_journals" WHERE "issn"='0149-1830';
2-1467267-2
What is the language with a France publication range of 1992–2003?
CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text );
SELECT "language" FROM "scholarly_journals" WHERE "country"='france' AND "publication_range"='1992–2003';
2-1467267-2
What is the ISSN number of a publication range of 1984-?
CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text );
SELECT "issn" FROM "scholarly_journals" WHERE "publication_range"='1984-';
2-1467267-2
What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?
CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text );
SELECT "language" FROM "scholarly_journals" WHERE "frequency"='3 times per year' AND "issn"='1136-7385';
2-1467267-2
What is the region 4 release that has july 20, 2009 as the region 2?
CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text );
SELECT "region_4_release" FROM "dvd_releases" WHERE "region_2_release"='july 20, 2009';
2-14618098-2
What is the region 1 release that has july 20, 2009 as the region 2?
CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text );
SELECT "region_1_release" FROM "dvd_releases" WHERE "region_2_release"='july 20, 2009';
2-14618098-2
What is the average episode that has September 11, 2007 as a region 1?
CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text );
SELECT AVG("episodes") FROM "dvd_releases" WHERE "region_1_release"='september 11, 2007';
2-14618098-2
What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension?
CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text );
SELECT "scheduled" FROM "proposed_or_under_construction" WHERE "capacity_mw"<32.5 AND "type"='nordex n90 2.5mw' AND "wind_farm"='glenough extension';
2-14101606-2
What is the type of turbine having fewer than 17 units and located in County Laois?
CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text );
SELECT "type" FROM "proposed_or_under_construction" WHERE "turbines"<17 AND "location"='county laois';
2-14101606-2
When is the scheduled date for the farm having 17 turbines?
CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text );
SELECT "scheduled" FROM "proposed_or_under_construction" WHERE "turbines"=17;
2-14101606-2
What is the average capacity for the farm at Gortahile having more than 8 turbines?
CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text );
SELECT AVG("capacity_mw") FROM "proposed_or_under_construction" WHERE "wind_farm"='gortahile' AND "turbines">8;
2-14101606-2
What is the title of the king who left office in 982 and entered office in 949?
CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text );
SELECT "title" FROM "933_1062" WHERE "left_office"='982' AND "entered_office"='949';
2-13877-11
When did the king who entered office in 1012 leave office?
CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text );
SELECT "left_office" FROM "933_1062" WHERE "entered_office"='1012';
2-13877-11
What are the family relations of the king with the throne name 303?
CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text );
SELECT "family_relations" FROM "933_1062" WHERE "throne_name"='303';
2-13877-11
What is teh born-died dates of the king with a throne name 315 and left office in 1021?
CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text );
SELECT "born_died" FROM "933_1062" WHERE "left_office"='1021' AND "throne_name"='315';
2-13877-11
Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?
CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "opponents" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='irina-camelia begu' AND "surface"='hard';
2-15272343-4
Which Surface has a Partner of galina voskoboeva?
CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "surface" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='galina voskoboeva';
2-15272343-4
Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová?
CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "opponents" FROM "doubles_10_2_titles_8_runners_up" WHERE "surface"='hard' AND "outcome"='runner-up' AND "partner"='jarmila gajdošová';
2-15272343-4
Which Partner has a Date of 12 july 2009?
CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "partner" FROM "doubles_10_2_titles_8_runners_up" WHERE "date"='12 july 2009';
2-15272343-4
Which Surface has a Partner of sorana cîrstea?
CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "surface" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='sorana cîrstea';
2-15272343-4
Name the least overall with pick number more than 27
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">27;
2-15198842-40
what's the first leg with gran canaria as team #2?
CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "eighthfinals" WHERE "team_num2"='gran canaria';
2-13570080-13
with team #1 as lukoil academic what is team #2?
CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_num2" FROM "eighthfinals" WHERE "team_num1"='lukoil academic';
2-13570080-13
with team #2 as akasvayu girona what is team #1?
CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_num1" FROM "eighthfinals" WHERE "team_num2"='akasvayu girona';
2-13570080-13
Which virtue is acedia(Latin)?
CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text );
SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "latin"='acedia';
2-1439959-1
Which Virtue has a (vice) of lust?
CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text );
SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "vice"='lust';
2-1439959-1
Which virtue is Invidia(Latin)?
CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text );
SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "latin"='invidia';
2-1439959-1
What's the gloss with Castitas(Latin)?
CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text );
SELECT "gloss" FROM "seven_heavenly_virtues" WHERE "latin"='castitas';
2-1439959-1
What is the Diligence Virtues Gloss?
CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text );
SELECT "gloss" FROM "seven_heavenly_virtues" WHERE "virtue"='diligence';
2-1439959-1
What is the Virtue of Temperance in Latin?
CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text );
SELECT "latin" FROM "seven_heavenly_virtues" WHERE "virtue"='temperance';
2-1439959-1
In what year(s) did South Korea win silver?
CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "year" FROM "team" WHERE "silver"='south korea';
2-14781412-3
Which nation(s) won silver in Doha?
CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "silver" FROM "team" WHERE "location"='doha';
2-14781412-3
What was the first year that South Korea won gold and Malaysia won bronze?
CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT MIN("year") FROM "team" WHERE "gold"='south korea' AND "bronze"='malaysia';
2-14781412-3
What country won gold in the year(s) that Chinese Taipei won bronze?
CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text );
SELECT "gold" FROM "team" WHERE "bronze"='chinese taipei';
2-14781412-3
Which European competitions have a Pos of 6?
CREATE TABLE "results" ( "season" text, "tier" real, "league" text, "pos" real, "postseason" text, "dutch_cup" text, "european_competitions" text );
SELECT "european_competitions" FROM "results" WHERE "pos"=6;
2-14189125-1
Which Pos has a Dutch Cup of winner, and a Tier larger than 1?
CREATE TABLE "results" ( "season" text, "tier" real, "league" text, "pos" real, "postseason" text, "dutch_cup" text, "european_competitions" text );
SELECT AVG("pos") FROM "results" WHERE "dutch_cup"='winner' AND "tier">1;
2-14189125-1
What is the average Frequency MHz that is on farwell, texas?
CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );
SELECT AVG("frequency_m_hz") FROM "external_links" WHERE "city_of_license"='farwell, texas';
2-14035388-1
WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W
CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );
SELECT "city_of_license" FROM "external_links" WHERE "fcc_info"='fcc' AND "erp_w"='10,000 horizontal 3,000 vertical';
2-14035388-1
WHich FCC info has 3,000 ERP W?
CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text );
SELECT "fcc_info" FROM "external_links" WHERE "erp_w"='3,000';
2-14035388-1
What's the average game against the New Jersey Devils with 19 points?
CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT AVG("game") FROM "regular_season" WHERE "points"=19 AND "opponent"='new jersey devils';
2-14323142-3
Opponent of at boston patriots, and a Week larger than 3 had what average attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='at boston patriots' AND "week">3;
2-14966537-1
Name the average fall 07 for fall 07 more than 219
CREATE TABLE "geography_of_students" ( "maryland_counties" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real );
SELECT AVG("fall_07") FROM "geography_of_students" WHERE "fall_06">219;
2-15055594-5
Name the player for fc dallas pick number less than 3
CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );
SELECT "player" FROM "round_one" WHERE "pick_num"<3 AND "mls_team"='fc dallas';
2-15214004-1
Name the most pick number for real salt lake and affiliation of ucla los angeles storm
CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );
SELECT MAX("pick_num") FROM "round_one" WHERE "mls_team"='real salt lake' AND "affiliation"='ucla los angeles storm';
2-15214004-1
Name the player with pick number of 7
CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );
SELECT "player" FROM "round_one" WHERE "pick_num"=7;
2-15214004-1
Which Game has a March smaller than 12, and a Score of 10–1?
CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT MIN("game") FROM "regular_season" WHERE "march"<12 AND "score"='10–1';
2-14311305-7
Which Score has Points of 88, and a Record of 38–22–12?
CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "score" FROM "regular_season" WHERE "points"=88 AND "record"='38–22–12';
2-14311305-7
Which Game has an Opponent of detroit red wings, and a March smaller than 12?
CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT COUNT("game") FROM "regular_season" WHERE "opponent"='detroit red wings' AND "march"<12;
2-14311305-7
Which Points have a Game smaller than 70, and a Score of 4–8?
CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT MIN("points") FROM "regular_season" WHERE "game"<70 AND "score"='4–8';
2-14311305-7
Which segment a's Netflix is S05E22?
CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_a" FROM "season_10_2007_2008" WHERE "netflix"='s05e22';
2-15187735-10
Which series episode has a segment c that is Electric pole s transformer?
CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "series_ep" FROM "season_10_2007_2008" WHERE "segment_c"='electric pole s transformer';
2-15187735-10
What largest episode number's Netflix is S05E23?
CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT MAX("episode") FROM "season_10_2007_2008" WHERE "netflix"='s05e23';
2-15187735-10
Which segment c's segment b is refrigerators?
CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_c" FROM "season_10_2007_2008" WHERE "segment_b"='refrigerators';
2-15187735-10
Which races did they accumulate at least 125 points?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "points" text, "position" text );
SELECT "races" FROM "career_summary" WHERE "points"='125';
2-1390721-1
Which Series has a Score of 3 – 8?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "series" FROM "playoffs" WHERE "score"='3 – 8';
2-14208862-12
Which Date has a Decision of myre?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "date" FROM "playoffs" WHERE "decision"='myre';
2-14208862-12
How many Attendances on may 24?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT MIN("attendance") FROM "playoffs" WHERE "date"='may 24';
2-14208862-12
Which Series are on may 18?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "series" FROM "playoffs" WHERE "date"='may 18';
2-13908184-11
How many Attendances that has a Visitor of philadelphia on may 20?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT AVG("attendance") FROM "playoffs" WHERE "visitor"='philadelphia' AND "date"='may 20';
2-13908184-11
who is the Visitor that has a Series of series tied 2–2?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "visitor" FROM "playoffs" WHERE "series"='series tied 2–2';
2-13908184-11
How many Attendances have a Score of 4 – 5? Question 4
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT MAX("attendance") FROM "playoffs" WHERE "score"='4 – 5';
2-13908184-11
WHo has a Home of philadelphia and a Series of flyers lead 1–0?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "visitor" FROM "playoffs" WHERE "home"='philadelphia' AND "series"='flyers lead 1–0';
2-13908184-11
What is the class of the Charlotte Camel gt 500 race?
CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text );
SELECT "class" FROM "schedule" WHERE "race"='charlotte camel gt 500';
2-13654195-1
What is the race 12 hours in length?
CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text );
SELECT "race" FROM "schedule" WHERE "length"='12 hours';
2-13654195-1
What is the class of the Coca-cola classic 12 hours of sebring race?
CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text );
SELECT "class" FROM "schedule" WHERE "race"='coca-cola classic 12 hours of sebring';
2-13654195-1
What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?
CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text );
SELECT "class" FROM "schedule" WHERE "race"='budweiser grand prix of miami' AND "length"='3 hours';
2-13654195-1
What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit?
CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text );
SELECT "date" FROM "schedule" WHERE "circuit"='daytona international speedway' AND "race"='paul revere 250';
2-13654195-1
What race is 12 hours in length?
CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text );
SELECT "race" FROM "schedule" WHERE "length"='12 hours';
2-13654195-1
What is the highest round for the pick from Finland?
CREATE TABLE "nhl_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text );
SELECT MAX("round") FROM "nhl_draft" WHERE "nationality"='finland';
2-13928473-1
What is the total number of rounds that Joe Barnes was picked?
CREATE TABLE "nhl_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text );
SELECT COUNT("round") FROM "nhl_draft" WHERE "player"='joe barnes';
2-13928473-1
What is the total 2nd of Thomas Morgenstern, who has a 1st less than 132.5?
CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text );
SELECT COUNT("2nd_m") FROM "engelberg" WHERE "name"='thomas morgenstern' AND "1st_m"<132.5;
2-14407512-6
What was the order of the Tokyo olympic games?
CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text );
SELECT "order" FROM "iaba_olympic_medals" WHERE "olympic_games"='tokyo';
2-14106439-1
What was the 15th club in 2012?
CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text );
SELECT "club" FROM "iaba_olympic_medals" WHERE "year"=2012 AND "order"='15th';
2-14106439-1
What medal did Michael Conlon, with a weight of fly, win?
CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text );
SELECT "medal" FROM "iaba_olympic_medals" WHERE "weight"='fly' AND "boxer"='michael conlon';
2-14106439-1
How many losses have more than 45,036 attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "loss" FROM "game_log" WHERE "attendance">'45,036';
2-13913673-4
on april 29, what was the attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT SUM("attendance") FROM "game_log" WHERE "date"='april 29';
2-13848348-5
on april 9 what was the attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "game_log" WHERE "date"='april 9';
2-13848348-5
What date has postponed (rain) rescheduled for august 7 as the score?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "date" FROM "game_log" WHERE "score"='postponed (rain) rescheduled for august 7';
2-13882208-8
Failures larger than 0, and a Successes of 1 has what lowest partial failures?
CREATE TABLE "by_country" ( "country" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );
SELECT MIN("partial_failures") FROM "by_country" WHERE "failures">0 AND "successes"=1;
2-13894411-5
Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?
CREATE TABLE "by_country" ( "country" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );
SELECT SUM("partial_failures") FROM "by_country" WHERE "successes"<6 AND "launches">1 AND "failures"=2;
2-13894411-5
Who was the opposing team during a game in the Pontiac Silverdome?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "location"='pontiac silverdome';
2-14828499-7
What was the final score for the January 23 game?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "score" FROM "game_log" WHERE "date"='january 23';
2-14828499-7
What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63?
CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text );
SELECT MAX("february") FROM "schedule_and_results" WHERE "opponent"='philadelphia flyers' AND "game">63;
2-14034807-7
Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4?
CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text );
SELECT "opponent" FROM "schedule_and_results" WHERE "game">58 AND "february">16 AND "record"='40-20-4';
2-14034807-7
Which Year has a Genre of rock (track)?
CREATE TABLE "grammy_hall_of_fame" ( "year" real, "title" text, "genre" text, "label" text, "year_inducted" real );
SELECT SUM("year") FROM "grammy_hall_of_fame" WHERE "genre"='rock (track)';
2-15127238-2
Which Year Inducted is the highest one that has a Year smaller than 1965?
CREATE TABLE "grammy_hall_of_fame" ( "year" real, "title" text, "genre" text, "label" text, "year_inducted" real );
SELECT MAX("year_inducted") FROM "grammy_hall_of_fame" WHERE "year"<1965;
2-15127238-2
Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson?
CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"<9 AND "name"='mike pearson';
2-15100419-8
Which Round is the lowest one that has a Position of wide receiver, and an Overall smaller than 222?
CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("round") FROM "jacksonville_jaguars_draft_history" WHERE "position"='wide receiver' AND "overall"<222;
2-15100419-8
What was the Record on September 21?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='september 21';
2-13964884-7
What was the record the day David Weathers (15) had a save?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "record" text );
SELECT "record" FROM "game_log" WHERE "save"='david weathers (15)';
2-13964884-7
Who had a save on September 2?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "record" text );
SELECT "save" FROM "game_log" WHERE "date"='september 2';
2-13964884-7