text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_zealand_tv2" ( "episode_number" real, "title" text, "original_airing" text, "timeslot" text, "viewers" real, "top_50_ranking" real, "scripted_show_ranking" real ); Question: The episode titled "Epiphany" received what scripted show ranking? <|assistant|> SELECT MIN("scripted_show_ranking") FROM "new_zealand_tv2" WHERE "title"='Epiphany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_zealand_tv2" ( "episode_number" real, "title" text, "original_airing" text, "timeslot" text, "viewers" real, "top_50_ranking" real, "scripted_show_ranking" real ); Question: How many of the episodes in the top 50 rankings were originally aired on June 28, 2010? <|assistant|> SELECT COUNT("top_50_ranking") FROM "new_zealand_tv2" WHERE "original_airing"='June 28, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tertiary_institutions" ( "institution" text, "location" text, "enrollment" text, "athletic_nickname" text, "school_colors" text, "founded" real ); Question: For the location of quezon city , metro manila what is the athletic nickname? <|assistant|> SELECT "athletic_nickname" FROM "tertiary_institutions" WHERE "location"='Quezon City , Metro Manila';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tertiary_institutions" ( "institution" text, "location" text, "enrollment" text, "athletic_nickname" text, "school_colors" text, "founded" real ); Question: How many locations are there for the athletic nickname is blue crusaders? <|assistant|> SELECT COUNT("location") FROM "tertiary_institutions" WHERE "athletic_nickname"='Blue Crusaders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tertiary_institutions" ( "institution" text, "location" text, "enrollment" text, "athletic_nickname" text, "school_colors" text, "founded" real ); Question: How many entries are shown for school colors for the location of naga , camarines sur? <|assistant|> SELECT COUNT("school_colors") FROM "tertiary_institutions" WHERE "location"='Naga , Camarines Sur';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tertiary_institutions" ( "institution" text, "location" text, "enrollment" text, "athletic_nickname" text, "school_colors" text, "founded" real ); Question: For the athletic nickname of golden knights how many entries are shown for enrollment? <|assistant|> SELECT COUNT("enrollment") FROM "tertiary_institutions" WHERE "athletic_nickname"='Golden Knights';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tertiary_institutions" ( "institution" text, "location" text, "enrollment" text, "athletic_nickname" text, "school_colors" text, "founded" real ); Question: What year was the ateneo de manila university founded? <|assistant|> SELECT "founded" FROM "tertiary_institutions" WHERE "institution"='Ateneo de Manila University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tertiary_institutions" ( "institution" text, "location" text, "enrollment" text, "athletic_nickname" text, "school_colors" text, "founded" real ); Question: What year was the athletic nickname blue crusaders founded? <|assistant|> SELECT "founded" FROM "tertiary_institutions" WHERE "athletic_nickname"='Blue Crusaders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22181917_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: How many original airdates did season 20 have? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_22181917_2" WHERE "season_num"=20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22181917_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who directed the episode that was watched by 6.62 million U.S. viewers? <|assistant|> SELECT "directed_by" FROM "table1_22181917_2" WHERE "u_s_viewers_millions"='6.62';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22181917_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What is the production code for the episode with 8.56 million U.S. viewers? <|assistant|> SELECT "production_code" FROM "table1_22181917_2" WHERE "u_s_viewers_millions"='8.56';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22181917_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What is the title of the episode that had 9.76 million U.S. viewers? <|assistant|> SELECT "title" FROM "table1_22181917_2" WHERE "u_s_viewers_millions"='9.76';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom_channel_4" ( "episode_number" real, "title" text, "original_airing_on_channel_4" text, "time_of_airing_on_channel_4" text, "original_airing_on_e4" text, "time_of_airing_on_e4" text, "position_in_channel_4s_ratings_a" text, "position_in_e4s_ratings_b" text, "total_viewers" text ); Question: What is the title of the original airing on e4 May 2, 2010? <|assistant|> SELECT "title" FROM "united_kingdom_channel_4" WHERE "original_airing_on_e4"='May 2, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom_channel_4" ( "episode_number" real, "title" text, "original_airing_on_channel_4" text, "time_of_airing_on_channel_4" text, "original_airing_on_e4" text, "time_of_airing_on_e4" text, "position_in_channel_4s_ratings_a" text, "position_in_e4s_ratings_b" text, "total_viewers" text ); Question: How many total viewers have April 21, 2010 as the original airing on channel 4? <|assistant|> SELECT COUNT("total_viewers") FROM "united_kingdom_channel_4" WHERE "original_airing_on_channel_4"='April 21, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom_channel_4" ( "episode_number" real, "title" text, "original_airing_on_channel_4" text, "time_of_airing_on_channel_4" text, "original_airing_on_e4" text, "time_of_airing_on_e4" text, "position_in_channel_4s_ratings_a" text, "position_in_e4s_ratings_b" text, "total_viewers" text ); Question: What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4? <|assistant|> SELECT "position_in_e4s_ratings_b" FROM "united_kingdom_channel_4" WHERE "original_airing_on_channel_4"='June 30, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom_channel_4" ( "episode_number" real, "title" text, "original_airing_on_channel_4" text, "time_of_airing_on_channel_4" text, "original_airing_on_e4" text, "time_of_airing_on_e4" text, "position_in_channel_4s_ratings_a" text, "position_in_e4s_ratings_b" text, "total_viewers" text ); Question: When is the original airing on channel 4 with being alive as the title? <|assistant|> SELECT "original_airing_on_channel_4" FROM "united_kingdom_channel_4" WHERE "title"='Being Alive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom_channel_4" ( "episode_number" real, "title" text, "original_airing_on_channel_4" text, "time_of_airing_on_channel_4" text, "original_airing_on_e4" text, "time_of_airing_on_e4" text, "position_in_channel_4s_ratings_a" text, "position_in_e4s_ratings_b" text, "total_viewers" text ); Question: How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4? <|assistant|> SELECT COUNT("position_in_channel_4s_ratings_a") FROM "united_kingdom_channel_4" WHERE "original_airing_on_channel_4"='February 24, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "type" text, "registration" text, "design" text, "construction" text, "service" text, "construction_date" text, "conformity_to_original_design" text, "interest" text, "number_existing_in_switzerland" text, "number_existing_worldwide" text, "status" text ); Question: What are all types where registration is HB-OPU? <|assistant|> SELECT "type" FROM "references" WHERE "registration"='HB-OPU';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "type" text, "registration" text, "design" text, "construction" text, "service" text, "construction_date" text, "conformity_to_original_design" text, "interest" text, "number_existing_in_switzerland" text, "number_existing_worldwide" text, "status" text ); Question: What is every registration for the type of T 6 G? <|assistant|> SELECT "registration" FROM "references" WHERE "type"='T 6 G';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "type" text, "registration" text, "design" text, "construction" text, "service" text, "construction_date" text, "conformity_to_original_design" text, "interest" text, "number_existing_in_switzerland" text, "number_existing_worldwide" text, "status" text ); Question: What is every construction date for the registration of HB-HOS? <|assistant|> SELECT "construction_date" FROM "references" WHERE "registration"='HB-HOS';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "type" text, "registration" text, "design" text, "construction" text, "service" text, "construction_date" text, "conformity_to_original_design" text, "interest" text, "number_existing_in_switzerland" text, "number_existing_worldwide" text, "status" text ); Question: What is every conformity to original design if the construction date is after 1945 and registration is HB-SAE? <|assistant|> SELECT "conformity_to_original_design" FROM "references" WHERE "construction_date"='After 1945' AND "registration"='HB-SAE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "type" text, "registration" text, "design" text, "construction" text, "service" text, "construction_date" text, "conformity_to_original_design" text, "interest" text, "number_existing_in_switzerland" text, "number_existing_worldwide" text, "status" text ); Question: What is every conformity to original design if registration is HB-DAI? <|assistant|> SELECT "conformity_to_original_design" FROM "references" WHERE "registration"='HB-DAI';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_list" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "nbc_airdate" text, "code" real ); Question: What is the latest season number that Eric Tuchman directed? <|assistant|> SELECT MAX("season_num") FROM "episode_list" WHERE "director"='Eric Tuchman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_list" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "nbc_airdate" text, "code" real ); Question: How man seasons have the air date of October 2, 2001? <|assistant|> SELECT COUNT("season_num") FROM "episode_list" WHERE "nbc_airdate"='October 2, 2001';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_list" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "nbc_airdate" text, "code" real ); Question: Who wrote, "The Last Dance"? <|assistant|> SELECT "writer_s" FROM "episode_list" WHERE "title"='\"The Last Dance\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2220432_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: What was the report in the race where the winning team was Roush Fenway Racing? <|assistant|> SELECT "report" FROM "table1_2220432_1" WHERE "team"='Roush Fenway Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2220432_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: What was the miles (km) for the race that had an average speed of 136.117 MPH? <|assistant|> SELECT "miles_km" FROM "table1_2220432_1" WHERE "average_speed_mph"='136.117';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226343_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: What are the miles when February 25 is the date? <|assistant|> SELECT "miles_km" FROM "table1_2226343_1" WHERE "date"='February 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226343_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: How many laps have an average speed of 141.911? <|assistant|> SELECT "laps" FROM "table1_2226343_1" WHERE "average_speed_mph"='141.911';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226343_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Who is the manufacturer when 150.088 is the average speed (mph)? <|assistant|> SELECT "manufacturer" FROM "table1_2226343_1" WHERE "average_speed_mph"='150.088';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226343_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Who is the manufacturer for the date of June 22? <|assistant|> SELECT "manufacturer" FROM "table1_2226343_1" WHERE "date"='June 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226343_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: How many laps have a race time of 3:31:24? <|assistant|> SELECT "laps" FROM "table1_2226343_1" WHERE "race_time"='3:31:24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226343_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: How many laps have an average speed (mph) of 140.22? <|assistant|> SELECT "laps" FROM "table1_2226343_1" WHERE "average_speed_mph"='140.22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fr_yugoslavia" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Who directed the film with the original title of три летња дана? <|assistant|> SELECT "director" FROM "fr_yugoslavia" WHERE "original_title"='Три летња дана';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fr_yugoslavia" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Who directed the film with the title three summer days? <|assistant|> SELECT "director" FROM "fr_yugoslavia" WHERE "film_title_used_in_nomination"='Three Summer Days';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fr_yugoslavia" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Who is the director of the film with the title лепа села лепо горе? <|assistant|> SELECT "director" FROM "fr_yugoslavia" WHERE "original_title"='Лепа села лепо горе';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22261877_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many viewers in millions watched the episode with the production code 6acx16? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_22261877_1" WHERE "production_code"='6ACX16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22261877_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What is the air date of the episode with the production code 6acx19? <|assistant|> SELECT "original_air_date" FROM "table1_22261877_1" WHERE "production_code"='6ACX19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What is the original air date for the production code of 1.12? <|assistant|> SELECT "original_air_date" FROM "table1_2226817_2" WHERE "production_code"='1.12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: How many number of series have a production code of 1.11? <|assistant|> SELECT "no_in_series" FROM "table1_2226817_2" WHERE "production_code"='1.11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: How many number of series have the production code of 1.11? <|assistant|> SELECT MAX("no_in_series") FROM "table1_2226817_2" WHERE "production_code"='1.11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who wrote when the original airdate is April 5, 1987? <|assistant|> SELECT "written_by" FROM "table1_2226817_2" WHERE "original_air_date"='April 5, 1987';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who directed the title "peggy sue got work"? <|assistant|> SELECT "directed_by" FROM "table1_2226817_2" WHERE "title"='\"Peggy Sue Got Work\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who directed when the production code is 1.02? <|assistant|> SELECT "directed_by" FROM "table1_2226817_2" WHERE "production_code"='1.02';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Name the production code for november 27, 1988 <|assistant|> SELECT "production_code" FROM "table1_2226817_4" WHERE "original_air_date"='November 27, 1988';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Name the original air date for 3.04 production code <|assistant|> SELECT "original_air_date" FROM "table1_2226817_4" WHERE "production_code"='3.04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Name who wrote the episode that aired april 9, 1989 <|assistant|> SELECT "written_by" FROM "table1_2226817_4" WHERE "original_air_date"='April 9, 1989';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Name the number of number in season for 3.09 <|assistant|> SELECT COUNT("no_in_season") FROM "table1_2226817_4" WHERE "production_code"='3.09';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_12" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: when was the episode premiere if the production code is 11.19? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_2226817_12" WHERE "production_code"='11.19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_12" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what is the name of the episode whose premiere was in march 2, 1997? <|assistant|> SELECT "title" FROM "table1_2226817_12" WHERE "original_air_date"='March 2, 1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_12" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what is the name of the episode when the production code is 11.01? <|assistant|> SELECT "title" FROM "table1_2226817_12" WHERE "production_code"='11.01';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_12" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what is the name of the episode if the production code is 11.12? <|assistant|> SELECT "title" FROM "table1_2226817_12" WHERE "production_code"='11.12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_12" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: how many episodes has been directed by Mark K. Samuels ? <|assistant|> SELECT COUNT("no_in_series") FROM "table1_2226817_12" WHERE "directed_by"='Mark K. Samuels';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_12" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: what is the number of the episode in series that is called "breaking up is easy to do (part 1)"? <|assistant|> SELECT "no_in_series" FROM "table1_2226817_12" WHERE "title"='\"Breaking Up Is Easy to Do (Part 1)\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who directed the title "the razor's edge"? <|assistant|> SELECT "directed_by" FROM "table1_2226817_3" WHERE "title"='\"The Razor''s Edge\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker? <|assistant|> SELECT "directed_by" FROM "table1_2226817_3" WHERE "written_by"='Michael G. Moye & Ron Leavitt & J. Stanford Parker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What are all the production codes of episodes written by Michael G. Moye? <|assistant|> SELECT "production_code" FROM "table1_2226817_8" WHERE "written_by"='Michael G. Moye';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who is the writer of episode 13? <|assistant|> SELECT COUNT("written_by") FROM "table1_2226817_8" WHERE "no_in_season"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Which series number has the production code 7.07? <|assistant|> SELECT COUNT("no_in_series") FROM "table1_2226817_8" WHERE "production_code"='7.07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: How many seasons have the production code 7.01 for an episode? <|assistant|> SELECT MAX("no_in_season") FROM "table1_2226817_8" WHERE "production_code"='7.01';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: How many episodes in the series are from season 12? <|assistant|> SELECT "no_in_series" FROM "table1_2226817_8" WHERE "no_in_season"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: How many seasons had episode 158? <|assistant|> SELECT MIN("no_in_season") FROM "table1_2226817_9" WHERE "no_in_series"=158;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What is the production code of the episode directed by Stacie Lipp? <|assistant|> SELECT "production_code" FROM "table1_2226817_9" WHERE "written_by"='Stacie Lipp';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What is the name of episode 165? <|assistant|> SELECT "title" FROM "table1_2226817_9" WHERE "no_in_series"=165;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2226817_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: How many episodes have the production code 8.04 <|assistant|> SELECT COUNT("directed_by") FROM "table1_2226817_9" WHERE "production_code"='8.04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "officially_assigned_code_elements" ( "english_short_name_upper_lower_case" text, "alpha_2_code" text, "alpha_3_code" text, "numeric_code" real, "iso_3166_2_codes" text ); Question: What is the Alpha 2 code for the area also known as TCA? <|assistant|> SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='TCA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "officially_assigned_code_elements" ( "english_short_name_upper_lower_case" text, "alpha_2_code" text, "alpha_3_code" text, "numeric_code" real, "iso_3166_2_codes" text ); Question: What is the Alpha 3 code for the area also known as FO? <|assistant|> SELECT "alpha_3_code" FROM "officially_assigned_code_elements" WHERE "alpha_2_code"='FO';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "officially_assigned_code_elements" ( "english_short_name_upper_lower_case" text, "alpha_2_code" text, "alpha_3_code" text, "numeric_code" real, "iso_3166_2_codes" text ); Question: What is the alpha 2 code for the area also known as NZL? <|assistant|> SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='NZL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "officially_assigned_code_elements" ( "english_short_name_upper_lower_case" text, "alpha_2_code" text, "alpha_3_code" text, "numeric_code" real, "iso_3166_2_codes" text ); Question: What is the ISO for South Sudan? <|assistant|> SELECT "iso_3166_2_codes" FROM "officially_assigned_code_elements" WHERE "english_short_name_upper_lower_case"='South Sudan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "officially_assigned_code_elements" ( "english_short_name_upper_lower_case" text, "alpha_2_code" text, "alpha_3_code" text, "numeric_code" real, "iso_3166_2_codes" text ); Question: What is the Alpha 2 code for Papua New Guinea? <|assistant|> SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "english_short_name_upper_lower_case"='Papua New Guinea';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "officially_assigned_code_elements" ( "english_short_name_upper_lower_case" text, "alpha_2_code" text, "alpha_3_code" text, "numeric_code" real, "iso_3166_2_codes" text ); Question: What is the number reference for LIE? <|assistant|> SELECT "numeric_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='LIE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "free_to_air_television" ( "ch" text, "channel" text, "channel_content" text, "transmission" text, "format" text, "launch_date" text, "licence" text ); Question: How many launch dates are there for digital transmission? <|assistant|> SELECT COUNT("launch_date") FROM "free_to_air_television" WHERE "transmission"='Digital';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22269839_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who wrote the title with production code 7acx14? <|assistant|> SELECT "written_by" FROM "table1_22269839_1" WHERE "production_code"='7ACX14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22269839_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who directed the title written by cherry chevapravatdumrong? <|assistant|> SELECT "directed_by" FROM "table1_22269839_1" WHERE "written_by"='Cherry Chevapravatdumrong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22269839_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who wrote the title with the production code is 7acx08? <|assistant|> SELECT "written_by" FROM "table1_22269839_1" WHERE "production_code"='7ACX08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22269839_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who directed the episode written by patrick meighan? <|assistant|> SELECT "directed_by" FROM "table1_22269839_1" WHERE "written_by"='Patrick Meighan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "code_location" text, "missile_type" text, "defense_area" text, "dates" text, "control_site_condition_owner" text, "launch_site_condition_owner" text ); Question: When is every date that control site condition or owner is machine shop on Martin Dr.? <|assistant|> SELECT "dates" FROM "wisconsin" WHERE "control_site_condition_owner"='machine shop on Martin Dr.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "code_location" text, "missile_type" text, "defense_area" text, "dates" text, "control_site_condition_owner" text, "launch_site_condition_owner" text ); Question: What is every missile type with a code and location of M-20 Harbor Drive? <|assistant|> SELECT "missile_type" FROM "wisconsin" WHERE "code_location"='M-20 Harbor Drive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "code_location" text, "missile_type" text, "defense_area" text, "dates" text, "control_site_condition_owner" text, "launch_site_condition_owner" text ); Question: What is every code and location where the launch site condition and owner is obliterated? <|assistant|> SELECT "code_location" FROM "wisconsin" WHERE "launch_site_condition_owner"='Obliterated';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wisconsin" ( "code_location" text, "missile_type" text, "defense_area" text, "dates" text, "control_site_condition_owner" text, "launch_site_condition_owner" text ); Question: What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings? <|assistant|> SELECT "control_site_condition_owner" FROM "wisconsin" WHERE "launch_site_condition_owner"='lakefront office buildings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Which team had an outgoing manager of Behtash Fariba? <|assistant|> SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Behtash Fariba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Which team had a manager who was replaced by Faraz Kamalvand? <|assistant|> SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Faraz Kamalvand';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Which outgoing manager was replaced by Jafar Fatahi? <|assistant|> SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='Jafar Fatahi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Which team had a manager replaced by Ebrahim Talebi? <|assistant|> SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Ebrahim Talebi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: What was the date in which Behtash Fariba left his team? <|assistant|> SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Behtash Fariba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: What was the manner of leaving the team for the manager of Gostaresh Foolad? <|assistant|> SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Gostaresh Foolad';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_county_community_colleges_" ( "college" text, "2007_headcount" real, "2007_2008_credit_hours" real, "county_population_18_yrs" real, "penetration_in_terms_of_enrollment_per_1000_adults" real, "in_county_tuition_per_credit_hour_fall_2009" text ); Question: How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009? <|assistant|> SELECT "in_county_tuition_per_credit_hour_fall_2009" FROM "comparison_of_county_community_colleges_" WHERE "college"='Gloucester';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_county_community_colleges_" ( "college" text, "2007_headcount" real, "2007_2008_credit_hours" real, "county_population_18_yrs" real, "penetration_in_terms_of_enrollment_per_1000_adults" real, "in_county_tuition_per_credit_hour_fall_2009" text ); Question: How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009? <|assistant|> SELECT "in_county_tuition_per_credit_hour_fall_2009" FROM "comparison_of_county_community_colleges_" WHERE "college"='Mercer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_county_community_colleges_" ( "college" text, "2007_headcount" real, "2007_2008_credit_hours" real, "county_population_18_yrs" real, "penetration_in_terms_of_enrollment_per_1000_adults" real, "in_county_tuition_per_credit_hour_fall_2009" text ); Question: What is the biggest number for county population 18 years+? <|assistant|> SELECT MAX("county_population_18_yrs") FROM "comparison_of_county_community_colleges_";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Who was the replacement manager for the vacancy of 12 Dec 2009? <|assistant|> SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Who was the replacement manager for the vacancy of 12 Dec 2009? <|assistant|> SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: What team did Alireza mansourian leave? <|assistant|> SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Alireza Mansourian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: Why did Majid bagherinia leave? <|assistant|> SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='Majid Bagherinia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: What team did a manager leave on 12 Dec 2009 <|assistant|> SELECT "team" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); Question: How many teams did Farhad Kazemi leave? <|assistant|> SELECT COUNT("team") FROM "managerial_changes" WHERE "outgoing_manager"='Farhad Kazemi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_schools_in_the_grac_and_general_" ( "school" text, "location" text, "team_name" text, "colors" text, "varsity_teams" real, "njcaa_championships" real ); Question: If the school is Rend Lake College, what is the team name? <|assistant|> SELECT "team_name" FROM "current_schools_in_the_grac_and_general_" WHERE "school"='Rend Lake College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_schools_in_the_grac_and_general_" ( "school" text, "location" text, "team_name" text, "colors" text, "varsity_teams" real, "njcaa_championships" real ); Question: What is the minimum possible for the NJCAA championships? <|assistant|> SELECT MIN("njcaa_championships") FROM "current_schools_in_the_grac_and_general_";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_schools_in_the_grac_and_general_" ( "school" text, "location" text, "team_name" text, "colors" text, "varsity_teams" real, "njcaa_championships" real ); Question: If the varsity team is 6, what is the location? <|assistant|> SELECT "location" FROM "current_schools_in_the_grac_and_general_" WHERE "varsity_teams"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_schools_in_the_grac_and_general_" ( "school" text, "location" text, "team_name" text, "colors" text, "varsity_teams" real, "njcaa_championships" real ); Question: If the school is John A. Logan College, what are the colors? <|assistant|> SELECT "colors" FROM "current_schools_in_the_grac_and_general_" WHERE "school"='John A. Logan College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_schools_in_the_grac_and_general_" ( "school" text, "location" text, "team_name" text, "colors" text, "varsity_teams" real, "njcaa_championships" real ); Question: What is the minimum possible NJCAA championships? <|assistant|> SELECT MIN("njcaa_championships") FROM "current_schools_in_the_grac_and_general_";<|endoftext|>