text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27965906_2" ( "rnd" real, "circuit" text, "gt_winning_car" text, "ss_winning_car" text, "a_winning_car" text, "b_winning_car" text, "report" text ); Question: Name the total number of rnd for kim baker, bobby archer, tommy archer <|assistant|> SELECT COUNT("rnd") FROM "table1_27965906_2" WHERE "ss_winning_car"='Kim Baker, Bobby Archer, Tommy Archer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27965906_2" ( "rnd" real, "circuit" text, "gt_winning_car" text, "ss_winning_car" text, "a_winning_car" text, "b_winning_car" text, "report" text ); Question: Name the total number of b winning car and bobby archer, tommy archer <|assistant|> SELECT COUNT("b_winning_car") FROM "table1_27965906_2" WHERE "ss_winning_car"='Bobby Archer, Tommy Archer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "city" text, "state" text, "team_name" text, "affiliation" text, "enrollment" real, "home_conference" text ); Question: How many institutes have the team name Spartans? <|assistant|> SELECT COUNT("institution") FROM "member_schools" WHERE "team_name"='Spartans';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "city" text, "state" text, "team_name" text, "affiliation" text, "enrollment" real, "home_conference" text ); Question: How many states were there when there was an enrollment of 2789? <|assistant|> SELECT COUNT("state") FROM "member_schools" WHERE "enrollment"=2789;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "city" text, "state" text, "team_name" text, "affiliation" text, "enrollment" real, "home_conference" text ); Question: What kind of institute is in Indiana? <|assistant|> SELECT "affiliation" FROM "member_schools" WHERE "state"='Indiana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "city" text, "state" text, "team_name" text, "affiliation" text, "enrollment" real, "home_conference" text ); Question: How many people enrolled for the institute with the Pioneers? <|assistant|> SELECT MIN("enrollment") FROM "member_schools" WHERE "team_name"='Pioneers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "city" text, "state" text, "team_name" text, "affiliation" text, "enrollment" real, "home_conference" text ); Question: What team is in the city of Rock Island? <|assistant|> SELECT "team_name" FROM "member_schools" WHERE "city"='Rock Island';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: What is the name of the episode written by alison cross? <|assistant|> SELECT "title" FROM "table1_27969432_2" WHERE "written_by"='Alison Cross';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: How many viewers watched the episode "the beast in me"? <|assistant|> SELECT "u_s_viewers_in_millions" FROM "table1_27969432_2" WHERE "title"='\"The Beast in Me\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: How many people wrote the "the beast in me"? <|assistant|> SELECT COUNT("written_by") FROM "table1_27969432_2" WHERE "title"='\"The Beast in Me\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: Who directed the episode written by karina csolty <|assistant|> SELECT "directed_by" FROM "table1_27969432_2" WHERE "written_by"='Karina Csolty';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: What is the name of the episode written by karina csolty? <|assistant|> SELECT "title" FROM "table1_27969432_2" WHERE "written_by"='Karina Csolty';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: Who directed the episode whose production code is 2m5901? <|assistant|> SELECT "directed_by" FROM "table1_27969432_4" WHERE "production"='2M5901';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: What is the first air date of the episode titled "Cuts like a knife"? <|assistant|> SELECT "original_air_date" FROM "table1_27969432_4" WHERE "title"='\"Cuts Like a Knife\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: How many viewers in millions were there for episode 4 of this season? <|assistant|> SELECT COUNT("u_s_viewers_in_millions") FROM "table1_27969432_4" WHERE "no_in_season"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: What is the production code for the episode titled "Love the way you lie"? <|assistant|> SELECT "production" FROM "table1_27969432_4" WHERE "title"='\"Love the Way You Lie\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "universities_and_colleges_ranked_by_endo" ( "state_rank" real, "national_rank" real, "institution" text, "location" text, "public_or_private" text, "endowment_funds" text, "percentage_change_yoy" text ); Question: Name the total number of rank for percentage change yoy 13.1% <|assistant|> SELECT COUNT("national_rank") FROM "universities_and_colleges_ranked_by_endo" WHERE "percentage_change_yoy"='13.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "universities_and_colleges_ranked_by_endo" ( "state_rank" real, "national_rank" real, "institution" text, "location" text, "public_or_private" text, "endowment_funds" text, "percentage_change_yoy" text ); Question: Name the percentage change yoy for presbyterian college <|assistant|> SELECT "percentage_change_yoy" FROM "universities_and_colleges_ranked_by_endo" WHERE "institution"='Presbyterian College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "universities_and_colleges_ranked_by_endo" ( "state_rank" real, "national_rank" real, "institution" text, "location" text, "public_or_private" text, "endowment_funds" text, "percentage_change_yoy" text ); Question: Name the national rank for medical university of south carolina <|assistant|> SELECT "national_rank" FROM "universities_and_colleges_ranked_by_endo" WHERE "institution"='Medical University of South Carolina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: What is the lowest numbered episode in the series? <|assistant|> SELECT MIN("no_in_series") FROM "table1_27969432_3";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: What numbered episode in the series is "remember me"? <|assistant|> SELECT MIN("no_in_series") FROM "table1_27969432_3" WHERE "title"='\"Remember Me\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: How many episodes were written by david j. north & janet tamaro? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_27969432_3" WHERE "written_by"='David J. North & Janet Tamaro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27969432_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production" text, "u_s_viewers_in_millions" text ); Question: What are the original air dates for episodes directed by fred toye? <|assistant|> SELECT "original_air_date" FROM "table1_27969432_3" WHERE "directed_by"='Fred Toye';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "proceed_to_quarter_final" text, "match_points" text, "aggregate_score" text, "points_margin" real, "eliminated_from_competition" text ); Question: What was the aggregate score for Montauban? <|assistant|> SELECT "aggregate_score" FROM "aggregate_results" WHERE "proceed_to_quarter_final"='Montauban';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "proceed_to_quarter_final" text, "match_points" text, "aggregate_score" text, "points_margin" real, "eliminated_from_competition" text ); Question: Who proceeded to the quarter finals with a points margin of 21? <|assistant|> SELECT "proceed_to_quarter_final" FROM "aggregate_results" WHERE "points_margin"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "proceed_to_quarter_final" text, "match_points" text, "aggregate_score" text, "points_margin" real, "eliminated_from_competition" text ); Question: What were the match points when Bordeaux-Bègles was eliminated from competition? <|assistant|> SELECT "match_points" FROM "aggregate_results" WHERE "eliminated_from_competition"='Bordeaux-Bègles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27987623_1" ( "series_episode" real, "season_episode" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_million" text ); Question: How many viewers saw the episode written by kevin biegel & bill lawrence? <|assistant|> SELECT "u_s_viewers_in_million" FROM "table1_27987623_1" WHERE "written_by"='Kevin Biegel & Bill Lawrence';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27987623_1" ( "series_episode" real, "season_episode" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_million" text ); Question: What was the episode number veiwed by 7.43 million viewers? <|assistant|> SELECT MAX("series_episode") FROM "table1_27987623_1" WHERE "u_s_viewers_in_million"='7.43';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27987623_1" ( "series_episode" real, "season_episode" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_million" text ); Question: What was the title of the episode viewed by 5.03 million viewers? <|assistant|> SELECT "title" FROM "table1_27987623_1" WHERE "u_s_viewers_in_million"='5.03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27987623_1" ( "series_episode" real, "season_episode" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_million" text ); Question: What was the episode number for the episode viewed by 5.68 million viewers? <|assistant|> SELECT "season_episode" FROM "table1_27987623_1" WHERE "u_s_viewers_in_million"='5.68';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27987623_1" ( "series_episode" real, "season_episode" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_million" text ); Question: What is the episode number with a title "baby's a rock 'n' roller"? <|assistant|> SELECT MIN("series_episode") FROM "table1_27987623_1" WHERE "title"='\"Baby''s a Rock ''N'' Roller\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); Question: How many times is the new entries this round is none? <|assistant|> SELECT COUNT("number_of_fixtures") FROM "calendar" WHERE "new_entries_this_round"='none';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); Question: What is the prize money when the clubs is 392 → 276? <|assistant|> SELECT "prize_money" FROM "calendar" WHERE "clubs"='392 → 276';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); Question: What is the lowest number of fixtures? <|assistant|> SELECT MIN("number_of_fixtures") FROM "calendar";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); Question: What is the main date when the round is third round qualifying? <|assistant|> SELECT "main_date" FROM "calendar" WHERE "round"='Third Round Qualifying';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); Question: What is the round when the prize money is £7,500? <|assistant|> SELECT "round" FROM "calendar" WHERE "prize_money"='£7,500';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27987768_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What number in series was the episode written by Eric Gilliland? <|assistant|> SELECT MAX("no_in_series") FROM "table1_27987768_1" WHERE "written_by"='Eric Gilliland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "winners" text, "match_points" text, "aggregate_score" text, "points_margin" real, "losers" text ); Question: how many total number of points margin when brive is the winners <|assistant|> SELECT COUNT("points_margin") FROM "aggregate_results" WHERE "winners"='Brive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "winners" text, "match_points" text, "aggregate_score" text, "points_margin" real, "losers" text ); Question: how many match points did gran parma lost <|assistant|> SELECT "match_points" FROM "aggregate_results" WHERE "losers"='Gran Parma';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "winners" text, "match_points" text, "aggregate_score" text, "points_margin" real, "losers" text ); Question: how many match points rotherham lose <|assistant|> SELECT "match_points" FROM "aggregate_results" WHERE "losers"='Rotherham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "proceed_to_quarter_final" text, "match_points" text, "aggregate_score" text, "points_margin" real, "eliminated_from_competition" text ); Question: When brive is the proceed to quarter final how many were eliminated from competition? <|assistant|> SELECT COUNT("eliminated_from_competition") FROM "aggregate_results" WHERE "proceed_to_quarter_final"='Brive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "proceed_to_quarter_final" text, "match_points" text, "aggregate_score" text, "points_margin" real, "eliminated_from_competition" text ); Question: When london irish was eliminated from competition who proceeded to quarter final? <|assistant|> SELECT "proceed_to_quarter_final" FROM "aggregate_results" WHERE "eliminated_from_competition"='London Irish';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "proceed_to_quarter_final" text, "match_points" text, "aggregate_score" text, "points_margin" real, "eliminated_from_competition" text ); Question: When brive proceeded to quarter final what were the match points? <|assistant|> SELECT "match_points" FROM "aggregate_results" WHERE "proceed_to_quarter_final"='Brive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aggregate_results" ( "proceed_to_quarter_final" text, "match_points" text, "aggregate_score" text, "points_margin" real, "eliminated_from_competition" text ); Question: When london irish was eliminated from competition who proceeded to quarter final? <|assistant|> SELECT "proceed_to_quarter_final" FROM "aggregate_results" WHERE "eliminated_from_competition"='London Irish';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988281_1" ( "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 production code of the episode written by Jeff Filgo? <|assistant|> SELECT MAX("production_code") FROM "table1_27988281_1" WHERE "written_by"='Jeff Filgo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988281_1" ( "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 "Red's Birthday"? <|assistant|> SELECT "written_by" FROM "table1_27988281_1" WHERE "title"='\"Red''s Birthday\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988281_1" ( "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 production code of the episode titled "Halloween"? <|assistant|> SELECT MIN("production_code") FROM "table1_27988281_1" WHERE "title"='\"Halloween\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988408_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Name the original air date for bryan moore & chris peterson <|assistant|> SELECT "original_air_date" FROM "table1_27988408_1" WHERE "written_by"='Bryan Moore & Chris Peterson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988408_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Name the least production code for bryan moore & chris peterson <|assistant|> SELECT MIN("production_code") FROM "table1_27988408_1" WHERE "written_by"='Bryan Moore & Chris Peterson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988408_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Name who directed the episode "babe i'm gonna leave you" <|assistant|> SELECT "directed_by" FROM "table1_27988408_1" WHERE "title"='\"Babe I''m Gonna Leave You\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988408_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Name the total number in season for "the battle of evermore" <|assistant|> SELECT COUNT("no_in_season") FROM "table1_27988408_1" WHERE "title"='\"The Battle of Evermore\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988559_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: How many dates did the episode with a production code of 804 originally air on? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_27988559_1" WHERE "production_code"=804;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988559_1" ( "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 original air date for "killer queen"? <|assistant|> SELECT "original_air_date" FROM "table1_27988559_1" WHERE "title"='\"Killer Queen\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988559_1" ( "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 directed episode 2 of the season? <|assistant|> SELECT "directed_by" FROM "table1_27988559_1" WHERE "no_in_season"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988559_1" ( "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 "bohemian rhapsody"? <|assistant|> SELECT "written_by" FROM "table1_27988559_1" WHERE "title"='\"Bohemian Rhapsody\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988559_1" ( "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 dat did episode 195 in the series originally air? <|assistant|> SELECT "original_air_date" FROM "table1_27988559_1" WHERE "no_in_series"=195;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988540_1" ( "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 name of episode 5 in the season? <|assistant|> SELECT "title" FROM "table1_27988540_1" WHERE "no_in_season"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988540_1" ( "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 "it's only rock and roll"? <|assistant|> SELECT "written_by" FROM "table1_27988540_1" WHERE "title"='\"It''s Only Rock and Roll\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27988540_1" ( "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 title of episode 155 in the series? <|assistant|> SELECT "title" FROM "table1_27988540_1" WHERE "no_in_series"=155;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28005160_2" ( "sponsored_name" text, "non_sponsored_name" text, "sponsor" text, "stadium" text, "city" text, "country" text, "sport" text, "sponsorship_ended" real ); Question: What is the last year a sponsorship ended? <|assistant|> SELECT MAX("sponsorship_ended") FROM "table1_28005160_2";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28005160_2" ( "sponsored_name" text, "non_sponsored_name" text, "sponsor" text, "stadium" text, "city" text, "country" text, "sport" text, "sponsorship_ended" real ); Question: How many countries played in the city of ljungskile? <|assistant|> SELECT COUNT("country") FROM "table1_28005160_2" WHERE "city"='Ljungskile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28005160_2" ( "sponsored_name" text, "non_sponsored_name" text, "sponsor" text, "stadium" text, "city" text, "country" text, "sport" text, "sponsorship_ended" real ); Question: What cities are in sweden on this list? <|assistant|> SELECT "city" FROM "table1_28005160_2" WHERE "country"='Sweden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28005160_2" ( "sponsored_name" text, "non_sponsored_name" text, "sponsor" text, "stadium" text, "city" text, "country" text, "sport" text, "sponsorship_ended" real ); Question: What country is new orleans in? <|assistant|> SELECT "country" FROM "table1_28005160_2" WHERE "city"='New Orleans';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28005160_2" ( "sponsored_name" text, "non_sponsored_name" text, "sponsor" text, "stadium" text, "city" text, "country" text, "sport" text, "sponsorship_ended" real ); Question: What country are the new orleans shell shockers from? <|assistant|> SELECT "country" FROM "table1_28005160_2" WHERE "sponsored_name"='New Orleans Shell Shockers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "no" real, "title" text, "lyricist" text, "composer" text, "arrangement" text, "sound_engineer" text, "length" text ); Question: What is the arrangement for bets3ab 3alia nafsy? <|assistant|> SELECT "arrangement" FROM "track_listing" WHERE "title"='Bets3ab 3alia Nafsy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "no" real, "title" text, "lyricist" text, "composer" text, "arrangement" text, "sound_engineer" text, "length" text ); Question: Who was the composer of ain shams? <|assistant|> SELECT "composer" FROM "track_listing" WHERE "title"='Ain Shams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "no" real, "title" text, "lyricist" text, "composer" text, "arrangement" text, "sound_engineer" text, "length" text ); Question: How many numbers are there for kam wa7ed fina? <|assistant|> SELECT COUNT("no") FROM "track_listing" WHERE "title"='Kam Wa7ed Fina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "no" real, "title" text, "lyricist" text, "composer" text, "arrangement" text, "sound_engineer" text, "length" text ); Question: Who was the composer of te3rafy? <|assistant|> SELECT "composer" FROM "track_listing" WHERE "title"='Te3rafy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "no" real, "title" text, "lyricist" text, "composer" text, "arrangement" text, "sound_engineer" text, "length" text ); Question: How many sound engineers were there for law hakon '3er leek? <|assistant|> SELECT COUNT("sound_engineer") FROM "track_listing" WHERE "title"='Law Hakon ''3er Leek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "no" real, "title" text, "lyricist" text, "composer" text, "arrangement" text, "sound_engineer" text, "length" text ); Question: Which number was the lyricist ahmed metwally? <|assistant|> SELECT "no" FROM "track_listing" WHERE "lyricist"='Ahmed Metwally';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "num" real, "date" text, "opponent" text, "site_stadium" text, "score" text, "win" text, "loss" text, "save" text, "attendance" real, "overall_record" text, "ncaat_record" text ); Question: What was the site of the game that had an 11-4 score? <|assistant|> SELECT "site_stadium" FROM "schedule" WHERE "score"='11-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "num" real, "date" text, "opponent" text, "site_stadium" text, "score" text, "win" text, "loss" text, "save" text, "attendance" real, "overall_record" text, "ncaat_record" text ); Question: What was the NCAA Tournament record after the June 26 game? <|assistant|> SELECT "ncaat_record" FROM "schedule" WHERE "date"='June 26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "num" real, "date" text, "opponent" text, "site_stadium" text, "score" text, "win" text, "loss" text, "save" text, "attendance" real, "overall_record" text, "ncaat_record" text ); Question: Who had the save in the game in which Duke (3-2) took the loss? <|assistant|> SELECT "save" FROM "schedule" WHERE "loss"='Duke (3-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "event_date" text, "event_day" text, "approx_duration" text, "starting_time" text, "event_details" text ); Question: How many event dates occurred when event details were women's sabre? <|assistant|> SELECT COUNT("event_date") FROM "schedule" WHERE "event_details"='Women''s Sabre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "event_date" text, "event_day" text, "approx_duration" text, "starting_time" text, "event_details" text ); Question: What is every value for approximate duration when event details is women's foil? <|assistant|> SELECT "approx_duration" FROM "schedule" WHERE "event_details"='Women''s Foil';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "event_date" text, "event_day" text, "approx_duration" text, "starting_time" text, "event_details" text ); Question: What is every event date on Sunday with a starting time of 9:30 am? <|assistant|> SELECT "event_date" FROM "schedule" WHERE "event_day"='Sunday' AND "starting_time"='9:30 am';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27994983_8" ( "draw" real, "artist" text, "song_english_translation" text, "lyrics_l_music_m" text, "juries" real, "viewers" real, "total" real, "place" real ); Question: How many items appear in the viewers column when the draw is 2? <|assistant|> SELECT COUNT("viewers") FROM "table1_27994983_8" WHERE "draw"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27994983_8" ( "draw" real, "artist" text, "song_english_translation" text, "lyrics_l_music_m" text, "juries" real, "viewers" real, "total" real, "place" real ); Question: How many viewers are the when the draw is 3? <|assistant|> SELECT MAX("viewers") FROM "table1_27994983_8" WHERE "draw"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27994983_8" ( "draw" real, "artist" text, "song_english_translation" text, "lyrics_l_music_m" text, "juries" real, "viewers" real, "total" real, "place" real ); Question: How many juries are there when the draw is 3? <|assistant|> SELECT MAX("juries") FROM "table1_27994983_8" WHERE "draw"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27994983_8" ( "draw" real, "artist" text, "song_english_translation" text, "lyrics_l_music_m" text, "juries" real, "viewers" real, "total" real, "place" real ); Question: How many juries are there for Brolle? <|assistant|> SELECT MAX("juries") FROM "table1_27994983_8" WHERE "artist"='Brolle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_districts" ( "district" text, "status" text, "date_abolished" text, "former_county" text, "successor" text ); Question: What are the former counties of the Great Grimsby district? <|assistant|> SELECT "former_county" FROM "former_districts" WHERE "district"='Great Grimsby';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_districts" ( "district" text, "status" text, "date_abolished" text, "former_county" text, "successor" text ); Question: How many statuses are there for the Durham district? <|assistant|> SELECT COUNT("status") FROM "former_districts" WHERE "district"='Durham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_districts" ( "district" text, "status" text, "date_abolished" text, "former_county" text, "successor" text ); Question: What are the statuses of the districts whose successor is Wiltshire? <|assistant|> SELECT "status" FROM "former_districts" WHERE "successor"='Wiltshire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_council" ( "council" text, "tuv" real, "democratic_unionist" real, "ulster_unionist" real, "alliance" real, "sdlp" real, "sinn_f_in" real, "green_ni" real, "independent" real, "others" text, "total" real ); Question: What is the SDLP of Belfast? <|assistant|> SELECT MAX("sdlp") FROM "by_council" WHERE "council"='Belfast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_council" ( "council" text, "tuv" real, "democratic_unionist" real, "ulster_unionist" real, "alliance" real, "sdlp" real, "sinn_f_in" real, "green_ni" real, "independent" real, "others" text, "total" real ); Question: What is the smallest Alliance where the total is 25? <|assistant|> SELECT MIN("alliance") FROM "by_council" WHERE "total"=25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28019988_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who wrote the episode that 2.93 million viewers? <|assistant|> SELECT "written_by" FROM "table1_28019988_2" WHERE "u_s_viewers_million"='2.93';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28019988_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What series number is the episode with production code bdf101? <|assistant|> SELECT MAX("series_num") FROM "table1_28019988_2" WHERE "production_code"='BDF101';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28019988_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What series number is the episode entitled "Booty"? <|assistant|> SELECT MAX("series_num") FROM "table1_28019988_2" WHERE "title"='\"Booty\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28019988_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What is the series number for the episode with production code bdf109? <|assistant|> SELECT "series_num" FROM "table1_28019988_2" WHERE "production_code"='BDF109';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28027307_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who directed the episode with the production code of 6AKY11? <|assistant|> SELECT "directed_by" FROM "table1_28027307_1" WHERE "production_code"='6AKY11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28027307_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who wrote the episode titled "The Feet on the Beach"? <|assistant|> SELECT "written_by" FROM "table1_28027307_1" WHERE "title"='\"The Feet on the Beach\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28027307_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What number episode in the season was titled "The Blackout in the Blizzard"? <|assistant|> SELECT "no_in_season" FROM "table1_28027307_1" WHERE "title"='\"The Blackout in the Blizzard\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28027307_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: How many millions of U.S. viewers watched the episode with the production code of 6AKY07? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_28027307_1" WHERE "production_code"='6AKY07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28027307_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What number episode in the series was watched by 10.96 million U.S. viewers? <|assistant|> SELECT MIN("no_in_series") FROM "table1_28027307_1" WHERE "u_s_viewers_millions"='10.96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2803106_1" ( "week_num" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: What dance had a score total of 31? <|assistant|> SELECT "dance_song" FROM "table1_2803106_1" WHERE "total"='31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2803106_1" ( "week_num" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: What was the result for the dance that tonioli's scored an 8 and horwood scored a 6? <|assistant|> SELECT "result" FROM "table1_2803106_1" WHERE "tonioli"='8' AND "horwood"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2803106_1" ( "week_num" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: How many times did tonioli score a 9 when horwood scored a 6? <|assistant|> SELECT COUNT("total") FROM "table1_2803106_1" WHERE "tonioli"='9' AND "horwood"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2803106_1" ( "week_num" real, "dance_song" text, "horwood" text, "goodman" text, "dixon" text, "tonioli" text, "total" text, "result" text ); Question: On week 11 when Dixon scored an 8, what was tonioli's score? <|assistant|> SELECT "tonioli" FROM "table1_2803106_1" WHERE "week_num"=11 AND "dixon"='8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); Question: How many winners from previous round were there in the semi finals? <|assistant|> SELECT "winners_from_previous_round" FROM "teams" WHERE "round"='Semi finals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); Question: What was the round that had 32 winners from previous round? <|assistant|> SELECT "round" FROM "teams" WHERE "winners_from_previous_round"='32';<|endoftext|>