question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
with delivery date of 2001 2001 what is the owns?
CREATE TABLE "fleet" ( "type" text, "owns" text, "length" text, "delivery_date" text, "gross_tonnage" real );
SELECT "owns" FROM "fleet" WHERE "delivery_date"='2001 2001';
2-13580133-1
with delivery date of 2001 2001 what is gross tonnage?
CREATE TABLE "fleet" ( "type" text, "owns" text, "length" text, "delivery_date" text, "gross_tonnage" real );
SELECT AVG("gross_tonnage") FROM "fleet" WHERE "delivery_date"='2001 2001';
2-13580133-1
with delivery date 1997 1997 what is the owns?
CREATE TABLE "fleet" ( "type" text, "owns" text, "length" text, "delivery_date" text, "gross_tonnage" real );
SELECT "owns" FROM "fleet" WHERE "delivery_date"='1997 1997';
2-13580133-1
Which conference does the school from Gainesville, Florida, play in?
CREATE TABLE "see_also" ( "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "nickname" text, "present_conference" text );
SELECT "present_conference" FROM "see_also" WHERE "location"='gainesville, florida';
2-15055807-1
What is the number of enrollments for teams named the Buccaneers founded before 1911?
CREATE TABLE "see_also" ( "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "nickname" text, "present_conference" text );
SELECT COUNT("enrollment") FROM "see_also" WHERE "nickname"='buccaneers' AND "founded"<1911;
2-15055807-1
What is the highest chart number for the song Yardbirds aka Roger the Engineer?
CREATE TABLE "studio_albums" ( "date" text, "title" text, "origin" text, "label_cat_no" text, "chart_no" real );
SELECT MAX("chart_no") FROM "studio_albums" WHERE "title"='yardbirds aka roger the engineer';
2-15258059-1
What is the average chart number for 11/1965?
CREATE TABLE "studio_albums" ( "date" text, "title" text, "origin" text, "label_cat_no" text, "chart_no" real );
SELECT AVG("chart_no") FROM "studio_albums" WHERE "date"='11/1965';
2-15258059-1
What is origin country for a title that charted at 52?
CREATE TABLE "studio_albums" ( "date" text, "title" text, "origin" text, "label_cat_no" text, "chart_no" real );
SELECT "origin" FROM "studio_albums" WHERE "chart_no"=52;
2-15258059-1
What is the Record of the Game after 40 with New York Rangers as Opponent?
CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "record" FROM "regular_season" WHERE "game">40 AND "opponent"='new york rangers';
2-14294324-5
When did Adam Thompson play in the final?
CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "date" FROM "singles_titles" WHERE "opponent_in_the_final"='adam thompson';
2-14008546-2
When was the Lagos tournament?
CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "date" FROM "singles_titles" WHERE "tournament"='lagos';
2-14008546-2
What was the score against the phillies on may 24?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "opponent"='phillies' AND "date"='may 24';
2-13978258-5
Opponent of new england patriots had what attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "opponent"='new england patriots';
2-14900014-1
Attendance of 55,340 had what opponent?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "attendance"='55,340';
2-14900014-1
Week smaller than 4, and a Game Site of rca dome, and a Opponent of new england patriots involves what date?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "week"<4 AND "game_site"='rca dome' AND "opponent"='new england patriots';
2-14900014-1
Record of 0–8 had what result?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "record"='0–8';
2-14900014-1
Record of 0–8 had what lowest week?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text );
SELECT MIN("week") FROM "schedule" WHERE "record"='0–8';
2-14900014-1
What was the score when the visitor was pittsburgh?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "regular_season" WHERE "visitor"='pittsburgh';
2-14159731-4
What was the decision on November 26?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "decision" FROM "regular_season" WHERE "date"='november 26';
2-14159731-4
What is the BW 2013 ranking of Washington, D.C., which has an ARWU 2012 ranking greater than 51?
CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013" real, "arwu_2012" real );
SELECT "bw_2013" FROM "current_individual_rankings" WHERE "arwu_2012">51 AND "location_state_city"='washington, d.c.';
2-14750215-1
What is the USN 2013 ranking with a BW 2013 ranking less than 1000, a Forbes 2011 ranking larger than 17, and a CNN 2011 ranking less than 13?
CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013" real, "arwu_2012" real );
SELECT SUM("usn_2013") FROM "current_individual_rankings" WHERE "bw_2013"<1000 AND "forbes_2011">17 AND "cnn_2011"<13;
2-14750215-1
What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?
CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013" real, "arwu_2012" real );
SELECT AVG("ae_2011") FROM "current_individual_rankings" WHERE "forbes_2011"=24 AND "ft_2011"<44;
2-14750215-1
What is the average ARWU 2012 ranking of Illinois, Champaign, which has a USN 2013 ranking less than 91 and an EC 2013 ranking larger than 1000?
CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013" real, "arwu_2012" real );
SELECT AVG("arwu_2012") FROM "current_individual_rankings" WHERE "usn_2013"<91 AND "location_state_city"='illinois, champaign' AND "ec_2013">1000;
2-14750215-1
What is the average BW 2013 ranking of Texas, Fort Worth, which has an AE 2011 ranking of 1000 and an FT 2011 ranking less than 1000?
CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013" real, "arwu_2012" real );
SELECT AVG("bw_2013") FROM "current_individual_rankings" WHERE "ae_2011"=1000 AND "location_state_city"='texas, fort worth' AND "ft_2011"<1000;
2-14750215-1
Who did they play at lincoln financial field at 8:30 (ET) after week 14?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "time_et" text, "result" text, "game_site" text, "record" text, "nfl_recap" text );
SELECT "opponent" FROM "regular_season" WHERE "week">14 AND "game_site"='lincoln financial field' AND "time_et"='8:30';
2-15008664-2
What is the density for the area that is larger than 4,015.6 and a population smaller than 6,178?
CREATE TABLE "administration" ( "commune" text, "area_km_2" real, "2002_population" real, "density_km_2" real, "government_website" text );
SELECT COUNT("density_km_2") FROM "administration" WHERE "area_km_2">'4,015.6' AND "2002_population"<'6,178';
2-13764346-1
What is the density that has an area smaller than 2,200.2 and a population larger than 2,599?
CREATE TABLE "administration" ( "commune" text, "area_km_2" real, "2002_population" real, "density_km_2" real, "government_website" text );
SELECT COUNT("density_km_2") FROM "administration" WHERE "area_km_2"<'2,200.2' AND "2002_population">'2,599';
2-13764346-1
What is the average rank for nations with fewer than 0 gold medals?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("rank") FROM "medal_table" WHERE "gold"<0;
2-14423681-3
What is the total number of bronze medals with more than 1 medal total and fewer than 1 silver medal?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("bronze") FROM "medal_table" WHERE "total">1 AND "silver"<1;
2-14423681-3
What is the highest rank of a nation with fewer than 0 silver medals?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("rank") FROM "medal_table" WHERE "silver"<0;
2-14423681-3
Which Bats have a First of josh, and Throws of r, and a Surname of cakebread?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "bats" FROM "player_roster" WHERE "first"='josh' AND "throws"='r' AND "surname"='cakebread';
2-15273269-5
Which DOB has Throws of r, and a Position of c, and a First of torey?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "d_o_b" FROM "player_roster" WHERE "throws"='r' AND "position"='c' AND "first"='torey';
2-15273269-5
Which DOB has a Surname of cresswell?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "d_o_b" FROM "player_roster" WHERE "surname"='cresswell';
2-15273269-5
Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a First of john?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "d_o_b" FROM "player_roster" WHERE "bats"='r' AND "throws"='r' AND "position"='rhp' AND "first"='john';
2-15273269-5
Which Position did Ruzic play?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "position" FROM "player_roster" WHERE "surname"='ruzic';
2-15273269-5
How many throws did Torey have?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "throws" FROM "player_roster" WHERE "first"='torey';
2-15273269-5
Which Ties is the highest one that has Losses smaller than 9, and Starts of 26, and Wins smaller than 21?
CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real );
SELECT MAX("ties") FROM "most_starts" WHERE "losses"<9 AND "starts"=26 AND "wins"<21;
2-14389782-3
Which Win % has a Name of tony rice, and Wins smaller than 28?
CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real );
SELECT COUNT("win_pct") FROM "most_starts" WHERE "name"='tony rice' AND "wins"<28;
2-14389782-3
Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?
CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real );
SELECT SUM("wins") FROM "most_starts" WHERE "win_pct"<0.8270000000000001 AND "name"='rick mirer' AND "ties"<1;
2-14389782-3
How many Losses have a Name of blair kiel?
CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real );
SELECT COUNT("losses") FROM "most_starts" WHERE "name"='blair kiel';
2-14389782-3
Which Losses have a Name of jimmy clausen?
CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real );
SELECT AVG("losses") FROM "most_starts" WHERE "name"='jimmy clausen';
2-14389782-3
what is the number of attendance on june 24
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT COUNT("attendance") FROM "game_log" WHERE "date"='june 24';
2-13810690-7
Attendance larger than 17,001, and a Date of june 15 had what decision?
CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT "decision" FROM "stanley_cup_final" WHERE "attendance">'17,001' AND "date"='june 15';
2-13992496-6
Home of dallas happened on what date?
CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT "date" FROM "stanley_cup_final" WHERE "home"='dallas';
2-13992496-6
Home of buffalo happened on what date?
CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT "date" FROM "stanley_cup_final" WHERE "home"='buffalo';
2-13992496-6
Visitor of dallas, and a Date of june 12 had what highest attendance?
CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT MAX("attendance") FROM "stanley_cup_final" WHERE "visitor"='dallas' AND "date"='june 12';
2-13992496-6
On which date was the position less than 4 at Piraeus?
CREATE TABLE "men_indoor" ( "pos" real, "mark" text, "athlete" text, "venue" text, "date" text );
SELECT "date" FROM "men_indoor" WHERE "pos"<4 AND "venue"='piraeus';
2-13791-4
Which team had 64 laps and 13 points?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT "team" FROM "race" WHERE "laps"=64 AND "points"=13;
2-14171191-2
How many laps did the team with a time/retired of +1.906 have?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT COUNT("laps") FROM "race" WHERE "time_retired"='+1.906';
2-14171191-2
What is the time/retired of the team with a grid of 14?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT "time_retired" FROM "race" WHERE "grid"=14;
2-14171191-2
What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT MIN("grid") FROM "race" WHERE "team"='pkv racing' AND "points"=13 AND "laps"<64;
2-14171191-2
What is the total grid of the team with a time/retired of +7.346?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT COUNT("grid") FROM "race" WHERE "time_retired"='+7.346';
2-14171191-2
What is the grid of pkv racing with the driver oriol servià?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT SUM("grid") FROM "race" WHERE "team"='pkv racing' AND "driver"='oriol servià';
2-14171191-2
When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute?
CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "attribute" FROM "microsoft_specific_events" WHERE "cancelable"='yes' AND "bubbles"='yes' AND "category"='keyboard';
2-1507852-4
When Bubbles of no, and a Category of miscellaneous, and a Type of propertychange, what was the Cancelable?
CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "cancelable" FROM "microsoft_specific_events" WHERE "bubbles"='no' AND "category"='miscellaneous' AND "type"='propertychange';
2-1507852-4
When Type was rowexit what was the Category?
CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "category" FROM "microsoft_specific_events" WHERE "type"='rowexit';
2-1507852-4
When Cancelable of yes, and a Type of drag, what was the Category?
CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "category" FROM "microsoft_specific_events" WHERE "cancelable"='yes' AND "type"='drag';
2-1507852-4
When Event has Bubbles of yes, Cancelable of yes, Category of mouse, and a Type of contextmenu what is the Attribute?
CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "attribute" FROM "microsoft_specific_events" WHERE "bubbles"='yes' AND "cancelable"='yes' AND "category"='mouse' AND "type"='contextmenu';
2-1507852-4
Let's say Type is of datasetcomplete, what is the Attribute?
CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "attribute" FROM "microsoft_specific_events" WHERE "type"='datasetcomplete';
2-1507852-4
What is the name of the parish that has a former local authority of St Neots urban district?
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text );
SELECT "name" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "former_local_authority"='st neots urban district';
2-1469515-1
What district is the parish who had the South Cambridgeshire rural district as the former local authority?
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text );
SELECT "district" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "former_local_authority"='south cambridgeshire rural district';
2-1469515-1
What district is St Martin's Without parish in with a population less than 75?
CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text );
SELECT "district" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "population"<75 AND "name"='st martin''s without';
2-1469515-1
Who was the home team when FK kom were the guests?
CREATE TABLE "schedule" ( "venue" text, "home" text, "guest" text, "score" text, "attendance" real );
SELECT "home" FROM "schedule" WHERE "guest"='fk kom';
2-13884212-2
What venue was the match against the guest team, FK ibar, played at?
CREATE TABLE "schedule" ( "venue" text, "home" text, "guest" text, "score" text, "attendance" real );
SELECT "venue" FROM "schedule" WHERE "guest"='fk ibar';
2-13884212-2
What's the Score with a Home of Scotland and Date of 24 February?
CREATE TABLE "results" ( "year" real, "home" text, "score" text, "away" text, "date" text, "venue" text );
SELECT "score" FROM "results" WHERE "home"='scotland' AND "date"='24 february';
2-13580041-1
What round was john sutro, tackle, drafter with a pick lower than 79?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT SUM("round") FROM "nfl_draft" WHERE "position"='tackle' AND "player"='john sutro' AND "pick"<79;
2-14887257-1
What pick was roger holdinsky?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT "pick" FROM "nfl_draft" WHERE "player"='roger holdinsky';
2-14887257-1
When was chuck morris, back, drafted?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT MIN("pick") FROM "nfl_draft" WHERE "position"='back' AND "player"='chuck morris';
2-14887257-1
What wss the average round drafted for xavier players?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT AVG("round") FROM "nfl_draft" WHERE "school"='xavier';
2-14887257-1
What is the urban sub-area with an East Dunbartonshire council area and a population of 19,020?
CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text );
SELECT "urban_sub_area" FROM "references" WHERE "council_area"='east dunbartonshire' AND "population"='19,020';
2-14184004-1
What is the council area for the Larkhall urban sub-area?
CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text );
SELECT "council_area" FROM "references" WHERE "urban_sub_area"='larkhall';
2-14184004-1
What is the population of the East Kilbride urban sub-area?
CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text );
SELECT "population" FROM "references" WHERE "urban_sub_area"='east kilbride';
2-14184004-1
Which urban sub-area has a population of 16,140?
CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text );
SELECT "urban_sub_area" FROM "references" WHERE "population"='16,140';
2-14184004-1
What is the record of the cubs on July 19?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='july 19';
2-13553341-5
What was the score during the game that had more than 12,194 people in attendance and a record of 53-32?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "attendance">'12,194' AND "record"='53-32';
2-13553341-5
What nationality is Northwood School (N.Y.)?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team_league"='northwood school (n.y.)';
2-14320222-15
What are incumbent William Vandever's results?
CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "result" FROM "california" WHERE "incumbent"='william vandever';
2-1431450-2
Who was the first person elected from Democratic GAIN?
CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "first_elected" FROM "california" WHERE "result"='democratic gain';
2-1431450-2
What was the result for incumbent Joseph McKenna who was first elected in 1884?
CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "result" FROM "california" WHERE "first_elected"='1884' AND "incumbent"='joseph mckenna';
2-1431450-2
When was republican incumbent Joseph McKenna first elected?
CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text );
SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "incumbent"='joseph mckenna';
2-1431450-2
what is the lowest capacity in grodno
CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1992" text );
SELECT MIN("capacity") FROM "teams_and_venues" WHERE "location"='grodno';
2-14744744-1
Which Score has January larger than 18 and a Record of 35–15–1?
CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "score" FROM "regular_season" WHERE "january">18 AND "record"='35–15–1';
2-14320222-5
How many starts are associated with an oldsmobile engine, 21 finishes and before 2001?
CREATE TABLE "indianapolis_500_results" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text );
SELECT SUM("start") FROM "indianapolis_500_results" WHERE "engine"='oldsmobile' AND "finish"=21 AND "year"<2001;
2-1507423-2
What was the finish associated with under 11 starts, a honda engine, before 2003?
CREATE TABLE "indianapolis_500_results" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text );
SELECT AVG("finish") FROM "indianapolis_500_results" WHERE "start"<11 AND "engine"='honda' AND "year"<2003;
2-1507423-2
what is the director of la ronde
CREATE TABLE "1960s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text );
SELECT "director" FROM "1960s" WHERE "original_title"='la ronde';
2-1476746-1
What is the lowest number of people attending the game on May 30 with Colorado as the visitors?
CREATE TABLE "western_conference_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT MIN("attendance") FROM "western_conference_finals" WHERE "visitor"='colorado' AND "date"='may 30';
2-13992496-5
What is the lowest number of people attending the game where Colorado was the home team?
CREATE TABLE "western_conference_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT MIN("attendance") FROM "western_conference_finals" WHERE "home"='colorado';
2-13992496-5
What was the score of the game on May 26?
CREATE TABLE "western_conference_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT "score" FROM "western_conference_finals" WHERE "date"='may 26';
2-13992496-5
What is the lowest round that Adam Wiesel was picked?
CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text );
SELECT MIN("round") FROM "nhl_entry_draft" WHERE "player"='adam wiesel';
2-14509838-8
What college, junior, or club team did defence player Rory Fitzpatrick play for?
CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text );
SELECT "college_junior_club_team" FROM "nhl_entry_draft" WHERE "position"='defence' AND "player"='rory fitzpatrick';
2-14509838-8
What was the score for 1911?
CREATE TABLE "largest_margin_of_innings_victory" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real );
SELECT "score" FROM "largest_margin_of_innings_victory" WHERE "year"=1911;
2-14176339-6
what country has tiger woods
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "third_round" WHERE "player"='tiger woods';
2-14169635-4
what country has a score of 69-70-72=211?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "score"='69-70-72=211';
2-14169635-4
what player scored 69-72-68=209?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "score"='69-72-68=209';
2-14169635-4
What is the largest number for earnings for tom watson when ranked more than 2?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT MAX("earnings") FROM "leaders" WHERE "player"='tom watson' AND "rank">2;
2-14640525-4
Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5?
CREATE TABLE "willingen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text );
SELECT MIN("1st_m") FROM "willingen" WHERE "nationality"='aut' AND "points">273.5;
2-14407512-21
Which 2nd (m) is the lowest one that has a Rank larger than 3, and a 1st (m) larger than 140.5?
CREATE TABLE "willingen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text );
SELECT MIN("2nd_m") FROM "willingen" WHERE "rank">3 AND "1st_m">140.5;
2-14407512-21
Which 2nd (m) has an Overall WC points (Rank) of 1632 (1), and Points larger than 273.5?
CREATE TABLE "willingen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text );
SELECT SUM("2nd_m") FROM "willingen" WHERE "overall_wc_points_rank"='1632 (1)' AND "points">273.5;
2-14407512-21
What is the highest number of wins associated with under 0 poles?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "points" text, "position" text );
SELECT MAX("wins") FROM "career_summary" WHERE "poles"<0;
2-13808686-1
How many poles did he have in 2006 with under 2 wins?
CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "points" text, "position" text );
SELECT "poles" FROM "career_summary" WHERE "season"='2006' AND "wins"<2;
2-13808686-1