text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "metropolitan_statistical_areas_of_the_un" (
"rank" real,
"metropolitan_statistical_area" text,
"total_population_2010" real,
"indian_american_population_2010" real,
"pct_indian_american" text,
"asian_american_population_2010" real,
"pct_asian_american" text,
"combined_statistical_area" text
);
Question: Name the asian american population 2010 for kansas city-overland park-kansas city, mo-ks csa
<|assistant|>
SELECT MAX("asian_american_population_2010") FROM "metropolitan_statistical_areas_of_the_un" WHERE "combined_statistical_area"='Kansas City-Overland Park-Kansas City, MO-KS CSA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "metropolitan_statistical_areas_of_the_un" (
"rank" real,
"metropolitan_statistical_area" text,
"total_population_2010" real,
"indian_american_population_2010" real,
"pct_indian_american" text,
"asian_american_population_2010" real,
"pct_asian_american" text,
"combined_statistical_area" text
);
Question: Name the % indian american for asian population 126965
<|assistant|>
SELECT "pct_indian_american" FROM "metropolitan_statistical_areas_of_the_un" WHERE "asian_american_population_2010"=126965;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "metropolitan_statistical_areas_of_the_un" (
"rank" real,
"metropolitan_statistical_area" text,
"total_population_2010" real,
"indian_american_population_2010" real,
"pct_indian_american" text,
"asian_american_population_2010" real,
"pct_asian_american" text,
"combined_statistical_area" text
);
Question: Name the % asian american for 23526
<|assistant|>
SELECT "pct_asian_american" FROM "metropolitan_statistical_areas_of_the_un" WHERE "indian_american_population_2010"=23526;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_villages" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"land_area_km" text,
"population_density_per_km" text
);
Question: When buffalo narrows is the name how many measurements of population density per kilometer squared are there?
<|assistant|>
SELECT COUNT("population_density_per_km") FROM "northern_villages" WHERE "name"='Buffalo Narrows';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_villages" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"land_area_km" text,
"population_density_per_km" text
);
Question: When 1233 is the population of 2011 what is the land area in kilometers squared?
<|assistant|>
SELECT "land_area_km" FROM "northern_villages" WHERE "population_2011"=1233;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_villages" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"land_area_km" text,
"population_density_per_km" text
);
Question: When 6.00 is the land area in kilometers squared what is the highest population of 2011?
<|assistant|>
SELECT MAX("population_2011") FROM "northern_villages" WHERE "land_area_km"='6.00';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_villages" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"land_area_km" text,
"population_density_per_km" text
);
Question: When beauval is the name what is the lowest population of 2011?
<|assistant|>
SELECT MIN("population_2011") FROM "northern_villages" WHERE "name"='Beauval';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_villages" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"land_area_km" text,
"population_density_per_km" text
);
Question: When 4.5 is the percentage of change how many population counts were made for 2011?
<|assistant|>
SELECT COUNT("population_2011") FROM "northern_villages" WHERE "change_pct"='4.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "northern_villages" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"land_area_km" text,
"population_density_per_km" text
);
Question: When 14.85 kilometers squared is the land area what is the name?
<|assistant|>
SELECT "name" FROM "northern_villages" WHERE "land_area_km"='14.85';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: What is every state and District of Columbia with 60.0% overweight or obese adults?
<|assistant|>
SELECT "state_and_district_of_columbia" FROM "prevalence_by_state" WHERE "overweight_incl_obese_adults"='60.0%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: What are all percentages of overweight or obese adults for obesity rank of 21?
<|assistant|>
SELECT "overweight_incl_obese_adults" FROM "prevalence_by_state" WHERE "obesity_rank"=21;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: What is the least obesity rank for the state of Utah?
<|assistant|>
SELECT MIN("obesity_rank") FROM "prevalence_by_state" WHERE "state_and_district_of_columbia"='Utah';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: How many states or District of Columbia have 65.4% overweight or obese adults?
<|assistant|>
SELECT COUNT("state_and_district_of_columbia") FROM "prevalence_by_state" WHERE "overweight_incl_obese_adults"='65.4%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prevalence_by_state" (
"state_and_district_of_columbia" text,
"obese_adults" text,
"overweight_incl_obese_adults" text,
"obese_children_and_adolescents" text,
"obesity_rank" real
);
Question: What is every percentage of overweight or obese adults when 12.4% of children and adolescents are obese?
<|assistant|>
SELECT "overweight_incl_obese_adults" FROM "prevalence_by_state" WHERE "obese_children_and_adolescents"='12.4%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18994724_1" (
"submitting_country" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director_s" text,
"result" text
);
Question: Who directed the film Gomorra?
<|assistant|>
SELECT "director_s" FROM "table1_18994724_1" WHERE "film_title_used_in_nomination"='Gomorra';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18994724_1" (
"submitting_country" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director_s" text,
"result" text
);
Question: What language was spoken in Everlasting Moments?
<|assistant|>
SELECT "language_s" FROM "table1_18994724_1" WHERE "film_title_used_in_nomination"='Everlasting Moments';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18994724_1" (
"submitting_country" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director_s" text,
"result" text
);
Question: What is the original title of the film submitted by Greece?
<|assistant|>
SELECT "original_title" FROM "table1_18994724_1" WHERE "submitting_country"='Greece';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18994724_1" (
"submitting_country" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director_s" text,
"result" text
);
Question: Who directed the film Nuits d'arabie?
<|assistant|>
SELECT "director_s" FROM "table1_18994724_1" WHERE "film_title_used_in_nomination"='Nuits d''Arabie';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mother_tongue_language_2006_and_2011" (
"mother_tongue" text,
"population_2006" real,
"percentage_2006" text,
"population_2011" real,
"percentage_2011" text
);
Question: What is every value for population (2006) with a Romanian mother tongue?
<|assistant|>
SELECT "population_2006" FROM "mother_tongue_language_2006_and_2011" WHERE "mother_tongue"='Romanian';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mother_tongue_language_2006_and_2011" (
"mother_tongue" text,
"population_2006" real,
"percentage_2006" text,
"population_2011" real,
"percentage_2011" text
);
Question: What is the lowest population(2011)?
<|assistant|>
SELECT MIN("population_2011") FROM "mother_tongue_language_2006_and_2011";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mother_tongue_language_2006_and_2011" (
"mother_tongue" text,
"population_2006" real,
"percentage_2006" text,
"population_2011" real,
"percentage_2011" text
);
Question: What is the lowest population(2006) when there is a 1.06% in 2011?
<|assistant|>
SELECT MIN("population_2006") FROM "mother_tongue_language_2006_and_2011" WHERE "percentage_2011"='1.06%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mother_tongue_language_2006_and_2011" (
"mother_tongue" text,
"population_2006" real,
"percentage_2006" text,
"population_2011" real,
"percentage_2011" text
);
Question: How many values for population(2011) correspond to a 1.40% in 2006?
<|assistant|>
SELECT COUNT("population_2011") FROM "mother_tongue_language_2006_and_2011" WHERE "percentage_2006"='1.40%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mother_tongue_language_2006_and_2011" (
"mother_tongue" text,
"population_2006" real,
"percentage_2006" text,
"population_2011" real,
"percentage_2011" text
);
Question: What is every value for percentage(2006) with a Polish mother tongue?
<|assistant|>
SELECT "percentage_2006" FROM "mother_tongue_language_2006_and_2011" WHERE "mother_tongue"='Polish';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alumni" (
"name" text,
"nationality" text,
"position" text,
"year_of_birth" real,
"career" text,
"appearances" real,
"goals" real,
"club" text
);
Question: Which team/s have 48 goals total?
<|assistant|>
SELECT "club" FROM "alumni" WHERE "goals"=48;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"player" text,
"original_season" text,
"gender" text,
"eliminated" text,
"placing" text
);
Question: Who was the contestant eliminated on episode 8 of RW: Key West season?
<|assistant|>
SELECT "player" FROM "cast" WHERE "original_season"='RW: Key West' AND "eliminated"='Episode 8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"player" text,
"original_season" text,
"gender" text,
"eliminated" text,
"placing" text
);
Question: Who was the female contestant on the Original season of Fresh Meat?
<|assistant|>
SELECT "player" FROM "cast" WHERE "original_season"='Fresh Meat' AND "gender"='Female';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"player" text,
"original_season" text,
"gender" text,
"eliminated" text,
"placing" text
);
Question: What was the gender of the contestant on RR: South Pacific season?
<|assistant|>
SELECT "gender" FROM "cast" WHERE "original_season"='RR: South Pacific';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cast" (
"player" text,
"original_season" text,
"gender" text,
"eliminated" text,
"placing" text
);
Question: What was the season where Evelyn Smith was on?
<|assistant|>
SELECT "original_season" FROM "cast" WHERE "player"='Evelyn Smith';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters_casts_and_recordings" (
"character" text,
"original_broadway_performer" text,
"original_australian_performer" text,
"original_west_end_performer" text,
"2005_world_aids_day_benefit_dream_cast" text
);
Question: How many original Australian performers are there when the Original West End Performer is Jordan Dunne?
<|assistant|>
SELECT COUNT("original_australian_performer") FROM "characters_casts_and_recordings" WHERE "original_west_end_performer"='Jordan Dunne';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters_casts_and_recordings" (
"character" text,
"original_broadway_performer" text,
"original_australian_performer" text,
"original_west_end_performer" text,
"2005_world_aids_day_benefit_dream_cast" text
);
Question: Who is the Original west end performer for the character Martha?
<|assistant|>
SELECT "original_west_end_performer" FROM "characters_casts_and_recordings" WHERE "character"='Martha';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters_casts_and_recordings" (
"character" text,
"original_broadway_performer" text,
"original_australian_performer" text,
"original_west_end_performer" text,
"2005_world_aids_day_benefit_dream_cast" text
);
Question: Who is the original broadway performer for the character Colin Craven?
<|assistant|>
SELECT "original_broadway_performer" FROM "characters_casts_and_recordings" WHERE "character"='Colin Craven';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters_casts_and_recordings" (
"character" text,
"original_broadway_performer" text,
"original_australian_performer" text,
"original_west_end_performer" text,
"2005_world_aids_day_benefit_dream_cast" text
);
Question: Who is the original west end performer for the character Neville Craven?
<|assistant|>
SELECT "original_west_end_performer" FROM "characters_casts_and_recordings" WHERE "character"='Neville Craven';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters_casts_and_recordings" (
"character" text,
"original_broadway_performer" text,
"original_australian_performer" text,
"original_west_end_performer" text,
"2005_world_aids_day_benefit_dream_cast" text
);
Question: Who is the 2005 World AIDS Day Benefit "Dream" Cast when the Original Australian performer is Susan-Ann Walker?
<|assistant|>
SELECT "2005_world_aids_day_benefit_dream_cast" FROM "characters_casts_and_recordings" WHERE "original_australian_performer"='Susan-Ann Walker';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "characters_casts_and_recordings" (
"character" text,
"original_broadway_performer" text,
"original_australian_performer" text,
"original_west_end_performer" text,
"2005_world_aids_day_benefit_dream_cast" text
);
Question: Who is the Original Australian performer when the Original West End Performer is Linzi Hateley?
<|assistant|>
SELECT "original_australian_performer" FROM "characters_casts_and_recordings" WHERE "original_west_end_performer"='Linzi Hateley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points" text
);
Question: Name the minimum wins
<|assistant|>
SELECT MIN("wins") FROM "by_name";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points" text
);
Question: Name the country for hideki noda category:articles with hcards
<|assistant|>
SELECT "country" FROM "by_name" WHERE "name"='Hideki Noda Category:Articles with hCards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points" text
);
Question: Name the number of poles for stefano livio category:articles with hcards
<|assistant|>
SELECT COUNT("poles") FROM "by_name" WHERE "name"='Stefano Livio Category:Articles with hCards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points" text
);
Question: Name the points for thierry tassin category:articles with hcards
<|assistant|>
SELECT "points" FROM "by_name" WHERE "name"='Thierry Tassin Category:Articles with hCards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_name" (
"name" text,
"country" text,
"seasons" text,
"championship_titles" text,
"race_entries_starts" text,
"poles" real,
"wins" real,
"podiums" real,
"fastest_laps" real,
"points" text
);
Question: Name the number of wins for michele rugolo category:articles with hcards
<|assistant|>
SELECT COUNT("wins") FROM "by_name" WHERE "name"='Michele Rugolo Category:Articles with hCards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"total_apps" real,
"total_g" real
);
Question: Name the lg for ermengol
<|assistant|>
SELECT "l_g" FROM "squad_stats" WHERE "player"='Ermengol';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"total_apps" real,
"total_g" real
);
Question: Name the nat for total apps for 27
<|assistant|>
SELECT "nat" FROM "squad_stats" WHERE "total_apps"=27;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"total_apps" real,
"total_g" real
);
Question: Name the number of apps for total g is 8
<|assistant|>
SELECT COUNT("l_apps") FROM "squad_stats" WHERE "total_g"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"total_apps" real,
"total_g" real
);
Question: Name the player for l apps is 27
<|assistant|>
SELECT "player" FROM "squad_stats" WHERE "l_apps"=27;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demand" (
"entities" text,
"country" text,
"supply_point" text,
"voltage_k_v" real,
"power_mw" real
);
Question: What are all the countries where the electric company Ebisa has a presence?
<|assistant|>
SELECT "country" FROM "demand" WHERE "entities"='EBISA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demand" (
"entities" text,
"country" text,
"supply_point" text,
"voltage_k_v" real,
"power_mw" real
);
Question: In how many countries is Itaipu a supply point for electricity?
<|assistant|>
SELECT COUNT("country") FROM "demand" WHERE "supply_point"='Itaipu';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demand" (
"entities" text,
"country" text,
"supply_point" text,
"voltage_k_v" real,
"power_mw" real
);
Question: What are the electric companies drawing power from Itaipu?
<|assistant|>
SELECT "entities" FROM "demand" WHERE "supply_point"='Itaipu';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "un_2012_estimates_and_medium_variant_pro" (
"year" real,
"world" real,
"asia" text,
"africa" text,
"europe" text,
"latin_america_caribbean" text,
"northern_america" text,
"oceania" text
);
Question: what will the population of Asia be when Latin America/Caribbean is 783 (7.5%)?
<|assistant|>
SELECT "asia" FROM "un_2012_estimates_and_medium_variant_pro" WHERE "latin_america_caribbean"='783 (7.5%)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "un_2012_estimates_and_medium_variant_pro" (
"year" real,
"world" real,
"asia" text,
"africa" text,
"europe" text,
"latin_america_caribbean" text,
"northern_america" text,
"oceania" text
);
Question: what will be the population of Europe when Northern America is 482 (4.7%)?
<|assistant|>
SELECT "europe" FROM "un_2012_estimates_and_medium_variant_pro" WHERE "northern_america"='482 (4.7%)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "un_2012_estimates_and_medium_variant_pro" (
"year" real,
"world" real,
"asia" text,
"africa" text,
"europe" text,
"latin_america_caribbean" text,
"northern_america" text,
"oceania" text
);
Question: what row is the population of Latin America/Caribbean when Asia is 4,894 (46.1%)?
<|assistant|>
SELECT COUNT("latin_america_caribbean") FROM "un_2012_estimates_and_medium_variant_pro" WHERE "asia"='4,894 (46.1%)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "un_2012_estimates_and_medium_variant_pro" (
"year" real,
"world" real,
"asia" text,
"africa" text,
"europe" text,
"latin_america_caribbean" text,
"northern_america" text,
"oceania" text
);
Question: what will be the population of Africa when Oceania is 67 (0.6%)
<|assistant|>
SELECT "africa" FROM "un_2012_estimates_and_medium_variant_pro" WHERE "oceania"='67 (0.6%)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "un_2012_estimates_and_medium_variant_pro" (
"year" real,
"world" real,
"asia" text,
"africa" text,
"europe" text,
"latin_america_caribbean" text,
"northern_america" text,
"oceania" text
);
Question: What is population in the world when 788 (8.1%)?
<|assistant|>
SELECT MIN("world") FROM "un_2012_estimates_and_medium_variant_pro" WHERE "latin_america_caribbean"='788 (8.1%)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "un_2012_estimates_and_medium_variant_pro" (
"year" real,
"world" real,
"asia" text,
"africa" text,
"europe" text,
"latin_america_caribbean" text,
"northern_america" text,
"oceania" text
);
Question: what is the worlds smallest population?
<|assistant|>
SELECT MIN("world") FROM "un_2012_estimates_and_medium_variant_pro";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_finals" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the first year in the competition?
<|assistant|>
SELECT MIN("year") FROM "grand_slam_singles_finals";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_finals" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the result in the final versos Jennifer Capriati?
<|assistant|>
SELECT "outcome" FROM "grand_slam_singles_finals" WHERE "opponent_in_the_final"='Jennifer Capriati';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_finals" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the first year that she competed?
<|assistant|>
SELECT MIN("year") FROM "grand_slam_singles_finals";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_finals" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What tournament did she win with a final score of 4β6, 7β5, 6β2?
<|assistant|>
SELECT "championship" FROM "grand_slam_singles_finals" WHERE "score_in_the_final"='4β6, 7β5, 6β2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teen_edition_housemates" (
"name" text,
"home_or_representative_town_or_province" text,
"age" real,
"edition" text,
"total_days_in_pbb_house" real,
"duration" text,
"status" text
);
Question: When joj agpangan* is the name how many duration's are there?
<|assistant|>
SELECT COUNT("duration") FROM "teen_edition_housemates" WHERE "name"='Joj Agpangan*';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teen_edition_housemates" (
"name" text,
"home_or_representative_town_or_province" text,
"age" real,
"edition" text,
"total_days_in_pbb_house" real,
"duration" text,
"status" text
);
Question: When davao city is the home or representative town or province and clash 2010 is the edition how many ages are there?
<|assistant|>
SELECT COUNT("age") FROM "teen_edition_housemates" WHERE "edition"='Clash 2010' AND "home_or_representative_town_or_province"='Davao City';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teen_edition_housemates" (
"name" text,
"home_or_representative_town_or_province" text,
"age" real,
"edition" text,
"total_days_in_pbb_house" real,
"duration" text,
"status" text
);
Question: When winner is the status and 77 is the total days in pbb house what is the edition?
<|assistant|>
SELECT "edition" FROM "teen_edition_housemates" WHERE "total_days_in_pbb_house"=77 AND "status"='Winner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teen_edition_housemates" (
"name" text,
"home_or_representative_town_or_province" text,
"age" real,
"edition" text,
"total_days_in_pbb_house" real,
"duration" text,
"status" text
);
Question: When days 1-86 is the duration how many names are there?
<|assistant|>
SELECT COUNT("name") FROM "teen_edition_housemates" WHERE "duration"='Days 1-86';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teen_edition_housemates" (
"name" text,
"home_or_representative_town_or_province" text,
"age" real,
"edition" text,
"total_days_in_pbb_house" real,
"duration" text,
"status" text
);
Question: WHen joaqui mendoza is the name how long is the duration?
<|assistant|>
SELECT "duration" FROM "teen_edition_housemates" WHERE "name"='Joaqui Mendoza';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teen_edition_housemates" (
"name" text,
"home_or_representative_town_or_province" text,
"age" real,
"edition" text,
"total_days_in_pbb_house" real,
"duration" text,
"status" text
);
Question: When guiguinto, bulacan is the home or representative town or province how many names are there?
<|assistant|>
SELECT COUNT("name") FROM "teen_edition_housemates" WHERE "home_or_representative_town_or_province"='Guiguinto, Bulacan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19068566_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: When 3t7458 is the production code who are the writers?
<|assistant|>
SELECT "written_by" FROM "table1_19068566_1" WHERE "production_code"='3T7458';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19068566_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: When there are 3.39 million u.s viewers what is the production code?
<|assistant|>
SELECT "production_code" FROM "table1_19068566_1" WHERE "u_s_viewers_million"='3.39';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_19068566_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: When 3t7461 is the production code who is the director?
<|assistant|>
SELECT "directed_by" FROM "table1_19068566_1" WHERE "production_code"='3T7461';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "day_1_evening_session" (
"match_no" real,
"match_type" text,
"team_europe" text,
"score" text,
"team_usa" text,
"progressive_total" text
);
Question: What was the score at the end of the match number 4?
<|assistant|>
SELECT "score" FROM "day_1_evening_session" WHERE "match_no"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "day_1_evening_session" (
"match_no" real,
"match_type" text,
"team_europe" text,
"score" text,
"team_usa" text,
"progressive_total" text
);
Question: What's the match number where Bill Hoffman plays for Team USA?
<|assistant|>
SELECT MIN("match_no") FROM "day_1_evening_session" WHERE "team_usa"='Bill Hoffman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "day_1_evening_session" (
"match_no" real,
"match_type" text,
"team_europe" text,
"score" text,
"team_usa" text,
"progressive_total" text
);
Question: How many different scores did Team Europe get when Mika Koivuniemi played for them?
<|assistant|>
SELECT COUNT("score") FROM "day_1_evening_session" WHERE "team_europe"='Mika Koivuniemi';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "day_1_evening_session" (
"match_no" real,
"match_type" text,
"team_europe" text,
"score" text,
"team_usa" text,
"progressive_total" text
);
Question: What was the score when Tore Torgersen played for Team Europe?
<|assistant|>
SELECT "score" FROM "day_1_evening_session" WHERE "team_europe"='Tore Torgersen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
Question: Name the launch date for duration days 174.14
<|assistant|>
SELECT "launch_date" FROM "see_also" WHERE "duration_days"='174.14';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"host" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What is the 1st place when Pennsylvania finished 2nd place?
<|assistant|>
SELECT "1st_place" FROM "results" WHERE "2nd_place"='Pennsylvania';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"host" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What is the 2nd place when Virginia finished in 1st place?
<|assistant|>
SELECT "2nd_place" FROM "results" WHERE "1st_place"='Virginia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"host" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: How many years did Florida finish in 4th place?
<|assistant|>
SELECT COUNT("year") FROM "results" WHERE "4th_place"='Florida';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"host" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What is the total number of 3rd placed teams when the host is University of Manitoba, Winnipeg, Manitoba?
<|assistant|>
SELECT COUNT("3rd_place") FROM "results" WHERE "host"='University of Manitoba, Winnipeg, Manitoba';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"year" real,
"host" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: Who was in 4th place when Missouri finished in 3rd place?
<|assistant|>
SELECT "4th_place" FROM "results" WHERE "3rd_place"='Missouri';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "day_2_evening_session" (
"match_no" real,
"match_type" text,
"team_europe" text,
"score" text,
"team_usa" text,
"progressive_total" text
);
Question: When tim mack is on team usa what is the progressive total?
<|assistant|>
SELECT "progressive_total" FROM "day_2_evening_session" WHERE "team_usa"='Tim Mack';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "day_2_evening_session" (
"match_no" real,
"match_type" text,
"team_europe" text,
"score" text,
"team_usa" text,
"progressive_total" text
);
Question: When 14 is the match number how many usa teams are there?
<|assistant|>
SELECT COUNT("team_usa") FROM "day_2_evening_session" WHERE "match_no"=14;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "day_2_evening_session" (
"match_no" real,
"match_type" text,
"team_europe" text,
"score" text,
"team_usa" text,
"progressive_total" text
);
Question: When chris barnes is on team usa how many europe teams are there?
<|assistant|>
SELECT COUNT("team_europe") FROM "day_2_evening_session" WHERE "team_usa"='Chris Barnes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"owner_s" text,
"avg_attendance" real
);
Question: in the year 1998/99 what was the league
<|assistant|>
SELECT "league" FROM "year_by_year" WHERE "year"='1998/99';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"owner_s" text,
"avg_attendance" real
);
Question: in the year 1995/96 what was the reg. season
<|assistant|>
SELECT "reg_season" FROM "year_by_year" WHERE "year"='1995/96';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"owner_s" text,
"avg_attendance" real
);
Question: in what playoffs the league was in the semifinals
<|assistant|>
SELECT "league" FROM "year_by_year" WHERE "playoffs"='Semifinals';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"owner_s" text,
"avg_attendance" real
);
Question: what was the year where in the playoffs was champions
<|assistant|>
SELECT "year" FROM "year_by_year" WHERE "playoffs"='Champions';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" text,
"league" text,
"reg_season" text,
"playoffs" text,
"owner_s" text,
"avg_attendance" real
);
Question: what where the playoffs where the avg attendance of the team was 3416
<|assistant|>
SELECT "playoffs" FROM "year_by_year" WHERE "avg_attendance"=3416;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_14_season" (
"club" text,
"position_in_2012_13" text,
"first_season_in_top_division" text,
"number_of_seasons_in_top_division" real,
"first_season_of_current_spell_in_top_division" text,
"top_division_titles" real,
"last_top_division_title" text
);
Question: when did the club Citizen achieve its last top division title?
<|assistant|>
SELECT "last_top_division_title" FROM "2013_14_season" WHERE "club"='Citizen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_14_season" (
"club" text,
"position_in_2012_13" text,
"first_season_in_top_division" text,
"number_of_seasons_in_top_division" real,
"first_season_of_current_spell_in_top_division" text,
"top_division_titles" real,
"last_top_division_title" text
);
Question: How many clubs achieved the 5th position in 2012-13?
<|assistant|>
SELECT COUNT("top_division_titles") FROM "2013_14_season" WHERE "position_in_2012_13"='5th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_191105_3" (
"episode_title" text,
"subject" text,
"music_by" text,
"performed_by" text,
"first_aired" real
);
Question: When interplanet janet is the episode title who is the music by?
<|assistant|>
SELECT "music_by" FROM "table1_191105_3" WHERE "episode_title"='Interplanet Janet';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_191105_3" (
"episode_title" text,
"subject" text,
"music_by" text,
"performed_by" text,
"first_aired" real
);
Question: WHen jaime aff and christine langner are the performers what is the subject?
<|assistant|>
SELECT "subject" FROM "table1_191105_3" WHERE "performed_by"='Jaime Aff and Christine Langner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_191105_3" (
"episode_title" text,
"subject" text,
"music_by" text,
"performed_by" text,
"first_aired" real
);
Question: If skeletal system is the subject when was it first aired?
<|assistant|>
SELECT "first_aired" FROM "table1_191105_3" WHERE "subject"='Skeletal system';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_191105_3" (
"episode_title" text,
"subject" text,
"music_by" text,
"performed_by" text,
"first_aired" real
);
Question: When zachary sanders is the performer what is the lowerst first aired?
<|assistant|>
SELECT MIN("first_aired") FROM "table1_191105_3" WHERE "performed_by"='Zachary Sanders';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What's the amount of winnings (in $) in the year with 2 wins?
<|assistant|>
SELECT "winnings" FROM "nascar_nationwide_series" WHERE "wins"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What's the number of starts in the year with 19.3 average finish?
<|assistant|>
SELECT MIN("starts") FROM "nascar_nationwide_series" WHERE "avg_finish"='19.3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: In what year did the #14 FitzBradshaw Racing compete?
<|assistant|>
SELECT "year" FROM "nascar_nationwide_series" WHERE "team_s"='#14 FitzBradshaw Racing';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What's the average finish in 2008?
<|assistant|>
SELECT "avg_finish" FROM "nascar_nationwide_series" WHERE "year"=2008;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: What's #14 FitzBradshaw Racing's top 5 result?
<|assistant|>
SELECT MAX("top_5") FROM "nascar_nationwide_series" WHERE "team_s"='#14 FitzBradshaw Racing';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "america_rock" (
"episode_title" text,
"subject" text,
"music_by" text,
"lyrics_by" text,
"performed_by" text,
"first_aired" text
);
Question: What is the date for the episode performed by Sue Manchester?
<|assistant|>
SELECT "first_aired" FROM "america_rock" WHERE "performed_by"='Sue Manchester';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "america_rock" (
"episode_title" text,
"subject" text,
"music_by" text,
"lyrics_by" text,
"performed_by" text,
"first_aired" text
);
Question: Who is the music by for episode the Elbow Room?
<|assistant|>
SELECT "music_by" FROM "america_rock" WHERE "episode_title"='Elbow Room';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "america_rock" (
"episode_title" text,
"subject" text,
"music_by" text,
"lyrics_by" text,
"performed_by" text,
"first_aired" text
);
Question: What is the name of the episode performed by Essra Mohawk
<|assistant|>
SELECT "episode_title" FROM "america_rock" WHERE "performed_by"='Essra Mohawk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_of_return" text,
"new_channel_s" text
);
Question: When five is the new channel what is the date of original removal?
<|assistant|>
SELECT "date_s_of_original_removal" FROM "returning_this_year_after_a_break_of_one" WHERE "new_channel_s"='Five';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_of_return" text,
"new_channel_s" text
);
Question: When bbc two is the original channel what is the date of original removal?
<|assistant|>
SELECT "date_s_of_original_removal" FROM "returning_this_year_after_a_break_of_one" WHERE "original_channel"='BBC Two';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "returning_this_year_after_a_break_of_one" (
"programme" text,
"date_s_of_original_removal" text,
"original_channel" text,
"date_of_return" text,
"new_channel_s" text
);
Question: When bbc two is the new channel what is the date of return?
<|assistant|>
SELECT "date_of_return" FROM "returning_this_year_after_a_break_of_one" WHERE "new_channel_s"='BBC Two';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.