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