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