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