output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "price" FROM "franchises" WHERE "captain"='Sanath Jayasuriya';
## Task Generate a SQL query to answer the following question: `What's the price of the team whose captain is Sanath Jayasuriya?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "franchises" ( "team" text, "province" text, "owner_s" text, "price" text, "captain" text, "head_coach" text, "icon_player" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the price of the team whose captain is Sanath Jayasuriya?`: ```sql
SELECT "team" FROM "franchises" WHERE "province"='Eastern';
## Task Generate a SQL query to answer the following question: `What team is from the Eastern province?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "franchises" ( "team" text, "province" text, "owner_s" text, "price" text, "captain" text, "head_coach" text, "icon_player" text ); ### SQL Given the database schema, here is the SQL query that answers `What team is from the Eastern province?`: ```sql
SELECT "head_coach" FROM "franchises" WHERE "price"='$3.22 million';
## Task Generate a SQL query to answer the following question: `Who's the head coach of the team with a price of $3.22 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "franchises" ( "team" text, "province" text, "owner_s" text, "price" text, "captain" text, "head_coach" text, "icon_player" text ); ### SQL Given the database schema, here is the SQL query that answers `Who's the head coach of the team with a price of $3.22 million?`: ```sql
SELECT COUNT("team") FROM "franchises" WHERE "head_coach"='Waqar Younis';
## Task Generate a SQL query to answer the following question: `In how many teams is Waqar Younis the head coach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "franchises" ( "team" text, "province" text, "owner_s" text, "price" text, "captain" text, "head_coach" text, "icon_player" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many teams is Waqar Younis the head coach?`: ```sql
SELECT "province" FROM "franchises" WHERE "team"='Ruhuna Royals';
## Task Generate a SQL query to answer the following question: `What province does the Ruhuna Royals team come from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "franchises" ( "team" text, "province" text, "owner_s" text, "price" text, "captain" text, "head_coach" text, "icon_player" text ); ### SQL Given the database schema, here is the SQL query that answers `What province does the Ruhuna Royals team come from?`: ```sql
SELECT "birth_date" FROM "team_roster_season_2009_2010" WHERE "player"='Alexey Kuleshov';
## Task Generate a SQL query to answer the following question: `When was Alexey Kuleshov born?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_roster_season_2009_2010" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Alexey Kuleshov born?`: ```sql
SELECT "trigger_pack" FROM "summary" WHERE "rear_sight_type"='A1' AND "colt_model_no"='602';
## Task Generate a SQL query to answer the following question: `What is the trigger pack on the Colt 602 with the a1 rear sight type? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "colt_model_no" text, "military_designation" text, "barrel_length" text, "barrel" text, "handguard_type" text, "buttstock_type" text, "pistol_grip_type" text, "lower_receiver_type" text, "upper_receiver_type" text, "rear_sight_type" text, "front_sight_type" text, "muzzle_device" text, "forward_assist" text, "case_deflector" text, "bayonet_lug" text, "trigger_pack" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the trigger pack on the Colt 602 with the a1 rear sight type? `: ```sql
SELECT COUNT("case_deflector") FROM "summary" WHERE "colt_model_no"='646';
## Task Generate a SQL query to answer the following question: `How many case deflectors are there for the Colt 646? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "colt_model_no" text, "military_designation" text, "barrel_length" text, "barrel" text, "handguard_type" text, "buttstock_type" text, "pistol_grip_type" text, "lower_receiver_type" text, "upper_receiver_type" text, "rear_sight_type" text, "front_sight_type" text, "muzzle_device" text, "forward_assist" text, "case_deflector" text, "bayonet_lug" text, "trigger_pack" text ); ### SQL Given the database schema, here is the SQL query that answers `How many case deflectors are there for the Colt 646? `: ```sql
SELECT "rear_sight_type" FROM "summary" WHERE "muzzle_device"='ACR muzzle brake';
## Task Generate a SQL query to answer the following question: `What is the rear sight type on the model with the acr muzzle brake device? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "colt_model_no" text, "military_designation" text, "barrel_length" text, "barrel" text, "handguard_type" text, "buttstock_type" text, "pistol_grip_type" text, "lower_receiver_type" text, "upper_receiver_type" text, "rear_sight_type" text, "front_sight_type" text, "muzzle_device" text, "forward_assist" text, "case_deflector" text, "bayonet_lug" text, "trigger_pack" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rear sight type on the model with the acr muzzle brake device? `: ```sql
SELECT "muzzle_device" FROM "summary" WHERE "colt_model_no"='603';
## Task Generate a SQL query to answer the following question: `Which muzzle devices are on the Colt 603? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "colt_model_no" text, "military_designation" text, "barrel_length" text, "barrel" text, "handguard_type" text, "buttstock_type" text, "pistol_grip_type" text, "lower_receiver_type" text, "upper_receiver_type" text, "rear_sight_type" text, "front_sight_type" text, "muzzle_device" text, "forward_assist" text, "case_deflector" text, "bayonet_lug" text, "trigger_pack" text ); ### SQL Given the database schema, here is the SQL query that answers `Which muzzle devices are on the Colt 603? `: ```sql
SELECT "u_s_viewers_millions" FROM "table1_19925114_1" WHERE "no_in_season"=8;
## Task Generate a SQL query to answer the following question: `How many millions of people in the US watched the episode with season number 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19925114_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of people in the US watched the episode with season number 8?`: ```sql
SELECT COUNT("directed_by") FROM "table1_19925114_1" WHERE "no_in_series"=38;
## Task Generate a SQL query to answer the following question: `How many episodes had the series number of 38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19925114_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes had the series number of 38?`: ```sql
SELECT COUNT("u_s_viewers_millions") FROM "table1_19925114_1" WHERE "no_in_season"=8;
## Task Generate a SQL query to answer the following question: `How many different numbers of people in the US who'd seen the episode with a season number 8 are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19925114_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different numbers of people in the US who'd seen the episode with a season number 8 are there?`: ```sql
SELECT COUNT("rufus_guest") FROM "series_1" WHERE "first_broadcast"='15 December 2008';
## Task Generate a SQL query to answer the following question: `Name the rufus guest for 15 december 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rufus guest for 15 december 2008`: ```sql
SELECT "winner" FROM "series_1" WHERE "marcus_guest"='Jason Byrne';
## Task Generate a SQL query to answer the following question: `Name the winner for jason byrne` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the winner for jason byrne`: ```sql
SELECT "rufus_guest" FROM "series_1" WHERE "episode"='1x07';
## Task Generate a SQL query to answer the following question: `Name the rufus guest for episode 1x07` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rufus guest for episode 1x07`: ```sql
SELECT "winner" FROM "series_1" WHERE "first_broadcast"='26 January 2009';
## Task Generate a SQL query to answer the following question: `Name the winner for 26 january 2009` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the winner for 26 january 2009`: ```sql
SELECT "first_broadcast" FROM "table1_19930660_2" WHERE "episode"='2x11';
## Task Generate a SQL query to answer the following question: `When was episode 2x11 aired for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19930660_2" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When was episode 2x11 aired for the first time?`: ```sql
SELECT "winner" FROM "table1_19930660_2" WHERE "rufus_guest"='Sean Lock';
## Task Generate a SQL query to answer the following question: `Who won the episode in which Sean Lock was Rufus's guest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19930660_2" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the episode in which Sean Lock was Rufus's guest?`: ```sql
SELECT "first_broadcast" FROM "table1_19930660_2" WHERE "episode"='2x10';
## Task Generate a SQL query to answer the following question: `When was the episode 2x10 aired for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19930660_2" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the episode 2x10 aired for the first time?`: ```sql
SELECT "marcus_guest" FROM "table1_19930660_2" WHERE "rufus_guest"='Rory McGrath';
## Task Generate a SQL query to answer the following question: `Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19930660_2" ( "episode" text, "first_broadcast" text, "rufus_guest" text, "marcus_guest" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?`: ```sql
SELECT COUNT("timeslot_edt") FROM "seasonal_ratings" WHERE "season_finale"='August 9, 2007';
## Task Generate a SQL query to answer the following question: `Name the total number of timeslot for august 9, 2007 finale` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasonal_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank_spanish_language" real, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of timeslot for august 9, 2007 finale`: ```sql
SELECT "timeslot_edt" FROM "seasonal_ratings" WHERE "viewers_in_millions"='9.4' AND "tv_season"='2006';
## Task Generate a SQL query to answer the following question: `Name the timeslot for 9.4 viewers for 2006` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasonal_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank_spanish_language" real, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the timeslot for 9.4 viewers for 2006`: ```sql
SELECT COUNT("ranking_l_a_2") FROM "other" WHERE "world_ranking_1"='21st';
## Task Generate a SQL query to answer the following question: `How many items were under ranking l.a.(2) when the world ranking was 21st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); ### SQL Given the database schema, here is the SQL query that answers `How many items were under ranking l.a.(2) when the world ranking was 21st?`: ```sql
SELECT "author_editor_source" FROM "other" WHERE "ranking_l_a_2"='1st';
## Task Generate a SQL query to answer the following question: `What was the author/editor/source when the l.a. ranking was 1st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the author/editor/source when the l.a. ranking was 1st?`: ```sql
SELECT COUNT("index_year") FROM "other" WHERE "countries_sampled"=157;
## Task Generate a SQL query to answer the following question: `How many years were listed under index when there were 157 countries sampled?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years were listed under index when there were 157 countries sampled?`: ```sql
SELECT "year_of_publication" FROM "other" WHERE "ranking_l_a_2"='1st';
## Task Generate a SQL query to answer the following question: `What was the publication year ranking l.a. is 1st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the publication year ranking l.a. is 1st?`: ```sql
SELECT COUNT("index_year") FROM "other" WHERE "world_ranking_1"='21st';
## Task Generate a SQL query to answer the following question: `How many years were recorded when world ranking was 21st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years were recorded when world ranking was 21st?`: ```sql
SELECT "wireless_lan" FROM "intel_centrino" WHERE "process_technology"='90nm' AND "centrino"='Carmel';
## Task Generate a SQL query to answer the following question: `What Wireless LAN had a process technology of 90nm and a Carmel centrino?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "intel_centrino" ( "wireless_lan" text, "chipset" text, "centrino" text, "processor" text, "codename" text, "release_date" real, "process_technology" text, "microarchitecture" text ); ### SQL Given the database schema, here is the SQL query that answers `What Wireless LAN had a process technology of 90nm and a Carmel centrino?`: ```sql
SELECT "chipset" FROM "intel_centrino" WHERE "codename"='Arrandale' AND "wireless_lan"='Intel Centrino Ultimate-N 6300';
## Task Generate a SQL query to answer the following question: `How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "intel_centrino" ( "wireless_lan" text, "chipset" text, "centrino" text, "processor" text, "codename" text, "release_date" real, "process_technology" text, "microarchitecture" text ); ### SQL Given the database schema, here is the SQL query that answers `How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?`: ```sql
SELECT "process_technology" FROM "intel_centrino" WHERE "wireless_lan"='Intel WiFi Link 5100';
## Task Generate a SQL query to answer the following question: `What's the process technology of the Intel WiFi Link 5100 wireless LAN?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "intel_centrino" ( "wireless_lan" text, "chipset" text, "centrino" text, "processor" text, "codename" text, "release_date" real, "process_technology" text, "microarchitecture" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the process technology of the Intel WiFi Link 5100 wireless LAN?`: ```sql
SELECT "processor" FROM "intel_centrino" WHERE "wireless_lan"='Intel Centrino Wireless-N 105';
## Task Generate a SQL query to answer the following question: `What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "intel_centrino" ( "wireless_lan" text, "chipset" text, "centrino" text, "processor" text, "codename" text, "release_date" real, "process_technology" text, "microarchitecture" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have?`: ```sql
SELECT "codename" FROM "intel_centrino" WHERE "centrino"='Chief River';
## Task Generate a SQL query to answer the following question: `What's the code name of the wireless LAN with Chief River Centrino?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "intel_centrino" ( "wireless_lan" text, "chipset" text, "centrino" text, "processor" text, "codename" text, "release_date" real, "process_technology" text, "microarchitecture" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the code name of the wireless LAN with Chief River Centrino?`: ```sql
SELECT COUNT("number") FROM "aircraft" WHERE "last_flew"='19 April 1985';
## Task Generate a SQL query to answer the following question: `on 19 april 1985 how many of number last flew` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aircraft" ( "number" real, "registration" text, "first_flew" text, "last_flew" text, "flying_hours" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `on 19 april 1985 how many of number last flew`: ```sql
SELECT "registration" FROM "aircraft" WHERE "first_flew"='31 January 1975';
## Task Generate a SQL query to answer the following question: `what is the registration located on 31 january 1975 where first flew?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aircraft" ( "number" real, "registration" text, "first_flew" text, "last_flew" text, "flying_hours" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the registration located on 31 january 1975 where first flew?`: ```sql
SELECT "location" FROM "aircraft" WHERE "last_flew"='11 June 2000';
## Task Generate a SQL query to answer the following question: `at what location is the last flew on 11 june 2000` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aircraft" ( "number" real, "registration" text, "first_flew" text, "last_flew" text, "flying_hours" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `at what location is the last flew on 11 june 2000`: ```sql
SELECT COUNT("number") FROM "aircraft" WHERE "registration"='F-BVFF';
## Task Generate a SQL query to answer the following question: `how many number is located at registration f-bvff?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aircraft" ( "number" real, "registration" text, "first_flew" text, "last_flew" text, "flying_hours" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `how many number is located at registration f-bvff?`: ```sql
SELECT "television_commentator" FROM "commentators_and_spokespersons" WHERE "radio_commentator"='Galyna Babiy';
## Task Generate a SQL query to answer the following question: `Who is the television commentator when the radio commentator is Galyna Babiy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "commentators_and_spokespersons" ( "year_s" real, "television_commentator" text, "dual_television_commentator" text, "radio_commentator" text, "spokesperson" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the television commentator when the radio commentator is Galyna Babiy?`: ```sql
SELECT "television_commentator" FROM "commentators_and_spokespersons" WHERE "spokesperson"='Kateryna Osadcha';
## Task Generate a SQL query to answer the following question: `Who is the television commentator when the spokesperson is Kateryna Osadcha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "commentators_and_spokespersons" ( "year_s" real, "television_commentator" text, "dual_television_commentator" text, "radio_commentator" text, "spokesperson" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the television commentator when the spokesperson is Kateryna Osadcha?`: ```sql
SELECT MIN("year_s") FROM "commentators_and_spokespersons" WHERE "spokesperson"='Ruslana';
## Task Generate a SQL query to answer the following question: `What is the year when the spoksperson is Ruslana?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "commentators_and_spokespersons" ( "year_s" real, "television_commentator" text, "dual_television_commentator" text, "radio_commentator" text, "spokesperson" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year when the spoksperson is Ruslana?`: ```sql
SELECT "television_commentator" FROM "commentators_and_spokespersons" WHERE "year_s"=2006;
## Task Generate a SQL query to answer the following question: `Who is the television commentator for the year 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "commentators_and_spokespersons" ( "year_s" real, "television_commentator" text, "dual_television_commentator" text, "radio_commentator" text, "spokesperson" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the television commentator for the year 2006?`: ```sql
SELECT "no_in_season" FROM "table1_19995378_1" WHERE "u_s_viewers_millions"='10.11';
## Task Generate a SQL query to answer the following question: `What is the season number of the episode seen by 10.11 million people in the US?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19995378_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season number of the episode seen by 10.11 million people in the US?`: ```sql
SELECT COUNT("no_in_series") FROM "table1_19995378_1" WHERE "title"='\"Skate or Die\"';
## Task Generate a SQL query to answer the following question: `How many different series number does the episode titled "Skate or Die" have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19995378_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different series number does the episode titled "Skate or Die" have?`: ```sql
SELECT "no_in_series" FROM "table1_19995378_1" WHERE "title"='\"Rapture\"';
## Task Generate a SQL query to answer the following question: `What's the series number of the episode titled "Rapture"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19995378_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the series number of the episode titled "Rapture"?`: ```sql
SELECT COUNT("no_in_season") FROM "table1_19995378_1" WHERE "u_s_viewers_millions"='8.69';
## Task Generate a SQL query to answer the following question: `How many episodes with different series numbers were seen by 8.69 people in the US?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19995378_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes with different series numbers were seen by 8.69 people in the US?`: ```sql
SELECT "san_antonio_de_lomer_o_municipality_pct" FROM "population" WHERE "language"='Only native';
## Task Generate a SQL query to answer the following question: `If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "language" text, "concepci_n_municipality_pct" real, "san_javier_municipality_pct" real, "san_ram_n_municipality_pct" real, "san_juli_n_municipality_pct" real, "san_antonio_de_lomer_o_municipality_pct" text, "cuatro_ca_adas_municipality_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?`: ```sql
SELECT MAX("san_javier_municipality_pct") FROM "population" WHERE "language"='Aymara simi';
## Task Generate a SQL query to answer the following question: `For language Aymara Simi, what was the maximum San Javier municipality percentage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "language" text, "concepci_n_municipality_pct" real, "san_javier_municipality_pct" real, "san_ram_n_municipality_pct" real, "san_juli_n_municipality_pct" real, "san_antonio_de_lomer_o_municipality_pct" text, "cuatro_ca_adas_municipality_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `For language Aymara Simi, what was the maximum San Javier municipality percentage?`: ```sql
SELECT COUNT("san_juli_n_municipality_pct") FROM "population" WHERE "san_antonio_de_lomer_o_municipality_pct"='5.480';
## Task Generate a SQL query to answer the following question: `If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "language" text, "concepci_n_municipality_pct" real, "san_javier_municipality_pct" real, "san_ram_n_municipality_pct" real, "san_juli_n_municipality_pct" real, "san_antonio_de_lomer_o_municipality_pct" text, "cuatro_ca_adas_municipality_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality?`: ```sql
SELECT "san_antonio_de_lomer_o_municipality_pct" FROM "population" WHERE "san_javier_municipality_pct"=31;
## Task Generate a SQL query to answer the following question: `What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "language" text, "concepci_n_municipality_pct" real, "san_javier_municipality_pct" real, "san_ram_n_municipality_pct" real, "san_juli_n_municipality_pct" real, "san_antonio_de_lomer_o_municipality_pct" text, "cuatro_ca_adas_municipality_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?`: ```sql
SELECT "san_antonio_de_lomer_o_municipality_pct" FROM "population" WHERE "cuatro_ca_adas_municipality_pct"='252';
## Task Generate a SQL query to answer the following question: `If the Cuatro Cañadas municipality percentage is 252, what are all the San Antonio de Lomerío municipality percentage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "language" text, "concepci_n_municipality_pct" real, "san_javier_municipality_pct" real, "san_ram_n_municipality_pct" real, "san_juli_n_municipality_pct" real, "san_antonio_de_lomer_o_municipality_pct" text, "cuatro_ca_adas_municipality_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `If the Cuatro Cañadas municipality percentage is 252, what are all the San Antonio de Lomerío municipality percentage?`: ```sql
SELECT "san_javier_municipality_pct" FROM "population" WHERE "cuatro_ca_adas_municipality_pct"='202';
## Task Generate a SQL query to answer the following question: `What is the San Javier municipality percentage if the Cuatro Cañadas municipality percentage is 202?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "language" text, "concepci_n_municipality_pct" real, "san_javier_municipality_pct" real, "san_ram_n_municipality_pct" real, "san_juli_n_municipality_pct" real, "san_antonio_de_lomer_o_municipality_pct" text, "cuatro_ca_adas_municipality_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the San Javier municipality percentage if the Cuatro Cañadas municipality percentage is 202?`: ```sql
SELECT COUNT("num") FROM "films_in_series" WHERE "director"='Robert Young';
## Task Generate a SQL query to answer the following question: `How many total number have robert young as the director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "films_in_series" ( "num" real, "title" text, "maneater" text, "television_premiere" text, "dvd_release" text, "writer" text, "director" text, "producer" text ); ### SQL Given the database schema, here is the SQL query that answers `How many total number have robert young as the director?`: ```sql
SELECT MIN("num") FROM "films_in_series" WHERE "producer"='Charles Salmon' AND "television_premiere"='January 27, 2007';
## Task Generate a SQL query to answer the following question: `How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "films_in_series" ( "num" real, "title" text, "maneater" text, "television_premiere" text, "dvd_release" text, "writer" text, "director" text, "producer" text ); ### SQL Given the database schema, here is the SQL query that answers `How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?`: ```sql
SELECT COUNT("dvd_release") FROM "films_in_series" WHERE "director"='David DeCoteau';
## Task Generate a SQL query to answer the following question: `How many dvd releases where directed by david decoteau?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "films_in_series" ( "num" real, "title" text, "maneater" text, "television_premiere" text, "dvd_release" text, "writer" text, "director" text, "producer" text ); ### SQL Given the database schema, here is the SQL query that answers `How many dvd releases where directed by david decoteau?`: ```sql
SELECT "dvd_release" FROM "films_in_series" WHERE "director"='Billy O''Brien';
## Task Generate a SQL query to answer the following question: `When was the dvd release directed by Billy O'Brien?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "films_in_series" ( "num" real, "title" text, "maneater" text, "television_premiere" text, "dvd_release" text, "writer" text, "director" text, "producer" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the dvd release directed by Billy O'Brien?`: ```sql
SELECT "record" FROM "schedule" WHERE "game"=20;
## Task Generate a SQL query to answer the following question: `What was the record after game 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record after game 20?`: ```sql
SELECT "high_assists" FROM "schedule" WHERE "team"='Iowa';
## Task Generate a SQL query to answer the following question: `For the game against Iowa, who had the most assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `For the game against Iowa, who had the most assists?`: ```sql
SELECT "high_assists" FROM "schedule" WHERE "date"='February 15';
## Task Generate a SQL query to answer the following question: `state high assists on february 15` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `state high assists on february 15`: ```sql
SELECT COUNT("high_points") FROM "schedule" WHERE "date"='February 19';
## Task Generate a SQL query to answer the following question: `how many high points where date is february 19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `how many high points where date is february 19`: ```sql
SELECT COUNT("location_attendance") FROM "schedule" WHERE "record"='15–10 (5–7)';
## Task Generate a SQL query to answer the following question: `state the number of location attendance where record is 15–10 (5–7)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `state the number of location attendance where record is 15–10 (5–7)`: ```sql
SELECT COUNT("date") FROM "schedule" WHERE "high_assists"='Stu Douglass (5) – 4';
## Task Generate a SQL query to answer the following question: `how many dates where high assists is stu douglass (5) – 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `how many dates where high assists is stu douglass (5) – 4`: ```sql
SELECT COUNT("record") FROM "schedule" WHERE "date"='February 22';
## Task Generate a SQL query to answer the following question: `how many records were made on february 22` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `how many records were made on february 22`: ```sql
SELECT MAX("applications") FROM "lb1_and_lb4" WHERE "year"='1986';
## Task Generate a SQL query to answer the following question: `Name the most applications for 1986` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lb1_and_lb4" ( "year" text, "horsepower" text, "torque" text, "fuel_system" text, "compression_ratio" text, "rpo" text, "applications" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most applications for 1986`: ```sql
SELECT "torque" FROM "lb1_and_lb4" WHERE "year"='1986';
## Task Generate a SQL query to answer the following question: `Name the torque for 1986` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lb1_and_lb4" ( "year" text, "horsepower" text, "torque" text, "fuel_system" text, "compression_ratio" text, "rpo" text, "applications" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the torque for 1986`: ```sql
SELECT "network" FROM "series_details" WHERE "destination"='Australia';
## Task Generate a SQL query to answer the following question: `What network showed the season with Australia as the destination?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_details" ( "season" real, "network" text, "host" text, "contestants" real, "winner" text, "destination" text ); ### SQL Given the database schema, here is the SQL query that answers `What network showed the season with Australia as the destination?`: ```sql
SELECT MAX("season") FROM "series_details" WHERE "contestants"=20;
## Task Generate a SQL query to answer the following question: `What was the latest season with 20 contestants?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_details" ( "season" real, "network" text, "host" text, "contestants" real, "winner" text, "destination" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the latest season with 20 contestants?`: ```sql
SELECT MIN("season") FROM "series_details" WHERE "winner"='Ashutosh Kaushik';
## Task Generate a SQL query to answer the following question: `What season was won by Ashutosh Kaushik?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_details" ( "season" real, "network" text, "host" text, "contestants" real, "winner" text, "destination" text ); ### SQL Given the database schema, here is the SQL query that answers `What season was won by Ashutosh Kaushik?`: ```sql
SELECT "destination" FROM "series_details" WHERE "winner"='Anwar Syed';
## Task Generate a SQL query to answer the following question: `What was the destination of the season won by Anwar Syed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_details" ( "season" real, "network" text, "host" text, "contestants" real, "winner" text, "destination" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the destination of the season won by Anwar Syed?`: ```sql
SELECT "season" FROM "series_details" WHERE "winner"='Anthony Yeh';
## Task Generate a SQL query to answer the following question: `What season was won by Anthony Yeh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_details" ( "season" real, "network" text, "host" text, "contestants" real, "winner" text, "destination" text ); ### SQL Given the database schema, here is the SQL query that answers `What season was won by Anthony Yeh?`: ```sql
SELECT "winner" FROM "series_details" WHERE "destination"='Africa';
## Task Generate a SQL query to answer the following question: `Who won the season with Africa as its destination?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_details" ( "season" real, "network" text, "host" text, "contestants" real, "winner" text, "destination" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the season with Africa as its destination?`: ```sql
SELECT "african_spoonbill" FROM "table1_20042805_2" WHERE "hadeda_ibis"='Brown Snake Eagle';
## Task Generate a SQL query to answer the following question: `What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20042805_2" ( "ostrich" text, "hamerkop" text, "hadeda_ibis" text, "african_spoonbill" text, "whitefaced_duck" text, "knobbilled_duck" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle?`: ```sql
SELECT "hadeda_ibis" FROM "table1_20042805_2" WHERE "ostrich"='Dark Chanting Goshawk';
## Task Generate a SQL query to answer the following question: `What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20042805_2" ( "ostrich" text, "hamerkop" text, "hadeda_ibis" text, "african_spoonbill" text, "whitefaced_duck" text, "knobbilled_duck" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk?`: ```sql
SELECT "african_spoonbill" FROM "table1_20042805_2" WHERE "hadeda_ibis"='Flernecked Nightjar';
## Task Generate a SQL query to answer the following question: `What is the African Spoonbill when the Hadeda Ibis is Flernecked Nightjar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20042805_2" ( "ostrich" text, "hamerkop" text, "hadeda_ibis" text, "african_spoonbill" text, "whitefaced_duck" text, "knobbilled_duck" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the African Spoonbill when the Hadeda Ibis is Flernecked Nightjar?`: ```sql
SELECT "hadeda_ibis" FROM "table1_20042805_2" WHERE "knobbilled_duck"='Pied Crow';
## Task Generate a SQL query to answer the following question: `What is the Hadeda Ibis when the Knobbilled Duck is Pied Crow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20042805_2" ( "ostrich" text, "hamerkop" text, "hadeda_ibis" text, "african_spoonbill" text, "whitefaced_duck" text, "knobbilled_duck" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Hadeda Ibis when the Knobbilled Duck is Pied Crow?`: ```sql
SELECT "african_spoonbill" FROM "table1_20042805_2" WHERE "ostrich"='Brown-hooded Kingfisher';
## Task Generate a SQL query to answer the following question: `What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20042805_2" ( "ostrich" text, "hamerkop" text, "hadeda_ibis" text, "african_spoonbill" text, "whitefaced_duck" text, "knobbilled_duck" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher?`: ```sql
SELECT "hadeda_ibis" FROM "table1_20042805_2" WHERE "whitefaced_duck"='Blacksmith Plover';
## Task Generate a SQL query to answer the following question: `What is the Hadeda Ibis when the Whitefaced Duck is Blacksmith Plover?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20042805_2" ( "ostrich" text, "hamerkop" text, "hadeda_ibis" text, "african_spoonbill" text, "whitefaced_duck" text, "knobbilled_duck" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Hadeda Ibis when the Whitefaced Duck is Blacksmith Plover?`: ```sql
SELECT "winning_pilot" FROM "race_calendar_and_results" WHERE "country"='Hungary';
## Task Generate a SQL query to answer the following question: `Name the winning pilot for hungary` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "location" text, "country" text, "date" text, "fastest_qualifying" text, "winning_pilot" text, "winning_aircraft" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the winning pilot for hungary`: ```sql
SELECT MAX("round") FROM "race_calendar_and_results" WHERE "winning_pilot"='Michael Goulian';
## Task Generate a SQL query to answer the following question: `Name the most round for michael goulian` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "location" text, "country" text, "date" text, "fastest_qualifying" text, "winning_pilot" text, "winning_aircraft" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most round for michael goulian`: ```sql
SELECT "country" FROM "race_calendar_and_results" WHERE "winning_pilot"='Hannes Arch';
## Task Generate a SQL query to answer the following question: `Name the country for hannes arch` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "location" text, "country" text, "date" text, "fastest_qualifying" text, "winning_pilot" text, "winning_aircraft" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the country for hannes arch`: ```sql
SELECT "written_by" FROM "table1_20046379_3" WHERE "no_in_series"='45';
## Task Generate a SQL query to answer the following question: `Who wrote the episode with series number 45?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20046379_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with series number 45?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_20046379_3" WHERE "production_code"='214';
## Task Generate a SQL query to answer the following question: `How many millions of people in the US saw the episode with production code 214?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20046379_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode with production code 214?`: ```sql
SELECT "title" FROM "table1_20046379_3" WHERE "u_s_viewers_millions"='3.8';
## Task Generate a SQL query to answer the following question: `What's the title of the episode seen by 3.8 million people in the US?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20046379_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the title of the episode seen by 3.8 million people in the US?`: ```sql
SELECT "written_by" FROM "table1_20046379_3" WHERE "title"='\"Mission Gone Bad\" \"Trapped in Paris\"';
## Task Generate a SQL query to answer the following question: `Who wrote the episode titled "Mission gone bad" "Trapped in Paris"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20046379_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode titled "Mission gone bad" "Trapped in Paris"?`: ```sql
SELECT COUNT("original_air_date") FROM "table1_20046379_3" WHERE "no_in_series"='35';
## Task Generate a SQL query to answer the following question: `On how many different dates did the episode with series number 35 air for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20046379_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `On how many different dates did the episode with series number 35 air for the first time?`: ```sql
SELECT "date" FROM "table1_2006661_1" WHERE "value"='55c';
## Task Generate a SQL query to answer the following question: `Name the date for value 55c` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2006661_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "scott" text, "yvert" real, "mitchell" real, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for value 55c`: ```sql
SELECT "scott" FROM "table1_2006661_1" WHERE "species"='Chloropsis hardwickii';
## Task Generate a SQL query to answer the following question: `Name the scott for chloropsis hardwickii` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2006661_1" ( "year" real, "date" text, "type" text, "species" text, "author_species" text, "value" text, "scott" text, "yvert" real, "mitchell" real, "sta_gib" real, "order" text, "family" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the scott for chloropsis hardwickii`: ```sql
SELECT MAX("population_2000") FROM "demographics" WHERE "barangay"='Bulac';
## Task Generate a SQL query to answer the following question: `How many people lived in bulac in the year 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "no" real, "barangay" text, "area_in_km_2" text, "rank" real, "population_2000" real, "population_2007" real, "population_2010" real, "population_density_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people lived in bulac in the year 2000?`: ```sql
SELECT "population_2010" FROM "demographics" WHERE "population_density_2010"='3,965.02';
## Task Generate a SQL query to answer the following question: `In 2010, how many people lived in cities with a population density of 3,965.02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "no" real, "barangay" text, "area_in_km_2" text, "rank" real, "population_2000" real, "population_2007" real, "population_2010" real, "population_density_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `In 2010, how many people lived in cities with a population density of 3,965.02?`: ```sql
SELECT "barangay" FROM "demographics" WHERE "area_in_km_2"='3.6787';
## Task Generate a SQL query to answer the following question: `What's the name of the barangay whose area is 3.6787 km² ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "no" real, "barangay" text, "area_in_km_2" text, "rank" real, "population_2000" real, "population_2007" real, "population_2010" real, "population_density_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the barangay whose area is 3.6787 km² ?`: ```sql
SELECT MAX("population_2000") FROM "demographics" WHERE "area_in_km_2"='1.2530';
## Task Generate a SQL query to answer the following question: `How many people lived in the city which has 1.2530 km² in the year 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "no" real, "barangay" text, "area_in_km_2" text, "rank" real, "population_2000" real, "population_2007" real, "population_2010" real, "population_density_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people lived in the city which has 1.2530 km² in the year 2000?`: ```sql
SELECT COUNT("population_2000") FROM "demographics" WHERE "barangay"='San Gabriel';
## Task Generate a SQL query to answer the following question: `How many people lived in san gabriel in the year 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "no" real, "barangay" text, "area_in_km_2" text, "rank" real, "population_2000" real, "population_2007" real, "population_2010" real, "population_density_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people lived in san gabriel in the year 2000?`: ```sql
SELECT COUNT("title") FROM "see_also" WHERE "termination_of_mission"='August 5, 1984';
## Task Generate a SQL query to answer the following question: `How many different titles does the representative whose mission was terminated on August 5, 1984 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "representative" text, "state" text, "training" text, "title" text, "appointment" text, "presentation_of_credentials" text, "termination_of_mission" text, "reason" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different titles does the representative whose mission was terminated on August 5, 1984 have?`: ```sql
SELECT "state" FROM "see_also" WHERE "termination_of_mission"='November 29, 1973';
## Task Generate a SQL query to answer the following question: `What state does the representative whose mission was terminated on November 29, 1973 represent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "representative" text, "state" text, "training" text, "title" text, "appointment" text, "presentation_of_credentials" text, "termination_of_mission" text, "reason" text ); ### SQL Given the database schema, here is the SQL query that answers `What state does the representative whose mission was terminated on November 29, 1973 represent?`: ```sql
SELECT "training" FROM "see_also" WHERE "presentation_of_credentials"='February 24, 1950';
## Task Generate a SQL query to answer the following question: `Who trained the representative whose presentation of credentials happened on February 24, 1950?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "representative" text, "state" text, "training" text, "title" text, "appointment" text, "presentation_of_credentials" text, "termination_of_mission" text, "reason" text ); ### SQL Given the database schema, here is the SQL query that answers `Who trained the representative whose presentation of credentials happened on February 24, 1950?`: ```sql
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Här har du ditt liv';
## Task Generate a SQL query to answer the following question: `When was the film Här har du ditt liv used in nomination?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the film Här har du ditt liv used in nomination?`: ```sql
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='Zozo';
## Task Generate a SQL query to answer the following question: `What's the original title of the film Zozo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the original title of the film Zozo?`: ```sql
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='The New Land';
## Task Generate a SQL query to answer the following question: `What's the original title of The New Land?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the original title of The New Land?`: ```sql
SELECT COUNT("championship") FROM "women_s_doubles_15_3_titles_5_runner_ups" WHERE "outcome"='Winner' AND "opponents"='Judy Tegart Dalton Lesley Turner Bowrey';
## Task Generate a SQL query to answer the following question: `Name the championship for winner and judy tegart dalton lesley turner bowrey` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_15_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the championship for winner and judy tegart dalton lesley turner bowrey`: ```sql
SELECT "outcome" FROM "women_s_doubles_15_3_titles_5_runner_ups" WHERE "championship"='Wimbledon';
## Task Generate a SQL query to answer the following question: `Name the outcome for wimbledon` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_15_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the outcome for wimbledon`: ```sql
SELECT "opponents" FROM "women_s_doubles_15_3_titles_5_runner_ups" WHERE "score"='6–4, 3–6, 6–2';
## Task Generate a SQL query to answer the following question: `Name the opponets for 6–4, 3–6, 6–2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_15_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponets for 6–4, 3–6, 6–2`: ```sql