question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Who directed the film Antonio's Breakfast?
CREATE TABLE "2005" ( "film" text, "director_s" text, "producer_s" text, "recipient" text, "date" text, "award" text );
SELECT "director_s" FROM "2005" WHERE "film"='antonio''s breakfast';
2-12181447-6
Who was the director of the film that Sister Films received an award for on 2/3/05?
CREATE TABLE "2005" ( "film" text, "director_s" text, "producer_s" text, "recipient" text, "date" text, "award" text );
SELECT "director_s" FROM "2005" WHERE "date"='2/3/05' AND "recipient"='sister films';
2-12181447-6
Name the least number with density more than 262 with population more than 22,415 and area less than 335.14
CREATE TABLE "statistics" ( "municipality" text, "number" real, "population" real, "area" real, "density" real );
SELECT MIN("number") FROM "statistics" WHERE "density">262 AND "population">'22,415' AND "area"<335.14;
2-1245658-3
What is the score of the game on June 9?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "score" FROM "game_log" WHERE "date"='june 9';
2-12207924-4
What is the usual attendance for july 2?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "game_log" WHERE "date"='july 2';
2-12209065-5
Which loss has Attendance more than 47,712, an Opponent of white sox, and a Record of 57–36?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "loss" FROM "game_log" WHERE "attendance">'47,712' AND "opponent"='white sox' AND "record"='57–36';
2-12209065-5
What was the value for deleted for CERCLIS ID of il0210090049?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "county" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "deleted" FROM "superfund_sites" WHERE "cerclis_id"='il0210090049';
2-12769819-1
What is the date construction is completed in Jo Daviess county?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "county" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "construction_completed" FROM "superfund_sites" WHERE "county"='jo daviess';
2-12769819-1
Role of narrator, and a Year larger than 2009, and a Release/Air Date of 7 october 2010 belongs to what author?
CREATE TABLE "radio_and_cd_audio_drama" ( "year" real, "role" text, "author" text, "radio_station_production_company" text, "release_air_date" text );
SELECT "author" FROM "radio_and_cd_audio_drama" WHERE "role"='narrator' AND "year">2009 AND "release_air_date"='7 october 2010';
2-1326831-5
Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?
CREATE TABLE "radio_and_cd_audio_drama" ( "year" real, "role" text, "author" text, "radio_station_production_company" text, "release_air_date" text );
SELECT SUM("year") FROM "radio_and_cd_audio_drama" WHERE "role"='narrator' AND "radio_station_production_company"='bbc audiobooks' AND "release_air_date"='13 november 2008';
2-1326831-5
Radio Station/Production Company that has a Role of interviewee & monologues is what radio station?
CREATE TABLE "radio_and_cd_audio_drama" ( "year" real, "role" text, "author" text, "radio_station_production_company" text, "release_air_date" text );
SELECT "radio_station_production_company" FROM "radio_and_cd_audio_drama" WHERE "role"='interviewee & monologues';
2-1326831-5
What was the position of the Racing Organisation Course team?
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 "team"='racing organisation course';
2-1235885-4
Who were the co-drivers for the Racing Organisation Course team in years before 2011, who had a position of DNF?
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 "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "pos"='dnf' AND "year"<2011 AND "team"='racing organisation course';
2-1235885-4
Who were the co-drivers in years after 2010?
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 "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "year">2010;
2-1235885-4
What is the date made that has an associated fleet number of 4?
CREATE TABLE "londonderry_and_lough_swilly_railway" ( "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" text, "date_withdrawn" text );
SELECT "date_made" FROM "londonderry_and_lough_swilly_railway" WHERE "fleet_numbers"='4';
2-1290024-13
What is the withdrawal date associated with a date made of 1904?
CREATE TABLE "londonderry_and_lough_swilly_railway" ( "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" text, "date_withdrawn" text );
SELECT "date_withdrawn" FROM "londonderry_and_lough_swilly_railway" WHERE "date_made"='1904';
2-1290024-13
Name the game site with result of l 7-38
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "game_site" FROM "schedule" WHERE "result"='l 7-38';
2-13258789-2
Name the result for arrowhead stadium
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "game_site"='arrowhead stadium';
2-13258789-2
Name the least attendance for opponent of new orleans saints and week more than 2
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT MIN("attendance") FROM "schedule" WHERE "week">2 AND "opponent"='new orleans saints';
2-13258789-2
What amount of earnings corresponds with a Top 10s rank of 23?
CREATE TABLE "pga_tour_career_summary" ( "year" text, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text );
SELECT "earnings" FROM "pga_tour_career_summary" WHERE "top_10s"=23;
2-12710384-6
What 2012 amount of earnings corresponds with less than 28 tournaments played?
CREATE TABLE "pga_tour_career_summary" ( "year" text, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text );
SELECT "earnings" FROM "pga_tour_career_summary" WHERE "tournaments_played"<28 AND "year"='2012';
2-12710384-6
Tell me the year with Laps less than 197 and start of 2
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "year" FROM "indy_500_results" WHERE "laps"<197 AND "start"='2';
2-1226454-1
Name the qual with start of totals
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "qual" FROM "indy_500_results" WHERE "start"='totals';
2-1226454-1
Name the total number of laps with rank of 8
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT COUNT("laps") FROM "indy_500_results" WHERE "rank"='8';
2-1226454-1
Name the start with Laps of 199 with qual of 224.838
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "start" FROM "indy_500_results" WHERE "laps"=199 AND "qual"='224.838';
2-1226454-1
On what date was the score 1-2 at Athens Olympic Stadium?
CREATE TABLE "national_team" ( "date" text, "venue" text, "score" text, "competition" text, "match_report" text );
SELECT "date" FROM "national_team" WHERE "score"='1-2' AND "venue"='athens olympic stadium';
2-12693076-19
What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November 17, 2007?
CREATE TABLE "national_team" ( "date" text, "venue" text, "score" text, "competition" text, "match_report" text );
SELECT "match_report" FROM "national_team" WHERE "competition"='euro2008q' AND "venue"='athens olympic stadium' AND "date"='november 17, 2007';
2-12693076-19
What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2?
CREATE TABLE "national_team" ( "date" text, "venue" text, "score" text, "competition" text, "match_report" text );
SELECT "match_report" FROM "national_team" WHERE "competition"='euro2008q' AND "venue"='athens olympic stadium' AND "score"='1-2';
2-12693076-19
On what date was the score 2-1?
CREATE TABLE "national_team" ( "date" text, "venue" text, "score" text, "competition" text, "match_report" text );
SELECT "date" FROM "national_team" WHERE "score"='2-1';
2-12693076-19
On what date was the Competition of Friendly held?
CREATE TABLE "national_team" ( "date" text, "venue" text, "score" text, "competition" text, "match_report" text );
SELECT "date" FROM "national_team" WHERE "competition"='friendly';
2-12693076-19
What was the score at Pankritio Stadium on June 6, 2007?
CREATE TABLE "national_team" ( "date" text, "venue" text, "score" text, "competition" text, "match_report" text );
SELECT "score" FROM "national_team" WHERE "venue"='pankritio stadium' AND "date"='june 6, 2007';
2-12693076-19
On what date was there a draw at Sydney Cricket Ground?
CREATE TABLE "west_indies_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );
SELECT "date" FROM "west_indies_in_australia" WHERE "result"='draw' AND "venue"='sydney cricket ground';
2-12410929-17
In what venue was the result a draw?
CREATE TABLE "west_indies_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );
SELECT "venue" FROM "west_indies_in_australia" WHERE "result"='draw';
2-12410929-17
On what date was the result Wi by 1 run?
CREATE TABLE "west_indies_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );
SELECT "date" FROM "west_indies_in_australia" WHERE "result"='wi by 1 run';
2-12410929-17
What venue had a draw?
CREATE TABLE "west_indies_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );
SELECT "venue" FROM "west_indies_in_australia" WHERE "result"='draw';
2-12410929-17
What is the total number of points for entrants with a Jordan 192 chassis?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real );
SELECT SUM("pts") FROM "complete_formula_one_results" WHERE "chassis"='jordan 192';
2-1226502-2
Which entrant had a chassis of March CG891?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real );
SELECT "entrant" FROM "complete_formula_one_results" WHERE "chassis"='march cg891';
2-1226502-2
What is the lowest number of points for an entrant with a Jordan 192 chassis?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real );
SELECT MIN("pts") FROM "complete_formula_one_results" WHERE "chassis"='jordan 192';
2-1226502-2
What Opponent has the Attendance of 14,029?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "attendance"='14,029';
2-12207900-2
Can you tell me the Attendance that has the Date of april 12?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "attendance" FROM "game_log" WHERE "date"='april 12';
2-12207900-2
Can you tell me the Score that has the Opponent of brewers, and the Attendance of 11,235?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "opponent"='brewers' AND "attendance"='11,235';
2-12207900-2
Can you tell me the Score that has the Attendance of 4,567?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "attendance"='4,567';
2-12207900-2
What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio?
CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );
SELECT "date" FROM "stage_results" WHERE "distance"='km (mi)' AND "course"='roccaraso to san giorgio del sannio';
2-12247789-1
Name the engine with entrant of larrousse f1
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT "engine" FROM "complete_formula_one_results" WHERE "entrant"='larrousse f1';
2-1219780-1
Name the average yeara for engine of renault v10 with points more than 4
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT AVG("year") FROM "complete_formula_one_results" WHERE "engine"='renault v10' AND "points">4;
2-1219780-1
Name the sumof points for year less than 1994 and chassis of lola lc89b
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT SUM("points") FROM "complete_formula_one_results" WHERE "year"<1994 AND "chassis"='lola lc89b';
2-1219780-1
Name the entrant for year more than 1991 and chassis of lotus 109
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT "entrant" FROM "complete_formula_one_results" WHERE "year">1991 AND "chassis"='lotus 109';
2-1219780-1
Name the sum of points for 1991
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT SUM("points") FROM "complete_formula_one_results" WHERE "year"=1991;
2-1219780-1
Which type has turin to monza as a course?
CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );
SELECT "type" FROM "stage_results" WHERE "course"='turin to monza';
2-12582434-1
Which course has km (mi) as a type?
CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );
SELECT "course" FROM "stage_results" WHERE "type"='km (mi)';
2-12582434-1
What winner has the sanremo to cuneo as the course?
CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text );
SELECT "winner" FROM "stage_results" WHERE "course"='sanremo to cuneo';
2-12582434-1
Name the distance for stage of 2
CREATE TABLE "schedule" ( "stage" text, "route" text, "distance" text, "date" text, "winner" text );
SELECT "distance" FROM "schedule" WHERE "stage"='2';
2-12608303-1
Name the route with winner of sébastien rosseler
CREATE TABLE "schedule" ( "stage" text, "route" text, "distance" text, "date" text, "winner" text );
SELECT "route" FROM "schedule" WHERE "winner"='sébastien rosseler';
2-12608303-1
Name the route for 170.8km distance
CREATE TABLE "schedule" ( "stage" text, "route" text, "distance" text, "date" text, "winner" text );
SELECT "route" FROM "schedule" WHERE "distance"='170.8km';
2-12608303-1
Name the date for luciano pagliarini
CREATE TABLE "schedule" ( "stage" text, "route" text, "distance" text, "date" text, "winner" text );
SELECT "date" FROM "schedule" WHERE "winner"='luciano pagliarini';
2-12608303-1
Name the date for mark cavendish
CREATE TABLE "schedule" ( "stage" text, "route" text, "distance" text, "date" text, "winner" text );
SELECT "date" FROM "schedule" WHERE "winner"='mark cavendish';
2-12608303-1
Name the laps for qual of 144.665
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT SUM("laps") FROM "indy_500_results" WHERE "qual"='144.665';
2-1252062-1
Name the total number of Laps for year of 1961
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT COUNT("laps") FROM "indy_500_results" WHERE "year"='1961';
2-1252062-1
Name the finish for start of 28
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "finish" FROM "indy_500_results" WHERE "start"='28';
2-1252062-1
Name the laps for rank of 14 and start of 16
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "laps" FROM "indy_500_results" WHERE "rank"='14' AND "start"='16';
2-1252062-1
Name the qual for year of 1960
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "qual" FROM "indy_500_results" WHERE "year"='1960';
2-1252062-1
What is the name of the player in position lb and an overall of 128?
CREATE TABLE "1980_raiders_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT "player" FROM "1980_raiders_draft_selections" WHERE "position"='lb' AND "overall"=128;
2-12337869-1
What is the total overall when Kenny Lewis is the player in a round after 5?
CREATE TABLE "1980_raiders_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT COUNT("overall") FROM "1980_raiders_draft_selections" WHERE "player"='kenny lewis' AND "round">5;
2-12337869-1
What is the college when the over is larger than 15 in round 7?
CREATE TABLE "1980_raiders_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT "college" FROM "1980_raiders_draft_selections" WHERE "overall">15 AND "round"=7;
2-12337869-1
What is the position with an overall less than 128 for Brigham Young college?
CREATE TABLE "1980_raiders_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT "position" FROM "1980_raiders_draft_selections" WHERE "overall"<128 AND "college"='brigham young';
2-12337869-1
How many attended the game on 4 February 2003?
CREATE TABLE "premier_league" ( "date" text, "opponents" text, "result_f_a" text, "attendance" real, "league_position" text );
SELECT AVG("attendance") FROM "premier_league" WHERE "date"='4 february 2003';
2-13167639-2
yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast?
CREATE TABLE "1997" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );
SELECT "auckland" FROM "1997" WHERE "sydney"='yes' AND "perth"='no' AND "melbourne"='yes' AND "gold_coast"='yes';
2-12230393-5
yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast?
CREATE TABLE "1997" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );
SELECT "adelaide" FROM "1997" WHERE "auckland"='no' AND "melbourne"='yes' AND "gold_coast"='yes';
2-12230393-5
yes or no for the gold coast with yes for melbourne, yes for adelaide, yes for auckland?
CREATE TABLE "1997" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );
SELECT "gold_coast" FROM "1997" WHERE "melbourne"='yes' AND "adelaide"='yes' AND "auckland"='yes';
2-12230393-5
yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland?
CREATE TABLE "1997" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );
SELECT "melbourne" FROM "1997" WHERE "gold_coast"='yes' AND "adelaide"='no' AND "auckland"='no';
2-12230393-5
yes or no for the sydney with yes for melbourne, no for perth, no for auckland and no for gold coast?
CREATE TABLE "1997" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );
SELECT "sydney" FROM "1997" WHERE "melbourne"='yes' AND "perth"='no' AND "auckland"='no' AND "gold_coast"='no';
2-12230393-5
yes or no for the melbourne that has no for adelaide, no for gold coast?
CREATE TABLE "1997" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text );
SELECT "melbourne" FROM "1997" WHERE "adelaide"='yes' AND "gold_coast"='no';
2-12230393-5
How many losses did the team with 0 wins and more than 72 runs allowed have?
CREATE TABLE "pool_a" ( "rank" real, "team" text, "wins" real, "losses" real, "runs_allowed" real, "run_ratio" real );
SELECT SUM("losses") FROM "pool_a" WHERE "wins"=0 AND "runs_allowed">72;
2-12825727-1
What is the lowest amount of losses the United States, ranked higher than 3 with more than 6 wins, have?
CREATE TABLE "pool_a" ( "rank" real, "team" text, "wins" real, "losses" real, "runs_allowed" real, "run_ratio" real );
SELECT MIN("losses") FROM "pool_a" WHERE "rank"<3 AND "team"='united states' AND "wins">6;
2-12825727-1
How many runs allowed did the team ranked 2 with more than 2 losses have?
CREATE TABLE "pool_a" ( "rank" real, "team" text, "wins" real, "losses" real, "runs_allowed" real, "run_ratio" real );
SELECT AVG("runs_allowed") FROM "pool_a" WHERE "rank"=2 AND "losses">2;
2-12825727-1
How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have?
CREATE TABLE "pool_a" ( "rank" real, "team" text, "wins" real, "losses" real, "runs_allowed" real, "run_ratio" real );
SELECT COUNT("wins") FROM "pool_a" WHERE "rank">1 AND "run_ratio"<5.85 AND "losses">4;
2-12825727-1
What is the highest run ratio Japan, which has less than 58 runs and 5 wins, have?
CREATE TABLE "pool_a" ( "rank" real, "team" text, "wins" real, "losses" real, "runs_allowed" real, "run_ratio" real );
SELECT MAX("run_ratio") FROM "pool_a" WHERE "runs_allowed"<58 AND "wins"=5 AND "team"='japan';
2-12825727-1
What is the average number of losses the team with less than 25 runs allowed and 5 wins have?
CREATE TABLE "pool_a" ( "rank" real, "team" text, "wins" real, "losses" real, "runs_allowed" real, "run_ratio" real );
SELECT AVG("losses") FROM "pool_a" WHERE "runs_allowed"<25 AND "wins"=5;
2-12825727-1
Which date has tigers as the opponent?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "date" FROM "game_log" WHERE "opponent"='tigers';
2-12207900-8
What loss has october 1 as the date?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "date"='october 1';
2-12207900-8
What year is listed that has points greater than 0 with a chassis labeled AGS JH22?
CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );
SELECT "year" FROM "complete_formula_one_results" WHERE "points">0 AND "chassis"='ags jh22';
2-1226665-1
What is the total points listed that includes P listed Tyres after 1986?
CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );
SELECT SUM("points") FROM "complete_formula_one_results" WHERE "tyres"='p' AND "year">1986;
2-1226665-1
What point is the lowest for listings of chassis labeled AGS JH23 before 1988?
CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );
SELECT MIN("points") FROM "complete_formula_one_results" WHERE "chassis"='ags jh23' AND "year"<1988;
2-1226665-1
What is the total point for the year listed in 1988?
CREATE TABLE "complete_formula_one_results" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );
SELECT SUM("points") FROM "complete_formula_one_results" WHERE "year"=1988;
2-1226665-1
What was the attendance on August 2?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT MAX("attendance") FROM "game_log" WHERE "date"='august 2';
2-12206178-6
Which opponent lost with pitcher Kinney (0-1)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "loss"='kinney (0-1)';
2-12206178-6
What was the attendance on August 23?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT COUNT("attendance") FROM "game_log" WHERE "date"='august 23';
2-12206178-6
What is the highest wins a tournament with 3 cuts and more than 4 events has?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "events" real, "cuts_made" real );
SELECT MAX("wins") FROM "summary" WHERE "cuts_made"=3 AND "events">4;
2-12884799-4
What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "events" real, "cuts_made" real );
SELECT MIN("events") FROM "summary" WHERE "top_10">1 AND "wins">0;
2-12884799-4
How many laps did the 6th placed in 1998 complete?
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 SUM("laps") FROM "24_hours_of_le_mans_results" WHERE "pos"='6th' AND "year"=1998;
2-1226465-2
What position did the 5th place team after 1992 with over 346 laps finish in?
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 "class_pos"='5th' AND "year">1992 AND "laps">346;
2-1226465-2
What team was c1 class, had over 331 laps after 1990?
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 "class"='c1' AND "laps">331 AND "year">1990;
2-1226465-2
What class did eddie cheever raul boesel race in?
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 "class" FROM "24_hours_of_le_mans_results" WHERE "co_drivers"='eddie cheever raul boesel';
2-1226465-2
What's the lowest rank of a player who played in 2012?
CREATE TABLE "wins_over_top_10_players_per_season" ( "player" text, "rank" real, "event" text, "surface" text, "score" text );
SELECT MIN("rank") FROM "wins_over_top_10_players_per_season" WHERE "event"='2012';
2-12509095-16
What player has the rank 2011?
CREATE TABLE "wins_over_top_10_players_per_season" ( "player" text, "rank" real, "event" text, "surface" text, "score" text );
SELECT "player" FROM "wins_over_top_10_players_per_season" WHERE "rank"=2011;
2-12509095-16
What was the score of the match played on hard with a person ranked 10?
CREATE TABLE "wins_over_top_10_players_per_season" ( "player" text, "rank" real, "event" text, "surface" text, "score" text );
SELECT "score" FROM "wins_over_top_10_players_per_season" WHERE "surface"='hard' AND "rank"=10;
2-12509095-16
What females speak Romanian?
CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text );
SELECT "females" FROM "language" WHERE "language"='romanian';
2-12334051-1
What females have males of 1 234?
CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text );
SELECT "females" FROM "language" WHERE "males"='1 234';
2-12334051-1
What males speak Polish?
CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text );
SELECT "males" FROM "language" WHERE "language"='polish';
2-12334051-1
What is the number of males 977 948?
CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text );
SELECT "number" FROM "language" WHERE "males"='977 948';
2-12334051-1