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