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 To par when the score was 72-67-68-71=278?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "to_par" FROM "final_round" WHERE "score"='72-67-68-71=278';
2-17231125-7
What is the Place when Steve Pate was the player?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "place" FROM "final_round" WHERE "player"='steve pate';
2-17231125-7
What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?
CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );
SELECT MIN("diameter_km") FROM "dorsa" WHERE "year_named"=1997 AND "longitude"='212.0e' AND "latitude"='47.0n';
2-16799784-14
What's the latitude when the longitude is 152.0e later than 1997?
CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );
SELECT "latitude" FROM "dorsa" WHERE "year_named">1997 AND "longitude"='152.0e';
2-16799784-14
What's the diameter when longitude is 105.0e before 2003?
CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );
SELECT SUM("diameter_km") FROM "dorsa" WHERE "longitude"='105.0e' AND "year_named"<2003;
2-16799784-14
What's the average year for the name aida-wedo dorsa with a diameter less than 450?
CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );
SELECT AVG("year_named") FROM "dorsa" WHERE "name"='aida-wedo dorsa' AND "diameter_km"<450;
2-16799784-14
What's the total diameter when longitude is 357.8e later than 1985?
CREATE TABLE "dorsa" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );
SELECT COUNT("diameter_km") FROM "dorsa" WHERE "longitude"='357.8e' AND "year_named">1985;
2-16799784-14
what is the average 65 to 69 when the oblast\age is belgorod and 40 to 44 is more than 1,906?
CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );
SELECT AVG("65_to_69") FROM "2_ukrainians" WHERE "oblast_age"='belgorod' AND "40_to_44">'1,906';
2-16457934-2
what is the average 60 to 64 when 50 to 54 is less than 2,054, 35 to 39 is more than 1,704, 30 to 34 is less than 1,381 and oblast\age is evenkia?
CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );
SELECT AVG("60_to_64") FROM "2_ukrainians" WHERE "50_to_54"<'2,054' AND "35_to_39">'1,704' AND "30_to_34"<'1,381' AND "oblast_age"='evenkia';
2-16457934-2
How many times is 55 to 59 less than 1,677, oblast\age is gorod moscow and 50 to 54 is more than 1,562?
CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );
SELECT COUNT("c_w_15") FROM "2_ukrainians" WHERE "55_to_59"<'1,677' AND "oblast_age"='gorod moscow' AND "50_to_54">'1,562';
2-16457934-2
what is the average c/w 15+ when 18 to 19 is 132 and 65 to 69 is more than 1,869?
CREATE TABLE "2_ukrainians" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" text, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );
SELECT AVG("c_w_15") FROM "2_ukrainians" WHERE "18_to_19"='132' AND "65_to_69">'1,869';
2-16457934-2
In what year was Lesli Margherita nominated?
CREATE TABLE "original_london_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT SUM("year") FROM "original_london_production" WHERE "nominee"='lesli margherita';
2-17143308-1
Who was nominated for Best Theatre Choreographer?
CREATE TABLE "original_london_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT "nominee" FROM "original_london_production" WHERE "category"='best theatre choreographer';
2-17143308-1
What hometown was FR Year, and ha Brown's Gymnastics club?
CREATE TABLE "current_roster_2014" ( "name" text, "height" text, "year" text, "hometown" text, "club" text );
SELECT "hometown" FROM "current_roster_2014" WHERE "year"='fr' AND "club"='brown''s gymnastics';
2-17617256-1
What year was Asi Peko?
CREATE TABLE "current_roster_2014" ( "name" text, "height" text, "year" text, "hometown" text, "club" text );
SELECT "year" FROM "current_roster_2014" WHERE "name"='asi peko';
2-17617256-1
What is the height for the Oakville Gymnastics Club?
CREATE TABLE "current_roster_2014" ( "name" text, "height" text, "year" text, "hometown" text, "club" text );
SELECT "height" FROM "current_roster_2014" WHERE "club"='oakville gymnastics club';
2-17617256-1
when was the loan ended when the loan club is spartak moscow?
CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text );
SELECT "ended" FROM "loans_in" WHERE "loan_club"='spartak moscow';
2-17596418-5
What is the loan start source when the loan club is fulham?
CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text );
SELECT "start_source" FROM "loans_in" WHERE "loan_club"='fulham';
2-17596418-5
When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?
CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text );
SELECT "started" FROM "loans_in" WHERE "country"='eng' AND "loan_club"='sunderland' AND "end_source"='south wales echo';
2-17596418-5
when was the loan ended when the country is ghana?
CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text );
SELECT "ended" FROM "loans_in" WHERE "country"='ghana';
2-17596418-5
what is the loan club with the start source is bbc sport and started on 9 february?
CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text );
SELECT "loan_club" FROM "loans_in" WHERE "start_source"='bbc sport' AND "started"='9 february';
2-17596418-5
what is the start source when started on 2 february?
CREATE TABLE "loans_in" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text );
SELECT "start_source" FROM "loans_in" WHERE "started"='2 february';
2-17596418-5
What is the lowest Finished, when Post is less than 2?
CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text );
SELECT MIN("finished") FROM "post_positions" WHERE "post"<2;
2-17232312-2
What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"?
CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text );
SELECT "owner" FROM "post_positions" WHERE "finished"<15 AND "trainer"='steve asmussen' AND "horse"='z fortune';
2-17232312-2
What is the Time/ Behind, when Jockey is "Jose Lezcano"?
CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text );
SELECT "time_behind" FROM "post_positions" WHERE "jockey"='jose lezcano';
2-17232312-2
What is Jockey, when Post is 12?
CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text );
SELECT "jockey" FROM "post_positions" WHERE "post"=12;
2-17232312-2
What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?
CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text );
SELECT COUNT("post") FROM "post_positions" WHERE "trainer"='steve asmussen' AND "time_behind"='19 ½';
2-17232312-2
What is Jockey, when Horse is "Eight Belles"?
CREATE TABLE "post_positions" ( "finished" real, "time_behind" text, "post" real, "horse" text, "jockey" text, "trainer" text, "owner" text );
SELECT "jockey" FROM "post_positions" WHERE "horse"='eight belles';
2-17232312-2
Who is the team captain of the Guldensporen Stadion with a stadium capacity larger than 12,919?
CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real );
SELECT "team_captain" FROM "overview" WHERE "capacity">'12,919' AND "stadium"='guldensporen stadion';
2-17260623-1
Who is the team captain of Regenboogstadion?
CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real );
SELECT "team_captain" FROM "overview" WHERE "stadium"='regenboogstadion';
2-17260623-1
Who is the current manager of the team located in tubize?
CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real );
SELECT "current_manager" FROM "overview" WHERE "location"='tubize';
2-17260623-1
Where is the location of the team with a current manager of Ariel Jacobs?
CREATE TABLE "overview" ( "club" text, "location" text, "current_manager" text, "team_captain" text, "stadium" text, "capacity" real );
SELECT "location" FROM "overview" WHERE "current_manager"='ariel jacobs';
2-17260623-1
What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?
CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text );
SELECT "victory_margin_in_lengths" FROM "race_data" WHERE "finish"='1st' AND "jockey"='kent desormeaux' AND "time"='1:35.66';
2-16689920-1
What was the time of the Kentucky Derby?
CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text );
SELECT "time" FROM "race_data" WHERE "race"='kentucky derby';
2-16689920-1
What was the finish of the Kentucky Derby?
CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text );
SELECT "finish" FROM "race_data" WHERE "race"='kentucky derby';
2-16689920-1
Which race had a finish of 1st at Saratoga Race Course?
CREATE TABLE "race_data" ( "finish" text, "race" text, "distance" text, "jockey" text, "time" text, "victory_margin_in_lengths" text, "runner_up" text, "track" text, "surface" text, "date" text );
SELECT "race" FROM "race_data" WHERE "finish"='1st' AND "track"='saratoga race course';
2-16689920-1
Who was the player in 1981?
CREATE TABLE "winners" ( "year" text, "player" text, "team" text, "league" text, "position" text );
SELECT "player" FROM "winners" WHERE "year"='1981';
2-1742861-2
What is the team for 1976?
CREATE TABLE "winners" ( "year" text, "player" text, "team" text, "league" text, "position" text );
SELECT "team" FROM "winners" WHERE "year"='1976';
2-1742861-2
What is the opponent for the date of august 5?
CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );
SELECT "opponent" FROM "preseason" WHERE "date"='august 5';
2-16982985-1
What is the result for the date of august 23?
CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );
SELECT "result" FROM "preseason" WHERE "date"='august 23';
2-16982985-1
When the opponent is houston oilers what is the result?
CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "result" text, "record" text );
SELECT "result" FROM "preseason" WHERE "opponent"='houston oilers';
2-16982985-1
Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?
CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real );
SELECT AVG("goals_against") FROM "final_table" WHERE "drawn">9 AND "lost">15 AND "position"=24 AND "played"<46;
2-17359181-1
Which Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45?
CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real );
SELECT SUM("points_2") FROM "final_table" WHERE "drawn"=15 AND "position">20 AND "goals_for"<45;
2-17359181-1
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?
CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real );
SELECT MAX("goals_for") FROM "final_table" WHERE "position">2 AND "lost">18 AND "team"='matlock town' AND "goals_against">79;
2-17359181-1
Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?
CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" real, "points_2" real );
SELECT SUM("points_2") FROM "final_table" WHERE "goal_average_1">1.17 AND "goals_against">48 AND "position">6;
2-17359181-1
What is the 1986 value with A in 1991 and A in 1987?
CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text );
SELECT "1986" FROM "singles" WHERE "1991"='a' AND "1987"='a';
2-1723532-3
What is the 1995 value with A in 1986 and 2r in 1992?
CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text );
SELECT "1995" FROM "singles" WHERE "1986"='a' AND "1992"='2r';
2-1723532-3
What is the 1989 value with F in 1990?
CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text );
SELECT "1989" FROM "singles" WHERE "1990"='f';
2-1723532-3
What is the 1987 value of the 1994 atp masters series?
CREATE TABLE "singles" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text );
SELECT "1987" FROM "singles" WHERE "1994"='atp masters series';
2-1723532-3
What is the lowest round that a pick had a position of ls?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "position"='ls';
2-17100961-73
What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "position"='ls' AND "overall">230;
2-17100961-73
WHAT IS THE VENUE ON MARCH 28, 2008?
CREATE TABLE "chinese_taipei_women_s_national_football" ( "date" text, "venue" text, "score" text, "competition" text, "report" text );
SELECT "venue" FROM "chinese_taipei_women_s_national_football" WHERE "date"='march 28, 2008';
2-17016499-7
How many were in Attendance on October 8?
CREATE TABLE "houston_astros_vs_new_york_mets" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real );
SELECT COUNT("attendance") FROM "houston_astros_vs_new_york_mets" WHERE "date"='october 8';
2-1703724-1
In what Game was the Attendance more than 45,718 with a Time of 2:55?
CREATE TABLE "houston_astros_vs_new_york_mets" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real );
SELECT COUNT("game") FROM "houston_astros_vs_new_york_mets" WHERE "attendance">'45,718' AND "time"='2:55';
2-1703724-1
What is the Location of the Game on October 8?
CREATE TABLE "houston_astros_vs_new_york_mets" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real );
SELECT "location" FROM "houston_astros_vs_new_york_mets" WHERE "date"='october 8';
2-1703724-1
What is the nationality for the player with over 64 goals?
CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" real, "transfer_fee" text );
SELECT "nat" FROM "squad_information" WHERE "goals">64;
2-17438913-1
What was the score of the game where Philadelphia was the visitor?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT "score" FROM "game_log" WHERE "visitor"='philadelphia';
2-17301013-2
What are the average spectators from the Group H Round?
CREATE TABLE "2006_fifa_world_cup" ( "date" text, "time_cet" real, "res" text, "round" text, "spectators" real );
SELECT AVG("spectators") FROM "2006_fifa_world_cup" WHERE "round"='group h';
2-1640212-1
Can you tell me the Manufacturer that has the Rider of stefan bradl?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT "manufacturer" FROM "125cc_classification" WHERE "rider"='stefan bradl';
2-16193402-3
Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger than 23?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MAX("grid") FROM "125cc_classification" WHERE "time"='+15.532' AND "laps">23;
2-16193402-3
Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23?
CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT SUM("grid") FROM "125cc_classification" WHERE "time"='+6.355' AND "laps">23;
2-16193402-3
What is Time, when Location is "Savannah, Georgia , United States"?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "location"='savannah, georgia , united states';
2-17408152-2
What is the total number of Round(s), when Time is "N/A", when Location is "Alabama , United States", and when Record is "1-2-0"?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "round" real, "time" text, "location" text );
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "time"='n/a' AND "location"='alabama , united states' AND "record"='1-2-0';
2-17408152-2
Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?
CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text );
SELECT "retitled_as_same" FROM "programs_returning_in_1987" WHERE "last_aired">1982 AND "show"='we got it made';
2-169743-3
Which New/Returning/Same Network has a Last Aired of 1982?
CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text );
SELECT "new_returning_same_network" FROM "programs_returning_in_1987" WHERE "last_aired"=1982;
2-169743-3
Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters?
CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text );
SELECT "new_returning_same_network" FROM "programs_returning_in_1987" WHERE "previous_network"='nbc' AND "show"='blockbusters';
2-169743-3
Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?
CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text );
SELECT "new_returning_same_network" FROM "programs_returning_in_1987" WHERE "retitled_as_same"='same' AND "last_aired">1984;
2-169743-3
Which Last Aired has a Retitled as/Same of classic concentration?
CREATE TABLE "programs_returning_in_1987" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text );
SELECT "last_aired" FROM "programs_returning_in_1987" WHERE "retitled_as_same"='classic concentration';
2-169743-3
How many rounds had a race name of anglia tv trophy?
CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text );
SELECT COUNT("round") FROM "races" WHERE "name"='anglia tv trophy';
2-17103078-1
What circuit was the race named international trophy raced at by the winning driver eliseo salazar?
CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text );
SELECT "circuit" FROM "races" WHERE "winning_driver"='eliseo salazar' AND "name"='international trophy';
2-17103078-1
What circuit did emilio de villota win on at the pace petroleum trophy?
CREATE TABLE "races" ( "round" real, "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_car" text );
SELECT "circuit" FROM "races" WHERE "winning_driver"='emilio de villota' AND "name"='pace petroleum trophy';
2-17103078-1
What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "to_par" FROM "final_round" WHERE "country"='united states' AND "place"='t6' AND "score"='70-73-68-73=284';
2-17277114-3
Who is the player from Australia with a to par of +5?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_round" WHERE "to_par"='+5' AND "country"='australia';
2-17277114-3
What is the highest amount of money a player with a score of 69-71-71-73=284 has?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT MAX("money") FROM "final_round" WHERE "score"='69-71-71-73=284';
2-17277114-3
What is the time of the match with 3 rounds and a 9-3 record?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "record"='9-3';
2-17442303-2
What is the method of the match with a win res., 1 round, and a 3-2 record?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "round"=1 AND "record"='3-2';
2-17442303-2
Who was the sports agent who finished 9th?
CREATE TABLE "contestants" ( "name" text, "occupation" text, "hometown" text, "season" text, "finish" text );
SELECT "name" FROM "contestants" WHERE "finish"='9th' AND "occupation"='sports agent';
2-16974129-1
What is the lowest score that wes ellis got?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT MIN("score") FROM "first_round" WHERE "player"='wes ellis';
2-17290135-1
What was the score for the player from the United states that was +1 to par?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "score" FROM "first_round" WHERE "to_par"='+1' AND "country"='united states';
2-17290135-1
Who was the player who placed t10?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "player" FROM "first_round" WHERE "place"='t10';
2-17290135-1
How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "to_par" FROM "first_round" WHERE "country"='united states' AND "score"<72 AND "place"='t3' AND "player"='ed furgol';
2-17290135-1
What game was played at Philadelphia?
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 AVG("game") FROM "game_log" WHERE "team"='philadelphia';
2-17058151-6
What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?
CREATE TABLE "tv_ratings" ( "order" text, "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_night" real, "rank_timeslot" real, "rank_week" real );
SELECT SUM("share") FROM "tv_ratings" WHERE "rating">1.2 AND "rank_timeslot"=3 AND "viewers_millions"=6.07;
2-17405932-2
What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?
CREATE TABLE "tv_ratings" ( "order" text, "episode" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_millions" real, "rank_night" real, "rank_timeslot" real, "rank_week" real );
SELECT AVG("rank_week") FROM "tv_ratings" WHERE "rating"=1.2 AND "viewers_millions"<1.94 AND "rank_night"<11;
2-17405932-2
what is the round when the college is syracuse and the pick is less than 3?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT AVG("round") FROM "washington_redskins_draft_history" WHERE "college"='syracuse' AND "pick"<3;
2-17100961-25
what is the position when the pick is more than 2, the overall is more than 28 and the college is nebraska?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "position" FROM "washington_redskins_draft_history" WHERE "pick">2 AND "overall">28 AND "college"='nebraska';
2-17100961-25
what is the pick when the college is arkansas and the overall is more than 316?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "college"='arkansas' AND "overall">316;
2-17100961-25
what is the lowest overall when the pick is less than 2?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "pick"<2;
2-17100961-25
what is the round when the college is north carolina and the overall is more than 124?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "college"='north carolina' AND "overall">124;
2-17100961-25
October 28, 2001 was what week of the season?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text );
SELECT "week" FROM "schedule" WHERE "date"='october 28, 2001';
2-16353025-1
What was the result of week 11?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text );
SELECT "result" FROM "schedule" WHERE "week"=11;
2-16353025-1
What was the date of a week larger than 16?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text );
SELECT "date" FROM "schedule" WHERE "week">16;
2-16353025-1
November 25, 2001 was what week of the season?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text );
SELECT COUNT("week") FROM "schedule" WHERE "date"='november 25, 2001';
2-16353025-1
Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?
CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text );
SELECT "wheels" FROM "electric_locomotives" WHERE "built"<1958 AND "location"='york' AND "railway"='nsr';
2-17477462-8
Which Built has a Builder of brel crewe?
CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text );
SELECT AVG("built") FROM "electric_locomotives" WHERE "builder"='brel crewe';
2-17477462-8
Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006?
CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text );
SELECT "railway" FROM "electric_locomotives" WHERE "location"='shildon' AND "object_number"='1978-7006';
2-17477462-8
Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?
CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text );
SELECT "railway" FROM "electric_locomotives" WHERE "location"='shildon' AND "object_number"='1975-7022';
2-17477462-8
Which Location has an ObjectNumber of 2005-7698?
CREATE TABLE "electric_locomotives" ( "railway" text, "builder" text, "built" real, "wheels" text, "location" text, "object_number" text );
SELECT "location" FROM "electric_locomotives" WHERE "object_number"='2005-7698';
2-17477462-8
What is the Club during the Years 1995–1996?
CREATE TABLE "notable_former_players" ( "name" text, "club" text, "position" text, "years" text, "current_status" text );
SELECT "club" FROM "notable_former_players" WHERE "years"='1995–1996';
2-17095332-1
In what Years was the Player in MF Position?
CREATE TABLE "notable_former_players" ( "name" text, "club" text, "position" text, "years" text, "current_status" text );
SELECT "years" FROM "notable_former_players" WHERE "position"='mf';
2-17095332-1