output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("wins") FROM "career_summary" WHERE "poles"=3 AND "season"='2010';
## Task Generate a SQL query to answer the following question: `What is the fewest number of wins when he has 3 poles in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest number of wins when he has 3 poles in 2010?`: ```sql
SELECT "2012" FROM "professional_organizations" WHERE "2011"='7.7%' AND "2008"='7.9%';
## Task Generate a SQL query to answer the following question: `What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?`: ```sql
SELECT "2011" FROM "professional_organizations" WHERE "2005"='4.2%';
## Task Generate a SQL query to answer the following question: `What is listed for the 2011 that has a 2005 of 4.2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed for the 2011 that has a 2005 of 4.2%?`: ```sql
SELECT "2012" FROM "professional_organizations" WHERE "2011"='28.9%';
## Task Generate a SQL query to answer the following question: `What is listed for the 2012 that has a 2011 of 28.9%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed for the 2012 that has a 2011 of 28.9%?`: ```sql
SELECT "2005" FROM "professional_organizations" WHERE "2012"='4.2%';
## Task Generate a SQL query to answer the following question: `What is listed for the 2005 that has a 2012 of 4.2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed for the 2005 that has a 2012 of 4.2%?`: ```sql
SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2005"='17.1%';
## Task Generate a SQL query to answer the following question: `What is listed the Favorite Professional Sport that's got a 2005 of 17.1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed the Favorite Professional Sport that's got a 2005 of 17.1%?`: ```sql
SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2008"='8.9%';
## Task Generate a SQL query to answer the following question: `What is listed as the Favorite Professional Sport that has a 2008 of 8.9%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed as the Favorite Professional Sport that has a 2008 of 8.9%?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='79-77';
## Task Generate a SQL query to answer the following question: `What was the score of the game that led to a 79-77 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game that led to a 79-77 record?`: ```sql
SELECT "record" FROM "game_log" WHERE "loss"='rosales (1-1)';
## Task Generate a SQL query to answer the following question: `What was the record after the game in which Rosales (1-1) took the loss?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record after the game in which Rosales (1-1) took the loss?`: ```sql
SELECT "name" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='manitoba';
## Task Generate a SQL query to answer the following question: `Which supercentenarians were born in Manitoba?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "living_canadian_supercentenarians" ( "name" text, "birth_date" text, "age_as_of_1_february_2014" text, "province_or_country_of_birth" text, "province_of_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `Which supercentenarians were born in Manitoba?`: ```sql
SELECT "age_as_of_1_february_2014" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='united states';
## Task Generate a SQL query to answer the following question: `What is the average age as of February 1, 2014 for the supercentenarians born in the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "living_canadian_supercentenarians" ( "name" text, "birth_date" text, "age_as_of_1_february_2014" text, "province_or_country_of_birth" text, "province_of_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average age as of February 1, 2014 for the supercentenarians born in the United States?`: ```sql
SELECT "2010" FROM "singles" WHERE "2001"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `Which 2010 Tournament has a 2001 of grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which 2010 Tournament has a 2001 of grand slam tournaments?`: ```sql
SELECT "2006" FROM "singles" WHERE "2004"='a' AND "2002"='not tier i';
## Task Generate a SQL query to answer the following question: `Which 2006 Tournament has a 2004, and a 2002 of not tier i?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which 2006 Tournament has a 2004, and a 2002 of not tier i?`: ```sql
SELECT "2008" FROM "singles" WHERE "2007"='a' AND "2010"='qf';
## Task Generate a SQL query to answer the following question: `Which 2008 Tournament has a 2007 of a and a 2010 of qf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which 2008 Tournament has a 2007 of a and a 2010 of qf?`: ```sql
SELECT "tournament" FROM "singles" WHERE "2002"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `Which Tournament has a 2002 of grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which Tournament has a 2002 of grand slam tournaments?`: ```sql
SELECT "2000" FROM "singles" WHERE "2002"='not tier i' AND "2006"='2r';
## Task Generate a SQL query to answer the following question: `Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r?`: ```sql
SELECT "language" FROM "non_mandarin_satellite_television" WHERE "launch"=2006 AND "hanzi"='青海电视台藏语综合频道';
## Task Generate a SQL query to answer the following question: `Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mandarin_satellite_television" ( "name" text, "hanzi" text, "language" text, "launch" real, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?`: ```sql
SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "name"='nmtv mongolian satellite television';
## Task Generate a SQL query to answer the following question: `Which hanzi's name is nmtv mongolian satellite television?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mandarin_satellite_television" ( "name" text, "hanzi" text, "language" text, "launch" real, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Which hanzi's name is nmtv mongolian satellite television?`: ```sql
SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "launch"<2009 AND "language"='tibetan' AND "name"='qinghai tibetian general channel';
## Task Generate a SQL query to answer the following question: `Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_mandarin_satellite_television" ( "name" text, "hanzi" text, "language" text, "launch" real, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel?`: ```sql
SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:24.365';
## Task Generate a SQL query to answer the following question: `What Team had a 1:24.365 Qual 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What Team had a 1:24.365 Qual 2?`: ```sql
SELECT "team" FROM "qualifying_results" WHERE "best"='1:24.152';
## Task Generate a SQL query to answer the following question: `What Team had a 1:24.152 Best?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What Team had a 1:24.152 Best?`: ```sql
SELECT "best" FROM "qualifying_results" WHERE "name"='robert doornbos';
## Task Generate a SQL query to answer the following question: `What was Robert Doornbos' Best?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Robert Doornbos' Best?`: ```sql
SELECT "best" FROM "qualifying_results" WHERE "name"='alex figge';
## Task Generate a SQL query to answer the following question: `What was Alex Figge's Best?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Alex Figge's Best?`: ```sql
SELECT "team" FROM "qualifying_results" WHERE "best"='1:25.602';
## Task Generate a SQL query to answer the following question: `What Team had a 1:25.602 Best?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What Team had a 1:25.602 Best?`: ```sql
SELECT "name" FROM "qualifying_results" WHERE "qual_1"='1:26.056';
## Task Generate a SQL query to answer the following question: `What was the Name of the person with a Qual 1 of 1:26.056?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Name of the person with a Qual 1 of 1:26.056?`: ```sql
SELECT COUNT("pick") FROM "nfl_draft" WHERE "school_club_team"='bentley';
## Task Generate a SQL query to answer the following question: `How many picks were there for the Bentley team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks were there for the Bentley team?`: ```sql
SELECT MAX("round") FROM "nfl_draft" WHERE "player"='dan connor';
## Task Generate a SQL query to answer the following question: `What is the largest round number for Dan Connor, the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest round number for Dan Connor, the player?`: ```sql
SELECT MAX("round") FROM "nfl_draft" WHERE "position"='dt' AND "pick">181;
## Task Generate a SQL query to answer the following question: `What is the largest round number for the dt position when the pick number is bigger than 181?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest round number for the dt position when the pick number is bigger than 181?`: ```sql
SELECT "circuit" FROM "season_calendar" WHERE "round"='italy';
## Task Generate a SQL query to answer the following question: `what circuit is in italy` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_calendar" ( "date" text, "round" text, "circuit" text, "race_1_winner" text, "race_2_winner" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `what circuit is in italy`: ```sql
SELECT AVG("pick") FROM "nfl_draft" WHERE "player"='clarence mason';
## Task Generate a SQL query to answer the following question: `What is the average pick for clarence mason?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average pick for clarence mason?`: ```sql
SELECT AVG("frequency_m_hz") FROM "translators" WHERE "city_of_license"='lamar, colorado';
## Task Generate a SQL query to answer the following question: `What is the frequency for the city of Lamar, Colorado?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency for the city of Lamar, Colorado?`: ```sql
SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k207bk';
## Task Generate a SQL query to answer the following question: `What is the average ERP W for callsign K207BK?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average ERP W for callsign K207BK?`: ```sql
SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz">88.7 AND "erp_w"=99;
## Task Generate a SQL query to answer the following question: `Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?`: ```sql
SELECT "city_of_license" FROM "translators" WHERE "erp_w"<14 AND "frequency_m_hz">93.7;
## Task Generate a SQL query to answer the following question: `Which city has ERP W under 14 and a frequency over 93.7MHz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has ERP W under 14 and a frequency over 93.7MHz?`: ```sql
SELECT COUNT("field_goals") FROM "michigan_28_wisconsin_0" WHERE "touchdowns"=0 AND "extra_points"=2;
## Task Generate a SQL query to answer the following question: `What were the total number of field goals when there were 0 touchdowns and 2 extra points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the total number of field goals when there were 0 touchdowns and 2 extra points?`: ```sql
SELECT SUM("field_goals") FROM "michigan_28_wisconsin_0" WHERE "player"='carter' AND "extra_points"<0;
## Task Generate a SQL query to answer the following question: `How many field goals did Carter get when he had 0 extra points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many field goals did Carter get when he had 0 extra points?`: ```sql
SELECT MAX("extra_points") FROM "michigan_28_wisconsin_0" WHERE "points"=28 AND "field_goals"<0;
## Task Generate a SQL query to answer the following question: `What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?`: ```sql
SELECT AVG("field_goals") FROM "michigan_28_wisconsin_0" WHERE "extra_points">0 AND "touchdowns">5;
## Task Generate a SQL query to answer the following question: `What is the average field goal someone has when they have 0 extra points but more than 5 touch downs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average field goal someone has when they have 0 extra points but more than 5 touch downs?`: ```sql
SELECT MIN("wins") FROM "grand_prix_career_statistics" WHERE "points">113 AND "rank"='4th';
## Task Generate a SQL query to answer the following question: `What is the lowest number of wins with more than 113 points in 4th rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of wins with more than 113 points in 4th rank?`: ```sql
SELECT "wins" FROM "grand_prix_career_statistics" WHERE "points"<91 AND "rank"='25th';
## Task Generate a SQL query to answer the following question: `How many wins had less than 91 points in 25th rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins had less than 91 points in 25th rank?`: ```sql
SELECT "wins" FROM "grand_prix_career_statistics" WHERE "year"=1992;
## Task Generate a SQL query to answer the following question: `How many wins in 1992?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins in 1992?`: ```sql
SELECT COUNT("wins") FROM "grand_prix_career_statistics" WHERE "rank"='6th';
## Task Generate a SQL query to answer the following question: `How many wins occurred for 6th rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins occurred for 6th rank?`: ```sql
SELECT "constructor" FROM "race" WHERE "driver"='heikki kovalainen';
## Task Generate a SQL query to answer the following question: `Who was the constructor of the car driven by Heikki Kovalainen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the constructor of the car driven by Heikki Kovalainen?`: ```sql
SELECT "reg_season" FROM "year_by_year" WHERE "division"=2;
## Task Generate a SQL query to answer the following question: `Which Reg Season has a Division of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Reg Season has a Division of 2?`: ```sql
SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='3rd, western' AND "division">2;
## Task Generate a SQL query to answer the following question: `Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?`: ```sql
SELECT MIN("year") FROM "year_by_year" WHERE "playoffs"='did not qualify';
## Task Generate a SQL query to answer the following question: `Which year is the lowest one when the playoffs did not qualify?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year is the lowest one when the playoffs did not qualify?`: ```sql
SELECT AVG("year") FROM "year_by_year" WHERE "reg_season"='3rd, western';
## Task Generate a SQL query to answer the following question: `Which Year has a Reg Season of 3rd, western?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year has a Reg Season of 3rd, western?`: ```sql
SELECT AVG("division") FROM "year_by_year" WHERE "reg_season"='1st, western' AND "playoffs"='champions' AND "year"<2013;
## Task Generate a SQL query to answer the following question: `Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance">'31,891';
## Task Generate a SQL query to answer the following question: `Who was the opponent during the game that had more than 31,891 people in attendance?` ### 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 `Who was the opponent during the game that had more than 31,891 people in attendance?`: ```sql
SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 16, 1955' AND "week"<4;
## Task Generate a SQL query to answer the following question: `What is the average attendance for the game before week 4 that was on october 16, 1955?` ### 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 average attendance for the game before week 4 that was on october 16, 1955?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "attendance">'16,901' AND "date"='september 25, 1955';
## Task Generate a SQL query to answer the following question: `What is the total number of weeks that were on September 25, 1955 with more than 16,901 people in attendance?` ### 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 total number of weeks that were on September 25, 1955 with more than 16,901 people in attendance?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1955';
## Task Generate a SQL query to answer the following question: `Who was the opponent for the game on November 20, 1955?` ### 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 `Who was the opponent for the game on November 20, 1955?`: ```sql
SELECT MAX("successful_defenses") FROM "title_history" WHERE "location"='brandon, florida' AND "reign"<1;
## Task Generate a SQL query to answer the following question: `What is the highest number of successful defenses in brandon, florida and a reign less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_history" ( "reign" real, "days_held" text, "location" text, "successful_defenses" real, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of successful defenses in brandon, florida and a reign less than 1?`: ```sql
SELECT "date" FROM "1965" WHERE "opponent"='norway' AND "results"='1:1';
## Task Generate a SQL query to answer the following question: `What was the date of the game against Norway with a 1:1 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1965" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game against Norway with a 1:1 result?`: ```sql
SELECT "type_of_game" FROM "1965" WHERE "results"='0:0';
## Task Generate a SQL query to answer the following question: `What type of game had a 0:0 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1965" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of game had a 0:0 result?`: ```sql
SELECT "city" FROM "1965" WHERE "results"='5:2';
## Task Generate a SQL query to answer the following question: `What city held that game with a 5:2 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1965" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); ### SQL Given the database schema, here is the SQL query that answers `What city held that game with a 5:2 result?`: ```sql
SELECT "score" FROM "schedule_and_results" WHERE "record"='1-2-1';
## Task Generate a SQL query to answer the following question: `What is the score of the game that has a record of 1-2-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the game that has a record of 1-2-1?`: ```sql
SELECT "record" FROM "schedule_and_results" WHERE "opponent"='hartford whalers';
## Task Generate a SQL query to answer the following question: `What is the team's record in games against the Hartford Whalers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team's record in games against the Hartford Whalers?`: ```sql
SELECT "record" FROM "schedule" WHERE "game_site"='hoosier dome' AND "week"=13;
## Task Generate a SQL query to answer the following question: `What was the Record on Week 13 at the Hoosier Dome?` ### 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, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Record on Week 13 at the Hoosier Dome?`: ```sql
SELECT SUM("week") FROM "schedule" WHERE "date"='october 18, 1992';
## Task Generate a SQL query to answer the following question: `What was the Week on October 18, 1992?` ### 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, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Week on October 18, 1992?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='16-6';
## Task Generate a SQL query to answer the following question: `What loss has 16-6 as the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What loss has 16-6 as the record?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='4-2';
## Task Generate a SQL query to answer the following question: `What loss has 4-2 as the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What loss has 4-2 as the record?`: ```sql
SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='astros' AND "date"='april 29';
## Task Generate a SQL query to answer the following question: `What attendance has astros as the opponent, and april 29 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What attendance has astros as the opponent, and april 29 as the date?`: ```sql
SELECT "operator" FROM "high_floor_versions" WHERE "width"='2.65 m' AND "type_designation"='m5000';
## Task Generate a SQL query to answer the following question: `Which Operator has a Width of 2.65 m, and a Type designation of m5000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_floor_versions" ( "city" text, "operator" text, "type_designation" text, "number_of_vehicles" real, "width" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Operator has a Width of 2.65 m, and a Type designation of m5000?`: ```sql
SELECT "width" FROM "high_floor_versions" WHERE "number_of_vehicles">15 AND "type_designation"='k5000';
## Task Generate a SQL query to answer the following question: `Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_floor_versions" ( "city" text, "operator" text, "type_designation" text, "number_of_vehicles" real, "width" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?`: ```sql
SELECT "number_of_vehicles" FROM "high_floor_versions" WHERE "type_designation"='u5-25 (bi-directional)';
## Task Generate a SQL query to answer the following question: `Which Number of vehicles has a Type designation of u5-25 (bi-directional)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_floor_versions" ( "city" text, "operator" text, "type_designation" text, "number_of_vehicles" real, "width" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Number of vehicles has a Type designation of u5-25 (bi-directional)?`: ```sql
SELECT "irish_name" FROM "list_of_counties" WHERE "province"='leinster' AND "county"='fingal';
## Task Generate a SQL query to answer the following question: `Province of leinster, and a County of fingal has which irish name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Province of leinster, and a County of fingal has which irish name?`: ```sql
SELECT "county_town" FROM "list_of_counties" WHERE "irish_name"='an dún (contae an dúin)';
## Task Generate a SQL query to answer the following question: `Irish name of an dún (contae an dúin) has what county town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Irish name of an dún (contae an dúin) has what county town?`: ```sql
SELECT "region" FROM "list_of_counties" WHERE "most_populous_city_town"='clonmel' AND "irish_name"='tiobraid árann (contae thiobraid árann)';
## Task Generate a SQL query to answer the following question: `Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?`: ```sql
SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='dún laoghaire';
## Task Generate a SQL query to answer the following question: `County town of dún laoghaire has the most populous city/town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `County town of dún laoghaire has the most populous city/town?`: ```sql
SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "irish_name"='dún na ngall (contae dhún na ngall)';
## Task Generate a SQL query to answer the following question: `Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town?`: ```sql
SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='castlebar';
## Task Generate a SQL query to answer the following question: `County town of castlebar has the most populous city/town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `County town of castlebar has the most populous city/town?`: ```sql
SELECT "games" FROM "medalists" WHERE "name"='rubén limardo';
## Task Generate a SQL query to answer the following question: `Name the games for rubén limardo` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the games for rubén limardo`: ```sql
SELECT "sport" FROM "medalists" WHERE "medal"='gold' AND "event"='men''s light flyweight';
## Task Generate a SQL query to answer the following question: `Name the sport for men's light flyweight with medal of gold` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the sport for men's light flyweight with medal of gold`: ```sql
SELECT "name" FROM "medalists" WHERE "event"='men''s featherweight' AND "sport"='weightlifting';
## Task Generate a SQL query to answer the following question: `Tell me the name for men's featherweight and sport of weightlifting` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the name for men's featherweight and sport of weightlifting`: ```sql
SELECT "details_of_journey" FROM "great_little_railways" WHERE "narrator"='simon hoggart';
## Task Generate a SQL query to answer the following question: `Which details of journey had simon hoggart as a narrator?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "great_little_railways" ( "episode_no" real, "episode_title" text, "uk_broadcast_date" text, "narrator" text, "writer" text, "details_of_journey" text, "countries_visited" text ); ### SQL Given the database schema, here is the SQL query that answers `Which details of journey had simon hoggart as a narrator?`: ```sql
SELECT "countries_visited" FROM "great_little_railways" WHERE "episode_no"<7 AND "writer"='ray gosling';
## Task Generate a SQL query to answer the following question: `Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "great_little_railways" ( "episode_no" real, "episode_title" text, "uk_broadcast_date" text, "narrator" text, "writer" text, "details_of_journey" text, "countries_visited" text ); ### SQL Given the database schema, here is the SQL query that answers `Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?`: ```sql
SELECT "height" FROM "louisville" WHERE "name"='zipp duncan';
## Task Generate a SQL query to answer the following question: `How tall is Zipp Duncan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "louisville" ( "position" text, "number" real, "name" text, "height" text, "weight" real, "class" text, "hometown" text, "games" real ); ### SQL Given the database schema, here is the SQL query that answers `How tall is Zipp Duncan?`: ```sql
SELECT AVG("games") FROM "louisville" WHERE "name"='tony dixon';
## Task Generate a SQL query to answer the following question: `What is the average games of Tony Dixon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "louisville" ( "position" text, "number" real, "name" text, "height" text, "weight" real, "class" text, "hometown" text, "games" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average games of Tony Dixon?`: ```sql
SELECT SUM("wins") FROM "summary" WHERE "top_25"=6 AND "top_10">2 AND "events"<19;
## Task Generate a SQL query to answer the following question: `What is the total of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19?`: ```sql
SELECT SUM("cuts_made") FROM "summary" WHERE "top_25"<6 AND "top_5">0;
## Task Generate a SQL query to answer the following question: `What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0?`: ```sql
SELECT COUNT("top_10") FROM "summary" WHERE "top_25">6 AND "wins"<2;
## Task Generate a SQL query to answer the following question: `How many top-10 numbers had a top 25 of more than 6 with less than 2 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `How many top-10 numbers had a top 25 of more than 6 with less than 2 wins?`: ```sql
SELECT "2011" FROM "doubles_performance_timeline" WHERE "2010"='1r' AND "2012"='sf';
## Task Generate a SQL query to answer the following question: `Name the 2011 with 2010 of 1r and 2012 of sf` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" 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 `Name the 2011 with 2010 of 1r and 2012 of sf`: ```sql
SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='2r' AND "2006"='2r';
## Task Generate a SQL query to answer the following question: `Name the 2008 with 2012 of 2r and 2006 of 2r` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" 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 `Name the 2008 with 2012 of 2r and 2006 of 2r`: ```sql
SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='sf';
## Task Generate a SQL query to answer the following question: `Name the 2008 for 2012 of sf` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" 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 `Name the 2008 for 2012 of sf`: ```sql
SELECT "2013" FROM "doubles_performance_timeline" WHERE "2011"='1r';
## Task Generate a SQL query to answer the following question: `Name the 2013 for 2011 of 1r` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" 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 `Name the 2013 for 2011 of 1r`: ```sql
SELECT "2011" FROM "doubles_performance_timeline" WHERE "2006"='2r' AND "2008"='2r';
## Task Generate a SQL query to answer the following question: `Name the 2011 with 2006 of 2r and 2008 of 2r` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" 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 `Name the 2011 with 2006 of 2r and 2008 of 2r`: ```sql
SELECT "2012" FROM "doubles_performance_timeline" WHERE "2013"='2r' AND "2009"='3r';
## Task Generate a SQL query to answer the following question: `Name the 2012 with 2013 of 2r and 2009 of 3r` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" 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 `Name the 2012 with 2013 of 2r and 2009 of 3r`: ```sql
SELECT COUNT("field_goals") FROM "michigan_48_ohio_northern_0" WHERE "points">5 AND "touchdowns">2 AND "extra_points"<0;
## Task Generate a SQL query to answer the following question: `How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0?`: ```sql
SELECT COUNT("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points">0 AND "points"=48;
## Task Generate a SQL query to answer the following question: `How many Touchdowns have Extra points larger than 0, and Points of 48?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Touchdowns have Extra points larger than 0, and Points of 48?`: ```sql
SELECT AVG("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points"<5 AND "player"='clark' AND "field_goals">0;
## Task Generate a SQL query to answer the following question: `Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0?`: ```sql
SELECT SUM("points") FROM "michigan_48_ohio_northern_0" WHERE "touchdowns">0 AND "extra_points"<0;
## Task Generate a SQL query to answer the following question: `Which Points have Touchdowns larger than 0, and an Extra points smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have Touchdowns larger than 0, and an Extra points smaller than 0?`: ```sql
SELECT "semifinalists" FROM "september" WHERE "champions"='michael chang 6-0 6-4';
## Task Generate a SQL query to answer the following question: `Which Semifinalists has a Champions of michael chang 6-0 6-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "september" ( "week_of" text, "tournament" text, "champions" text, "runners_up" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Semifinalists has a Champions of michael chang 6-0 6-4?`: ```sql
SELECT "runners_up" FROM "september" WHERE "semifinalists"='guillermo pérez-roldán andrea gaudenzi';
## Task Generate a SQL query to answer the following question: `Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "september" ( "week_of" text, "tournament" text, "champions" text, "runners_up" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?`: ```sql
SELECT MIN("season") FROM "club_career_stats" WHERE "level"<1;
## Task Generate a SQL query to answer the following question: `Tell me the least season with level less than 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_career_stats" ( "season" real, "team" text, "country" text, "league" text, "level" real, "apps" text, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the least season with level less than 1`: ```sql
SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2010_11"='not held' AND "2011_12"='not held' AND "2008_09"='not held' AND "2006_07"='lq';
## Task Generate a SQL query to answer the following question: `Which 2007/ 08 has a 2010/ 11 of not held, and a 2011/ 12 of not held, and a 2008/ 09 of not held, and a 2006/ 07 of lq?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2007/ 08 has a 2010/ 11 of not held, and a 2011/ 12 of not held, and a 2008/ 09 of not held, and a 2006/ 07 of lq?`: ```sql
SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2005_06"='not held' AND "2010_11"='not held';
## Task Generate a SQL query to answer the following question: `Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held?`: ```sql
SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2006_07"='not held' AND "2008_09"='not held' AND "2012_13"='dnq';
## Task Generate a SQL query to answer the following question: `Which 2011/ 12 has a 2006/ 07 of not held, and a 2008/ 09 of not held, and a 2012/ 13 of dnq?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2011/ 12 has a 2006/ 07 of not held, and a 2008/ 09 of not held, and a 2012/ 13 of dnq?`: ```sql
SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2010_11"='a' AND "2007_08"='not held' AND "2012_13"='lq';
## Task Generate a SQL query to answer the following question: `Which 2011/ 12 has a 2010/ 11 of A, and a 2007/ 08 of not held, and a 2012/ 13 of lq?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2011/ 12 has a 2010/ 11 of A, and a 2007/ 08 of not held, and a 2012/ 13 of lq?`: ```sql
SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2005_06"='a' AND "2009_10"='a' AND "2012_13"='a';
## Task Generate a SQL query to answer the following question: `Which 2007/ 08 has a 2005/ 06 of A, and a 2009/ 10 of A, and a 2012/ 13 of A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2007/ 08 has a 2005/ 06 of A, and a 2009/ 10 of A, and a 2012/ 13 of A?`: ```sql