text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11058032_1" (
"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 episodes had 16.03 million viewers?
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_11058032_1" WHERE "u_s_viewers_millions"='16.03';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interregnum_ended" text,
"duration" text,
"count_palatine_of_saxony" text,
"count_palatine_of_the_rhine" text
);
Question: What is the number of interregnum for duration 3 months, 6 days?
<|assistant|>
SELECT COUNT("interregnum_ended") FROM "list_of_imperial_vicars_1437_1792" WHERE "duration"='3 months, 6 days';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who directed Episode 8?
<|assistant|>
SELECT "directed_by" FROM "table1_11075747_4" WHERE "episode_num"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who directed the episode called "Tell-tale Heart"?
<|assistant|>
SELECT "directed_by" FROM "table1_11075747_4" WHERE "title"='\"Tell-Tale Heart\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What was the original air date for Series 36?
<|assistant|>
SELECT "original_air_date" FROM "table1_11075747_4" WHERE "series_num"=36;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who wrote Series 38?
<|assistant|>
SELECT "written_by" FROM "table1_11075747_4" WHERE "series_num"=38;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: What is the percentage for manhattan 45,901?
<|assistant|>
SELECT COUNT("pct") FROM "1973" WHERE "manhattan"='45,901';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: Who won the 1973 democratic initial primary for queens of 19%?
<|assistant|>
SELECT "1973_democratic_initial_primary" FROM "1973" WHERE "queens"='19%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: What is the manhattan for richmond 35%?
<|assistant|>
SELECT "manhattan" FROM "1973" WHERE "richmond_staten_is"='35%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: What is the queens where richmond staten is 42%?
<|assistant|>
SELECT "queens" FROM "1973" WHERE "richmond_staten_is"='42%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: what's the party with brooklyn value of 51.0%
<|assistant|>
SELECT "party" FROM "1932" WHERE "brooklyn"='51.0%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: what's the brooklyn with queens value of 16.8%
<|assistant|>
SELECT "brooklyn" FROM "1932" WHERE "queens"='16.8%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: what is the minimum total
<|assistant|>
SELECT MIN("total") FROM "1932";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
Question: what's the % with total value of 249887 and queens value of 6.8%
<|assistant|>
SELECT "pct" FROM "1932" WHERE "total"=249887 AND "queens"='6.8%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
);
Question: Which teams were in the central division and located in livonia?
<|assistant|>
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "division"='Central' AND "location"='Livonia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
);
Question: Which teams are located in highland township?
<|assistant|>
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "location"='Highland Township';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
);
Question: What conference was the churchill chargers team in?
<|assistant|>
SELECT "conference" FROM "kensington_lakes_activities_association" WHERE "team"='Churchill Chargers';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: What was the titles of the episodes written by ken lazebnik?
<|assistant|>
SELECT "title" FROM "table1_11111116_7" WHERE "written_by"='Ken LaZebnik';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: Who directed an episode that had 2.81 million U.S. viewers?
<|assistant|>
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.81';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: What were the names of the episodes that had 3.02 million U.S. viewers?
<|assistant|>
SELECT "title" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='3.02';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: What were the original air dates of the episode named "winds of war"?
<|assistant|>
SELECT "original_air_date" FROM "table1_11111116_7" WHERE "title"='\"Winds of War\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: Who directed episodes that had 2.61 million U.S. viewers?
<|assistant|>
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.61';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many millions of U.S. viewers watched "Brace for Impact"?
<|assistant|>
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "title"='\"Brace for Impact\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many millions of U.S. viewers watched the episode that first aired on March 31, 2013?
<|assistant|>
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "original_air_date"='March 31, 2013';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: Who wrote the episodes that were viewed by 2.12 million viewers?
<|assistant|>
SELECT "written_by" FROM "table1_11111116_8" WHERE "u_s_viewers_million"='2.12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: The episode written by Rebecca Dameron aired on what date?
<|assistant|>
SELECT "original_air_date" FROM "table1_11111116_6" WHERE "written_by"='Rebecca Dameron';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: Which episode in the series drew 3.6 million U.S. viewers?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_11111116_6" WHERE "u_s_viewers_million"='3.6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: Who wrote the episode that aired on April 17, 2011?
<|assistant|>
SELECT "written_by" FROM "table1_11111116_6" WHERE "original_air_date"='April 17, 2011';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many times did episode 79 originally air?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_11111116_6" WHERE "no_in_series"=79;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many millions of views in the country watched "Line of Departure"?
<|assistant|>
SELECT "u_s_viewers_million" FROM "table1_11111116_6" WHERE "title"='\"Line of Departure\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
Question: What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?
<|assistant|>
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_cup_runner_up"='Colorado Rapids';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
Question: What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?
<|assistant|>
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_supporters_shield_runner_up"='Chivas USA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
Question: who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?
<|assistant|>
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "mls_cup_winner"='Real Salt Lake';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
Question: Which shield winner has the mls cup runner up and the season is 2000?
<|assistant|>
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "season"=2000;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sheffield_united_career" (
"season" text,
"division" text,
"league_apps_sub" real,
"league_goals" real,
"fa_cup_apps_sub" text,
"fa_cup_goals" real,
"fl_cup_apps_sub" real,
"fl_cup_goals" real,
"other_apps" real,
"other_goals" real,
"total_apps_sub" text,
"total_goals" real
);
Question: League apps (sub) maximum?
<|assistant|>
SELECT MAX("league_apps_sub") FROM "sheffield_united_career";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sheffield_united_career" (
"season" text,
"division" text,
"league_apps_sub" real,
"league_goals" real,
"fa_cup_apps_sub" text,
"fa_cup_goals" real,
"fl_cup_apps_sub" real,
"fl_cup_goals" real,
"other_apps" real,
"other_goals" real,
"total_apps_sub" text,
"total_goals" real
);
Question: When total goals is 11 what was the league apps (sub)?
<|assistant|>
SELECT MAX("league_apps_sub") FROM "sheffield_united_career" WHERE "total_goals"=11;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"date" text,
"first_audition_venue" text,
"callback_date" text,
"callback_venue" text,
"golden_tickets" real
);
Question: Which city had the charleston area convention center as its callback location
<|assistant|>
SELECT "audition_city" FROM "regional_auditions" WHERE "callback_venue"='Charleston Area Convention Center';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"date" text,
"first_audition_venue" text,
"callback_date" text,
"callback_venue" text,
"golden_tickets" real
);
Question: When did the callbacks from rancho bernardo inn air
<|assistant|>
SELECT "episode_air_date" FROM "regional_auditions" WHERE "callback_venue"='Rancho Bernardo Inn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"year_of_affiliation" text,
"owned_since" text
);
Question: The station located in Albuquerque has been owned since what year?
<|assistant|>
SELECT "owned_since" FROM "table1_11147852_1" WHERE "city_of_license_market"='Albuquerque';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"year_of_affiliation" text,
"owned_since" text
);
Question: What channels have stations that were affiliated in 2002?
<|assistant|>
SELECT "channel_tv_dt" FROM "table1_11147852_1" WHERE "year_of_affiliation"='2002';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"year_of_affiliation" text,
"owned_since" text
);
Question: What market is KTFK-DT in?
<|assistant|>
SELECT "city_of_license_market" FROM "table1_11147852_1" WHERE "station"='KTFK-DT';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
Question: what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)
<|assistant|>
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 10.5s, VMax km/h (mph)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
Question: what's the turbo where trim is 2.0 20v
<|assistant|>
SELECT "turbo" FROM "volvo_850_quick_information_by_trim_leve" WHERE "trim"='2.0 20v';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
Question: what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)
<|assistant|>
SELECT "torque" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 7.5s auto, VMax: km/h (mph)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
Question: what's the transmission where turbo is yes (mitsubishi td04-16t )
<|assistant|>
SELECT "transmission" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-16t )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
Question: what's the fuel delivery where power is hp (kw) @6500 rpm
<|assistant|>
SELECT "fuel_delivery" FROM "volvo_850_quick_information_by_trim_leve" WHERE "power"='hp (kW) @6500 rpm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
Question: " what's the engine with turbo being yes (mitsubishi td04-15g ) "
<|assistant|>
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-15g )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: What is the english title that has finale as 33 and peak as 42?
<|assistant|>
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "finale"=33 AND "peak"=42;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?
<|assistant|>
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "premiere"<30.0 AND "finale">36.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: What is the rank of the chinese title 緣來自有機?
<|assistant|>
SELECT "rank" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='緣來自有機';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: What amount is the number of hk viewers where chinese title is 十兄弟?
<|assistant|>
SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='十兄弟';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
Question: What is the weekly rank with an air date is november 12, 2007?
<|assistant|>
SELECT "weekly_rank" FROM "u_s_ratings" WHERE "air_date"='November 12, 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
Question: What is the air date of the episode "blowback"?
<|assistant|>
SELECT "air_date" FROM "u_s_ratings" WHERE "episode"='\"Blowback\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
Question: What is the lowest weekly rank with an air date of november 26, 2007?
<|assistant|>
SELECT MIN("weekly_rank") FROM "u_s_ratings" WHERE "air_date"='November 26, 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
Question: What is the episode where 18-49 has a rating/share of 3.5/9
<|assistant|>
SELECT "episode" FROM "u_s_ratings" WHERE "18_49_rating_share"='3.5/9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
Question: What is the viewers where the rating is 5.3?
<|assistant|>
SELECT "viewers_m" FROM "u_s_ratings" WHERE "rating"='5.3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
Question: What is the 18-49 rating/share where the viewers is 5.61?
<|assistant|>
SELECT "18_49_rating_share" FROM "u_s_ratings" WHERE "viewers_m"='5.61';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the highest of balmoor/
<|assistant|>
SELECT "highest" FROM "attendances" WHERE "stadium"='Balmoor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the number of capacity at somerset park?
<|assistant|>
SELECT COUNT("capacity") FROM "attendances" WHERE "stadium"='Somerset Park';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the minimum capacity where airdrie united is?
<|assistant|>
SELECT MIN("capacity") FROM "attendances" WHERE "team"='Airdrie United';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the stadium for alloa athletic?
<|assistant|>
SELECT "stadium" FROM "attendances" WHERE "team"='Alloa Athletic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the highest of ayr united?
<|assistant|>
SELECT MIN("highest") FROM "attendances" WHERE "team"='Ayr United';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the average?
<|assistant|>
SELECT MIN("average") FROM "attendances";<|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" text
);
Question: When are team Galway's dates of appointment?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Galway';<|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" text
);
Question: When are the vacancy dates for outgoing manager Damien Fox?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Damien Fox';<|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" text
);
Question: When is the date of vacancy of Davy Fitzgerald being a replacement?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='Davy FitzGerald';<|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" text
);
Question: Which team has the outgoing manager John Meyler?
<|assistant|>
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='John Meyler';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
Question: How many times is 3 credits 180?
<|assistant|>
SELECT COUNT("1_credit") FROM "see_also" WHERE "3_credits"=180;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
Question: What is the hand for 4 credits is 1600?
<|assistant|>
SELECT "hand" FROM "see_also" WHERE "4_credits"=1600;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
Question: How many 3 credits are there with 5 credits of 5?
<|assistant|>
SELECT COUNT("3_credits") FROM "see_also" WHERE "5_credits"='5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
Question: How many 4 credits is the hand two pair?
<|assistant|>
SELECT COUNT("4_credits") FROM "see_also" WHERE "hand"='Two pair';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"duration" text,
"final_episode_count" real
);
Question: What duration is listed for Christian de la Fuente?
<|assistant|>
SELECT "duration" FROM "law_enforcement" WHERE "actor"='Christian de la Fuente';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"duration" text,
"final_episode_count" real
);
Question: What was the final episode for Dea Agent?
<|assistant|>
SELECT "final_episode" FROM "law_enforcement" WHERE "position"='DEA Agent';<|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
);
Question: What days is greenock morton vacant?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Greenock Morton';<|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
);
Question: What are the dates of the outgoing manager colin hendry does appointments?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Colin Hendry';<|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
);
Question: What teams does jim mcinally manage?
<|assistant|>
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Jim McInally';<|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
);
Question: What days are vacant that were replaced by john brown?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='John Brown';<|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
);
Question: What manner of departure is listed with an appointment date of 13 march 2008
<|assistant|>
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='13 March 2008';<|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
);
Question: What is the date of appointment for outgoing manager Campbell Money
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Campbell Money';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the lowest attendance that East End Park has ever had?
<|assistant|>
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='East End Park';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What team plays at Palmerston Park?
<|assistant|>
SELECT "team" FROM "attendances" WHERE "stadium"='Palmerston Park';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the lowest attandance recorded at Cappielow?
<|assistant|>
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='Cappielow';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the highest attendance at a game played by St. Johnstone?
<|assistant|>
SELECT MAX("highest") FROM "attendances" WHERE "team"='St. Johnstone';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: What is the highest attandence at a Hamilton Academical game?
<|assistant|>
SELECT MIN("highest") FROM "attendances" WHERE "team"='Hamilton Academical';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: who is the champion where semi-finalist #2 is na and location is morrisville, nc
<|assistant|>
SELECT "champion" FROM "division_i" WHERE "semi_finalist_num2"='NA' AND "location"='Morrisville, NC';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: what's the score where year is 2007
<|assistant|>
SELECT "score" FROM "division_i" WHERE "year"='2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: what is the total number of semi-finalist #2 where runner-up is east carolina
<|assistant|>
SELECT COUNT("semi_finalist_num2") FROM "division_i" WHERE "runner_up"='East Carolina';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: who is the semi-finalist #1 where runner-up is elon university
<|assistant|>
SELECT "semi_finalist_num1" FROM "division_i" WHERE "runner_up"='Elon University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: who is the runner-up where year is 2004 and champion is north carolina state
<|assistant|>
SELECT "runner_up" FROM "division_i" WHERE "year"='2004' AND "champion"='North Carolina State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
Question: who is the runner-up where location is ellenton, fl and year is 2004
<|assistant|>
SELECT "runner_up" FROM "division_i" WHERE "location"='Ellenton, FL' AND "year"='2004';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
Question: what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165
<|assistant|>
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "numer_of_jamaicans_granted_british_citizenship"=3165;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
Question: how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060
<|assistant|>
SELECT COUNT("numer_of_jamaicans_granted_british_citizenship") FROM "population_and_distribution" WHERE "naturalisation_by_marriage"=1060;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
Question: what's the naturalisation by marriage with regbeingtration of a minor child being 114
<|assistant|>
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=114;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
Question: what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927
<|assistant|>
SELECT "numer_of_jamaicans_granted_british_citizenship" FROM "population_and_distribution" WHERE "naturalisation_by_residence"=927;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
Question: what is the maximum year with registration of a minor child being 281
<|assistant|>
SELECT MAX("year") FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=281;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11220799_2" (
"episode_titles" text,
"first_air_date" text,
"reward" text,
"immunity" text,
"exiled" text,
"eliminated" text,
"vote" text,
"finish" text
);
Question: How many episodes had their first air date on March 6, 2008?
<|assistant|>
SELECT COUNT("episode_titles") FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11220799_2" (
"episode_titles" text,
"first_air_date" text,
"reward" text,
"immunity" text,
"exiled" text,
"eliminated" text,
"vote" text,
"finish" text
);
Question: What were the results of episodes with the first air date of March 6, 2008?
<|assistant|>
SELECT "finish" FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11230937_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 millions of viewers watched episode 15?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "no_in_season"=15;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11230937_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 millions of viewers watched the "Throwing Heat" episode?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "title"='\"Throwing Heat\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11230937_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 millions of viewers watched the episode directed by Anthony Hemingway?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "directed_by"='Anthony Hemingway';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.