output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "round">4 AND "overall"<237 AND "name"='ted cottrell';
## Task Generate a SQL query to answer the following question: `Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?`: ```sql
SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='oregon state';
## Task Generate a SQL query to answer the following question: `What is the smallest overall for Oregon State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest overall for Oregon State?`: ```sql
SELECT "class" FROM "roster" WHERE "position"='qb' AND "name"='josh riddell';
## Task Generate a SQL query to answer the following question: `What is the class of the qb, Josh Riddell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "height" text, "weight" text, "class" text, "position" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the class of the qb, Josh Riddell?`: ```sql
SELECT "position" FROM "roster" WHERE "name"='jamar chaney';
## Task Generate a SQL query to answer the following question: `What position does Jamar Chaney play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "height" text, "weight" text, "class" text, "position" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What position does Jamar Chaney play?`: ```sql
SELECT "hometown" FROM "roster" WHERE "name"='kyle love';
## Task Generate a SQL query to answer the following question: `What hometown is Kyle love from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "height" text, "weight" text, "class" text, "position" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What hometown is Kyle love from?`: ```sql
SELECT SUM("attendance") FROM "game_log" WHERE "home"='philadelphia' AND "points"<23;
## Task Generate a SQL query to answer the following question: `Which Attendance has a Home of philadelphia, and Points smaller than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has a Home of philadelphia, and Points smaller than 23?`: ```sql
SELECT "visitor" FROM "game_log" WHERE "record"='9–12–5';
## Task Generate a SQL query to answer the following question: `Which Visitor has a Record of 9–12–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Visitor has a Record of 9–12–5?`: ```sql
SELECT "date" FROM "game_log" WHERE "visitor"='boston';
## Task Generate a SQL query to answer the following question: `Which Date has a Visitor of boston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Visitor of boston?`: ```sql
SELECT "date" FROM "futures_titles" WHERE "surface"='grass' AND "opponent_in_the_final"='nathan healey';
## Task Generate a SQL query to answer the following question: `What is the date for the grass surface final against Nathan Healey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "futures_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for the grass surface final against Nathan Healey?`: ```sql
SELECT "score" FROM "futures_titles" WHERE "opponent_in_the_final"='dane propoggia';
## Task Generate a SQL query to answer the following question: `What was the score of the final against Dane Propoggia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "futures_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the final against Dane Propoggia?`: ```sql
SELECT "total" FROM "groups_10_clubs" WHERE "e_score">9.6 AND "a_score"=6;
## Task Generate a SQL query to answer the following question: `What was the total score when the E score was larger than 9.6 and the A score was 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total score when the E score was larger than 9.6 and the A score was 6?`: ```sql
SELECT AVG("e_score") FROM "groups_10_clubs" WHERE "t_score"<4;
## Task Generate a SQL query to answer the following question: `What was the average E score when the T score was less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average E score when the T score was less than 4?`: ```sql
SELECT AVG("t_score") FROM "groups_10_clubs" WHERE "nation"='spain' AND "e_score">9.6;
## Task Generate a SQL query to answer the following question: `What was the average T score when the E score was larger than 9.6 and the team was from Spain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average T score when the E score was larger than 9.6 and the team was from Spain?`: ```sql
SELECT COUNT("a_score") FROM "groups_10_clubs" WHERE "nation"='japan' AND "t_score">4;
## Task Generate a SQL query to answer the following question: `What was the total number of A scores for Japan when the T score was more than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total number of A scores for Japan when the T score was more than 4?`: ```sql
SELECT SUM("e_score") FROM "groups_10_clubs" WHERE "total"=19.466;
## Task Generate a SQL query to answer the following question: `What was the sum of the E scores when the total score was 19.466?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the sum of the E scores when the total score was 19.466?`: ```sql
SELECT COUNT("e_score") FROM "groups_10_clubs" WHERE "total"=19.7 AND "a_score">6;
## Task Generate a SQL query to answer the following question: `What is the total number of E scores when the total score was 19.7 and the A score was more than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of E scores when the total score was 19.7 and the A score was more than 6?`: ```sql
SELECT MAX("drawn") FROM "world_championship_group_c_netherlands" WHERE "points"=14 AND "games"<7;
## Task Generate a SQL query to answer the following question: `What is the highest number of draws with 14 points and less than 7 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_group_c_netherlands" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of draws with 14 points and less than 7 games?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "record"='4-5';
## Task Generate a SQL query to answer the following question: `What was the attendance at the game with a record of 4-5?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance at the game with a record of 4-5?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=16;
## Task Generate a SQL query to answer the following question: `What was the date of the week 16 game?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the week 16 game?`: ```sql
SELECT "record" FROM "schedule" WHERE "week">4 AND "result"='w 13-12';
## Task Generate a SQL query to answer the following question: `What was the record at the game with a result of W 13-12 after week 4?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record at the game with a result of W 13-12 after week 4?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"<17 AND "attendance"='62,019';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the game attended by 62,019 before week 17?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the game attended by 62,019 before week 17?`: ```sql
SELECT "surface" FROM "atp_doubles_finals_13_6_7" WHERE "date"='january 8, 2001';
## Task Generate a SQL query to answer the following question: `Name the surface for january 8, 2001` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the surface for january 8, 2001`: ```sql
SELECT "outcome" FROM "atp_doubles_finals_13_6_7" WHERE "partnering"='jordan kerr' AND "date"='july 19, 2004';
## Task Generate a SQL query to answer the following question: `Name the outcome for jordan kerr july 19, 2004` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the outcome for jordan kerr july 19, 2004`: ```sql
SELECT "score" FROM "atp_doubles_finals_13_6_7" WHERE "opponents_in_the_final"='nathan healey igor kunitsyn';
## Task Generate a SQL query to answer the following question: `Name the score for opponents of nathan healey igor kunitsyn` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score for opponents of nathan healey igor kunitsyn`: ```sql
SELECT "outcome" FROM "atp_doubles_finals_13_6_7" WHERE "opponents_in_the_final"='jonas björkman john mcenroe';
## Task Generate a SQL query to answer the following question: `Name the outcome for opponents of jonas björkman john mcenroe` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the outcome for opponents of jonas björkman john mcenroe`: ```sql
SELECT "surface" FROM "atp_doubles_finals_13_6_7" WHERE "partnering"='paul goldstein' AND "date"='october 2, 2006';
## Task Generate a SQL query to answer the following question: `Name the surface for paul goldstein and date of october 2, 2006` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the surface for paul goldstein and date of october 2, 2006`: ```sql
SELECT "games" FROM "world_championship_group_c_spain" WHERE "drawn"<1 AND "lost"<1;
## Task Generate a SQL query to answer the following question: `Which Games have a Drawn smaller than 1, and a Lost smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_group_c_spain" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Games have a Drawn smaller than 1, and a Lost smaller than 1?`: ```sql
SELECT MIN("drawn") FROM "world_championship_group_c_spain" WHERE "lost"=5 AND "points">4;
## Task Generate a SQL query to answer the following question: `Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_group_c_spain" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?`: ```sql
SELECT "government" FROM "general_election_results" WHERE "seats"=57;
## Task Generate a SQL query to answer the following question: `Which Government has 57 seats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Government has 57 seats?`: ```sql
SELECT COUNT("seats") FROM "general_election_results" WHERE "d_il"='6th';
## Task Generate a SQL query to answer the following question: `How many seats does the 6th Dail have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seats does the 6th Dail have?`: ```sql
SELECT "d_il" FROM "general_election_results" WHERE "seats"=61;
## Task Generate a SQL query to answer the following question: `What is the number of the dail with 61 seats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of the dail with 61 seats?`: ```sql
SELECT MIN("seats") FROM "general_election_results" WHERE "share_of_votes"='27.0%';
## Task Generate a SQL query to answer the following question: `What is the lowest number of seats from the election with 27.0% of votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of seats from the election with 27.0% of votes?`: ```sql
SELECT "share_of_votes" FROM "general_election_results" WHERE "d_il"='6th';
## Task Generate a SQL query to answer the following question: `What is the 6th dail share of votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 6th dail share of votes?`: ```sql
SELECT MAX("week") FROM "schedule" WHERE "record"='1-3';
## Task Generate a SQL query to answer the following question: `What was the highest week when the record was 1-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest week when the record was 1-3?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance"='62,657';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the game attended by 62,657?` ### 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, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the game attended by 62,657?`: ```sql
SELECT MAX("year_built") FROM "inland_steam_and_river_boats_of_coos_bay" WHERE "name"='fay no. 4';
## Task Generate a SQL query to answer the following question: `What is the year built for the Fay No. 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" ( "name" text, "type" text, "year_built" real, "where_built" text, "length" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year built for the Fay No. 4?`: ```sql
SELECT "year_built" FROM "inland_steam_and_river_boats_of_coos_bay" WHERE "length"='91''';
## Task Generate a SQL query to answer the following question: `Where the length is 91', what is the year built?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" ( "name" text, "type" text, "year_built" real, "where_built" text, "length" text ); ### SQL Given the database schema, here is the SQL query that answers `Where the length is 91', what is the year built?`: ```sql
SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "mascot"='scorpions';
## Task Generate a SQL query to answer the following question: `What is the address for the Scorpions' mascot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the address for the Scorpions' mascot?`: ```sql
SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "assistant_principal_2013_2014"='kelly papke';
## Task Generate a SQL query to answer the following question: `What is the address for the assistant principal named Kelly Papke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the address for the assistant principal named Kelly Papke?`: ```sql
SELECT "mascot" FROM "elementary_schools_grades_k_6" WHERE "principal_2013_2014"='frank hendricsen';
## Task Generate a SQL query to answer the following question: `What was the mascot for the 2013-2014 principal named Frank Hendricsen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the mascot for the 2013-2014 principal named Frank Hendricsen?`: ```sql
SELECT "assistant_principal_2013_2014" FROM "elementary_schools_grades_k_6" WHERE "principal_2013_2014"='kat hughes';
## Task Generate a SQL query to answer the following question: `Who were the assistant and main principals of Kat Hughes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the assistant and main principals of Kat Hughes?`: ```sql
SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "mascot"='coyotes';
## Task Generate a SQL query to answer the following question: `What is the address for the school that has the coyotes mascot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the address for the school that has the coyotes mascot?`: ```sql
SELECT "result" FROM "international_goals" WHERE "venue"='jinan';
## Task Generate a SQL query to answer the following question: `What is the result of the game played at Jinan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "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 result of the game played at Jinan?`: ```sql
SELECT "score" FROM "international_goals" WHERE "date"='november 10, 2006';
## Task Generate a SQL query to answer the following question: `What is the score of the game on November 10, 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "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 of the game on November 10, 2006?`: ```sql
SELECT "date" FROM "international_goals" WHERE "venue"='lahore';
## Task Generate a SQL query to answer the following question: `What is the date of the game held at Lahore?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "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 date of the game held at Lahore?`: ```sql
SELECT COUNT("entries") FROM "most_starts_from_front_row_in_a_season" WHERE "season"='2001' AND "front_row_starts"<13;
## Task Generate a SQL query to answer the following question: `What were the total number of entries in 2001 that had a front row smaller than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_starts_from_front_row_in_a_season" ( "driver" text, "season" text, "entries" real, "front_row_starts" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the total number of entries in 2001 that had a front row smaller than 13?`: ```sql
SELECT MIN("entries") FROM "most_starts_from_front_row_in_a_season" WHERE "front_row_starts"<15 AND "driver"='michael schumacher';
## Task Generate a SQL query to answer the following question: `What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_starts_from_front_row_in_a_season" ( "driver" text, "season" text, "entries" real, "front_row_starts" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?`: ```sql
SELECT MAX("front_row_starts") FROM "most_starts_from_front_row_in_a_season" WHERE "driver"='alain prost';
## Task Generate a SQL query to answer the following question: `What was the highest front row starts for Alain Prost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_starts_from_front_row_in_a_season" ( "driver" text, "season" text, "entries" real, "front_row_starts" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest front row starts for Alain Prost?`: ```sql
SELECT SUM("against") FROM "2009_ladder" WHERE "losses">2 AND "wins"=8 AND "byes"<0;
## Task Generate a SQL query to answer the following question: `Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0?`: ```sql
SELECT SUM("draws") FROM "2009_ladder" WHERE "wins">14;
## Task Generate a SQL query to answer the following question: `Which Draws have Wins larger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Draws have Wins larger than 14?`: ```sql
SELECT COUNT("losses") FROM "2009_ladder" WHERE "ntfa_div_2"='perth' AND "wins"<10;
## Task Generate a SQL query to answer the following question: `How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?`: ```sql
SELECT MAX("byes") FROM "2009_ladder" WHERE "against"<1647 AND "ntfa_div_2"='fingal valley' AND "wins"<14;
## Task Generate a SQL query to answer the following question: `Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal valley, and Wins smaller than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal valley, and Wins smaller than 14?`: ```sql
SELECT COUNT("grid") FROM "sprint_race" WHERE "time"='+34.121' AND "laps">10;
## Task Generate a SQL query to answer the following question: `How many grids were there races with more than 10 laps and a time of +34.121?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How many grids were there races with more than 10 laps and a time of +34.121?`: ```sql
SELECT MIN("grid") FROM "sprint_race" WHERE "laps"=10 AND "driver"='jonathan summerton';
## Task Generate a SQL query to answer the following question: `What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver?`: ```sql
SELECT AVG("grid") FROM "sprint_race" WHERE "laps"<10 AND "team"='china';
## Task Generate a SQL query to answer the following question: `What is the average grid number that had Team China with less than 10 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average grid number that had Team China with less than 10 laps?`: ```sql
SELECT "creator" FROM "general" WHERE "latest_stable_release"='unknown' AND "name"='myeclipse';
## Task Generate a SQL query to answer the following question: `Which Creator has the Latest stable release of unknown, and a Name of myeclipse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Creator has the Latest stable release of unknown, and a Name of myeclipse?`: ```sql
SELECT "platform_os" FROM "general" WHERE "name"='altova umodel';
## Task Generate a SQL query to answer the following question: `Which Platform / OS has a Name of altova umodel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Platform / OS has a Name of altova umodel?`: ```sql
SELECT "programming_language_used" FROM "general" WHERE "first_public_release"='1997';
## Task Generate a SQL query to answer the following question: `Which Programming language used has a First public release of 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Programming language used has a First public release of 1997?`: ```sql
SELECT "first_public_release" FROM "general" WHERE "name"='rational software modeler';
## Task Generate a SQL query to answer the following question: `Which First public release has a Name of rational software modeler?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); ### SQL Given the database schema, here is the SQL query that answers `Which First public release has a Name of rational software modeler?`: ```sql
SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='guard' AND "college"='rice';
## Task Generate a SQL query to answer the following question: `What is the College of Rice's highest overall for the guard position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" 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 of Rice's highest overall for the guard position?`: ```sql
SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<16 AND "name"='tommy nobis';
## Task Generate a SQL query to answer the following question: `What is Tommy Nobis' position that has fewer than 16 picks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Tommy Nobis' position that has fewer than 16 picks?`: ```sql
SELECT "score" FROM "schedule_and_results" WHERE "opponent"='vancouver canucks';
## Task Generate a SQL query to answer the following question: `What was the score when the Rangers were playing against the Vancouver Canucks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when the Rangers were playing against the Vancouver Canucks?`: ```sql
SELECT "opponent" FROM "schedule_and_results" WHERE "january"=27;
## Task Generate a SQL query to answer the following question: `Who were the opponents on January 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the opponents on January 27?`: ```sql
SELECT "opponent" FROM "schedule_and_results" WHERE "game"<47 AND "record"='24-13-4';
## Task Generate a SQL query to answer the following question: `Who was the opponent for game number less than 47 and a record of 24-13-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent for game number less than 47 and a record of 24-13-4?`: ```sql
SELECT AVG("january") FROM "schedule_and_results" WHERE "opponent"='vancouver canucks' AND "game">39;
## Task Generate a SQL query to answer the following question: `What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?`: ```sql
SELECT "drawn" FROM "2008_2009_table" WHERE "points_against"='correct as of 08:50 10 may 2009';
## Task Generate a SQL query to answer the following question: `What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?`: ```sql
SELECT "tries_against" FROM "2008_2009_table" WHERE "lost"='12' AND "club"='pontycymmer rfc';
## Task Generate a SQL query to answer the following question: `What is the Tries against when lost shows 12 for pontycymmer rfc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Tries against when lost shows 12 for pontycymmer rfc?`: ```sql
SELECT "points_against" FROM "2008_2009_table" WHERE "club"='ystradgynlais rfc';
## Task Generate a SQL query to answer the following question: `What is the Points against for the ystradgynlais rfc club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Points against for the ystradgynlais rfc club?`: ```sql
SELECT "club" FROM "2008_2009_table" WHERE "points_against"='405';
## Task Generate a SQL query to answer the following question: `What is the Club name what shows 405 for the Points against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Club name what shows 405 for the Points against?`: ```sql
SELECT "try_bonus" FROM "2008_2009_table" WHERE "points_against"='451';
## Task Generate a SQL query to answer the following question: `What shows for Try bonus when the points against are 451?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for Try bonus when the points against are 451?`: ```sql
SELECT SUM("pos") FROM "o_reilly_200_memphis" WHERE "make"='chevrolet' AND "driver"='jack sprague' AND "car_num"<2;
## Task Generate a SQL query to answer the following question: `Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?`: ```sql
SELECT COUNT("car_num") FROM "o_reilly_200_memphis" WHERE "driver"='erik darnell' AND "pos"<2;
## Task Generate a SQL query to answer the following question: `How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?`: ```sql
SELECT SUM("pos") FROM "o_reilly_200_memphis" WHERE "car_num"=33;
## Task Generate a SQL query to answer the following question: `Which Pos has a Car # of 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pos has a Car # of 33?`: ```sql
SELECT MAX("pos") FROM "o_reilly_200_memphis" WHERE "team"='circle bar racing' AND "car_num"<14;
## Task Generate a SQL query to answer the following question: `Which Pos has a Team of circle bar racing, and a Car # smaller than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pos has a Team of circle bar racing, and a Car # smaller than 14?`: ```sql
SELECT AVG("pos") FROM "o_reilly_200_memphis" WHERE "car_num">2 AND "team"='billy ballew motorsports';
## Task Generate a SQL query to answer the following question: `Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?`: ```sql
SELECT MIN("points") FROM "engelberg" WHERE "2nd_m"=135;
## Task Generate a SQL query to answer the following question: `What is the lowest points that has 135 as 2nd (m)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest points that has 135 as 2nd (m)?`: ```sql
SELECT "overall_wc_points_rank" FROM "engelberg" WHERE "2nd_m"=139;
## Task Generate a SQL query to answer the following question: `What is the overall WC points (rank) that has 139 as the 2nd (m)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the overall WC points (rank) that has 139 as the 2nd (m)?`: ```sql
SELECT SUM("2nd_m") FROM "engelberg" WHERE "nationality"='aut' AND "rank"=4 AND "1st_m"<122.5;
## Task Generate a SQL query to answer the following question: `How many 2nd (m) have aut as the nationality, with 4 as the rank, and a 1st less than 122.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How many 2nd (m) have aut as the nationality, with 4 as the rank, and a 1st less than 122.5?`: ```sql
SELECT "name" FROM "engelberg" WHERE "1st_m">124.5 AND "2nd_m">136;
## Task Generate a SQL query to answer the following question: `What name has a 1st (m) greater than 124.5, and a 2nd (m) greater than 136?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What name has a 1st (m) greater than 124.5, and a 2nd (m) greater than 136?`: ```sql
SELECT "rank" FROM "2004_2005" WHERE "director_s"='satoko okita';
## Task Generate a SQL query to answer the following question: `What Rank is the Director(s) of satoko okita?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What Rank is the Director(s) of satoko okita?`: ```sql
SELECT "country" FROM "2004_2005" WHERE "film"='hi no tsugi ha rekishi';
## Task Generate a SQL query to answer the following question: `What country is the film hi no tsugi ha rekishi from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What country is the film hi no tsugi ha rekishi from?`: ```sql
SELECT "director_s" FROM "2004_2005" WHERE "prize"='¥300,000' AND "film"='hanzubon no ojisan';
## Task Generate a SQL query to answer the following question: `Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?`: ```sql
SELECT "country" FROM "2004_2005" WHERE "prize"='¥300,000' AND "director_s"='kota nagaoka';
## Task Generate a SQL query to answer the following question: `Which country did the Director(s) of kota nagaoka come from and win ¥300,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country did the Director(s) of kota nagaoka come from and win ¥300,000?`: ```sql
SELECT "director_s" FROM "2004_2005" WHERE "prize"='¥2,000,000';
## Task Generate a SQL query to answer the following question: `What Director won a prize of ¥2,000,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What Director won a prize of ¥2,000,000?`: ```sql
SELECT "rank" FROM "2004_2005" WHERE "director_s"='maximilian jezo-parovsky';
## Task Generate a SQL query to answer the following question: `What Rank is the director of maximilian jezo-parovsky?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What Rank is the director of maximilian jezo-parovsky?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "team"='milwaukee';
## Task Generate a SQL query to answer the following question: `Who had the most high assists from Milwaukee?` ### 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 `Who had the most high assists from Milwaukee?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='december 13';
## Task Generate a SQL query to answer the following question: `Who scored the most point on December 13?` ### 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 `Who scored the most point on December 13?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='22-24';
## Task Generate a SQL query to answer the following question: `What's the Loss for the game that had a 22-24 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Loss for the game that had a 22-24 record?`: ```sql
SELECT "date" FROM "men" WHERE "athlete"='elvir krehmic';
## Task Generate a SQL query to answer the following question: `What was the date that Elvir Krehmic made a high jump record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "nation" text, "height" text, "athlete" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date that Elvir Krehmic made a high jump record?`: ```sql
SELECT "spine" FROM "other_bibliographic_details" WHERE "number_of_issues"=12;
## Task Generate a SQL query to answer the following question: `Which spine has 12 issues?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); ### SQL Given the database schema, here is the SQL query that answers `Which spine has 12 issues?`: ```sql
SELECT SUM("number_of_issues") FROM "other_bibliographic_details" WHERE "end_month"='jan–72';
## Task Generate a SQL query to answer the following question: `How many issues end on jan–72?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); ### SQL Given the database schema, here is the SQL query that answers `How many issues end on jan–72?`: ```sql
SELECT "masthead" FROM "other_bibliographic_details" WHERE "end_month"='oct–69';
## Task Generate a SQL query to answer the following question: `Which masthead ends on oct–69?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); ### SQL Given the database schema, here is the SQL query that answers `Which masthead ends on oct–69?`: ```sql
SELECT AVG("game") FROM "playoffs" WHERE "date"='may 2';
## Task Generate a SQL query to answer the following question: `What is the game number held on May 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the game number held on May 2?`: ```sql
SELECT "season" FROM "season_by_season" WHERE "postseason"='promoted runner-up';
## Task Generate a SQL query to answer the following question: `Which Season has a Postseason of promoted runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season" ( "season" text, "tier" real, "division" text, "pos" real, "postseason" text, "cup_competitions" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Season has a Postseason of promoted runner-up?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "record"='20-11';
## Task Generate a SQL query to answer the following question: `What is the attendance of the match with a record 20-11?` ### 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 is the attendance of the match with a record 20-11?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='28-15';
## Task Generate a SQL query to answer the following question: `What is the date of the match with a 28-15 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 is the date of the match with a 28-15 record?`: ```sql
SELECT "opponent" FROM "playoffs" WHERE "date"='april 16';
## Task Generate a SQL query to answer the following question: `Which opponent did they play against on April 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent did they play against on April 16?`: ```sql
SELECT "circuit" FROM "calendar" WHERE "round">2 AND "state_territory"='victoria';
## Task Generate a SQL query to answer the following question: `What circuit was after round 2 in Victoria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "circuit" text, "state_territory" text, "date" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What circuit was after round 2 in Victoria?`: ```sql
SELECT "state_territory" FROM "calendar" WHERE "winning_driver"='jamie whincup' AND "round"=2;
## Task Generate a SQL query to answer the following question: `What is the state the winning driver Jamie Whincup from in round 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "circuit" text, "state_territory" text, "date" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the state the winning driver Jamie Whincup from in round 2?`: ```sql
SELECT "october" FROM "regular_season" WHERE "opponent"='toronto maple leafs';
## Task Generate a SQL query to answer the following question: `What date in October did the Flyers play against the Toronto Maple Leafs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What date in October did the Flyers play against the Toronto Maple Leafs?`: ```sql