output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("story_storyboards_by") FROM "table1_28146944_2" WHERE "title"='\"Milo''s Big Idea\"';
## Task Generate a SQL query to answer the following question: `How many different pairs of people did the story and storyboard of the episode titled "Milo's big idea"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28146944_2" ( "no_in_series" real, "title" text, "directed_by" text, "story_storyboards_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different pairs of people did the story and storyboard of the episode titled "Milo's big idea"?`: ```sql
SELECT "directed_by" FROM "table1_28146944_2" WHERE "title"='\"Baldwin the Super Fish\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode titled "Baldwin the Super FIsh"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28146944_2" ( "no_in_series" real, "title" text, "directed_by" text, "story_storyboards_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode titled "Baldwin the Super FIsh"?`: ```sql
SELECT "title" FROM "table1_28146944_2" WHERE "no_in_series"=36;
## Task Generate a SQL query to answer the following question: `What's the title of the episode with series number 36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28146944_2" ( "no_in_series" real, "title" text, "directed_by" text, "story_storyboards_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the title of the episode with series number 36?`: ```sql
SELECT "date_of_appointment" FROM "managerial_head_coach_changes" WHERE "manner_of_departure"='fired' AND "team"='Niger Tornadoes';
## Task Generate a SQL query to answer the following question: `when was the next coach appointed after niger tornadoes fired their coach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_head_coach_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `when was the next coach appointed after niger tornadoes fired their coach?`: ```sql
SELECT COUNT("outgoing_manager") FROM "managerial_head_coach_changes" WHERE "team"='Sunshine Stars';
## Task Generate a SQL query to answer the following question: `how many managers left sunshine stars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_head_coach_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `how many managers left sunshine stars?`: ```sql
SELECT COUNT("incoming_manager") FROM "managerial_head_coach_changes" WHERE "manner_of_departure"='Resigned';
## Task Generate a SQL query to answer the following question: `how many new managers replaced manager(s) who resigned? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_head_coach_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `how many new managers replaced manager(s) who resigned? `: ```sql
SELECT COUNT("date_of_vacancy") FROM "managerial_head_coach_changes" WHERE "outgoing_manager"='Tunde Abdulrahman';
## Task Generate a SQL query to answer the following question: `how many times did tunde abdulrahman leave the team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_head_coach_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times did tunde abdulrahman leave the team?`: ```sql
SELECT COUNT("platform") FROM "series_characters" WHERE "mystic_arte"='Celsius Calibur';
## Task Generate a SQL query to answer the following question: `How many platforms have celsius calibur as mystic arte?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_characters" ( "character" text, "game" text, "platform" text, "status" text, "mystic_arte" text, "character_voice" text ); ### SQL Given the database schema, here is the SQL query that answers `How many platforms have celsius calibur as mystic arte?`: ```sql
SELECT "character" FROM "series_characters" WHERE "character_voice"='Yumi Kakazu';
## Task Generate a SQL query to answer the following question: `Which character is yumi kakazu the character voice?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_characters" ( "character" text, "game" text, "platform" text, "status" text, "mystic_arte" text, "character_voice" text ); ### SQL Given the database schema, here is the SQL query that answers `Which character is yumi kakazu the character voice?`: ```sql
SELECT COUNT("mystic_arte") FROM "series_characters" WHERE "character"='Hisui (Jadeite) Hearts 1';
## Task Generate a SQL query to answer the following question: `How many mystic arte have hisui (jadeite) hearts 1 as the character?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_characters" ( "character" text, "game" text, "platform" text, "status" text, "mystic_arte" text, "character_voice" text ); ### SQL Given the database schema, here is the SQL query that answers `How many mystic arte have hisui (jadeite) hearts 1 as the character?`: ```sql
SELECT COUNT("platform") FROM "series_characters" WHERE "character"='Nanaly Fletch';
## Task Generate a SQL query to answer the following question: `How many platforms have nanaly fletch as the character?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_characters" ( "character" text, "game" text, "platform" text, "status" text, "mystic_arte" text, "character_voice" text ); ### SQL Given the database schema, here is the SQL query that answers `How many platforms have nanaly fletch as the character?`: ```sql
SELECT "status" FROM "series_characters" WHERE "character"='Keel (Keele) Zeibel';
## Task Generate a SQL query to answer the following question: `What is the status of the character keel (keele) zeibel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_characters" ( "character" text, "game" text, "platform" text, "status" text, "mystic_arte" text, "character_voice" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of the character keel (keele) zeibel?`: ```sql
SELECT "character" FROM "series_characters" WHERE "character_voice"='Mio Yasuda';
## Task Generate a SQL query to answer the following question: `Which character is mio yasuda the character voice?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_characters" ( "character" text, "game" text, "platform" text, "status" text, "mystic_arte" text, "character_voice" text ); ### SQL Given the database schema, here is the SQL query that answers `Which character is mio yasuda the character voice?`: ```sql
SELECT "season" FROM "regular_season" WHERE "goals_against"=254;
## Task Generate a SQL query to answer the following question: `What sesaon(s) did they have 254 goals against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text, "head_coaches" text ); ### SQL Given the database schema, here is the SQL query that answers `What sesaon(s) did they have 254 goals against?`: ```sql
SELECT MAX("points") FROM "regular_season";
## Task Generate a SQL query to answer the following question: `What is the largest number of points in a season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text, "head_coaches" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest number of points in a season?`: ```sql
SELECT "early_middle_english" FROM "diphthongs" WHERE "example"='streht > \"straight\"';
## Task Generate a SQL query to answer the following question: `What is the phonology used in the example streht > "straight"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "diphthongs" ( "late_old_english_anglian" text, "early_middle_english" text, "late_middle_english" text, "early_modern_english" text, "modern_english" text, "example" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the phonology used in the example streht > "straight"?`: ```sql
SELECT "late_old_english_anglian" FROM "diphthongs" WHERE "example"='dæg > \"day\"; grǣg > \"gray\"';
## Task Generate a SQL query to answer the following question: `What is the Anglian phonology used in the example dæg > "day"; grǣg > "gray"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "diphthongs" ( "late_old_english_anglian" text, "early_middle_english" text, "late_middle_english" text, "early_modern_english" text, "modern_english" text, "example" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Anglian phonology used in the example dæg > "day"; grǣg > "gray"?`: ```sql
SELECT "modern_english" FROM "diphthongs" WHERE "example"='weg > \"way\"; regn > \"rain\"';
## Task Generate a SQL query to answer the following question: `What is the modern English phonology used in the example weg > "way"; regn > "rain"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "diphthongs" ( "late_old_english_anglian" text, "early_middle_english" text, "late_middle_english" text, "early_modern_english" text, "modern_english" text, "example" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the modern English phonology used in the example weg > "way"; regn > "rain"?`: ```sql
SELECT "early_modern_english" FROM "diphthongs" WHERE "example"='bōg > \"bough\"; plōg > plōh > \"plough\"';
## Task Generate a SQL query to answer the following question: `What is the Early Modern English phonology used in the example bōg > "bough"; plōg > plōh > "plough"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "diphthongs" ( "late_old_english_anglian" text, "early_middle_english" text, "late_middle_english" text, "early_modern_english" text, "modern_english" text, "example" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Early Modern English phonology used in the example bōg > "bough"; plōg > plōh > "plough"?`: ```sql
SELECT "late_middle_english" FROM "diphthongs" WHERE "late_old_english_anglian"='æg, ǣg';
## Task Generate a SQL query to answer the following question: `What is the Late Middle English equivalent of the Anglian æg, ǣg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "diphthongs" ( "late_old_english_anglian" text, "early_middle_english" text, "late_middle_english" text, "early_modern_english" text, "modern_english" text, "example" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Late Middle English equivalent of the Anglian æg, ǣg?`: ```sql
SELECT "example" FROM "diphthongs" WHERE "early_modern_english"='( [x] → /f/) /ɔf/';
## Task Generate a SQL query to answer the following question: `What is the example of the Early Modern English ( [x] → /f/) /ɔf/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "diphthongs" ( "late_old_english_anglian" text, "early_middle_english" text, "late_middle_english" text, "early_modern_english" text, "modern_english" text, "example" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the example of the Early Modern English ( [x] → /f/) /ɔf/?`: ```sql
SELECT "miles_km" FROM "table1_28178756_1" WHERE "year"=2010;
## Task Generate a SQL query to answer the following question: `List the numer of miles for 2010.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28178756_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `List the numer of miles for 2010.`: ```sql
SELECT "date" FROM "table1_28178756_1" WHERE "driver"='Tommy Ellis';
## Task Generate a SQL query to answer the following question: `On what day did tommy ellis drive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28178756_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `On what day did tommy ellis drive?`: ```sql
SELECT "date" FROM "table1_28178756_1" WHERE "team"='Joe Gibbs Racing' AND "race_time"='1:53:26';
## Task Generate a SQL query to answer the following question: `On what day did joe gibbs racing record a time of 1:53:26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28178756_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `On what day did joe gibbs racing record a time of 1:53:26?`: ```sql
SELECT "average_speed_mph" FROM "table1_28178756_1" WHERE "team"='FILMAR Racing';
## Task Generate a SQL query to answer the following question: `What is the average speed for filmar racing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28178756_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average speed for filmar racing?`: ```sql
SELECT "race_time" FROM "table1_28178756_1" WHERE "date"='May 11';
## Task Generate a SQL query to answer the following question: `List the race time for may 11.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28178756_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `List the race time for may 11.`: ```sql
SELECT COUNT("act") FROM "series_1_round_summary_top_24" WHERE "name_name_of_act"='Modern Grannies';
## Task Generate a SQL query to answer the following question: `What is the total number of modern grannies performed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1_round_summary_top_24" ( "name_name_of_act" text, "age_s" text, "genre" text, "act" text, "hometown" text, "semifinal_week" real, "position_reached" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of modern grannies performed?`: ```sql
SELECT "act" FROM "series_1_round_summary_top_24" WHERE "name_name_of_act"='Zhu Xiaoming';
## Task Generate a SQL query to answer the following question: `What is the name of the performance zhu xiaoming performed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1_round_summary_top_24" ( "name_name_of_act" text, "age_s" text, "genre" text, "act" text, "hometown" text, "semifinal_week" real, "position_reached" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the performance zhu xiaoming performed?`: ```sql
SELECT "semifinal_week" FROM "series_1_round_summary_top_24" WHERE "age_s"='29';
## Task Generate a SQL query to answer the following question: `How many performers are 29 that made it to the semi finals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1_round_summary_top_24" ( "name_name_of_act" text, "age_s" text, "genre" text, "act" text, "hometown" text, "semifinal_week" real, "position_reached" text ); ### SQL Given the database schema, here is the SQL query that answers `How many performers are 29 that made it to the semi finals?`: ```sql
SELECT "hometown" FROM "series_1_round_summary_top_24" WHERE "name_name_of_act"='Zhou Jinsong';
## Task Generate a SQL query to answer the following question: `What is the name of the zhou jinsong's hometown?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1_round_summary_top_24" ( "name_name_of_act" text, "age_s" text, "genre" text, "act" text, "hometown" text, "semifinal_week" real, "position_reached" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the zhou jinsong's hometown?`: ```sql
SELECT COUNT("production_code") FROM "table1_2818164_2" WHERE "original_air_date"='October 18, 1984';
## Task Generate a SQL query to answer the following question: `How many different production codes does the episode originally aired on October 18, 1984 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different production codes does the episode originally aired on October 18, 1984 have?`: ```sql
SELECT "title" FROM "table1_2818164_2" WHERE "production_code"=104;
## Task Generate a SQL query to answer the following question: `What's the title of the episode with production code 104?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the title of the episode with production code 104?`: ```sql
SELECT COUNT("title") FROM "table1_2818164_2" WHERE "original_air_date"='September 27, 1984';
## Task Generate a SQL query to answer the following question: `How many different titles does the episode originally aired on September 27, 1984 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different titles does the episode originally aired on September 27, 1984 have?`: ```sql
SELECT MIN("production_code") FROM "table1_2818164_2" WHERE "original_air_date"='February 21, 1985';
## Task Generate a SQL query to answer the following question: `What's the production code of the episode originally aired on February 21, 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the production code of the episode originally aired on February 21, 1985?`: ```sql
SELECT "original_air_date" FROM "table1_2818164_2" WHERE "title"='\"Bad Dreams\"';
## Task Generate a SQL query to answer the following question: `When did the episode titled "Bad dreams" air for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When did the episode titled "Bad dreams" air for the first time?`: ```sql
SELECT "original_air_date" FROM "table1_2818164_2" WHERE "title"='\"Vanessa''s New Class\"';
## Task Generate a SQL query to answer the following question: `When did the episode titled "Vanessa's new class" air for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When did the episode titled "Vanessa's new class" air for the first time?`: ```sql
SELECT "round" FROM "table1_28181401_4" WHERE "scorers"='Roberts 86''';
## Task Generate a SQL query to answer the following question: `when roberts 86' is the scorer what is the round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28181401_4" ( "date" text, "round" text, "opponent" text, "result" text, "venue" text, "scorers" text, "attendance" real, "match_report" text ); ### SQL Given the database schema, here is the SQL query that answers `when roberts 86' is the scorer what is the round?`: ```sql
SELECT MAX("attendance") FROM "table1_28181401_4" WHERE "round"='Semi Final (2nd leg)';
## Task Generate a SQL query to answer the following question: `When semi final (2nd leg) is the round what is the highest attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28181401_4" ( "date" text, "round" text, "opponent" text, "result" text, "venue" text, "scorers" text, "attendance" real, "match_report" text ); ### SQL Given the database schema, here is the SQL query that answers `When semi final (2nd leg) is the round what is the highest attendance?`: ```sql
SELECT "position_in_table" FROM "managerial_changes" WHERE "replaced_by"='Mark Stimson';
## Task Generate a SQL query to answer the following question: `When Mark Stimson started his job in 2007-08 what posiiton was the team on the table` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `When Mark Stimson started his job in 2007-08 what posiiton was the team on the table`: ```sql
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='8 October 2007';
## Task Generate a SQL query to answer the following question: `In football league one, what coach was hired as a replacement on 8 October 2007` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `In football league one, what coach was hired as a replacement on 8 October 2007`: ```sql
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='6 November 2007';
## Task Generate a SQL query to answer the following question: `One 6 November 2007 what was the manner of departure for the coach release in football league one?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `One 6 November 2007 what was the manner of departure for the coach release in football league one?`: ```sql
SELECT MIN("no_in_series") FROM "table1_2818164_4" WHERE "written_by"='Janet Leahy';
## Task Generate a SQL query to answer the following question: `What is the series number for the episode written by janet leahy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the series number for the episode written by janet leahy?`: ```sql
SELECT "original_air_date" FROM "table1_2818164_4" WHERE "production_code"=322;
## Task Generate a SQL query to answer the following question: `What was the air date of the episode with the production code of 322?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the air date of the episode with the production code of 322?`: ```sql
SELECT MIN("no_in_series") FROM "table1_2818164_4" WHERE "directed_by"='Jay Sandrich' AND "original_air_date"='October 23, 1986';
## Task Generate a SQL query to answer the following question: `What is the series number for the episode directed by jay sandrich that aired October 23, 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the series number for the episode directed by jay sandrich that aired October 23, 1986?`: ```sql
SELECT "written_by" FROM "table1_2818164_4" WHERE "title"='\"Man Talk\"';
## Task Generate a SQL query to answer the following question: `Who wrote the episode titled "man talk"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2818164_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode titled "man talk"?`: ```sql
SELECT "tries_for" FROM "pool_3" WHERE "l"<2.0;
## Task Generate a SQL query to answer the following question: `Name the tries for when L is less than 2.0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "p" real, "w" real, "d" real, "l" real, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the tries for when L is less than 2.0`: ```sql
SELECT "points_for" FROM "pool_3" WHERE "try_diff"='+19';
## Task Generate a SQL query to answer the following question: `Name the points for for when try diff is +19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "p" real, "w" real, "d" real, "l" real, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the points for for when try diff is +19`: ```sql
SELECT MAX("points_for") FROM "pool_3" WHERE "tries_against"=8;
## Task Generate a SQL query to answer the following question: `Name the most points for when tries against is 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "p" real, "w" real, "d" real, "l" real, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most points for when tries against is 8`: ```sql
SELECT MAX("year") FROM "women_s_doubles_14_6_titles_8_runner_ups";
## Task Generate a SQL query to answer the following question: `What is the most recent year shown for Betty Stove?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_14_6_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the most recent year shown for Betty Stove?`: ```sql
SELECT "partner" FROM "women_s_doubles_14_6_titles_8_runner_ups" WHERE "surface"='Hard';
## Task Generate a SQL query to answer the following question: `Who was Betty's partner when the surface is hard?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_14_6_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was Betty's partner when the surface is hard?`: ```sql
SELECT MIN("drawn") FROM "table";
## Task Generate a SQL query to answer the following question: `What is the lowest number of drawn games by a team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "points" real, "percent" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of drawn games by a team?`: ```sql
SELECT "pts_for" FROM "table" WHERE "won"=5;
## Task Generate a SQL query to answer the following question: `How many points did the team that won 5 games make?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "points" real, "percent" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points did the team that won 5 games make?`: ```sql
SELECT "points" FROM "table" WHERE "pts_agst"=45;
## Task Generate a SQL query to answer the following question: `How many points does the club that had 45 points against it have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "points" real, "percent" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points does the club that had 45 points against it have?`: ```sql
SELECT COUNT("institution") FROM "division_ii" WHERE "team_nickname"='Gray Wolves';
## Task Generate a SQL query to answer the following question: `When gray wolves is the team nickname how many institutions are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `When gray wolves is the team nickname how many institutions are there?`: ```sql
SELECT "team_nickname" FROM "division_ii" WHERE "location"='Sylvania, OH';
## Task Generate a SQL query to answer the following question: `When sylvania, oh is the location what is the team nickname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `When sylvania, oh is the location what is the team nickname?`: ```sql
SELECT "institution" FROM "division_ii" WHERE "location"='Indianapolis, Indiana';
## Task Generate a SQL query to answer the following question: `When indianapolis, indiana is the location what is the institution?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `When indianapolis, indiana is the location what is the institution?`: ```sql
SELECT "team_nickname" FROM "division_ii" WHERE "affiliation"='Private/ Nonsectarian';
## Task Generate a SQL query to answer the following question: `When private/ nonsectarian is the the affiliation what is the team nickname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `When private/ nonsectarian is the the affiliation what is the team nickname?`: ```sql
SELECT "team_nickname" FROM "division_ii" WHERE "enrollment"=4512;
## Task Generate a SQL query to answer the following question: `4512 is the enrollment what is the team nickname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `4512 is the enrollment what is the team nickname?`: ```sql
SELECT "championship" FROM "mixed_doubles_13_4_titles_9_runner_ups" WHERE "partner"='Allan Stone';
## Task Generate a SQL query to answer the following question: `What championship was played with Allan Stone as a partner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_13_4_titles_9_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What championship was played with Allan Stone as a partner?`: ```sql
SELECT COUNT("partner") FROM "mixed_doubles_13_4_titles_9_runner_ups" WHERE "year"=1973;
## Task Generate a SQL query to answer the following question: `How many different partners played in the finale in 1973?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_13_4_titles_9_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different partners played in the finale in 1973?`: ```sql
SELECT "score_in_the_final" FROM "mixed_doubles_13_4_titles_9_runner_ups" WHERE "partner"='Fred McNair';
## Task Generate a SQL query to answer the following question: `What was the score in the final played with Fred McNair as partner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_13_4_titles_9_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in the final played with Fred McNair as partner?`: ```sql
SELECT "original_air_date" FROM "episodes" WHERE "prod_code"='2ACX12';
## Task Generate a SQL query to answer the following question: `What was the orginal air date for episodes with production code 2acx12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "num_season_num" text, "no_episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the orginal air date for episodes with production code 2acx12?`: ```sql
SELECT "written_by" FROM "episodes" WHERE "prod_code"='2ACX12';
## Task Generate a SQL query to answer the following question: `Who wrote the episode with production code 2acx12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "num_season_num" text, "no_episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 2acx12?`: ```sql
SELECT "no_episode_num" FROM "episodes" WHERE "directed_by"='Greg Colton' AND "written_by"='Patrick Meighan';
## Task Generate a SQL query to answer the following question: `What numbered episode was directed by greg colton and written by patrick meighan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "num_season_num" text, "no_episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What numbered episode was directed by greg colton and written by patrick meighan?`: ```sql
SELECT "directed_by" FROM "episodes" WHERE "num_season_num"='1 ( 2 )';
## Task Generate a SQL query to answer the following question: `Who directed # (season #) is 1 ( 2 )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "num_season_num" text, "no_episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed # (season #) is 1 ( 2 )?`: ```sql
SELECT "mens_doubles" FROM "senior_events" WHERE "mens_singles"='Ma Wenge';
## Task Generate a SQL query to answer the following question: `Who is everyone on the men's doubles when men's singles is Ma Wenge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_events" ( "season" text, "host" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is everyone on the men's doubles when men's singles is Ma Wenge?`: ```sql
SELECT "mens_doubles" FROM "senior_events" WHERE "mens_singles"='Jean-Michel Saive';
## Task Generate a SQL query to answer the following question: `Who are all men's doubles when men's singles is Jean-Michel Saive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_events" ( "season" text, "host" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are all men's doubles when men's singles is Jean-Michel Saive?`: ```sql
SELECT "mens_doubles" FROM "senior_events" WHERE "mens_singles"='Jean-Michel Saive';
## Task Generate a SQL query to answer the following question: `Who are all men's doubles when men's singles is Jean-Michel Saive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_events" ( "season" text, "host" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are all men's doubles when men's singles is Jean-Michel Saive?`: ```sql
SELECT "host" FROM "senior_events" WHERE "mens_singles"='Ma Wenge';
## Task Generate a SQL query to answer the following question: `Who are all hosts when men's singles is Ma Wenge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_events" ( "season" text, "host" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are all hosts when men's singles is Ma Wenge?`: ```sql
SELECT COUNT("womens_singles") FROM "senior_events" WHERE "season"='2000/01';
## Task Generate a SQL query to answer the following question: `How many people are women's singles in the season of 2000/01?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_events" ( "season" text, "host" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people are women's singles in the season of 2000/01?`: ```sql
SELECT "mens_doubles" FROM "senior_events" WHERE "season"='1963/64';
## Task Generate a SQL query to answer the following question: `Name the winners of the mens doubles in the season of 1963/64.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_events" ( "season" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the winners of the mens doubles in the season of 1963/64.`: ```sql
SELECT "directed_by" FROM "table1_28212888_2" WHERE "no_in_series"=116;
## Task Generate a SQL query to answer the following question: `Who was the director of the episode with series number 116?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28212888_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director of the episode with series number 116?`: ```sql
SELECT "written_by" FROM "table1_28212888_2" WHERE "title"='\"Safe Haven\"';
## Task Generate a SQL query to answer the following question: `Who's the writer of the episode titled "Safe Haven"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28212888_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who's the writer of the episode titled "Safe Haven"?`: ```sql
SELECT "title" FROM "table1_28212888_2" WHERE "u_s_viewers_millions"='12.85';
## Task Generate a SQL query to answer the following question: `What's the title of the episode seen by 12.85 millions of people in the US?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28212888_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the title of the episode seen by 12.85 millions of people in the US?`: ```sql
SELECT COUNT("written_by") FROM "table1_28212888_2" WHERE "title"='\"Reflection of Desire\"';
## Task Generate a SQL query to answer the following question: `How many different people wrote the episode titled "Reflection of Desire"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28212888_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different people wrote the episode titled "Reflection of Desire"?`: ```sql
SELECT COUNT("no_in_series") FROM "season_3_2004" WHERE "u_s_viewers_millions"='11.86';
## Task Generate a SQL query to answer the following question: `How many episodes had 11.86 million US viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3_2004" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes had 11.86 million US viewers?`: ```sql
SELECT "title" FROM "season_3_2004" WHERE "written_by"='Aron Eli Coleite';
## Task Generate a SQL query to answer the following question: `What is the title(s) of episodes written by aron eli coleite?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3_2004" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title(s) of episodes written by aron eli coleite?`: ```sql
SELECT "original_air_date" FROM "season_3_2004" WHERE "written_by"='Aron Eli Coleite';
## Task Generate a SQL query to answer the following question: `What are the original air date(s) for episodes written by aron eli coleite?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3_2004" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the original air date(s) for episodes written by aron eli coleite?`: ```sql
SELECT COUNT("u_s_viewers_millions") FROM "season_3_2004" WHERE "title"='\"Second Chances\"';
## Task Generate a SQL query to answer the following question: `How many episodes were titled "second chances"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3_2004" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were titled "second chances"?`: ```sql
SELECT COUNT("producer_s") FROM "discography_original_releases" WHERE "song_s"='Calling Out to Marlboro';
## Task Generate a SQL query to answer the following question: `how many producers are responsible for the song 'calling out to marlboro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography_original_releases" ( "year" real, "song_s" text, "producer_s" text, "written_by" text, "artist" text, "title_label" text ); ### SQL Given the database schema, here is the SQL query that answers `how many producers are responsible for the song 'calling out to marlboro?`: ```sql
SELECT MIN("year") FROM "discography_original_releases" WHERE "artist"='Kid Creole and the Coconuts';
## Task Generate a SQL query to answer the following question: `what was the first year that kid creole and the coconuts recorded with I Too Have Seen The Woods / Sire Records?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography_original_releases" ( "year" real, "song_s" text, "producer_s" text, "written_by" text, "artist" text, "title_label" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the first year that kid creole and the coconuts recorded with I Too Have Seen The Woods / Sire Records?`: ```sql
SELECT COUNT("seasons") FROM "overall_stats" WHERE "series"='Formula Holden';
## Task Generate a SQL query to answer the following question: `How many seasons are there with Formula Holden?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_stats" ( "series" text, "seasons" real, "races" real, "poles" real, "wins" real, "podiums_non_win" real, "point_finishes_non_podium" real, "teams" real, "total_points" real, "championships" real, "best_finish_championship" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons are there with Formula Holden?`: ```sql
SELECT MAX("poles") FROM "overall_stats" WHERE "races"=2;
## Task Generate a SQL query to answer the following question: `How many poles are there with 2 races?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_stats" ( "series" text, "seasons" real, "races" real, "poles" real, "wins" real, "podiums_non_win" real, "point_finishes_non_podium" real, "teams" real, "total_points" real, "championships" real, "best_finish_championship" text ); ### SQL Given the database schema, here is the SQL query that answers `How many poles are there with 2 races?`: ```sql
SELECT MAX("point_finishes_non_podium") FROM "overall_stats" WHERE "series"='V8Supercar';
## Task Generate a SQL query to answer the following question: `What's the most amount of point finishes for v8supercar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_stats" ( "series" text, "seasons" real, "races" real, "poles" real, "wins" real, "podiums_non_win" real, "point_finishes_non_podium" real, "teams" real, "total_points" real, "championships" real, "best_finish_championship" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the most amount of point finishes for v8supercar?`: ```sql
SELECT COUNT("high_rebounds") FROM "liga_acb" WHERE "game"=14;
## Task Generate a SQL query to answer the following question: `How many people had high rebounds in game 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "liga_acb" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people had high rebounds in game 14?`: ```sql
SELECT "score" FROM "liga_acb" WHERE "date"='January 2';
## Task Generate a SQL query to answer the following question: `What is every score when the date is January 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "liga_acb" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every score when the date is January 2?`: ```sql
SELECT MAX("enrollment") FROM "division_i" WHERE "institution"='University of North Texas';
## Task Generate a SQL query to answer the following question: `What was the highest number of students in attendance for the university of north texas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of students in attendance for the university of north texas?`: ```sql
SELECT "team_nickname" FROM "division_i" WHERE "institution"='Texas Tech University';
## Task Generate a SQL query to answer the following question: `What is the mascot for texas tech university?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the mascot for texas tech university?`: ```sql
SELECT "enrollment" FROM "division_i" WHERE "affiliation"='Private/ Disciples of Christ';
## Task Generate a SQL query to answer the following question: `What is the total enrollment for private/ disciples of christ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total enrollment for private/ disciples of christ?`: ```sql
SELECT COUNT("team_nickname") FROM "division_i" WHERE "location"='College Station, Texas';
## Task Generate a SQL query to answer the following question: `How many mascotts are there for college station, texas` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `How many mascotts are there for college station, texas`: ```sql
SELECT MAX("enrollment") FROM "division_i" WHERE "founded"=1923;
## Task Generate a SQL query to answer the following question: `List the highest number of students in attendance for the institution that started in 1923.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_i" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `List the highest number of students in attendance for the institution that started in 1923.`: ```sql
SELECT COUNT("next_in_line") FROM "heirs_to_the_austrian_empire" WHERE "heir"='Archduke Karl';
## Task Generate a SQL query to answer the following question: `How many next in lines had heirs of Archduke Karl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heirs_to_the_austrian_empire" ( "emperor" text, "heir" text, "relationship_to_emperor_and_status" text, "became_heir" text, "ceased_to_be_heir" text, "next_in_line" text ); ### SQL Given the database schema, here is the SQL query that answers `How many next in lines had heirs of Archduke Karl?`: ```sql
SELECT "club_name" FROM "notes" WHERE "basis_for_team_song"='\"Wee Deoch an Doris\"';
## Task Generate a SQL query to answer the following question: `Which team has a song based on "wee deoch an doris"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "club_name" text, "name_of_team_song" text, "basis_for_team_song" text, "first_used_as_team_song" text, "writer_composer" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has a song based on "wee deoch an doris"?`: ```sql
SELECT "club_name" FROM "notes" WHERE "writer_composer"='Larry Spokes';
## Task Generate a SQL query to answer the following question: `Name the team that has a song writer named larry spokes.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "club_name" text, "name_of_team_song" text, "basis_for_team_song" text, "first_used_as_team_song" text, "writer_composer" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team that has a song writer named larry spokes.`: ```sql
SELECT COUNT("name_of_team_song") FROM "notes" WHERE "writer_composer"='Harry Angus';
## Task Generate a SQL query to answer the following question: `How man teams have a writer named harry angus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "club_name" text, "name_of_team_song" text, "basis_for_team_song" text, "first_used_as_team_song" text, "writer_composer" text ); ### SQL Given the database schema, here is the SQL query that answers `How man teams have a writer named harry angus?`: ```sql
SELECT "name_of_team_song" FROM "notes" WHERE "writer_composer"='Quentin Eyers and Les Kaczmarek';
## Task Generate a SQL query to answer the following question: `Name the team anthem that was written by quentin eyers and les kaczmarek.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "club_name" text, "name_of_team_song" text, "basis_for_team_song" text, "first_used_as_team_song" text, "writer_composer" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team anthem that was written by quentin eyers and les kaczmarek.`: ```sql
SELECT COUNT("basis_for_team_song") FROM "notes" WHERE "club_name"='Fremantle';
## Task Generate a SQL query to answer the following question: `How many team songs does fremantle have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "club_name" text, "name_of_team_song" text, "basis_for_team_song" text, "first_used_as_team_song" text, "writer_composer" text ); ### SQL Given the database schema, here is the SQL query that answers `How many team songs does fremantle have?`: ```sql
SELECT "basis_for_team_song" FROM "notes" WHERE "writer_composer"='Ken Walther';
## Task Generate a SQL query to answer the following question: `What is the name of the team song written by ken walther?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "club_name" text, "name_of_team_song" text, "basis_for_team_song" text, "first_used_as_team_song" text, "writer_composer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the team song written by ken walther?`: ```sql
SELECT COUNT("founded") FROM "division_ii" WHERE "team_nickname"='Comets';
## Task Generate a SQL query to answer the following question: `In how many different years was the team nicknamed Comets founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many different years was the team nicknamed Comets founded?`: ```sql
SELECT "team_nickname" FROM "division_ii" WHERE "enrollment"=40747;
## Task Generate a SQL query to answer the following question: `What's the nickname of the team with enrollment of 40747?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the nickname of the team with enrollment of 40747?`: ```sql