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