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