output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "name"='mark fischer';
## Task Generate a SQL query to answer the following question: `WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER?` ### 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 AVERAGE OVERALL, FOR MARK FISCHER?`: ```sql
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='david terrell' AND "round"<7;
## Task Generate a SQL query to answer the following question: `WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7?` ### 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 SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7?`: ```sql
SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">6 AND "overall"=191;
## Task Generate a SQL query to answer the following question: `WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191?` ### 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 WITH A ROUND LARGER THAN 6, AND OVERALL OF 191?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='68-71=139';
## Task Generate a SQL query to answer the following question: `Who is the player with a score of 68-71=139?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player with a score of 68-71=139?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "score"='70-69=139' AND "player"='jerry pate';
## Task Generate a SQL query to answer the following question: `What is the to par of player jerry pate, who has a 70-69=139 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par of player jerry pate, who has a 70-69=139 score?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "place"='t9' AND "score"='72-67=139';
## Task Generate a SQL query to answer the following question: `What is the to par of the player with a t9 place and a score of 72-67=139?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par of the player with a t9 place and a score of 72-67=139?`: ```sql
SELECT "place" FROM "second_round" WHERE "score"='69-69=138';
## Task Generate a SQL query to answer the following question: `What is the place of the player witha 69-69=138 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of the player witha 69-69=138 score?`: ```sql
SELECT "team" FROM "game_log" WHERE "game"=68;
## Task Generate a SQL query to answer the following question: `What team played the Jazz at game 68?` ### 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 team played the Jazz at game 68?`: ```sql
SELECT "date" FROM "game_log" WHERE "high_points"='mehmet okur (24)';
## Task Generate a SQL query to answer the following question: `What date did mehmet okur (24) have the most points?` ### 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 date did mehmet okur (24) have the most points?`: ```sql
SELECT MIN("week") FROM "schedule" WHERE "attendance"='64,146';
## Task Generate a SQL query to answer the following question: `What week had attendance of 64,146?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What week had attendance of 64,146?`: ```sql
SELECT MIN("attendance") FROM "schedule" WHERE "week"=12;
## Task Generate a SQL query to answer the following question: `What is the attendance of week 12?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the attendance of week 12?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "date"='november 3, 1974';
## Task Generate a SQL query to answer the following question: `What is the attendance from November 3, 1974?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the attendance from November 3, 1974?`: ```sql
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=8;
## Task Generate a SQL query to answer the following question: `What is the attendance of week 8?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the attendance of week 8?`: ```sql
SELECT "date" FROM "schedule" WHERE "attendance">'41,863' AND "week"=9;
## Task Generate a SQL query to answer the following question: `What is the date of the game on week 9 with attendance greater than 41,863?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game on week 9 with attendance greater than 41,863?`: ```sql
SELECT "loser" FROM "2000s_eagles_13_10" WHERE "year"=2001 AND "winner"='new york giants';
## Task Generate a SQL query to answer the following question: `Who was the loser against the New York Giants in 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s_eagles_13_10" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the loser against the New York Giants in 2001?`: ```sql
SELECT "location" FROM "2000s_eagles_13_10" WHERE "result"='24-21';
## Task Generate a SQL query to answer the following question: `What was the location with the 24-21 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s_eagles_13_10" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the location with the 24-21 result?`: ```sql
SELECT "winner" FROM "2000s_eagles_13_10" WHERE "result"='24-21';
## Task Generate a SQL query to answer the following question: `Who was the winner with the 24-21 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s_eagles_13_10" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner with the 24-21 result?`: ```sql
SELECT AVG("to_par") FROM "second_round" WHERE "place"='t3' AND "player"='ben hogan';
## Task Generate a SQL query to answer the following question: `What is the average To Par, when Place is "T3", and when Player is "Ben Hogan"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average To Par, when Place is "T3", and when Player is "Ben Hogan"?`: ```sql
SELECT AVG("to_par") FROM "second_round" WHERE "player"='julius boros';
## Task Generate a SQL query to answer the following question: `What is the average To Par, when Player is "Julius Boros"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average To Par, when Player is "Julius Boros"?`: ```sql
SELECT MAX("to_par") FROM "second_round" WHERE "score"='72-73=145';
## Task Generate a SQL query to answer the following question: `What is the highest To Par, when Score is "72-73=145"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest To Par, when Score is "72-73=145"?`: ```sql
SELECT "score" FROM "second_round" WHERE "place"='t1';
## Task Generate a SQL query to answer the following question: `What is Score, when Place is "T1"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Place is "T1"?`: ```sql
SELECT "place" FROM "second_round" WHERE "to_par"=5 AND "score"='72-73=145';
## Task Generate a SQL query to answer the following question: `What is Place, when To Par is "5", and when Score is "72-73=145"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Place, when To Par is "5", and when Score is "72-73=145"?`: ```sql
SELECT MAX("pick_num") FROM "nfl_draft" WHERE "round">11;
## Task Generate a SQL query to answer the following question: `What is the highest pick # after round 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest pick # after round 11?`: ```sql
SELECT "college" FROM "nfl_draft" WHERE "round"=3 AND "pick_num"=84;
## Task Generate a SQL query to answer the following question: `Which college has a pick # 84 in round 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college has a pick # 84 in round 3?`: ```sql
SELECT "pick_num" FROM "nfl_draft" WHERE "round"=11;
## Task Generate a SQL query to answer the following question: `What was the pick # for round 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the pick # for round 11?`: ```sql
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "round">8 AND "name"='kenny fells' AND "overall">297;
## Task Generate a SQL query to answer the following question: `Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297?` ### 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 `Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297?`: ```sql
SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">7 AND "name"='wayne asberry';
## Task Generate a SQL query to answer the following question: `Which Position has a Round larger than 7, and a Name of wayne asberry?` ### 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 `Which Position has a Round larger than 7, and a Name of wayne asberry?`: ```sql
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "name"='markus koch';
## Task Generate a SQL query to answer the following question: `Which Overall has a Name of markus koch?` ### 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 `Which Overall has a Name of markus koch?`: ```sql
SELECT "position" FROM "washington_redskins_draft_history" WHERE "round"<8 AND "pick"=20 AND "overall"<186;
## Task Generate a SQL query to answer the following question: `Which Position has a Round smaller than 8, a Pick of 20, and an Overall smaller than 186?` ### 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 `Which Position has a Round smaller than 8, a Pick of 20, and an Overall smaller than 186?`: ```sql
SELECT "score" FROM "third_round_proper" WHERE "away_team"='fulham';
## Task Generate a SQL query to answer the following question: `What is the score when Fulham is the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score when Fulham is the away team?`: ```sql
SELECT "away_team" FROM "third_round_proper" WHERE "tie_no"='14';
## Task Generate a SQL query to answer the following question: `Which away team has a tie number of 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team has a tie number of 14?`: ```sql
SELECT "tie_no" FROM "third_round_proper" WHERE "date"='5 january 1986' AND "away_team"='exeter city';
## Task Generate a SQL query to answer the following question: `What is the tie number in the game on 5 January 1986 where Exeter City is the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tie number in the game on 5 January 1986 where Exeter City is the away team?`: ```sql
SELECT AVG("total") FROM "by_county" WHERE "mc_cainpct"='55.0%' AND "obamanum">'3,487';
## Task Generate a SQL query to answer the following question: `What is the total average for McCain% of 55.0% and Obama# higher than 3,487?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total average for McCain% of 55.0% and Obama# higher than 3,487?`: ```sql
SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2009"='w' AND "2007"='qf';
## Task Generate a SQL query to answer the following question: `what is 2010 when 2009 is w and 2007 is qf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `what is 2010 when 2009 is w and 2007 is qf?`: ```sql
SELECT "2000" FROM "grand_slam_tournament_performance_timeli" WHERE "2012"='4r';
## Task Generate a SQL query to answer the following question: `what is 2000 when 2012 is 4r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `what is 2000 when 2012 is 4r?`: ```sql
SELECT "2000" FROM "grand_slam_tournament_performance_timeli" WHERE "2012"='w' AND "2011"='4r';
## Task Generate a SQL query to answer the following question: `what is 2000 when 2012 is w and 2011 is 4r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `what is 2000 when 2012 is w and 2011 is 4r?`: ```sql
SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2006"='3r';
## Task Generate a SQL query to answer the following question: `what is 2010 when 2006 is 3r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `what is 2010 when 2006 is 3r?`: ```sql
SELECT "2013" FROM "grand_slam_tournament_performance_timeli" WHERE "2001"='qf' AND "2011"='4r';
## Task Generate a SQL query to answer the following question: `what is 2013 when 2001 is qf and 2011 is 4r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `what is 2013 when 2001 is qf and 2011 is 4r?`: ```sql
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 round for the record of 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" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average round for the record of 1-1?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='12-2-3';
## Task Generate a SQL query to answer the following question: `What method had a record 12-2-3?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What method had a record 12-2-3?`: ```sql
SELECT "hanyu_pinyin" FROM "townships" WHERE "name"='jinning township';
## Task Generate a SQL query to answer the following question: `What Hanyu Pinyin is in the Jinning Township?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "townships" ( "name" text, "chinese" text, "hanyu_pinyin" text, "wade_giles" text, "hokkien_pe_h_e_j" text, "english_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `What Hanyu Pinyin is in the Jinning Township?`: ```sql
SELECT SUM("scored") FROM "international_career" WHERE "date"='22 february 2006';
## Task Generate a SQL query to answer the following question: `How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_career" ( "date" text, "venue" text, "result" text, "scored" real, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?`: ```sql
SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='york city';
## Task Generate a SQL query to answer the following question: `The home team york city has what score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `The home team york city has what score?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='61,603';
## Task Generate a SQL query to answer the following question: `What is the total number of Week(s), when Attendance is 61,603?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Week(s), when Attendance is 61,603?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance"='62,170';
## Task Generate a SQL query to answer the following question: `What is Opponent, when Attendance is 62,170?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Opponent, when Attendance is 62,170?`: ```sql
SELECT MIN("points") FROM "race" WHERE "driver"='alex sperafico' AND "grid">17;
## Task Generate a SQL query to answer the following question: `HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17?`: ```sql
SELECT MIN("laps") FROM "race" WHERE "points">5 AND "team"='forsythe racing' AND "grid"=5;
## Task Generate a SQL query to answer the following question: `WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='1978 world cup qualification';
## Task Generate a SQL query to answer the following question: `WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification?`: ```sql
SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "name"='jerry hackenbruck' AND "overall"<282;
## Task Generate a SQL query to answer the following question: `What is the average pick number for jerry hackenbruck who was overall pick less than 282?` ### 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 average pick number for jerry hackenbruck who was overall pick less than 282?`: ```sql
SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "name"='mark doak' AND "overall"<147;
## Task Generate a SQL query to answer the following question: `What is the lowest draft pick number for mark doak who had an overall pick smaller than 147?` ### 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 draft pick number for mark doak who had an overall pick smaller than 147?`: ```sql
SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='california';
## Task Generate a SQL query to answer the following question: `What position did the player have who was from the college of california?` ### 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 position did the player have who was from the college of california?`: ```sql
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"<344 AND "name"='jerry hackenbruck';
## Task Generate a SQL query to answer the following question: `What college did jerry hackenbruck come from who had an overall pick less than 344?` ### 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 college did jerry hackenbruck come from who had an overall pick less than 344?`: ```sql
SELECT "opponent" FROM "21st_century_comeback" WHERE "date"='03/18/08';
## Task Generate a SQL query to answer the following question: `What team was the opponent on 03/18/08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "site" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was the opponent on 03/18/08?`: ```sql
SELECT "site" FROM "21st_century_comeback" WHERE "city"='delaware';
## Task Generate a SQL query to answer the following question: `What is the site where the game was held in the city of Delaware?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "site" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the site where the game was held in the city of Delaware?`: ```sql
SELECT "city" FROM "21st_century_comeback" WHERE "opponent"='towson';
## Task Generate a SQL query to answer the following question: `What city was the game held in when the opponent was Towson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "site" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What city was the game held in when the opponent was Towson?`: ```sql
SELECT "opponent" FROM "21st_century_comeback" WHERE "city"='baltimore' AND "time"='2:00pm' AND "date"='4/06/08';
## Task Generate a SQL query to answer the following question: `What team was opponen in baltimore, at 2:00pm, on 4/06/08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "site" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was opponen in baltimore, at 2:00pm, on 4/06/08?`: ```sql
SELECT "date" FROM "21st_century_comeback" WHERE "site"='umbc field';
## Task Generate a SQL query to answer the following question: `What date was the game held at UMBC Field?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "site" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game held at UMBC Field?`: ```sql
SELECT "date" FROM "21st_century_comeback" WHERE "city"='towson';
## Task Generate a SQL query to answer the following question: `What date was the game held in Towson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "21st_century_comeback" ( "date" text, "time" text, "opponent" text, "site" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game held in Towson?`: ```sql
SELECT MAX("series") FROM "series_1_5" WHERE "premiere"='29 october 1990' AND "episodes">6;
## Task Generate a SQL query to answer the following question: `Which season premiered on 29 October 1990 and had more than 6 episodes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1_5" ( "series" real, "premiere" text, "finale" text, "episodes" real, "specials" real ); ### SQL Given the database schema, here is the SQL query that answers `Which season premiered on 29 October 1990 and had more than 6 episodes?`: ```sql
SELECT "date" FROM "playoffs" WHERE "score"='71-64';
## Task Generate a SQL query to answer the following question: `WHAT DATE HAD A SCORE OF 71-64?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT DATE HAD A SCORE OF 71-64?`: ```sql
SELECT "score" FROM "playoffs" WHERE "date"='september 21';
## Task Generate a SQL query to answer the following question: `WHAT SCORE WAS ON SEPTEMBER 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT SCORE WAS ON SEPTEMBER 21?`: ```sql
SELECT "score" FROM "playoffs" WHERE "record"='1-1';
## Task Generate a SQL query to answer the following question: `WHAT SCORE HAD A RECORD OF 1-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT SCORE HAD A RECORD OF 1-1?`: ```sql
SELECT "opponent" FROM "playoffs" WHERE "date"='september 28';
## Task Generate a SQL query to answer the following question: `WHAT OPPONENT HAD A DATE OF SEPTEMBER 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT OPPONENT HAD A DATE OF SEPTEMBER 28?`: ```sql
SELECT "score" FROM "playoffs" WHERE "result"='loss' AND "record"='1-1';
## Task Generate a SQL query to answer the following question: `WHAT SCORE HAD A LOSS AND RECORD OF 1-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "date" text, "opponent" text, "score" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT SCORE HAD A LOSS AND RECORD OF 1-1?`: ```sql
SELECT "alternate_2" FROM "on_ice_officials" WHERE "coach"='andy brown' AND "captain"='nick grady';
## Task Generate a SQL query to answer the following question: `Who is the alternate for Andy Brown, and Nick Grady?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "on_ice_officials" ( "season" text, "coach" text, "captain" text, "alternate_1" text, "alternate_2" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the alternate for Andy Brown, and Nick Grady?`: ```sql
SELECT "captain" FROM "on_ice_officials" WHERE "alternate_1"='gintare karpaviciute';
## Task Generate a SQL query to answer the following question: `Which captain has Gintare Karpaviciute as an alternate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "on_ice_officials" ( "season" text, "coach" text, "captain" text, "alternate_1" text, "alternate_2" text ); ### SQL Given the database schema, here is the SQL query that answers `Which captain has Gintare Karpaviciute as an alternate?`: ```sql
SELECT "coach" FROM "on_ice_officials" WHERE "captain"='robert harvey';
## Task Generate a SQL query to answer the following question: `Which coach works with Robert Harvey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "on_ice_officials" ( "season" text, "coach" text, "captain" text, "alternate_1" text, "alternate_2" text ); ### SQL Given the database schema, here is the SQL query that answers `Which coach works with Robert Harvey?`: ```sql
SELECT "nickname" FROM "2013_2014_teams" WHERE "founded"=1954;
## Task Generate a SQL query to answer the following question: `Which Nickname has Founded of 1954?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_2014_teams" ( "school" text, "location" text, "founded" real, "affiliation" text, "nickname" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nickname has Founded of 1954?`: ```sql
SELECT "team" FROM "playoffs" WHERE "location_attendance"='boston garden' AND "score"='l 118-130';
## Task Generate a SQL query to answer the following question: `Which team played in the Boston Garden when the final score was L 118-130?` ### 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_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team played in the Boston Garden when the final score was L 118-130?`: ```sql
SELECT "team" FROM "playoffs" WHERE "location_attendance"='boston garden' AND "series"='1-0';
## Task Generate a SQL query to answer the following question: `What team played at the Boston Garden when the series was 1-0?` ### 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_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What team played at the Boston Garden when the series was 1-0?`: ```sql
SELECT "driver" FROM "race" WHERE "grid"=2;
## Task Generate a SQL query to answer the following question: `Which driver had a grid of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Which driver had a grid of 2?`: ```sql
SELECT MIN("grid") FROM "race" WHERE "team"='mi-jack conquest racing' AND "points"='16';
## Task Generate a SQL query to answer the following question: `What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing?`: ```sql
SELECT "points" FROM "race" WHERE "laps"=165;
## Task Generate a SQL query to answer the following question: `What is the number of points associated with 165 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of points associated with 165 laps?`: ```sql
SELECT COUNT("laps") FROM "race" WHERE "points"='8' AND "grid"<8;
## Task Generate a SQL query to answer the following question: `What is the total number of laps associated with 8 points and a grid under 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of laps associated with 8 points and a grid under 8?`: ```sql
SELECT MAX("employees") FROM "list" WHERE "revenue_millions"<'110,520.2' AND "profit_millions">'2,237.7';
## Task Generate a SQL query to answer the following question: `What is the highest amount of employees with 110,520.2 in revenue, and a more than 2,237.7 profit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "rank" real, "rank_fortune_500" real, "name" text, "headquarters" text, "revenue_millions" real, "profit_millions" real, "employees" real, "industry" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest amount of employees with 110,520.2 in revenue, and a more than 2,237.7 profit?`: ```sql
SELECT "libertarian_michael_munger" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='40%' AND "lead_margin">3;
## Task Generate a SQL query to answer the following question: `What is the % for Munger when McCrory has 40% and the lead margin is greater than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_beverly_perdue" text, "republican_pat_mc_crory" text, "libertarian_michael_munger" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the % for Munger when McCrory has 40% and the lead margin is greater than 3?`: ```sql
SELECT "democrat_beverly_perdue" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='37%' AND "libertarian_michael_munger"='6%';
## Task Generate a SQL query to answer the following question: `What is the percentage of Perdue when McCrory has 37% and Munger has 6%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_beverly_perdue" text, "republican_pat_mc_crory" text, "libertarian_michael_munger" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of Perdue when McCrory has 37% and Munger has 6%?`: ```sql
SELECT "lead_margin" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='49%';
## Task Generate a SQL query to answer the following question: `What is the lead margin for McCrory when he has 49%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_beverly_perdue" text, "republican_pat_mc_crory" text, "libertarian_michael_munger" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lead margin for McCrory when he has 49%?`: ```sql
SELECT MIN("height_ft") FROM "tallest_completed_buildings" WHERE "year_built">1961 AND "location"='platz der einheit 1, gallus' AND "height_m"<130;
## Task Generate a SQL query to answer the following question: `What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_completed_buildings" ( "name" text, "height_m" real, "height_ft" real, "location" text, "year_built" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters?`: ```sql
SELECT SUM("height_m") FROM "tallest_completed_buildings" WHERE "year_built">1984 AND "name"='commerzbank tower';
## Task Generate a SQL query to answer the following question: `What is the sum of the heights in meters for the commerzbank tower built after 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_completed_buildings" ( "name" text, "height_m" real, "height_ft" real, "location" text, "year_built" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the heights in meters for the commerzbank tower built after 1984?`: ```sql
SELECT MIN("year_built") FROM "tallest_completed_buildings" WHERE "location"='sonnemannstraße/rückertstraße, ostend' AND "height_m">185;
## Task Generate a SQL query to answer the following question: `What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_completed_buildings" ( "name" text, "height_m" real, "height_ft" real, "location" text, "year_built" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters?`: ```sql
SELECT MIN("height_m") FROM "tallest_completed_buildings" WHERE "location"='mailänder straße 1, sachsenhausen-süd' AND "height_ft"<328.1;
## Task Generate a SQL query to answer the following question: `What is the lowest height in meters for the building located in mailänder straße 1, sachsenhausen-süd, with a height shorter than 328.1 ft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_completed_buildings" ( "name" text, "height_m" real, "height_ft" real, "location" text, "year_built" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest height in meters for the building located in mailänder straße 1, sachsenhausen-süd, with a height shorter than 328.1 ft?`: ```sql
SELECT AVG("population") FROM "communities" WHERE "area_km_2"<26.69 AND "official_name"='rogersville';
## Task Generate a SQL query to answer the following question: `What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville?`: ```sql
SELECT "album" FROM "discography" WHERE "label"='hammer music / nail records' AND "year"=2012;
## Task Generate a SQL query to answer the following question: `What's the name of the album from 2012 with a Hammer Music / Nail Records label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "release_type" text, "label" text, "hungarian_top_40_album_charts" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the album from 2012 with a Hammer Music / Nail Records label?`: ```sql
SELECT "year" FROM "discography" WHERE "hungarian_top_40_album_charts"='3';
## Task Generate a SQL query to answer the following question: `What year had the Hungarian top 40 album charts of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "release_type" text, "label" text, "hungarian_top_40_album_charts" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had the Hungarian top 40 album charts of 3?`: ```sql
SELECT "release_type" FROM "discography" WHERE "album"='napisten hava';
## Task Generate a SQL query to answer the following question: `What type of release was Napisten Hava?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "release_type" text, "label" text, "hungarian_top_40_album_charts" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of release was Napisten Hava?`: ```sql
SELECT "album" FROM "discography" WHERE "release_type"='demo';
## Task Generate a SQL query to answer the following question: `What was the name of the album that was a demo release?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "release_type" text, "label" text, "hungarian_top_40_album_charts" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the album that was a demo release?`: ```sql
SELECT "serials_issued" FROM "1973_to_1983" WHERE "serial_format"='abc-123' AND "issued"='1982';
## Task Generate a SQL query to answer the following question: `What is the serials issued in 1982 with a format of ABC-123?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1973_to_1983" ( "issued" text, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the serials issued in 1982 with a format of ABC-123?`: ```sql
SELECT "design" FROM "1973_to_1983" WHERE "serial_format"='ab-12-34';
## Task Generate a SQL query to answer the following question: `Which design has a serial format of AB-12-34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1973_to_1983" ( "issued" text, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `Which design has a serial format of AB-12-34?`: ```sql
SELECT "serials_issued" FROM "1973_to_1983" WHERE "design"='black on yellow';
## Task Generate a SQL query to answer the following question: `Which serials were issued with a design of black on yellow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1973_to_1983" ( "issued" text, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `Which serials were issued with a design of black on yellow?`: ```sql
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='fc carl zeiss jena';
## Task Generate a SQL query to answer the following question: `WHo was the outgoing manager for the team of fc carl zeiss jena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `WHo was the outgoing manager for the team of fc carl zeiss jena?`: ```sql
SELECT "team" FROM "managerial_changes" WHERE "manner_of_departure"='end of tenure as caretaker';
## Task Generate a SQL query to answer the following question: `What team did the manager come from who departed due to an end of tenure as caretaker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `What team did the manager come from who departed due to an end of tenure as caretaker?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='reiner geyer';
## Task Generate a SQL query to answer the following question: `What was the date of appointment for the replaced manager, reiner geyer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of appointment for the replaced manager, reiner geyer?`: ```sql
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='ralf santelli';
## Task Generate a SQL query to answer the following question: `What was the date of vacancy after the outgoing manager, ralf santelli departed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of vacancy after the outgoing manager, ralf santelli departed?`: ```sql
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "manner_of_departure"='fc energie cottbus purchased rights';
## Task Generate a SQL query to answer the following question: `Who was the outgoing manager who departed due to fc energie cottbus purchased rights?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the outgoing manager who departed due to fc energie cottbus purchased rights?`: ```sql
SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "position"='lb' AND "overall"<46;
## Task Generate a SQL query to answer the following question: `How many times is the position lb and the overall is less than 46?` ### 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 `How many times is the position lb and the overall is less than 46?`: ```sql
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">76 AND "name"='brian mitchell';
## Task Generate a SQL query to answer the following question: `what is the college when the overall is more than 76 for brian mitchell?` ### 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 college when the overall is more than 76 for brian mitchell?`: ```sql
SELECT "pick" FROM "washington_redskins_draft_history" WHERE "overall"<297 AND "college"='alabama';
## Task Generate a SQL query to answer the following question: `what is the pick when the overall is less than 297 and the college is alabama?` ### 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 overall is less than 297 and the college is alabama?`: ```sql
SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "college"='penn state';
## Task Generate a SQL query to answer the following question: `what is the highest round when the college is penn state?` ### 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 highest round when the college is penn state?`: ```sql
SELECT SUM("1989") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "2000"<52.8 AND "location"='arizona, new mexico, and utah';
## Task Generate a SQL query to answer the following question: `What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "changes_in_poverty_rates_on_largest_rese" ( "reservation" text, "location" text, "1969" real, "1979" real, "1989" real, "2000" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah`: ```sql