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