text stringlengths 310 1.28k |
|---|
<|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 manner of departure for the date of appointment 24 may 2010?
<|assistant|>
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='24 May 2010';<|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 when the outgoing manager was mustafa denizli?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Mustafa Denizli';<|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 when the date of vacancy is 15 march 2011?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='15 March 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003223_4" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the lowest population in which 28.0% are democrat?
<|assistant|>
SELECT MIN("population") FROM "table1_27003223_4" WHERE "democratic"='28.0%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003223_4" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: what is the percentage of democratic voters in which the registered voters is 67.8%?
<|assistant|>
SELECT "democratic" FROM "table1_27003223_4" WHERE "registered_voters"='67.8%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003223_4" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the percentage of registered voters in which the d-r spread is +10.4%?
<|assistant|>
SELECT "registered_voters" FROM "table1_27003223_4" WHERE "d_r_spread"='+10.4%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003223_4" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the percentage of registered voters in which the d-r spread is +14.3%?
<|assistant|>
SELECT "registered_voters" FROM "table1_27003223_4" WHERE "d_r_spread"='+14.3%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003223_4" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the percentage of republican voters in which the d-r spread is -14.1%?
<|assistant|>
SELECT "republican" FROM "table1_27003223_4" WHERE "d_r_spread"='-14.1%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003223_4" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the percentage of "no party preference" where the democratic percentage is 24.8%?
<|assistant|>
SELECT "no_party_preference" FROM "table1_27003223_4" WHERE "democratic"='24.8%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "important_trains_passing_from_kanpur_ana" (
"train_no" real,
"train_name" text,
"arrival" text,
"departure" text,
"days" text,
"platform_no" text
);
Question: How many trains depart at 17:30?
<|assistant|>
SELECT COUNT("train_no") FROM "important_trains_passing_from_kanpur_ana" WHERE "departure"='17:30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "important_trains_passing_from_kanpur_ana" (
"train_no" real,
"train_name" text,
"arrival" text,
"departure" text,
"days" text,
"platform_no" text
);
Question: How many trains arrive at 11:00?
<|assistant|>
SELECT COUNT("train_no") FROM "important_trains_passing_from_kanpur_ana" WHERE "arrival"='11:00';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003186_3" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the no party preference when the city is murrieta?
<|assistant|>
SELECT "no_party_preference" FROM "table1_27003186_3" WHERE "city"='Murrieta';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003186_3" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the no party preference when other is 10.1%?
<|assistant|>
SELECT "no_party_preference" FROM "table1_27003186_3" WHERE "other"='10.1%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003186_3" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is the no party preference when republican is 45.3%?
<|assistant|>
SELECT "no_party_preference" FROM "table1_27003186_3" WHERE "republican"='45.3%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003186_3" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is other when no party preference is 19.1%?
<|assistant|>
SELECT "other" FROM "table1_27003186_3" WHERE "no_party_preference"='19.1%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27003186_3" (
"city" text,
"population" real,
"registered_voters" text,
"democratic" text,
"republican" text,
"d_r_spread" text,
"other" text,
"no_party_preference" text
);
Question: What is other when registered voters is 50.7%?
<|assistant|>
SELECT "other" FROM "table1_27003186_3" WHERE "registered_voters"='50.7%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What is the district with the incumbent Charlie Norwood?
<|assistant|>
SELECT "district" FROM "results" WHERE "incumbent"='Charlie Norwood';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What is the year elected for incumbent Cynthia Mckinney?
<|assistant|>
SELECT "elected" FROM "results" WHERE "incumbent"='Cynthia McKinney';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%?
<|assistant|>
SELECT COUNT("incumbent") FROM "results" WHERE "result"='Sanford Bishop (D) 57% Joseph McCormick (R) 43%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What is the status for district georgia's 10th?
<|assistant|>
SELECT "status" FROM "results" WHERE "district"='Georgia''s 10th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What is the result of districk georgia's 1st?
<|assistant|>
SELECT "result" FROM "results" WHERE "district"='Georgia''s 1st';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What is the district with the result mac collins (r) unopposed?
<|assistant|>
SELECT "district" FROM "results" WHERE "result"='Mac Collins (R) unopposed';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_2_episodes" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: how many times is the production code is 201a?
<|assistant|>
SELECT COUNT("title") FROM "aaahh_real_monsters_season_2_episodes" WHERE "production_code"='201a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_by_the_world_health_organization_20" (
"overall_rank" real,
"country" text,
"overall_life_expectancy" real,
"male_life_expectancy" real,
"male_rank" real,
"female_life_expectancy" real,
"female_rank" real
);
Question: Name the most overall rank for czech republic
<|assistant|>
SELECT MAX("overall_rank") FROM "list_by_the_world_health_organization_20" WHERE "country"='Czech Republic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_by_the_world_health_organization_20" (
"overall_rank" real,
"country" text,
"overall_life_expectancy" real,
"male_life_expectancy" real,
"male_rank" real,
"female_life_expectancy" real,
"female_rank" real
);
Question: Name the total number of male rank for fiji
<|assistant|>
SELECT COUNT("male_rank") FROM "list_by_the_world_health_organization_20" WHERE "country"='Fiji';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_by_the_world_health_organization_20" (
"overall_rank" real,
"country" text,
"overall_life_expectancy" real,
"male_life_expectancy" real,
"male_rank" real,
"female_life_expectancy" real,
"female_rank" real
);
Question: Name the most female life expectancy for djibouti
<|assistant|>
SELECT MAX("female_life_expectancy") FROM "list_by_the_world_health_organization_20" WHERE "country"='Djibouti';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_by_the_world_health_organization_20" (
"overall_rank" real,
"country" text,
"overall_life_expectancy" real,
"male_life_expectancy" real,
"male_rank" real,
"female_life_expectancy" real,
"female_rank" real
);
Question: Name the most female life expectancy for overall rank of 61
<|assistant|>
SELECT MAX("female_life_expectancy") FROM "list_by_the_world_health_organization_20" WHERE "overall_rank"=61;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_by_the_world_health_organization_20" (
"overall_rank" real,
"country" text,
"overall_life_expectancy" real,
"male_life_expectancy" real,
"male_rank" real,
"female_life_expectancy" real,
"female_rank" real
);
Question: Name the most male life expectancy for pakistan
<|assistant|>
SELECT MAX("male_life_expectancy") FROM "list_by_the_world_health_organization_20" WHERE "country"='Pakistan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_1_episodes" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the name of episode # 10a?
<|assistant|>
SELECT "title" FROM "aaahh_real_monsters_season_1_episodes" WHERE "no_in_series"='10a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_1_episodes" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the episode number for "Old Monster"?
<|assistant|>
SELECT "no_in_series" FROM "aaahh_real_monsters_season_1_episodes" WHERE "title"='\"Old Monster\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_1_episodes" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the name of the episode written by Michael Price?
<|assistant|>
SELECT "title" FROM "aaahh_real_monsters_season_1_episodes" WHERE "written_by"='Michael Price';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_1_episodes" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who directed the episode named "Don't just do it"?
<|assistant|>
SELECT "directed_by" FROM "aaahh_real_monsters_season_1_episodes" WHERE "title"='\"Don''t Just Do It\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_4_episodes" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What was the title for the episode with the production code 404a?
<|assistant|>
SELECT "title" FROM "aaahh_real_monsters_season_4_episodes" WHERE "production_code"='404a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_4_episodes" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the production code for the episode written by Kat Likkel & Denise Downer?
<|assistant|>
SELECT "production_code" FROM "aaahh_real_monsters_season_4_episodes" WHERE "written_by"='Kat Likkel & Denise Downer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_4_episodes" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who was the director for the Episode number in season 10a?
<|assistant|>
SELECT "directed_by" FROM "aaahh_real_monsters_season_4_episodes" WHERE "no_in_season"='10a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_4_episodes" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who wrote the episode in the series 46b?
<|assistant|>
SELECT "written_by" FROM "aaahh_real_monsters_season_4_episodes" WHERE "no_in_series"='46b';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_4_episodes" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: What was the production code for the episode titled "Misery date"?
<|assistant|>
SELECT "production_code" FROM "aaahh_real_monsters_season_4_episodes" WHERE "title"='\"Misery Date\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aaahh_real_monsters_season_4_episodes" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: How many production codes did the episode number in series 46b have?
<|assistant|>
SELECT COUNT("production_code") FROM "aaahh_real_monsters_season_4_episodes" WHERE "no_in_series"='46b';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27047554_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: How many viewer data were given for episode "If at First You Don't Succeed, Lie, Lie Again"?
<|assistant|>
SELECT COUNT("u_s_viewers_in_millions") FROM "table1_27047554_1" WHERE "title"='\"If at First You Don''t Succeed, Lie, Lie Again\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27047554_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: How many directors directed an episode that reached 2.48 million viewers?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_27047554_1" WHERE "u_s_viewers_in_millions"='2.48';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27047554_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: What was the original air date of the episode "Keep Your Friends Close"?
<|assistant|>
SELECT "original_air_date" FROM "table1_27047554_1" WHERE "title"='\"Keep Your Friends Close\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"district" text,
"counties_represented" text,
"delegate" text,
"party" text,
"first_elected" real,
"committee" text
);
Question: Who represents district 41?
<|assistant|>
SELECT "delegate" FROM "members" WHERE "district"='41';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"district" text,
"counties_represented" text,
"delegate" text,
"party" text,
"first_elected" real,
"committee" text
);
Question: For delegate is mcdonough, patrick l. pat mcdonough, specify all the district.
<|assistant|>
SELECT "district" FROM "members" WHERE "delegate"='McDonough, Patrick L. Pat McDonough';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"district" text,
"counties_represented" text,
"delegate" text,
"party" text,
"first_elected" real,
"committee" text
);
Question: where committee is environmental matters and district is 36 please specify all the delegate name
<|assistant|>
SELECT "delegate" FROM "members" WHERE "committee"='Environmental Matters' AND "district"='36';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"district" text,
"counties_represented" text,
"delegate" text,
"party" text,
"first_elected" real,
"committee" text
);
Question: For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name.
<|assistant|>
SELECT "delegate" FROM "members" WHERE "committee"='Judiciary' AND "party"='Democratic' AND "counties_represented"='Montgomery';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"district" text,
"counties_represented" text,
"delegate" text,
"party" text,
"first_elected" real,
"committee" text
);
Question: Where delegate is feldman, brian j. brian j. feldman, please specify all the party
<|assistant|>
SELECT "party" FROM "members" WHERE "delegate"='Feldman, Brian J. Brian J. Feldman';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"district" text,
"counties_represented" text,
"delegate" text,
"party" text,
"first_elected" real,
"committee" text
);
Question: For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.
<|assistant|>
SELECT "party" FROM "members" WHERE "delegate"='Gaines, Tawanna P. Tawanna Gaines';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"position" real,
"building" text,
"city" text,
"height" text,
"number_of_floors" real,
"completion" real
);
Question: If the number of floors is 70, what is the height?
<|assistant|>
SELECT "height" FROM "see_also" WHERE "number_of_floors"=70;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"position" real,
"building" text,
"city" text,
"height" text,
"number_of_floors" real,
"completion" real
);
Question: if the completed is 2010, what is the number of floors?
<|assistant|>
SELECT MIN("number_of_floors") FROM "see_also" WHERE "completion"=2010;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"position" real,
"building" text,
"city" text,
"height" text,
"number_of_floors" real,
"completion" real
);
Question: If the building is Costanera Center Torre 1, what is the height?
<|assistant|>
SELECT "height" FROM "see_also" WHERE "building"='Costanera Center Torre 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"position" real,
"building" text,
"city" text,
"height" text,
"number_of_floors" real,
"completion" real
);
Question: How many positions does building Costanera Center Torre 1 have?
<|assistant|>
SELECT COUNT("position") FROM "see_also" WHERE "building"='Costanera Center Torre 1';<|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: Who is the outgoing manager when the team is simurq pfc?
<|assistant|>
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='Simurq PFC';<|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: How many date of appointment entries are there when the team is khazar lankaran?
<|assistant|>
SELECT COUNT("date_of_appointment") FROM "managerial_changes" WHERE "team"='Khazar Lankaran';<|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 manner of departure when the replaced by is bahman hasanov?
<|assistant|>
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='Bahman Hasanov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"coach" text,
"conf_record" text,
"overall" text,
"standings" text,
"postseason" text
);
Question: What was the overall record for the Pandas in the 2003-04 season?
<|assistant|>
SELECT "overall" FROM "year_by_year" WHERE "season"='2003-04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"coach" text,
"conf_record" text,
"overall" text,
"standings" text,
"postseason" text
);
Question: What was the conference record in the season where the Pandas had an overall record of 33-4-1?
<|assistant|>
SELECT "conf_record" FROM "year_by_year" WHERE "overall"='33-4-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"coach" text,
"conf_record" text,
"overall" text,
"standings" text,
"postseason" text
);
Question: Who was the coach of the Pandas when their overall record was 20-6-2?
<|assistant|>
SELECT "coach" FROM "year_by_year" WHERE "overall"='20-6-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"coach" text,
"conf_record" text,
"overall" text,
"standings" text,
"postseason" text
);
Question: What was the conference record for the Pandas when they were first in the standings in the 2003-04 season?
<|assistant|>
SELECT "conf_record" FROM "year_by_year" WHERE "standings"='First' AND "season"='2003-04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"coach" text,
"conf_record" text,
"overall" text,
"standings" text,
"postseason" text
);
Question: What was the overall record for the Pandas when their conference record was 4-1-1?
<|assistant|>
SELECT "overall" FROM "year_by_year" WHERE "conf_record"='4-1-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"season" text,
"coach" text,
"conf_record" text,
"overall" text,
"standings" text,
"postseason" text
);
Question: In what season was the conference record for the Pandas 15-1-1?
<|assistant|>
SELECT "season" FROM "year_by_year" WHERE "conf_record"='15-1-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: how many times is the week # is audition?
<|assistant|>
SELECT COUNT("original_artist") FROM "performances" WHERE "week_num"='Audition';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27081956_1" (
"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
"series_no" real,
"episode" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: How many episodes are numbered 14 in the series?
<|assistant|>
SELECT COUNT("episode") FROM "table1_27081956_1" WHERE "series_no"=14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27081956_1" (
"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
"series_no" real,
"episode" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: How many writers for the episode "peace, brother"?
<|assistant|>
SELECT COUNT("writer_s") FROM "table1_27081956_1" WHERE "episode"='\"Peace, Brother\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27081956_1" (
"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
"series_no" real,
"episode" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: What series number is the episode "peace, brother"?
<|assistant|>
SELECT "series_no" FROM "table1_27081956_1" WHERE "episode"='\"Peace, Brother\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27081956_1" (
"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
"series_no" real,
"episode" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: How many times did episode 17 originally air?
<|assistant|>
SELECT COUNT("original_airdate") FROM "table1_27081956_1" WHERE "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series"=17;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27081956_1" (
"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
"series_no" real,
"episode" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: What is the original air date for "rock-a-bye-baby"?
<|assistant|>
SELECT "original_airdate" FROM "table1_27081956_1" WHERE "episode"='\"Rock-a-Bye-Baby\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27081956_1" (
"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
"series_no" real,
"episode" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: What is the original air date(s) for "the raid"?
<|assistant|>
SELECT "original_airdate" FROM "table1_27081956_1" WHERE "episode"='\"The Raid\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2709_4" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
Question: What is the format of 105.5 fm?
<|assistant|>
SELECT "format" FROM "table1_2709_4" WHERE "frequency"='105.5 FM';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2709_4" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
Question: What is the market for KLRJ?
<|assistant|>
SELECT "target_city_market" FROM "table1_2709_4" WHERE "call_sign"='KLRJ';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2709_4" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text,
"target_city_market" text,
"city_of_license" text
);
Question: What is the format for the station owned by Dakota Broadcasting?
<|assistant|>
SELECT "format" FROM "table1_2709_4" WHERE "owner"='Dakota Broadcasting';<|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 team's manager was replaced by Ercan Ertemçöz?
<|assistant|>
SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Ercan Ertemçöz';<|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 was the date of appointment for the manager replacing Kadir Özcan?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Kadir Özcan';<|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: Which manager was appointed on 08.06.2010?
<|assistant|>
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='08.06.2010';<|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: Who replaced the previous manager of Altay?
<|assistant|>
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='Altay';<|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 was date of appointment for Ergün Penbe?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Ergün Penbe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendance" (
"team" text,
"home_gms" real,
"home_total" real,
"home_avg" real,
"top_home_crowd" text,
"road_gms" real,
"road_total" real,
"road_avg" real,
"overall_gms" real,
"overall_total" real,
"overall_avg" real
);
Question: What is the overall total for the Omaha Nighthawks?
<|assistant|>
SELECT MIN("overall_total") FROM "attendance" WHERE "team"='Omaha Nighthawks';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendance" (
"team" text,
"home_gms" real,
"home_total" real,
"home_avg" real,
"top_home_crowd" text,
"road_gms" real,
"road_total" real,
"road_avg" real,
"overall_gms" real,
"overall_total" real,
"overall_avg" real
);
Question: Which team has the home average of 18125?
<|assistant|>
SELECT "team" FROM "attendance" WHERE "home_avg"=18125;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendance" (
"team" text,
"home_gms" real,
"home_total" real,
"home_avg" real,
"top_home_crowd" text,
"road_gms" real,
"road_total" real,
"road_avg" real,
"overall_gms" real,
"overall_total" real,
"overall_avg" real
);
Question: What was the highest home total?
<|assistant|>
SELECT MAX("home_total") FROM "attendance";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendance" (
"team" text,
"home_gms" real,
"home_total" real,
"home_avg" real,
"top_home_crowd" text,
"road_gms" real,
"road_total" real,
"road_avg" real,
"overall_gms" real,
"overall_total" real,
"overall_avg" real
);
Question: How many games had an average of 12796?
<|assistant|>
SELECT COUNT("overall_gms") FROM "attendance" WHERE "overall_avg"=12796;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"asian_rider_classification" text,
"team_classification" text
);
Question: Who was the stage winner of the letua cycling team on stage 2?
<|assistant|>
SELECT "stage_winner" FROM "classification_leadership" WHERE "team_classification"='LeTua Cycling Team' AND "stage"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"asian_rider_classification" text,
"team_classification" text
);
Question: Who is listed under points classification when the stage winner is malcolm lange?
<|assistant|>
SELECT "points_classification" FROM "classification_leadership" WHERE "stage_winner"='Malcolm Lange';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"asian_rider_classification" text,
"team_classification" text
);
Question: Which mountains classification is listed under stage 3?
<|assistant|>
SELECT "mountains_classification" FROM "classification_leadership" WHERE "stage"=3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"asian_rider_classification" text,
"team_classification" text
);
Question: Who was listed under the general classification when the stage winner was suhardi hassan?
<|assistant|>
SELECT "general_classification" FROM "classification_leadership" WHERE "stage_winner"='Suhardi Hassan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"asian_rider_classification" text,
"team_classification" text
);
Question: what is the greatest stage number in which suhardi hassan is the stage winner?
<|assistant|>
SELECT MAX("stage") FROM "classification_leadership" WHERE "stage_winner"='Suhardi Hassan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"stage_winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"asian_rider_classification" text,
"team_classification" text
);
Question: Who is listed under general classification on stage 4?
<|assistant|>
SELECT "general_classification" FROM "classification_leadership" WHERE "stage"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27117365_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Who wrote the episodes with 7.70 u.s. viewers (million) ?
<|assistant|>
SELECT "written_by" FROM "table1_27117365_1" WHERE "u_s_viewers_million"='7.70';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27117365_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What original air date has 5.85 u.s. viewers (million)?
<|assistant|>
SELECT "original_air_date" FROM "table1_27117365_1" WHERE "u_s_viewers_million"='5.85';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27117365_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What's the title in the number 10 in the season?
<|assistant|>
SELECT "title" FROM "table1_27117365_1" WHERE "no_in_season"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_head_coach" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_head_coach" text,
"date_of_appointment" text
);
Question: If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='Resigned' AND "position_in_table"='10th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_head_coach" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_head_coach" text,
"date_of_appointment" text
);
Question: If the incoming head coach is Carlos Azenha, what is the date of vacancy?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "incoming_head_coach"='Carlos Azenha';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_head_coach" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_head_coach" text,
"date_of_appointment" text
);
Question: If the team is união de leiria, what is the date of appointment?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='União de Leiria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27146868_1" (
"greek_national_account" text,
"1970" text,
"1980" text,
"1990" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001_1" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_2" text,
"2014_2" text,
"2015_3" text
);
Question: What is 2003 when 1999 is 2.1?
<|assistant|>
SELECT "2003" FROM "table1_27146868_1" WHERE "1999"='2.1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27146868_1" (
"greek_national_account" text,
"1970" text,
"1980" text,
"1990" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001_1" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_2" text,
"2014_2" text,
"2015_3" text
);
Question: What is 2010 when 2003 is 5.6?
<|assistant|>
SELECT "2010" FROM "table1_27146868_1" WHERE "2003"='5.6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27146868_1" (
"greek_national_account" text,
"1970" text,
"1980" text,
"1990" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001_1" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_2" text,
"2014_2" text,
"2015_3" text
);
Question: What is the greek national account when 1997 is 6.1?
<|assistant|>
SELECT "greek_national_account" FROM "table1_27146868_1" WHERE "1997"='6.1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27146868_1" (
"greek_national_account" text,
"1970" text,
"1980" text,
"1990" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001_1" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_2" text,
"2014_2" text,
"2015_3" text
);
Question: What is 1995 when 20011 is 45.8?
<|assistant|>
SELECT "1995" FROM "table1_27146868_1" WHERE "2001_1"='45.8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27146868_1" (
"greek_national_account" text,
"1970" text,
"1980" text,
"1990" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001_1" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_2" text,
"2014_2" text,
"2015_3" text
);
Question: What is 2006 when 1997 is 6.8?
<|assistant|>
SELECT "2006" FROM "table1_27146868_1" WHERE "1997"='6.8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27146868_1" (
"greek_national_account" text,
"1970" text,
"1980" text,
"1990" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001_1" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_2" text,
"2014_2" text,
"2015_3" text
);
Question: What is 2002 when 2009 is 54.0?
<|assistant|>
SELECT "2002" FROM "table1_27146868_1" WHERE "2009"='54.0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"pro_team" text,
"college" text
);
Question: If the NFL team is the Houston Oilers and the position is DT, who is the Pro team?
<|assistant|>
SELECT "pro_team" FROM "third_round" WHERE "position"='DT' AND "nfl_team"='Houston Oilers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"pro_team" text,
"college" text
);
Question: How many different players does the Washington Redskins have?
<|assistant|>
SELECT COUNT("player") FROM "third_round" WHERE "nfl_team"='Washington Redskins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"pro_team" text,
"college" text
);
Question: If the college is Vanderbilt, what is the position?
<|assistant|>
SELECT "position" FROM "third_round" WHERE "college"='Vanderbilt';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.