text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); Question: Who played in the 1990 Broadway after Tom Halloran played the character in the 1955 Broadcast? <|assistant|> SELECT "1990_broadway" FROM "cast_of_major_productions_1954_1999" WHERE "1955_broadcast"='Tom Halloran';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast_of_major_productions_1954_1999" ( "character" text, "1954_broadway" text, "1955_broadcast" text, "1960_broadcast" text, "1979_broadway" text, "1990_broadway" text, "1991_broadway" text, "1998_broadway" text, "1999_broadway" text ); Question: What character did Drake English play in the 1998 Broadway? <|assistant|> SELECT "character" FROM "cast_of_major_productions_1954_1999" WHERE "1998_broadway"='Drake English';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_ratings" ( "year" real, "broadcast_date" text, "bbc_one_total_viewing" real, "bbc_one_rank" text, "bbc_two_total_viewing" text, "bbc_two_rank" text ); Question: What date was BBC One total viewing greater then 11616996.338225884? <|assistant|> SELECT "broadcast_date" FROM "tv_ratings" WHERE "bbc_one_total_viewing">11616996.338225884;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_ratings" ( "year" real, "broadcast_date" text, "bbc_one_total_viewing" real, "bbc_one_rank" text, "bbc_two_total_viewing" text, "bbc_two_rank" text ); Question: How many years did BBC One rank 20th? <|assistant|> SELECT COUNT("year") FROM "tv_ratings" WHERE "bbc_one_rank"='20th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_ratings" ( "year" real, "broadcast_date" text, "bbc_one_total_viewing" real, "bbc_one_rank" text, "bbc_two_total_viewing" text, "bbc_two_rank" text ); Question: What year was the BBC two total viewing 7,530,000? <|assistant|> SELECT MIN("year") FROM "tv_ratings" WHERE "bbc_two_total_viewing"='7,530,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text ); Question: how many ↓ function / genus → with escherichia being espd <|assistant|> SELECT COUNT("function_genus") FROM "nomenclature_of_t3_ss_proteins" WHERE "escherichia"='EspD';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text ); Question: what's the salmonella with escherichia being espd <|assistant|> SELECT "salmonella" FROM "nomenclature_of_t3_ss_proteins" WHERE "escherichia"='EspD';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text ); Question: what's the ↓ function / genus → with shigella being spa32 <|assistant|> SELECT "function_genus" FROM "nomenclature_of_t3_ss_proteins" WHERE "shigella"='Spa32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text ); Question: what's the salmonella with shigella being ipgc <|assistant|> SELECT "salmonella" FROM "nomenclature_of_t3_ss_proteins" WHERE "shigella"='IpgC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text ); Question: what's the salmonella with escherichia being sepb (escn) <|assistant|> SELECT "salmonella" FROM "nomenclature_of_t3_ss_proteins" WHERE "escherichia"='SepB (EscN)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nomenclature_of_t3_ss_proteins" ( "function_genus" text, "shigella" text, "salmonella" text, "yersinia" text, "escherichia" text ); Question: what's the shigella with yersinia being yscp <|assistant|> SELECT "shigella" FROM "nomenclature_of_t3_ss_proteins" WHERE "yersinia"='YscP';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10321805_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: How many original titles did Marriage Italian-Style have? <|assistant|> SELECT COUNT("original_title") FROM "table1_10321805_1" WHERE "film_title_used_in_nomination"='Marriage Italian-Style';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10321805_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What year was a movie with the original title La Leggenda del Santo Bevitore submitted? <|assistant|> SELECT "year_ceremony" FROM "table1_10321805_1" WHERE "original_title"='La leggenda del santo bevitore';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10335_1" ( "camp" text, "estimated_deaths" text, "operational" text, "occupied_territory" text, "current_country_of_location" text, "primary_means_for_mass_killings" text ); Question: what's the camp with estimated deaths of 600,000 <|assistant|> SELECT "camp" FROM "table1_10335_1" WHERE "estimated_deaths"='600,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10335_1" ( "camp" text, "estimated_deaths" text, "operational" text, "occupied_territory" text, "current_country_of_location" text, "primary_means_for_mass_killings" text ); Question: what's the operational period with camp  sajmište <|assistant|> SELECT "operational" FROM "table1_10335_1" WHERE "camp"='Sajmište';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10335_1" ( "camp" text, "estimated_deaths" text, "operational" text, "occupied_territory" text, "current_country_of_location" text, "primary_means_for_mass_killings" text ); Question: what's the estimated deaths with operational period of 17 march 1942 – end of june 1943 <|assistant|> SELECT "estimated_deaths" FROM "table1_10335_1" WHERE "operational"='17 March 1942 – end of June 1943';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10335_1" ( "camp" text, "estimated_deaths" text, "operational" text, "occupied_territory" text, "current_country_of_location" text, "primary_means_for_mass_killings" text ); Question: what's the current country of location with operational period  of summer of 1941 to 28 june 1944 <|assistant|> SELECT "current_country_of_location" FROM "table1_10335_1" WHERE "operational"='Summer of 1941 to 28 June 1944';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10335_1" ( "camp" text, "estimated_deaths" text, "operational" text, "occupied_territory" text, "current_country_of_location" text, "primary_means_for_mass_killings" text ); Question: what's the occupied territory with estimated deaths of 600,000 <|assistant|> SELECT "occupied_territory" FROM "table1_10335_1" WHERE "estimated_deaths"='600,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10335_1" ( "camp" text, "estimated_deaths" text, "operational" text, "occupied_territory" text, "current_country_of_location" text, "primary_means_for_mass_killings" text ); Question: what's the occupied territory with operational period of may 1940 – january 1945 <|assistant|> SELECT "occupied_territory" FROM "table1_10335_1" WHERE "operational"='May 1940 – January 1945';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360823_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Which overall pick was traded to the Cleveland Browns? <|assistant|> SELECT "overall" FROM "table1_10360823_1" WHERE "college"='Traded to the Cleveland Browns';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360823_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Overall pick 240 was a pick in which round? <|assistant|> SELECT "round" FROM "table1_10360823_1" WHERE "overall"=240;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360823_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Which overall pick number went to college at Youngstown State? <|assistant|> SELECT MIN("overall") FROM "table1_10360823_1" WHERE "college"='Youngstown State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360823_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What position is played by pick 255 overall? <|assistant|> SELECT "position" FROM "table1_10360823_1" WHERE "overall"=255;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360823_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Which player was chosen in round 17? <|assistant|> SELECT "player_name" FROM "table1_10360823_1" WHERE "round"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "vikings_points" real, "opponents" real, "record" text, "attendance" real ); Question: The record of 7-3 had the largest attendance of what? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "record"='7-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "vikings_points" real, "opponents" real, "record" text, "attendance" real ); Question: The record of 9-4 was against which opponent? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='9-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "vikings_points" real, "opponents" real, "record" text, "attendance" real ); Question: The game number of 8 had a record of what? <|assistant|> SELECT "record" FROM "schedule" WHERE "game"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360656_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What round was Steve Stonebreaker drafted? <|assistant|> SELECT MAX("round") FROM "table1_10360656_1" WHERE "player_name"='Steve Stonebreaker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360656_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Who was the top picki n the draft? <|assistant|> SELECT MIN("choice") FROM "table1_10360656_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360656_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What round was Bill Hill drafted? <|assistant|> SELECT "choice" FROM "table1_10360656_1" WHERE "player_name"='Bill Hill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10360656_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What was the name of the quarterback drafted? <|assistant|> SELECT "player_name" FROM "table1_10360656_1" WHERE "position"='Quarterback';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361625_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Where is the college where Keith Hartwig plays? <|assistant|> SELECT "college" FROM "table1_10361625_1" WHERE "player_name"='Keith Hartwig';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361625_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What is the name of the linebacker at Illinois college? <|assistant|> SELECT "player_name" FROM "table1_10361625_1" WHERE "position"='Linebacker' AND "college"='Illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361625_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What is the greatest round of overall 83? <|assistant|> SELECT MAX("round") FROM "table1_10361625_1" WHERE "overall"=83;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361625_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Which round did Tommy Kramer play in> <|assistant|> SELECT "round" FROM "table1_10361625_1" WHERE "player_name"='Tommy Kramer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361625_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What is Rice's collage score? <|assistant|> SELECT "overall" FROM "table1_10361625_1" WHERE "college"='Rice';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361230_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Where does the defensive back position appear first? <|assistant|> SELECT MIN("round") FROM "table1_10361230_1" WHERE "position"='Defensive Back';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361230_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What is Bruce Cerone overall? <|assistant|> SELECT MIN("overall") FROM "table1_10361230_1" WHERE "player_name"='Bruce Cerone';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361230_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: Which player went to Emporia State? <|assistant|> SELECT "player_name" FROM "table1_10361230_1" WHERE "college"='Emporia State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361230_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What is the highest choice? <|assistant|> SELECT MAX("choice") FROM "table1_10361230_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10361230_1" ( "round" real, "choice" real, "overall" real, "player_name" text, "position" text, "college" text ); Question: What college did Bill Cappleman go to? <|assistant|> SELECT "college" FROM "table1_10361230_1" WHERE "player_name"='Bill Cappleman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "headstamps_and_colour_coding" ( "headstamp_id" text, "primer_annulus_color" text, "bullet_tip_color" text, "other_features" text, "functional_type" text ); Question: For the headstamp id of h2, what was the color of the bullet tip? <|assistant|> SELECT "bullet_tip_color" FROM "headstamps_and_colour_coding" WHERE "headstamp_id"='H2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "headstamps_and_colour_coding" ( "headstamp_id" text, "primer_annulus_color" text, "bullet_tip_color" text, "other_features" text, "functional_type" text ); Question: For the functional type of light ball, what were the other features? <|assistant|> SELECT "other_features" FROM "headstamps_and_colour_coding" WHERE "functional_type"='Light Ball';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "headstamps_and_colour_coding" ( "headstamp_id" text, "primer_annulus_color" text, "bullet_tip_color" text, "other_features" text, "functional_type" text ); Question: How many primers annulus colors were there when the color of the bullet tip was white? <|assistant|> SELECT COUNT("primer_annulus_color") FROM "headstamps_and_colour_coding" WHERE "bullet_tip_color"='White';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "headstamps_and_colour_coding" ( "headstamp_id" text, "primer_annulus_color" text, "bullet_tip_color" text, "other_features" text, "functional_type" text ); Question: How many bullet tips colors had other features of a blue band on case base? <|assistant|> SELECT COUNT("bullet_tip_color") FROM "headstamps_and_colour_coding" WHERE "other_features"='Blue band on case base';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" real, "games" real, "games_started" real, "completions" real, "attempts" real, "completion_pct" text, "yards" real, "yards_attempt" text, "touchdowns" real, "interceptions" real, "rating" text ); Question: How many touchdowns were scored in the year with a completion percentage of 56.0? <|assistant|> SELECT MIN("touchdowns") FROM "career_statistics" WHERE "completion_pct"='56.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" real, "games" real, "games_started" real, "completions" real, "attempts" real, "completion_pct" text, "yards" real, "yards_attempt" text, "touchdowns" real, "interceptions" real, "rating" text ); Question: What number of completions are recorded for the year with 12 games started? <|assistant|> SELECT "completions" FROM "career_statistics" WHERE "games_started"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" real, "games" real, "games_started" real, "completions" real, "attempts" real, "completion_pct" text, "yards" real, "yards_attempt" text, "touchdowns" real, "interceptions" real, "rating" text ); Question: How many years were there with 348 attempts? <|assistant|> SELECT COUNT("yards") FROM "career_statistics" WHERE "attempts"=348;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10402018_1" ( "character" text, "australia_new_zealand_sydney_first_run_melbourne_auckland" text, "london" text, "toronto_broadway" text, "brazil" text, "uk_tour" text, "us_tour" text, "italy_milan_rome_trieste" text ); Question: How many characters is by Babs Rubenstein? <|assistant|> SELECT COUNT("london") FROM "table1_10402018_1" WHERE "us_tour"='Babs Rubenstein';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10402018_1" ( "character" text, "australia_new_zealand_sydney_first_run_melbourne_auckland" text, "london" text, "toronto_broadway" text, "brazil" text, "uk_tour" text, "us_tour" text, "italy_milan_rome_trieste" text ); Question: Which person is in the tronto/broadway and has a uk tour of n/a <|assistant|> SELECT "toronto_broadway" FROM "table1_10402018_1" WHERE "uk_tour"='n/a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10402018_1" ( "character" text, "australia_new_zealand_sydney_first_run_melbourne_auckland" text, "london" text, "toronto_broadway" text, "brazil" text, "uk_tour" text, "us_tour" text, "italy_milan_rome_trieste" text ); Question: How many people play Frank in London? <|assistant|> SELECT COUNT("london") FROM "table1_10402018_1" WHERE "character"='Frank';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Who was Class AAA during the school year of 2000-01? <|assistant|> SELECT "class_aaa" FROM "team" WHERE "school_year"='2000-01';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Who was Class AAA during the same year that Class A was (tie) Apple Springs/Texline? <|assistant|> SELECT "class_aaa" FROM "team" WHERE "class_a"='(tie) Apple Springs/Texline';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Who was Class AAAAA during the school year of 1995-96? <|assistant|> SELECT "class_aaaaa" FROM "team" WHERE "school_year"='1995-96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Who was Class AAA during the same year that Class AAAAA was Brownsville Pace? <|assistant|> SELECT "class_aaa" FROM "team" WHERE "class_aaaaa"='Brownsville Pace';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What was the total number of Class AAA during the same year that Class AAA was White Oak? <|assistant|> SELECT COUNT("class_aa") FROM "team" WHERE "class_aaa"='White Oak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10392906_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: How many records are listed on Friday, May 25? <|assistant|> SELECT COUNT("team_record") FROM "table1_10392906_2" WHERE "date"='Friday, May 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10392906_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: How many opponents were played on Saturday, June 9? <|assistant|> SELECT COUNT("opponent") FROM "table1_10392906_2" WHERE "date"='Saturday, June 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10392906_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: In what week was the first game played at the Commerzbank-Arena? <|assistant|> SELECT MIN("week") FROM "table1_10392906_2" WHERE "game_site"='Commerzbank-Arena';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10413597_5" ( "no_in_series" real, "no_in_season" real, "title" text, "setting" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text ); Question: What was the original air date of an episode set in 1544? <|assistant|> SELECT "original_air_date" FROM "table1_10413597_5" WHERE "setting"='1544';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10413597_5" ( "no_in_series" real, "no_in_season" real, "title" text, "setting" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text ); Question: How many settings where there for episode 29 of the season? <|assistant|> SELECT COUNT("setting") FROM "table1_10413597_5" WHERE "no_in_series"=29;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10413597_5" ( "no_in_series" real, "no_in_season" real, "title" text, "setting" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text ); Question: Who wrote the episode that was set in winter 1541/february 13, 1542? <|assistant|> SELECT "written_by" FROM "table1_10413597_5" WHERE "setting"='Winter 1541/February 13, 1542';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10413597_4" ( "no_in_series" real, "no_in_season" real, "title" text, "setting" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What episode number of the season was "The Northern Uprising"? <|assistant|> SELECT "no_in_season" FROM "table1_10413597_4" WHERE "title"='\"The Northern Uprising\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "song_list" ( "date" text, "album_name" text, "track" text, "track_title" text, "lyricist" text, "music_genre_style" text, "major_instrument_s" text, "lyrics_theme_style" text, "duration" text ); Question: What is the name of the track that lasts 5:30? <|assistant|> SELECT "track_title" FROM "song_list" WHERE "duration"='5:30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "song_list" ( "date" text, "album_name" text, "track" text, "track_title" text, "lyricist" text, "music_genre_style" text, "major_instrument_s" text, "lyrics_theme_style" text, "duration" text ); Question: What is the album namethat has the track title Sweetness 甜甜的 (tián tián de)? <|assistant|> SELECT "album_name" FROM "song_list" WHERE "track_title"='Sweetness 甜甜的 (Tián tián de)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "song_list" ( "date" text, "album_name" text, "track" text, "track_title" text, "lyricist" text, "music_genre_style" text, "major_instrument_s" text, "lyrics_theme_style" text, "duration" text ); Question: What is the duration of the song where the major instrument is the piano and the date is 2004-02-03? <|assistant|> SELECT "duration" FROM "song_list" WHERE "major_instrument_s"='Piano' AND "date"='2004-02-03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "song_list" ( "date" text, "album_name" text, "track" text, "track_title" text, "lyricist" text, "music_genre_style" text, "major_instrument_s" text, "lyrics_theme_style" text, "duration" text ); Question: What is the total number of lyricist where the lyrics theme is romance and the song lasts 3:50? <|assistant|> SELECT COUNT("lyricist") FROM "song_list" WHERE "lyrics_theme_style"='Romance' AND "duration"='3:50';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "song_list" ( "date" text, "album_name" text, "track" text, "track_title" text, "lyricist" text, "music_genre_style" text, "major_instrument_s" text, "lyrics_theme_style" text, "duration" text ); Question: What is the major instrument of the song that lasts 4:32? <|assistant|> SELECT "major_instrument_s" FROM "song_list" WHERE "duration"='4:32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "song_list" ( "date" text, "album_name" text, "track" text, "track_title" text, "lyricist" text, "music_genre_style" text, "major_instrument_s" text, "lyrics_theme_style" text, "duration" text ); Question: What is the total number of music genre/style in which the lyrics are a detective story? <|assistant|> SELECT COUNT("music_genre_style") FROM "song_list" WHERE "lyrics_theme_style"='Detective story';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What is the playoffs for the usl pro select league? <|assistant|> SELECT "playoffs" FROM "year_by_year" WHERE "league"='USL Pro Select League';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What is the number of the division for the 1st round? <|assistant|> SELECT COUNT("division") FROM "year_by_year" WHERE "open_cup"='1st Round';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What was the team where series is formula renault 2.0 nec? <|assistant|> SELECT "team" FROM "career_summary" WHERE "series"='Formula Renault 2.0 NEC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What is the total number of poles for arden international? <|assistant|> SELECT COUNT("poles") FROM "career_summary" WHERE "team"='Arden International';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What is the number of wins for gp2 series for racing engineering? <|assistant|> SELECT COUNT("wins") FROM "career_summary" WHERE "series"='GP2 Series' AND "team"='Racing Engineering';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What is the number of podiums for season 2010 for campionato italiano superstars. <|assistant|> SELECT COUNT("podiums") FROM "career_summary" WHERE "season"='2010' AND "series"='Campionato Italiano Superstars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What is the podium for 144 points? <|assistant|> SELECT "podiums" FROM "career_summary" WHERE "points"=144;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_3" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: How many writers had an US air date of september 25, 1993? <|assistant|> SELECT COUNT("writer") FROM "table1_10470082_3" WHERE "us_air_date"='September 25, 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_3" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: How many villians were in No. 25? <|assistant|> SELECT COUNT("villains") FROM "table1_10470082_3" WHERE "no"=25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: what being the maximum year where regular season is 4th, northwest <|assistant|> SELECT MAX("year") FROM "year_by_year" WHERE "regular_season"='4th, Northwest';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: what is the total number of playoffs where regular season is 6th, southwest <|assistant|> SELECT COUNT("playoffs") FROM "year_by_year" WHERE "regular_season"='6th, Southwest';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: what is the maximum division <|assistant|> SELECT MAX("division") FROM "year_by_year";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: what's the league where regular season is 2nd, northwest <|assistant|> SELECT "league" FROM "year_by_year" WHERE "regular_season"='2nd, Northwest';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: what are all the regular season where year is 2011 <|assistant|> SELECT "regular_season" FROM "year_by_year" WHERE "year"=2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_5" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: How many titles have the number 11 <|assistant|> SELECT COUNT("title") FROM "table1_10470082_5" WHERE "num"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_5" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: How many have Mrs. briar as a villain <|assistant|> SELECT COUNT("no") FROM "table1_10470082_5" WHERE "villains"='Mrs. Briar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_5" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: how many have the number 8 <|assistant|> SELECT COUNT("no") FROM "table1_10470082_5" WHERE "num"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_5" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: How many have the title "the tale of the room for rent" <|assistant|> SELECT COUNT("num") FROM "table1_10470082_5" WHERE "title"='\"The Tale of the Room for Rent\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_6" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: What is the name of the episode told by Kiki and directed by Will Dixon? <|assistant|> SELECT "title" FROM "table1_10470082_6" WHERE "storyteller"='Kiki' AND "director"='Will Dixon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_6" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: Who is the storyteller in the episode called "The Tale of the Jagged Sign"? <|assistant|> SELECT "storyteller" FROM "table1_10470082_6" WHERE "title"='\"The Tale of the Jagged Sign\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_6" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: Who wrote Episode #3? <|assistant|> SELECT "writer" FROM "table1_10470082_6" WHERE "num"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_7" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: Who are the villains in the episode titled "The Tale of the Forever Game"? <|assistant|> SELECT "villains" FROM "table1_10470082_7" WHERE "title"='\"The Tale of The Forever Game\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_7" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: How many villains appeared in the episode titled "The Tale of the Virtual Pets"? <|assistant|> SELECT COUNT("villains") FROM "table1_10470082_7" WHERE "title"='\"The Tale of The Virtual Pets\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_7" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: Who are the villains in the episodes where Megan is the storyteller and Lorette LeBlanc is the director? <|assistant|> SELECT "villains" FROM "table1_10470082_7" WHERE "storyteller"='Megan' AND "director"='Lorette LeBlanc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10470082_7" ( "no" real, "num" real, "title" text, "director" text, "writer" text, "us_air_date" text, "storyteller" text, "villains" text ); Question: What is the largest # for an episode that was written by Allison Lea Bingeman? <|assistant|> SELECT MAX("num") FROM "table1_10470082_7" WHERE "writer"='Allison Lea Bingeman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fisher_s_iris_data" ( "sepal_length" text, "sepal_width" text, "petal_length" text, "petal_width" text, "species" text ); Question: Name the species when petal width is 2.0 and petal length is 4.9 <|assistant|> SELECT "species" FROM "fisher_s_iris_data" WHERE "petal_width"='2.0' AND "petal_length"='4.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fisher_s_iris_data" ( "sepal_length" text, "sepal_width" text, "petal_length" text, "petal_width" text, "species" text ); Question: Name the sepal width for i.virginica with petal length of 5.1 <|assistant|> SELECT "sepal_width" FROM "fisher_s_iris_data" WHERE "species"='I.virginica' AND "petal_length"='5.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fisher_s_iris_data" ( "sepal_length" text, "sepal_width" text, "petal_length" text, "petal_width" text, "species" text ); Question: Name the number of species with sepal width of 3.4 and sepal length of 5.4 <|assistant|> SELECT COUNT("species") FROM "fisher_s_iris_data" WHERE "sepal_width"='3.4' AND "sepal_length"='5.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fisher_s_iris_data" ( "sepal_length" text, "sepal_width" text, "petal_length" text, "petal_width" text, "species" text ); Question: Name the sepal length for sepal width of 2.8 and petal length of 5.1 <|assistant|> SELECT "sepal_length" FROM "fisher_s_iris_data" WHERE "sepal_width"='2.8' AND "petal_length"='5.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fisher_s_iris_data" ( "sepal_length" text, "sepal_width" text, "petal_length" text, "petal_width" text, "species" text ); Question: Name the sepal width when sepal length is 6.5 and petal width is 2.2 <|assistant|> SELECT "sepal_width" FROM "fisher_s_iris_data" WHERE "sepal_length"='6.5' AND "petal_width"='2.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fisher_s_iris_data" ( "sepal_length" text, "sepal_width" text, "petal_length" text, "petal_width" text, "species" text ); Question: Name the sepal lengh when sepal width is 2.9 and petal width 1.3 <|assistant|> SELECT "sepal_length" FROM "fisher_s_iris_data" WHERE "sepal_width"='2.9' AND "petal_width"='1.3';<|endoftext|>