output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MAX("year") FROM "2000s" WHERE "s_field_reporter"='Steve Lyons';
## Task Generate a SQL query to answer the following question: `What is the highest year with field reporter Steve Lyons?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" real, "network" text, "play_by_play_announcer" text, "color_commentator" text, "s_field_reporter" text, "pregame_hosts" text, "pregame_analysts" text, "trophy_presentation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest year with field reporter Steve Lyons?`: ```sql
SELECT "pregame_analysts" FROM "2000s" WHERE "trophy_presentation"='Chris Rose';
## Task Generate a SQL query to answer the following question: `What is every pregame analyst with Chris Rose as trophy presenter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" real, "network" text, "play_by_play_announcer" text, "color_commentator" text, "s_field_reporter" text, "pregame_hosts" text, "pregame_analysts" text, "trophy_presentation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every pregame analyst with Chris Rose as trophy presenter?`: ```sql
SELECT "play_by_play_announcer" FROM "2000s" WHERE "trophy_presentation"='Chris Rose';
## Task Generate a SQL query to answer the following question: `Who is every play-by-play announcer when Chris Rose is the trophy presenter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" real, "network" text, "play_by_play_announcer" text, "color_commentator" text, "s_field_reporter" text, "pregame_hosts" text, "pregame_analysts" text, "trophy_presentation" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is every play-by-play announcer when Chris Rose is the trophy presenter?`: ```sql
SELECT "directed_by" FROM "table1_29436178_1" WHERE "title"='\"I Am Dick Pentameter!\"';
## Task Generate a SQL query to answer the following question: `Who directed "I am Dick Pentameter!"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29436178_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who directed "I am Dick Pentameter!"?`: ```sql
SELECT COUNT("no_in_season") FROM "table1_29436178_1" WHERE "title"='\"Dick''s Big Giant Headache (Part 1)\"';
## Task Generate a SQL query to answer the following question: `How many episodes are titled "dick's big giant headache (part 1)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29436178_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes are titled "dick's big giant headache (part 1)"?`: ```sql
SELECT MAX("no_in_series") FROM "table1_29436178_1" WHERE "title"='\"Dick vs. Strudwick\"';
## Task Generate a SQL query to answer the following question: `What is the episode number od "Dick Vs. Strudwick"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29436178_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode number od "Dick Vs. Strudwick"?`: ```sql
SELECT COUNT("fourth_place") FROM "japan_football_league_jfl_1999_2013" WHERE "winner"='Otsuka Pharmaceuticals';
## Task Generate a SQL query to answer the following question: `How many teams came in fourth when Otsuka Pharmaceuticals won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_football_league_jfl_1999_2013" ( "season" real, "winner" text, "runner_up" text, "third_place" text, "fourth_place" text ); ### SQL Given the database schema, here is the SQL query that answers `How many teams came in fourth when Otsuka Pharmaceuticals won?`: ```sql
SELECT "runner_up" FROM "japan_football_league_jfl_1999_2013" WHERE "fourth_place"='Sagawa Express';
## Task Generate a SQL query to answer the following question: `Who was the runner up the season that Sagawa Express came in fourth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_football_league_jfl_1999_2013" ( "season" real, "winner" text, "runner_up" text, "third_place" text, "fourth_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the runner up the season that Sagawa Express came in fourth?`: ```sql
SELECT COUNT("season") FROM "japan_football_league_jfl_1999_2013" WHERE "third_place"='Otsuka Pharmaceuticals';
## Task Generate a SQL query to answer the following question: `How many seasons did Otsuka Pharmaceuticals come in third?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_football_league_jfl_1999_2013" ( "season" real, "winner" text, "runner_up" text, "third_place" text, "fourth_place" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons did Otsuka Pharmaceuticals come in third?`: ```sql
SELECT COUNT("no_in_series") FROM "table1_29436238_1" WHERE "written_by"='Gregg Mettler';
## Task Generate a SQL query to answer the following question: `How many episodes were written by Gregg Mettler?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29436238_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were written by Gregg Mettler?`: ```sql
SELECT "original_air_date" FROM "table1_29436238_1" WHERE "no_in_season"=4;
## Task Generate a SQL query to answer the following question: `What date did episode 4 in the season originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29436238_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What date did episode 4 in the season originally air?`: ```sql
SELECT "original_air_date" FROM "table1_29436238_1" WHERE "title"='\"The Big Giant Head Returns Again (Part 1)\"';
## Task Generate a SQL query to answer the following question: `What date did "the big giant head returns again (part 1)" originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29436238_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What date did "the big giant head returns again (part 1)" originally air?`: ```sql
SELECT MIN("production_code") FROM "table1_29436311_1" WHERE "title"='\"You Don''t Know Dick\"';
## Task Generate a SQL query to answer the following question: `What is the production code when the title is "you don't know dick"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29436311_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the production code when the title is "you don't know dick"?`: ```sql
SELECT "major_users" FROM "table1_29474407_11" WHERE "name_designation"='Gordon Close-Support Weapon System';
## Task Generate a SQL query to answer the following question: `Who are all the major users of the Gordon Close-Support Weapon System?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29474407_11" ( "name_designation" text, "year_of_intro" real, "country_of_origin" text, "primary_cartridge" text, "major_users" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are all the major users of the Gordon Close-Support Weapon System?`: ```sql
SELECT "country_of_origin" FROM "table1_29474407_11" WHERE "name_designation"='Flieger-Doppelpistole 1919';
## Task Generate a SQL query to answer the following question: `What country made the Flieger-Doppelpistole 1919?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29474407_11" ( "name_designation" text, "year_of_intro" real, "country_of_origin" text, "primary_cartridge" text, "major_users" text ); ### SQL Given the database schema, here is the SQL query that answers `What country made the Flieger-Doppelpistole 1919?`: ```sql
SELECT COUNT("year_of_intro") FROM "table1_29474407_11" WHERE "name_designation"='Neal submachine gun';
## Task Generate a SQL query to answer the following question: `How many years of introduction does the Neal Submachine Gun have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29474407_11" ( "name_designation" text, "year_of_intro" real, "country_of_origin" text, "primary_cartridge" text, "major_users" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years of introduction does the Neal Submachine Gun have?`: ```sql
SELECT "major_users" FROM "table1_29474407_11" WHERE "country_of_origin"='Australia';
## Task Generate a SQL query to answer the following question: `Who are the major users from Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29474407_11" ( "name_designation" text, "year_of_intro" real, "country_of_origin" text, "primary_cartridge" text, "major_users" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the major users from Australia?`: ```sql
SELECT "major_users" FROM "table1_29474407_11" WHERE "name_designation"='Saturn machine pistol';
## Task Generate a SQL query to answer the following question: `Who are all the major users of the Saturn Machine Pistol?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29474407_11" ( "name_designation" text, "year_of_intro" real, "country_of_origin" text, "primary_cartridge" text, "major_users" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are all the major users of the Saturn Machine Pistol?`: ```sql
SELECT COUNT("colonel") FROM "arkansas_militia_act_of_1843" WHERE "county"='Pope';
## Task Generate a SQL query to answer the following question: `in how many of the arkansas colomel the county was pope` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arkansas_militia_act_of_1843" ( "division" text, "brigade" text, "regiment" text, "colonel" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `in how many of the arkansas colomel the county was pope`: ```sql
SELECT "colonel" FROM "arkansas_militia_act_of_1843" WHERE "regiment"='35th Regiment';
## Task Generate a SQL query to answer the following question: `what is the name of the coloneo of the 35th regiment ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arkansas_militia_act_of_1843" ( "division" text, "brigade" text, "regiment" text, "colonel" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name of the coloneo of the 35th regiment `: ```sql
SELECT "regiment" FROM "arkansas_militia_act_of_1843" WHERE "county"='Fulton';
## Task Generate a SQL query to answer the following question: `which regiment was in the Fulton County` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arkansas_militia_act_of_1843" ( "division" text, "brigade" text, "regiment" text, "colonel" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `which regiment was in the Fulton County`: ```sql
SELECT "county" FROM "arkansas_militia_act_of_1843" WHERE "division"='2nd Division' AND "regiment"='41st Regiment';
## Task Generate a SQL query to answer the following question: `what is he name of the county where the 2nd division and the 41st regiment was` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arkansas_militia_act_of_1843" ( "division" text, "brigade" text, "regiment" text, "colonel" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `what is he name of the county where the 2nd division and the 41st regiment was`: ```sql
SELECT "regiment" FROM "arkansas_militia_act_of_1843" WHERE "county"='Arkansas';
## Task Generate a SQL query to answer the following question: `which regimen was in the arkansas county` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arkansas_militia_act_of_1843" ( "division" text, "brigade" text, "regiment" text, "colonel" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `which regimen was in the arkansas county`: ```sql
SELECT "director" FROM "table1_29475589_3" WHERE "writer_s"='Nicole Dubuc Duane Capizzi';
## Task Generate a SQL query to answer the following question: `When nicole dubuc duane capizzi is the writer who is the director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29475589_3" ( "no" real, "num" real, "episode_title" text, "director" text, "writer_s" text, "u_s_original_airdate" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When nicole dubuc duane capizzi is the writer who is the director?`: ```sql
SELECT MIN("no") FROM "table1_29475589_3" WHERE "episode_title"='\"Speed Metal\"';
## Task Generate a SQL query to answer the following question: `When "speed metal" is the episode title what is the lowest number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29475589_3" ( "no" real, "num" real, "episode_title" text, "director" text, "writer_s" text, "u_s_original_airdate" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When "speed metal" is the episode title what is the lowest number?`: ```sql
SELECT "episode_title" FROM "table1_29475589_3" WHERE "no"=22;
## Task Generate a SQL query to answer the following question: `When 22 is the number what is the episode title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29475589_3" ( "no" real, "num" real, "episode_title" text, "director" text, "writer_s" text, "u_s_original_airdate" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When 22 is the number what is the episode title?`: ```sql
SELECT "u_s_original_airdate" FROM "table1_29475589_5" WHERE "num"=9;
## Task Generate a SQL query to answer the following question: `When the # is 9 what is the U.S original airdate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29475589_5" ( "no" real, "num" real, "episode_title" text, "director" text, "writer_s" text, "u_s_original_airdate" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When the # is 9 what is the U.S original airdate?`: ```sql
SELECT COUNT("representative") FROM "house_of_representatives" WHERE "first_elected"='2008' AND "residence"='Hanover Twp';
## Task Generate a SQL query to answer the following question: `how many representatives from hanover twp were first elected in 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real ); ### SQL Given the database schema, here is the SQL query that answers `how many representatives from hanover twp were first elected in 2008`: ```sql
SELECT "first_elected" FROM "house_of_representatives" WHERE "representative"='Al Landis';
## Task Generate a SQL query to answer the following question: `when was al landis first elected` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real ); ### SQL Given the database schema, here is the SQL query that answers `when was al landis first elected`: ```sql
SELECT "representative" FROM "house_of_representatives" WHERE "residence"='Willowick';
## Task Generate a SQL query to answer the following question: `which representative is from willowick` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real ); ### SQL Given the database schema, here is the SQL query that answers `which representative is from willowick`: ```sql
SELECT COUNT("district") FROM "house_of_representatives" WHERE "representative"='Andy Thompson';
## Task Generate a SQL query to answer the following question: `which district does andy thompson represent` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real ); ### SQL Given the database schema, here is the SQL query that answers `which district does andy thompson represent`: ```sql
SELECT "party" FROM "house_of_representatives" WHERE "residence"='Newark';
## Task Generate a SQL query to answer the following question: `which party is the newark representative from` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real ); ### SQL Given the database schema, here is the SQL query that answers `which party is the newark representative from`: ```sql
SELECT "representative" FROM "house_of_representatives" WHERE "residence"='Beavercreek';
## Task Generate a SQL query to answer the following question: `who is beavercreek's representative` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "house_of_representatives" ( "district" real, "representative" text, "party" text, "residence" text, "first_elected" text, "term_limited" real ); ### SQL Given the database schema, here is the SQL query that answers `who is beavercreek's representative`: ```sql
SELECT MAX("rolex_ranking") FROM "ladies_european_tour_career_summary" WHERE "money_list_rank"='3';
## Task Generate a SQL query to answer the following question: `What was Reid's rolex ranking in the year that her money list rank was 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladies_european_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text, "rolex_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Reid's rolex ranking in the year that her money list rank was 3?`: ```sql
SELECT "money_list_rank" FROM "ladies_european_tour_career_summary" WHERE "top_10s"=0;
## Task Generate a SQL query to answer the following question: `What was the money list rank for Reid in the year that she had 0 top 10s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladies_european_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text, "rolex_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the money list rank for Reid in the year that she had 0 top 10s?`: ```sql
SELECT MAX("cuts_made") FROM "ladies_european_tour_career_summary" WHERE "earnings"='n/a';
## Task Generate a SQL query to answer the following question: `How many cuts did Reid make in the year when her earnings were n/a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladies_european_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text, "rolex_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `How many cuts did Reid make in the year when her earnings were n/a?`: ```sql
SELECT MIN("year") FROM "ladies_european_tour_career_summary" WHERE "earnings"='4,050 1';
## Task Generate a SQL query to answer the following question: `In what year were Reid's earnings €4,050 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladies_european_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text, "rolex_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `In what year were Reid's earnings €4,050 1?`: ```sql
SELECT "best_finish" FROM "2005_results" WHERE "earnings"=421050;
## Task Generate a SQL query to answer the following question: `What is the best finish for the player whose earnings was $421050?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the best finish for the player whose earnings was $421050?`: ```sql
SELECT MAX("starts") FROM "2005_results" WHERE "player"='Jeff Brehaut';
## Task Generate a SQL query to answer the following question: `What is the maximum start record for player of Jeff Brehaut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum start record for player of Jeff Brehaut?`: ```sql
SELECT "best_finish" FROM "2005_results" WHERE "player"='Carl Paulson';
## Task Generate a SQL query to answer the following question: `What is the best finish record for Carl Paulson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the best finish record for Carl Paulson?`: ```sql
SELECT "best_finish" FROM "2005_results" WHERE "player"='Sean O''Hair';
## Task Generate a SQL query to answer the following question: `What is the best finish record for Sean O'hair?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the best finish record for Sean O'hair?`: ```sql
SELECT MAX("money_list_rank") FROM "2005_results" WHERE "player"='Doug Barron';
## Task Generate a SQL query to answer the following question: `What is the money list rank for player Doug Barron?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the money list rank for player Doug Barron?`: ```sql
SELECT COUNT("quarterfinals") FROM "table1_29521180_35" WHERE "athlete"='Federico Muller';
## Task Generate a SQL query to answer the following question: `How many athletes were named federico muller?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29521180_35" ( "athlete" text, "event" text, "elimination_poule" text, "round_of_16" text, "quarterfinals" text, "semifinals" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `How many athletes were named federico muller?`: ```sql
SELECT "round_of_16" FROM "table1_29521180_35" WHERE "athlete"='Felipe Saucedo';
## Task Generate a SQL query to answer the following question: `What was the round of 16 result for felipe saucedo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29521180_35" ( "athlete" text, "event" text, "elimination_poule" text, "round_of_16" text, "quarterfinals" text, "semifinals" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the round of 16 result for felipe saucedo?`: ```sql
SELECT "isbn" FROM "original_audiobooks" WHERE "title"='The Ring Of Steel';
## Task Generate a SQL query to answer the following question: `The Ring of Steel possesses what ISBN?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_audiobooks" ( "num" real, "title" text, "author" text, "doctor" text, "featuring" text, "read_by" text, "published" text, "isbn" text ); ### SQL Given the database schema, here is the SQL query that answers `The Ring of Steel possesses what ISBN?`: ```sql
SELECT "read_by" FROM "original_audiobooks" WHERE "isbn"='ISBN 978-1-4084-6879-1';
## Task Generate a SQL query to answer the following question: `THe audio book with ISBN 978-1-4084-6879-1 is read by whom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_audiobooks" ( "num" real, "title" text, "author" text, "doctor" text, "featuring" text, "read_by" text, "published" text, "isbn" text ); ### SQL Given the database schema, here is the SQL query that answers `THe audio book with ISBN 978-1-4084-6879-1 is read by whom?`: ```sql
SELECT "num" FROM "original_audiobooks" WHERE "title"='The Empty House';
## Task Generate a SQL query to answer the following question: `The Empty House audiobook has what #?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_audiobooks" ( "num" real, "title" text, "author" text, "doctor" text, "featuring" text, "read_by" text, "published" text, "isbn" text ); ### SQL Given the database schema, here is the SQL query that answers `The Empty House audiobook has what #?`: ```sql
SELECT COUNT("directed_by") FROM "table1_29545336_2" WHERE "no"=2;
## Task Generate a SQL query to answer the following question: `How many people directed episode 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29545336_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people directed episode 2?`: ```sql
SELECT "original_air_date" FROM "table1_29545336_2" WHERE "title"='\"Stanley\"';
## Task Generate a SQL query to answer the following question: `What date did "stanley" originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29545336_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did "stanley" originally air?`: ```sql
SELECT "title" FROM "table1_29545336_2" WHERE "featured_character_s"='Abbud Siddiqui';
## Task Generate a SQL query to answer the following question: `What is the title of the episode that featured Abbud Siddiqui?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29545336_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode that featured Abbud Siddiqui?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_29545336_2" WHERE "written_by"='Matt Pelfrey';
## Task Generate a SQL query to answer the following question: `How many million U.S. viewers was written by Matt Pelfrey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29545336_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many million U.S. viewers was written by Matt Pelfrey?`: ```sql
SELECT COUNT("tonnes_of_co2_saved") FROM "results" WHERE "pct_electricity_reduction"='8.9%';
## Task Generate a SQL query to answer the following question: `When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "year" text, "universities" real, "no_of_students_signed_up" real, "pct_electricity_reduction" text, "tonnes_of_co2_saved" real, "saved" text ); ### SQL Given the database schema, here is the SQL query that answers `When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there?`: ```sql
SELECT "year" FROM "results" WHERE "tonnes_of_co2_saved"=1522;
## Task Generate a SQL query to answer the following question: `When 1522 is the tonnes of co2 saved what is the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "year" text, "universities" real, "no_of_students_signed_up" real, "pct_electricity_reduction" text, "tonnes_of_co2_saved" real, "saved" text ); ### SQL Given the database schema, here is the SQL query that answers `When 1522 is the tonnes of co2 saved what is the year?`: ```sql
SELECT "pct_electricity_reduction" FROM "results" WHERE "saved"='£337,000';
## Task Generate a SQL query to answer the following question: `When £337,000 is £ saved what is the percentage of electricity reduction?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "year" text, "universities" real, "no_of_students_signed_up" real, "pct_electricity_reduction" text, "tonnes_of_co2_saved" real, "saved" text ); ### SQL Given the database schema, here is the SQL query that answers `When £337,000 is £ saved what is the percentage of electricity reduction?`: ```sql
SELECT "saved" FROM "results" WHERE "pct_electricity_reduction"='8.9%';
## Task Generate a SQL query to answer the following question: `When 8.9% is the electricity reduction percentage what is the £ saved?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "year" text, "universities" real, "no_of_students_signed_up" real, "pct_electricity_reduction" text, "tonnes_of_co2_saved" real, "saved" text ); ### SQL Given the database schema, here is the SQL query that answers `When 8.9% is the electricity reduction percentage what is the £ saved?`: ```sql
SELECT COUNT("universities") FROM "results" WHERE "pct_electricity_reduction"='10%';
## Task Generate a SQL query to answer the following question: `When 10% is the percentage of electricity reduction how many sets of universities are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "year" text, "universities" real, "no_of_students_signed_up" real, "pct_electricity_reduction" text, "tonnes_of_co2_saved" real, "saved" text ); ### SQL Given the database schema, here is the SQL query that answers `When 10% is the percentage of electricity reduction how many sets of universities are there?`: ```sql
SELECT MAX("l") FROM "asham_black_group" WHERE "pa"=47;
## Task Generate a SQL query to answer the following question: `What is maximum loss record when the pa record is 47?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asham_black_group" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is maximum loss record when the pa record is 47?`: ```sql
SELECT MIN("ends_lost") FROM "asham_black_group" WHERE "stolen_ends"=6 AND "l">5.0;
## Task Generate a SQL query to answer the following question: `What is the minimum ends lost record when the stolen ends records is 6 and the loss record is bigger than 5.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asham_black_group" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum ends lost record when the stolen ends records is 6 and the loss record is bigger than 5.0?`: ```sql
SELECT MIN("stolen_ends") FROM "asham_black_group" WHERE "pa"=40;
## Task Generate a SQL query to answer the following question: `What is the minimum stolen ends record where the pa record is 40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asham_black_group" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum stolen ends record where the pa record is 40?`: ```sql
SELECT "skip_club" FROM "standings" WHERE "ends_won"=39;
## Task Generate a SQL query to answer the following question: `When 39 is the amount of ends won who is the skip (club)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `When 39 is the amount of ends won who is the skip (club)?`: ```sql
SELECT COUNT("w") FROM "standings" WHERE "skip_club"='Nicole Backe (Nanaimo Curling Club)';
## Task Generate a SQL query to answer the following question: `When nicole backe (nanaimo curling club) is the skip (club) how many sets of w's are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `When nicole backe (nanaimo curling club) is the skip (club) how many sets of w's are there?`: ```sql
SELECT COUNT("pf") FROM "standings" WHERE "ends_won"=36;
## Task Generate a SQL query to answer the following question: `When 36 is the amount of ends won how many sets of pf's are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `When 36 is the amount of ends won how many sets of pf's are there?`: ```sql
SELECT MIN("w") FROM "standings";
## Task Generate a SQL query to answer the following question: `What is the lowest overall amount of w's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest overall amount of w's?`: ```sql
SELECT MAX("l") FROM "standings";
## Task Generate a SQL query to answer the following question: `What is the highest L of the tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest L of the tournament?`: ```sql
SELECT MAX("w") FROM "standings" WHERE "l"=0;
## Task Generate a SQL query to answer the following question: `What is the highest W of the 0 L?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest W of the 0 L?`: ```sql
SELECT MIN("pa") FROM "standings" WHERE "w"=2;
## Task Generate a SQL query to answer the following question: `Name the least pa for w being 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least pa for w being 2`: ```sql
SELECT MIN("ends_lost") FROM "standings" WHERE "skip_club"='Joëlle Belley (Glenmore)';
## Task Generate a SQL query to answer the following question: `Name the least ends lost for joëlle belley (glenmore)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least ends lost for joëlle belley (glenmore)`: ```sql
SELECT "skip_club" FROM "standings" WHERE "pa"=28;
## Task Generate a SQL query to answer the following question: `Which skip (club) had 28 PA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `Which skip (club) had 28 PA?`: ```sql
SELECT MAX("stolen_ends") FROM "standings" WHERE "w"=1;
## Task Generate a SQL query to answer the following question: `What is the most amount of stolen ends for a skip with 1 W?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most amount of stolen ends for a skip with 1 W?`: ```sql
SELECT "skip_club" FROM "standings" WHERE "pa"=31 AND "blank_ends"=9;
## Task Generate a SQL query to answer the following question: `Which skip (club) had 31 PA and 9 blank ends?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `Which skip (club) had 31 PA and 9 blank ends?`: ```sql
SELECT MIN("blank_ends") FROM "standings" WHERE "pf"=44;
## Task Generate a SQL query to answer the following question: `What is the least amount of blank ends for a skip who has 44 PF? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least amount of blank ends for a skip who has 44 PF? `: ```sql
SELECT COUNT("high_points") FROM "schedule" WHERE "team"='UMass';
## Task Generate a SQL query to answer the following question: `How many high points occur with the team Umass?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "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 `How many high points occur with the team Umass?`: ```sql
SELECT "high_points" FROM "schedule" WHERE "team"='La Salle';
## Task Generate a SQL query to answer the following question: `When la salle is the team who has the highest amount of points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "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 `When la salle is the team who has the highest amount of points?`: ```sql
SELECT MAX("game") FROM "schedule" WHERE "high_assists"='Allen/Moore/Wyatt – 4';
## Task Generate a SQL query to answer the following question: `When allen/moore/wyatt – 4 have the highest amount of assists what is the highest game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "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 `When allen/moore/wyatt – 4 have the highest amount of assists what is the highest game?`: ```sql
SELECT "record" FROM "schedule" WHERE "team"='Dayton';
## Task Generate a SQL query to answer the following question: `When dayton is the team what is the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "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 `When dayton is the team what is the record?`: ```sql
SELECT "song_title" FROM "2010" WHERE "result_placement"='to the Live Shows';
## Task Generate a SQL query to answer the following question: `What the title of the song when the result is to the live shows?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "episode" text, "theme_date" text, "song_title" text, "original_performer" text, "result_placement" text ); ### SQL Given the database schema, here is the SQL query that answers `What the title of the song when the result is to the live shows?`: ```sql
SELECT "episode" FROM "2010" WHERE "original_performer"='Diana Ross';
## Task Generate a SQL query to answer the following question: `What is the episode when the original performaer is diana ross?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "episode" text, "theme_date" text, "song_title" text, "original_performer" text, "result_placement" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode when the original performaer is diana ross?`: ```sql
SELECT "original_performer" FROM "2010" WHERE "episode"='Casting';
## Task Generate a SQL query to answer the following question: `Who is the original performer when the episode is casting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010" ( "episode" text, "theme_date" text, "song_title" text, "original_performer" text, "result_placement" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the original performer when the episode is casting?`: ```sql
SELECT MAX("pa") FROM "standings_pool_b" WHERE "ends_won"=21;
## Task Generate a SQL query to answer the following question: `What is the pa listed when the ends won is 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings_pool_b" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the pa listed when the ends won is 21?`: ```sql
SELECT COUNT("stolen_ends") FROM "standings_pool_b" WHERE "skip_club"='Debbie Folk (Nutana)';
## Task Generate a SQL query to answer the following question: `How many times is there an entry in stolen ends when skip (club) is listed as debbie folk (nutana)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings_pool_b" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `How many times is there an entry in stolen ends when skip (club) is listed as debbie folk (nutana)?`: ```sql
SELECT COUNT("skip_club") FROM "standings_pool_b" WHERE "pf"=40;
## Task Generate a SQL query to answer the following question: `What is the total mumber of skip (club) entries when the pf is 40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings_pool_b" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total mumber of skip (club) entries when the pf is 40?`: ```sql
SELECT COUNT("ends_won") FROM "standings_pool_b" WHERE "skip_club"='Chantelle Eberle (Tartan)';
## Task Generate a SQL query to answer the following question: `What is the number of ends won entries when the skip (club) is chantelle eberle (tartan)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings_pool_b" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of ends won entries when the skip (club) is chantelle eberle (tartan)?`: ```sql
SELECT "name" FROM "finishing_order" WHERE "starting_price"='66/1';
## Task Generate a SQL query to answer the following question: `What horse had a starting price of 66/1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finishing_order" ( "position" text, "name" text, "jockey" text, "age" real, "weight_st_lb" text, "starting_price" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `What horse had a starting price of 66/1?`: ```sql
SELECT "skip_club" FROM "standings" WHERE "ends_won"=43;
## Task Generate a SQL query to answer the following question: `Who is listed under skip (club) when the ends won is 43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `Who is listed under skip (club) when the ends won is 43?`: ```sql
SELECT MAX("l") FROM "standings" WHERE "skip_club"='Jeff Richard (Kelowna)';
## Task Generate a SQL query to answer the following question: `What is the L when the skip club is Jeff Richard (kelowna)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the L when the skip club is Jeff Richard (kelowna)?`: ```sql
SELECT MIN("l") FROM "standings" WHERE "w"=4;
## Task Generate a SQL query to answer the following question: `What is the L when the W is 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the L when the W is 4?`: ```sql
SELECT MAX("l") FROM "standings";
## Task Generate a SQL query to answer the following question: `What is the largest number in L?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest number in L?`: ```sql
SELECT MIN("pa") FROM "standings" WHERE "pf"=73;
## Task Generate a SQL query to answer the following question: `What is the PA when the PF is 73?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the PA when the PF is 73?`: ```sql
SELECT "blank_ends" FROM "standings" WHERE "w">6.0;
## Task Generate a SQL query to answer the following question: `What is the blank ends record when the win record is higher than 6.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the blank ends record when the win record is higher than 6.0?`: ```sql
SELECT "w" FROM "standings" WHERE "pa"=62;
## Task Generate a SQL query to answer the following question: `What is the win record where the pa record is 62?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the win record where the pa record is 62?`: ```sql
SELECT "l" FROM "standings" WHERE "stolen_ends"=1;
## Task Generate a SQL query to answer the following question: `What is listed under L when the stolen ends is 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listed under L when the stolen ends is 1?`: ```sql
SELECT MIN("w") FROM "standings" WHERE "ends_won"=22;
## Task Generate a SQL query to answer the following question: `What is listed under W when the ends won is 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listed under W when the ends won is 22?`: ```sql
SELECT MAX("l") FROM "standings" WHERE "ends_won"=21;
## Task Generate a SQL query to answer the following question: `What is listed under L when the ends won is 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listed under L when the ends won is 21?`: ```sql
SELECT COUNT("rank") FROM "men_s_singles" WHERE "new_points"=1155;
## Task Generate a SQL query to answer the following question: `How many rank entries are there when new points are 1155?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_singles" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rank entries are there when new points are 1155?`: ```sql
SELECT MIN("new_points") FROM "men_s_singles" WHERE "status"='Second round lost to Xavier Malisse';
## Task Generate a SQL query to answer the following question: `What is listed in new points when status is second round lost to xavier malisse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_singles" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed in new points when status is second round lost to xavier malisse?`: ```sql
SELECT "status" FROM "men_s_singles" WHERE "points"=4595;
## Task Generate a SQL query to answer the following question: `What is the status when points is 4595?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_singles" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status when points is 4595?`: ```sql
SELECT "status" FROM "men_s_singles" WHERE "rank"=2;
## Task Generate a SQL query to answer the following question: `What is the status when the rank is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_singles" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status when the rank is 2?`: ```sql
SELECT MAX("points") FROM "men_s_singles" WHERE "rank"=17;
## Task Generate a SQL query to answer the following question: `How many points are listed when the rank is 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_singles" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points are listed when the rank is 17?`: ```sql
SELECT COUNT("seed") FROM "men_s_singles" WHERE "points"=2175;
## Task Generate a SQL query to answer the following question: `How many seed entries are there when points are 2175?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_singles" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seed entries are there when points are 2175?`: ```sql
SELECT "clubs_remaining" FROM "teams" WHERE "winners_from_previous_round"=4;
## Task Generate a SQL query to answer the following question: `How many clubs remained when there were 4 winners from the previous round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" real, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs remained when there were 4 winners from the previous round?`: ```sql