question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which team has driven 134 laps?
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 "laps"=134;
2-1628448-4
In what class is the laps greater than 134 and the position is 4th?
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 "laps">134 AND "pos"='4th';
2-1628448-4
What title did Mentuhotep IV have?
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='mentuhotep iv';
2-17606888-1
What is the title of Amenemhat II?
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='amenemhat ii';
2-17606888-1
What is the title of Senusret I?
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='senusret i';
2-17606888-1
What is the title of Amenemhat I?
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='amenemhat i';
2-17606888-1
What is the type shown from 1991 bc?
CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "type" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='1991 bc';
2-17606888-1
What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"=5 AND "time"='5:00' AND "opponent"='torrance taylor';
2-17441450-2
What is the method when the time was 5:00, and the round higher than 4?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "round">4;
2-17441450-2
When the others had a value of 7%, what was the Polling organisation/client?
CREATE TABLE "opinion_polls" ( "date_s_conducted" text, "polling_organisation_client" text, "conservatives" text, "labour" text, "liberal_democrats" text, "others" text );
SELECT "polling_organisation_client" FROM "opinion_polls" WHERE "others"='7%';
2-16707963-2
What player plays the position of small forward?
CREATE TABLE "d" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text );
SELECT "player" FROM "d" WHERE "position"='small forward';
2-16494599-4
What is the latitude of the 0 diameter?
CREATE TABLE "tholi" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" text );
SELECT "latitude" FROM "tholi" WHERE "diameter_km"=0;
2-16799784-4
What is the longitude of Angerona Tholus?
CREATE TABLE "tholi" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" text );
SELECT "longitude" FROM "tholi" WHERE "name"='angerona tholus';
2-16799784-4
What is the smallest diameter for Eirene Tholus?
CREATE TABLE "tholi" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" text );
SELECT MIN("diameter_km") FROM "tholi" WHERE "name"='eirene tholus';
2-16799784-4
What was the game on April 25?
CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text );
SELECT MIN("game") FROM "playoffs" WHERE "date"='april 25';
2-17288845-11
what is the event when 2011-12 is n/a?
CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "event" FROM "grand_slam_record" WHERE "2011_12"='n/a';
2-16590039-3
what is the event when 2009-10 is dnp?
CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "event" FROM "grand_slam_record" WHERE "2009_10"='dnp';
2-16590039-3
what is the event when 2006-07 is dnp?
CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "event" FROM "grand_slam_record" WHERE "2006_07"='dnp';
2-16590039-3
what is 2012-13 when 2011-12 is dnp and event is autumn gold?
CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "2012_13" FROM "grand_slam_record" WHERE "2011_12"='dnp' AND "event"='autumn gold';
2-16590039-3
what is 2012-13 when 2011-12 is dnp and 2006-07 is dnp and 2010-11 is q?
CREATE TABLE "grand_slam_record" ( "event" text, "2006_07" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );
SELECT "2012_13" FROM "grand_slam_record" WHERE "2011_12"='dnp' AND "2006_07"='dnp' AND "2010_11"='q';
2-16590039-3
what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84?
CREATE TABLE "twenty20_internationals" ( "player" text, "wkts" real, "runs" real, "econ" real, "ovrs" real );
SELECT SUM("wkts") FROM "twenty20_internationals" WHERE "ovrs">2 AND "econ">7.84;
2-16840834-7
What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2?
CREATE TABLE "twenty20_internationals" ( "player" text, "wkts" real, "runs" real, "econ" real, "ovrs" real );
SELECT SUM("runs") FROM "twenty20_internationals" WHERE "ovrs"<2 AND "wkts">0;
2-16840834-7
What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs?
CREATE TABLE "twenty20_internationals" ( "player" text, "wkts" real, "runs" real, "econ" real, "ovrs" real );
SELECT MAX("wkts") FROM "twenty20_internationals" WHERE "runs"<26 AND "player"='james hopes' AND "ovrs">2;
2-16840834-7
What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets?
CREATE TABLE "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" real, "profits_billion" real, "assets_billion" real, "market_value_billion" real );
SELECT AVG("sales_billion") FROM "2012_list" WHERE "headquarters"='france' AND "assets_billion">'2,539.1';
2-1682026-2
What is the average sales in billions of walmart, which has more than 15.7 billion in profits?
CREATE TABLE "2012_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" real, "profits_billion" real, "assets_billion" real, "market_value_billion" real );
SELECT AVG("sales_billion") FROM "2012_list" WHERE "company"='walmart' AND "profits_billion">15.7;
2-1682026-2
What is the rider when the grid is 21?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT "rider" FROM "moto_gp_classification" WHERE "grid"=21;
2-17052183-1
What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "rider"='garry mccoy' AND "grid"<4;
2-17052183-1
What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("laps") FROM "moto_gp_classification" WHERE "rider"='andrew pitt' AND "grid"<18;
2-17052183-1
What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("laps") FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "time_retired"='+1:08.312' AND "grid"<20;
2-17052183-1
What event had a tko (punches) method and jason macdonald as the opponent?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='tko (punches)' AND "opponent"='jason macdonald';
2-17442572-2
What is the opponent after round number 1 with a method of decision (unanimous)?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round">1 AND "method"='decision (unanimous)';
2-17442572-2
Who is the partnering that had the opponents of Marcelo Melo André Sá?
CREATE TABLE "doubles_runner_ups_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_final" text, "score_in_final" text );
SELECT "partnering" FROM "doubles_runner_ups_5" WHERE "opponents_in_final"='marcelo melo andré sá';
2-1723598-5
What was the score on February 14, 1999?
CREATE TABLE "doubles_runner_ups_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_final" text, "score_in_final" text );
SELECT "score_in_final" FROM "doubles_runner_ups_5" WHERE "date"='february 14, 1999';
2-1723598-5
What date was the score 6–7(9), 6–2, (10–7)?
CREATE TABLE "doubles_runner_ups_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_final" text, "score_in_final" text );
SELECT "date" FROM "doubles_runner_ups_5" WHERE "score_in_final"='6–7(9), 6–2, (10–7)';
2-1723598-5
What is the lowest value for Sydney, when Perth is less than 169,000, and when NIGHTLY RANK is less than 5?
CREATE TABLE "ratings" ( "episode_number_production_number" text, "title" text, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real, "nightly_rank" real );
SELECT MIN("sydney") FROM "ratings" WHERE "perth"<'169,000' AND "nightly_rank"<5;
2-17004532-3
What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?
CREATE TABLE "ratings" ( "episode_number_production_number" text, "title" text, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real, "nightly_rank" real );
SELECT MIN("sydney") FROM "ratings" WHERE "weekly_rank"<8 AND "brisbane">'252,000';
2-17004532-3
What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000?
CREATE TABLE "ratings" ( "episode_number_production_number" text, "title" text, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real, "nightly_rank" real );
SELECT SUM("melbourne") FROM "ratings" WHERE "episode_number_production_number"='19 2-06' AND "sydney"<'389,000';
2-17004532-3
What is the lowest value for Perth, when Melbourne is greater than 461,000, and when Sydney is less than 430,000?
CREATE TABLE "ratings" ( "episode_number_production_number" text, "title" text, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" real, "nightly_rank" real );
SELECT MIN("perth") FROM "ratings" WHERE "melbourne">'461,000' AND "sydney"<'430,000';
2-17004532-3
How many rounds had a time of 5:00 at UFC 155?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "event"='ufc 155';
2-17440144-2
Which event had a time of 2:34?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='2:34';
2-17440144-2
Who was the opponent in the bout that led to a win in a time of 1:21?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "time"='1:21';
2-17440144-2
What is the method of resolution for the fight against akihiro gono?
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 "opponent"='akihiro gono';
2-17445508-2
What is the average number of rounds that Lance Gibson fought when his record was 1-1?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "record"='1-1';
2-17445508-2
What is the Country of the Player with a Score of 69-71-66=206?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "third_round" WHERE "score"='69-71-66=206';
2-17162228-6
What is the Place of the Player from Scotland?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "country"='scotland';
2-17162228-6
What is Steve Lowery's Place?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "player"='steve lowery';
2-17162228-6
What was 1961's qual?
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"='1961';
2-16564-3
What was 13's finish?
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"='13';
2-16564-3
How many laps were in 1969?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "laps" FROM "indy_500_results" WHERE "year"='1969';
2-16564-3
Which Rank has a Qual of 145.144?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "rank" FROM "indy_500_results" WHERE "qual"='145.144';
2-16564-3
What is the sources for Bandung?
CREATE TABLE "largest_urban_areas_ranked_by_2010_proje" ( "rank" real, "city" text, "country" text, "population" real, "area_km" real, "sources_of_pop_area" text );
SELECT "sources_of_pop_area" FROM "largest_urban_areas_ranked_by_2010_proje" WHERE "city"='bandung';
2-16478687-3
What race happened at Iowa Speedway?
CREATE TABLE "results" ( "date" text, "race" text, "track" text, "winner" text, "reports" text );
SELECT "race" FROM "results" WHERE "track"='iowa speedway';
2-16919628-2
Who won the Food World 250?
CREATE TABLE "results" ( "date" text, "race" text, "track" text, "winner" text, "reports" text );
SELECT "winner" FROM "results" WHERE "race"='food world 250';
2-16919628-2
What race happened at pocono on 08-02-2008?
CREATE TABLE "results" ( "date" text, "race" text, "track" text, "winner" text, "reports" text );
SELECT "race" FROM "results" WHERE "track"='pocono' AND "date"='08-02-2008';
2-16919628-2
What race happened on 04-25-2008?
CREATE TABLE "results" ( "date" text, "race" text, "track" text, "winner" text, "reports" text );
SELECT "race" FROM "results" WHERE "date"='04-25-2008';
2-16919628-2
Where was the race on 09-13-2008?
CREATE TABLE "results" ( "date" text, "race" text, "track" text, "winner" text, "reports" text );
SELECT "track" FROM "results" WHERE "date"='09-13-2008';
2-16919628-2
Which game number was played after March 11 and ended with a record of 26-30-10?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='26-30-10' AND "march">11;
2-17311466-7
How many games total were played against @ Boston Bruins this season?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT SUM("game") FROM "schedule_and_results" WHERE "opponent"='@ boston bruins';
2-17311466-7
When was the earliest game date in March where the match ended with a record of 25-29-10?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT MIN("march") FROM "schedule_and_results" WHERE "record"='25-29-10';
2-17311466-7
How many points when John Vopni won a season before 1977?
CREATE TABLE "mjhl_scoring_champions" ( "season" real, "winner" text, "team" text, "goals" text, "assists" text, "points" text );
SELECT "points" FROM "mjhl_scoring_champions" WHERE "season"<1977 AND "winner"='john vopni';
2-17452590-1
How many points when Bill Benson was the winner?
CREATE TABLE "mjhl_scoring_champions" ( "season" real, "winner" text, "team" text, "goals" text, "assists" text, "points" text );
SELECT "points" FROM "mjhl_scoring_champions" WHERE "winner"='bill benson';
2-17452590-1
Which team did Tyson Chandler (7) have high rebounds for?
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 "team" FROM "game_log" WHERE "high_rebounds"='tyson chandler (7)';
2-17288861-5
How many high assists were on November 27?
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 "high_assists" FROM "game_log" WHERE "date"='november 27';
2-17288861-5
What was the winning score in 1980?
CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_up" text );
SELECT "winning_score" FROM "wins_6" WHERE "year"=1980;
2-1628851-4
What was the winning score in 1985 for Championship of u.s. women's open?
CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_up" text );
SELECT "winning_score" FROM "wins_6" WHERE "year"<1985 AND "championship"='u.s. women''s open';
2-1628851-4
When was the runner-up Jane Geddes?
CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_up" text );
SELECT "year" FROM "wins_6" WHERE "runner_up"='jane geddes';
2-1628851-4
Which championship after 1985 had a winning score of –8 (68-72-69-71=280)?
CREATE TABLE "wins_6" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_up" text );
SELECT "championship" FROM "wins_6" WHERE "year">1985 AND "winning_score"='–8 (68-72-69-71=280)';
2-1628851-4
What was the method of resolution for the fight against jake brown?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='jake brown';
2-17440187-2
On what team did John Bowe round winner at Winton Motor Raceway belong to?
CREATE TABLE "race_calendar" ( "circuit" text, "location_state" text, "date" text, "round_winner" text, "team" text );
SELECT "team" FROM "race_calendar" WHERE "round_winner"='john bowe' AND "circuit"='winton motor raceway';
2-16452451-2
What was the team features at Oran Park Raceway?
CREATE TABLE "race_calendar" ( "circuit" text, "location_state" text, "date" text, "round_winner" text, "team" text );
SELECT "team" FROM "race_calendar" WHERE "circuit"='oran park raceway';
2-16452451-2
Where is the Eastern Creek Raceway located?
CREATE TABLE "race_calendar" ( "circuit" text, "location_state" text, "date" text, "round_winner" text, "team" text );
SELECT "location_state" FROM "race_calendar" WHERE "circuit"='eastern creek raceway';
2-16452451-2
Which state was Dai from?
CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "state" FROM "vassal_states" WHERE "name"='dai';
2-17338174-13
What was Mu's title?
CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "title" FROM "vassal_states" WHERE "name"='mu';
2-17338174-13
When was Xiong Xun a vassal?
CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "from" FROM "vassal_states" WHERE "name"='xiong xun';
2-17338174-13
what is the highest attendance for week 3?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "week"=3;
2-16677963-2
what is the result for the week higher than 7 on november 4, 1979?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "week">7 AND "date"='november 4, 1979';
2-16677963-2
what is the lowest week when the date is september 16, 1979 and the attendance less than 54,212?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("week") FROM "schedule" WHERE "date"='september 16, 1979' AND "attendance"<'54,212';
2-16677963-2
Which competition has stuart potts as the man of the match?
CREATE TABLE "november" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );
SELECT "competition" FROM "november" WHERE "man_of_the_match"='stuart potts';
2-17120964-6
Which venue had a lost 5-4 result?
CREATE TABLE "november" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );
SELECT "venue" FROM "november" WHERE "result"='lost 5-4';
2-17120964-6
What is the venue of the match with the wightlink raiders as the opponent?
CREATE TABLE "november" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );
SELECT "venue" FROM "november" WHERE "opponent"='wightlink raiders';
2-17120964-6
What is the result of the league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match?
CREATE TABLE "november" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );
SELECT "result" FROM "november" WHERE "competition"='league/cup' AND "opponent"='swindon wildcats' AND "man_of_the_match"='neil liddiard';
2-17120964-6
What is the attendance of the match on the 2nd with the slough jets as the opponent?
CREATE TABLE "november" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );
SELECT "attendance" FROM "november" WHERE "opponent"='slough jets' AND "date"='2nd';
2-17120964-6
What was the score when the total was 75–53?
CREATE TABLE "pool_l" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "score" FROM "pool_l" WHERE "total"='75–53';
2-17626199-35
What was the total when the set 3 was 25–14?
CREATE TABLE "pool_l" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "total" FROM "pool_l" WHERE "set_3"='25–14';
2-17626199-35
What date was the set 1 25–23, and a Set 3 of 25–14?
CREATE TABLE "pool_l" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "date" FROM "pool_l" WHERE "set_1"='25–23' AND "set_3"='25–14';
2-17626199-35
What date was the Set 3 of 12–25?
CREATE TABLE "pool_l" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "date" FROM "pool_l" WHERE "set_3"='12–25';
2-17626199-35
What is the Set 3 when the total was 53–75?
CREATE TABLE "pool_l" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "set_3" FROM "pool_l" WHERE "total"='53–75';
2-17626199-35
What is the average win with a top 5 greater than 2 and a top 10 less than 5?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text, "team_s" text );
SELECT AVG("wins") FROM "nascar_nationwide_series" WHERE "top_5">2 AND "top_10"<5;
2-1708014-2
How many poles have 4 Starts of 4 and position of 46th?
CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text, "team_s" text );
SELECT COUNT("poles") FROM "nascar_nationwide_series" WHERE "starts"=4 AND "position"='46th';
2-1708014-2
Sum of m. night shyamalan ranks?
CREATE TABLE "highest_grossing_films_of_2002" ( "rank" real, "title" text, "studio" text, "director_s" text, "worldwide_gross" text );
SELECT SUM("rank") FROM "highest_grossing_films_of_2002" WHERE "director_s"='m. night shyamalan';
2-167180-1
Director for Star Wars Episode II: attack of the clones?
CREATE TABLE "highest_grossing_films_of_2002" ( "rank" real, "title" text, "studio" text, "director_s" text, "worldwide_gross" text );
SELECT "director_s" FROM "highest_grossing_films_of_2002" WHERE "title"='star wars episode ii: attack of the clones';
2-167180-1
What was the tie no when Oxford city was the away team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='oxford city';
2-17559580-2
What was the tie no when Wrexham was the away team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='wrexham';
2-17559580-2
What was the score when Spennymoor United as the away team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "first_round_proper" WHERE "away_team"='spennymoor united';
2-17559580-2
What date was Grimsby Town the away team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "first_round_proper" WHERE "away_team"='grimsby town';
2-17559580-2
Who was eliminated on Banana Night?
CREATE TABLE "contestants_and_final_ranking" ( "name" text, "category" text, "eliminated" text, "date" text, "special_guest" text );
SELECT "name" FROM "contestants_and_final_ranking" WHERE "eliminated"='banana night';
2-16541125-3
Who was the special guest when the category was vocal groups and the name was Romantic?
CREATE TABLE "contestants_and_final_ranking" ( "name" text, "category" text, "eliminated" text, "date" text, "special_guest" text );
SELECT "special_guest" FROM "contestants_and_final_ranking" WHERE "category"='vocal groups' AND "name"='romantic';
2-16541125-3
On what date was elimination on final night?
CREATE TABLE "contestants_and_final_ranking" ( "name" text, "category" text, "eliminated" text, "date" text, "special_guest" text );
SELECT "date" FROM "contestants_and_final_ranking" WHERE "eliminated"='final night';
2-16541125-3
What is the total number of games for the opponent in Washington?
CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT COUNT("game") FROM "regular_season" WHERE "opponent"='washington';
2-17104539-8
How many stories have a height less than 138 meters with a completion date in 1971?
CREATE TABLE "tallest_buildings" ( "name" text, "location" text, "height_m" real, "stories" real, "year_of_completion" real );
SELECT "stories" FROM "tallest_buildings" WHERE "height_m"<138 AND "year_of_completion"=1971;
2-166559-1