text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23793770_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What the production code for the episode with 16.10 U.S. viewers?
<|assistant|>
SELECT MAX("production_code") FROM "table1_23793770_1" WHERE "u_s_viewers_millions"='16.10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: what is the episode title on original air date of September 30, 2007?
<|assistant|>
SELECT "title" FROM "ratings" WHERE "original_airing"='September 30, 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: What is the rating if the rating/share (18-49) is 3.6?
<|assistant|>
SELECT "rating" FROM "ratings" WHERE "rating_share_18_49"='3.6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: What is the rating/share total number if the total viewers is 12.75 million?
<|assistant|>
SELECT COUNT("rating_share_18_49") FROM "ratings" WHERE "total_viewers_in_millions"='12.75';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: If the rating is 9.1, what was the total viewers?
<|assistant|>
SELECT "total_viewers_in_millions" FROM "ratings" WHERE "rating"='9.1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: What was the reating share when the total viewers was 11.49 million?
<|assistant|>
SELECT "rating_share_18_49" FROM "ratings" WHERE "total_viewers_in_millions"='11.49';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: What was the name of the show that had 10.47 million total viewers?
<|assistant|>
SELECT "title" FROM "ratings" WHERE "total_viewers_in_millions"='10.47';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: How many shows had 12.46 total viewers?
<|assistant|>
SELECT COUNT("title") FROM "ratings" WHERE "total_viewers_in_millions"='12.46';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"original_airing" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"total_viewers_in_millions" text
);
Question: What episode had 10.47 total viewers?
<|assistant|>
SELECT "title" FROM "ratings" WHERE "total_viewers_in_millions"='10.47';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23802822_1" (
"sector" text,
"establishments" real,
"sales_receipts_or_shipments_1_000" real,
"annual_payroll_1_000" real,
"paid_employees" real
);
Question: If the establishment is 49319, what is the sales, receipts or shipments maximum amount?
<|assistant|>
SELECT MAX("sales_receipts_or_shipments_1_000") FROM "table1_23802822_1" WHERE "establishments"=49319;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23802822_1" (
"sector" text,
"establishments" real,
"sales_receipts_or_shipments_1_000" real,
"annual_payroll_1_000" real,
"paid_employees" real
);
Question: If the annual payroll is 21173895, what is the establishments?
<|assistant|>
SELECT "establishments" FROM "table1_23802822_1" WHERE "annual_payroll_1_000"=21173895;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23802822_1" (
"sector" text,
"establishments" real,
"sales_receipts_or_shipments_1_000" real,
"annual_payroll_1_000" real,
"paid_employees" real
);
Question: What is the sector is the establishment is 110313?
<|assistant|>
SELECT "sector" FROM "table1_23802822_1" WHERE "establishments"=110313;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text,
"avg_attendance" real
);
Question: How many different Leagues had average attendance of 3589?
<|assistant|>
SELECT COUNT("league") FROM "year_by_year" WHERE "avg_attendance"=3589;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text,
"avg_attendance" real
);
Question: How many people saw the 3rd, Central regular season on average?
<|assistant|>
SELECT MIN("avg_attendance") FROM "year_by_year" WHERE "regular_season"='3rd, Central';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text,
"avg_attendance" real
);
Question: What League was played in 2007?
<|assistant|>
SELECT "league" FROM "year_by_year" WHERE "year"=2007;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text,
"avg_attendance" real
);
Question: When was the average attendance 789?
<|assistant|>
SELECT MIN("year") FROM "year_by_year" WHERE "avg_attendance"=789;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"gp_gs" text,
"min_avg" text,
"fg_fga" text,
"fg_pct" text,
"3_fg_fga" text,
"3_fg_pct" text,
"ft_fta" text,
"ft_pct" text,
"reb" real,
"ast" real,
"blk" real,
"stl" real,
"pts" real,
"avg_pts" text
);
Question: what is the score in fg-fga if in ft-fta is 16-21
<|assistant|>
SELECT "fg_fga" FROM "player_stats" WHERE "ft_fta"='16-21';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"gp_gs" text,
"min_avg" text,
"fg_fga" text,
"fg_pct" text,
"3_fg_fga" text,
"3_fg_pct" text,
"ft_fta" text,
"ft_pct" text,
"reb" real,
"ast" real,
"blk" real,
"stl" real,
"pts" real,
"avg_pts" text
);
Question: if the 3fg-fga is 1-20 what is the number in ft pct
<|assistant|>
SELECT COUNT("ft_pct") FROM "player_stats" WHERE "3_fg_fga"='1-20';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"gp_gs" text,
"min_avg" text,
"fg_fga" text,
"fg_pct" text,
"3_fg_fga" text,
"3_fg_pct" text,
"ft_fta" text,
"ft_pct" text,
"reb" real,
"ast" real,
"blk" real,
"stl" real,
"pts" real,
"avg_pts" text
);
Question: in the ft pct .667 what is the number of gp-gs
<|assistant|>
SELECT COUNT("gp_gs") FROM "player_stats" WHERE "ft_pct"='.667';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Name the team number 1 for san lorenzo
<|assistant|>
SELECT "team_num1" FROM "matches" WHERE "team_num2"='San Lorenzo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Name the team #2 for river plate
<|assistant|>
SELECT "team_num2" FROM "matches" WHERE "team_num1"='River Plate';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Name the points for zamora
<|assistant|>
SELECT "points" FROM "matches" WHERE "team_num1"='Zamora';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "matches" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Name the 2nd leg for boca juniors
<|assistant|>
SELECT "2nd_leg" FROM "matches" WHERE "team_num1"='Boca Juniors';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_works_sampling_spectrasonics" (
"music_library" text,
"year" real,
"media_type" text,
"name_of_the_media" text,
"composition_name" text,
"composer" text,
"genre" text
);
Question: What is every media type for the Psychedelic Trance genre?
<|assistant|>
SELECT "media_type" FROM "list_of_works_sampling_spectrasonics" WHERE "genre"='Psychedelic Trance';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_works_sampling_spectrasonics" (
"music_library" text,
"year" real,
"media_type" text,
"name_of_the_media" text,
"composition_name" text,
"composer" text,
"genre" text
);
Question: Who is every composer for the media named Hall of Dreams?
<|assistant|>
SELECT "composer" FROM "list_of_works_sampling_spectrasonics" WHERE "name_of_the_media"='Hall Of Dreams';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_works_sampling_spectrasonics" (
"music_library" text,
"year" real,
"media_type" text,
"name_of_the_media" text,
"composition_name" text,
"composer" text,
"genre" text
);
Question: What is every media type for the Dub genre?
<|assistant|>
SELECT "media_type" FROM "list_of_works_sampling_spectrasonics" WHERE "genre"='Dub';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_works_sampling_spectrasonics" (
"music_library" text,
"year" real,
"media_type" text,
"name_of_the_media" text,
"composition_name" text,
"composer" text,
"genre" text
);
Question: What is every media type for the World genre?
<|assistant|>
SELECT "media_type" FROM "list_of_works_sampling_spectrasonics" WHERE "genre"='World';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_works_sampling_spectrasonics" (
"music_library" text,
"year" real,
"media_type" text,
"name_of_the_media" text,
"composition_name" text,
"composer" text,
"genre" text
);
Question: What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre?
<|assistant|>
SELECT "composition_name" FROM "list_of_works_sampling_spectrasonics" WHERE "music_library"='Heart of Asia' AND "media_type"='Album' AND "genre"='Trance';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_238199_1" (
"equation" text,
"k_mathrm_h_pc_frac_p_c_mathrm_aq" text,
"k_mathrm_h_cp_frac_c_mathrm_aq_p" text,
"k_mathrm_h_px_frac_p_x" text,
"k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" text
);
Question: What was the '{\mathrm{h,cc}} = \frac{c_{\mathrm{aq}}}{c_{\mathrm{gas}}}' if '_{\mathrm{h,cp}} = \frac{c_\mathrm{aq}}{p}' is 7.8 × 10−4?
<|assistant|>
SELECT "k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" FROM "table1_238199_1" WHERE "k_mathrm_h_cp_frac_c_mathrm_aq_p"='7.8 × 10−4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_238199_1" (
"equation" text,
"k_mathrm_h_pc_frac_p_c_mathrm_aq" text,
"k_mathrm_h_cp_frac_c_mathrm_aq_p" text,
"k_mathrm_h_px_frac_p_x" text,
"k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" text
);
Question: What was the equation if k_{\mathrm{h,px}} = \frac{p}{x} is 12.30 × 10?
<|assistant|>
SELECT "equation" FROM "table1_238199_1" WHERE "k_mathrm_h_px_frac_p_x"='12.30 × 10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_238199_1" (
"equation" text,
"k_mathrm_h_pc_frac_p_c_mathrm_aq" text,
"k_mathrm_h_cp_frac_c_mathrm_aq_p" text,
"k_mathrm_h_px_frac_p_x" text,
"k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" text
);
Question: What wast the 'k_{\mathrm{h,cc}} = \frac{c_{\mathrm{aq}}}{c_{\mathrm{gas}}}' of CO 2?
<|assistant|>
SELECT "k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" FROM "table1_238199_1" WHERE "equation"='CO 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_238199_1" (
"equation" text,
"k_mathrm_h_pc_frac_p_c_mathrm_aq" text,
"k_mathrm_h_cp_frac_c_mathrm_aq_p" text,
"k_mathrm_h_px_frac_p_x" text,
"k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" text
);
Question: How many "k_{\mathrm{h,cc}} = \frac{c_{\mathrm{aq}}}{c_{\mathrm{gas}}}i if its 'k_{\mathrm{h,px}} = \frac{p}{x}' is 14.97 × 10?
<|assistant|>
SELECT COUNT("k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas") FROM "table1_238199_1" WHERE "k_mathrm_h_px_frac_p_x"='14.97 × 10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_238199_1" (
"equation" text,
"k_mathrm_h_pc_frac_p_c_mathrm_aq" text,
"k_mathrm_h_cp_frac_c_mathrm_aq_p" text,
"k_mathrm_h_px_frac_p_x" text,
"k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" text
);
Question: What was the equation if k_{\mathrm{h,pc}} = \frac{p}{c_\mathrm{aq}} is 2222.22?
<|assistant|>
SELECT "equation" FROM "table1_238199_1" WHERE "k_mathrm_h_pc_frac_p_c_mathrm_aq"='2222.22';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_238199_1" (
"equation" text,
"k_mathrm_h_pc_frac_p_c_mathrm_aq" text,
"k_mathrm_h_cp_frac_c_mathrm_aq_p" text,
"k_mathrm_h_px_frac_p_x" text,
"k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" text
);
Question: What is the 'k_{\mathrm{h,cc}} = \frac{c_{\mathrm{aq}}}{c_{\mathrm{gas}}}' of O 2?
<|assistant|>
SELECT "k_mathrm_h_cc_frac_c_mathrm_aq_c_mathrm_gas" FROM "table1_238199_1" WHERE "equation"='O 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election" (
"2009_general_election" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"staten_island" text,
"total" real,
"pct" text
);
Question: what percentage is brooklyn when manhattan is 15.5%?
<|assistant|>
SELECT "brooklyn" FROM "general_election" WHERE "manhattan"='15.5%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_teams" (
"team" text,
"location" text,
"home_ground" text,
"first_year_in_qld_cup" real,
"last_year_in_qld_cup" real,
"qld_cup_premierships" text
);
Question: What is every entry in the QLD Cup Premierships when home ground is Dairy Farmers Stadium?
<|assistant|>
SELECT "qld_cup_premierships" FROM "previous_teams" WHERE "home_ground"='Dairy Farmers Stadium';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_teams" (
"team" text,
"location" text,
"home_ground" text,
"first_year_in_qld_cup" real,
"last_year_in_qld_cup" real,
"qld_cup_premierships" text
);
Question: What is every value for first year in QLD Cup if home ground is Corbett Park, Crosby Park, Lang Park, ANZ Stadium?
<|assistant|>
SELECT "first_year_in_qld_cup" FROM "previous_teams" WHERE "home_ground"='Corbett Park, Crosby Park, Lang Park, ANZ Stadium';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_teams" (
"team" text,
"location" text,
"home_ground" text,
"first_year_in_qld_cup" real,
"last_year_in_qld_cup" real,
"qld_cup_premierships" text
);
Question: What is the home ground if team is Sunshine Coast Falcons?
<|assistant|>
SELECT "home_ground" FROM "previous_teams" WHERE "team"='Sunshine Coast Falcons';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_teams" (
"team" text,
"location" text,
"home_ground" text,
"first_year_in_qld_cup" real,
"last_year_in_qld_cup" real,
"qld_cup_premierships" text
);
Question: What is the QLD Cup Premierships if team is Gold Coast Vikings?
<|assistant|>
SELECT "qld_cup_premierships" FROM "previous_teams" WHERE "team"='Gold Coast Vikings';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_teams" (
"team" text,
"location" text,
"home_ground" text,
"first_year_in_qld_cup" real,
"last_year_in_qld_cup" real,
"qld_cup_premierships" text
);
Question: What is every team in the location of Port Moresby?
<|assistant|>
SELECT "team" FROM "previous_teams" WHERE "location"='Port Moresby';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "previous_teams" (
"team" text,
"location" text,
"home_ground" text,
"first_year_in_qld_cup" real,
"last_year_in_qld_cup" real,
"qld_cup_premierships" text
);
Question: How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001?
<|assistant|>
SELECT COUNT("last_year_in_qld_cup") FROM "previous_teams" WHERE "qld_cup_premierships"='1996, 2001';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "transfers" (
"1_january_2010" text,
"df" text,
"adam_hinshelwood" text,
"aldershot_town" text,
"wycombe_wanderers" text,
"undisclosed" text
);
Question: What are the Wycombe Wanderers when 1 January 2010 is 23 July 2009 and df is gk?
<|assistant|>
SELECT "wycombe_wanderers" FROM "transfers" WHERE "1_january_2010"='23 July 2009' AND "df"='GK';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "transfers" (
"1_january_2010" text,
"df" text,
"adam_hinshelwood" text,
"aldershot_town" text,
"wycombe_wanderers" text,
"undisclosed" text
);
Question: What are the undisclosed when Adam Hinshelwood is Ricky Newman?
<|assistant|>
SELECT "undisclosed" FROM "transfers" WHERE "adam_hinshelwood"='Ricky Newman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "transfers" (
"1_january_2010" text,
"df" text,
"adam_hinshelwood" text,
"aldershot_town" text,
"wycombe_wanderers" text,
"undisclosed" text
);
Question: What is the df when Adam Hinshelwood is Junior Mendes?
<|assistant|>
SELECT "df" FROM "transfers" WHERE "adam_hinshelwood"='Junior Mendes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "transfers" (
"1_january_2010" text,
"df" text,
"adam_hinshelwood" text,
"aldershot_town" text,
"wycombe_wanderers" text,
"undisclosed" text
);
Question: What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United?
<|assistant|>
SELECT "undisclosed" FROM "transfers" WHERE "aldershot_town"='Aldershot Town' AND "wycombe_wanderers"='Oxford United';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "transfers" (
"1_january_2010" text,
"df" text,
"adam_hinshelwood" text,
"aldershot_town" text,
"wycombe_wanderers" text,
"undisclosed" text
);
Question: What is the undisclosed when Wycombe Wanderers is unattached?
<|assistant|>
SELECT "undisclosed" FROM "transfers" WHERE "wycombe_wanderers"='Unattached';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_teams" (
"team" text,
"city_area" text,
"arena" text,
"founded" real,
"joined" real,
"head_coach" text,
"captain" text
);
Question: Who is the head coach for the team that plays at Altrincham Ice Dome?
<|assistant|>
SELECT "head_coach" FROM "current_teams" WHERE "arena"='Altrincham Ice Dome';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_teams" (
"team" text,
"city_area" text,
"arena" text,
"founded" real,
"joined" real,
"head_coach" text,
"captain" text
);
Question: What arena does the team play at that has Michael Wales as the captain?
<|assistant|>
SELECT "arena" FROM "current_teams" WHERE "captain"='Michael Wales';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_idol_performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" real,
"result" text
);
Question: List all themes from the top 9.
<|assistant|>
SELECT "theme" FROM "american_idol_performances" WHERE "week_num"='Top 9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_idol_performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" real,
"result" text
);
Question: In what week was the original singer Whitney Houston.
<|assistant|>
SELECT "week_num" FROM "american_idol_performances" WHERE "original_artist"='Whitney Houston';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_idol_performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" real,
"result" text
);
Question: Name the song for safe result #8.
<|assistant|>
SELECT "song_choice" FROM "american_idol_performances" WHERE "result"='Safe' AND "order_num"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_idol_performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" real,
"result" text
);
Question: List the song chose for the British Invasion.
<|assistant|>
SELECT "song_choice" FROM "american_idol_performances" WHERE "theme"='British Invasion';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "circumvesuviana" (
"lines" text,
"opening" real,
"traction" text,
"length" text,
"stations" real,
"route" text,
"stops" real,
"travel_time" text
);
Question: Name the stops for stations 36
<|assistant|>
SELECT "stops" FROM "circumvesuviana" WHERE "stations"=36;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "circumvesuviana" (
"lines" text,
"opening" real,
"traction" text,
"length" text,
"stations" real,
"route" text,
"stops" real,
"travel_time" text
);
Question: Name the number of lines for porta nolana - ottaviano- sarno
<|assistant|>
SELECT COUNT("lines") FROM "circumvesuviana" WHERE "route"='Porta Nolana - Ottaviano- Sarno';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "circumvesuviana" (
"lines" text,
"opening" real,
"traction" text,
"length" text,
"stations" real,
"route" text,
"stops" real,
"travel_time" text
);
Question: Name the travel time for porta nolana - nola - baiano
<|assistant|>
SELECT "travel_time" FROM "circumvesuviana" WHERE "route"='Porta Nolana - Nola - Baiano';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "circumvesuviana" (
"lines" text,
"opening" real,
"traction" text,
"length" text,
"stations" real,
"route" text,
"stops" real,
"travel_time" text
);
Question: Name the number of stations for 15 minutes travel time
<|assistant|>
SELECT COUNT("stations") FROM "circumvesuviana" WHERE "travel_time"='15 minutes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"province_ashkharh" text,
"armenian_name" text,
"area_km" real,
"number_of_cantons_gavars" real,
"center" text
);
Question: How big (in km2) is Persarmenia?
<|assistant|>
SELECT "area_km" FROM "see_also" WHERE "province_ashkharh"='Persarmenia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"province_ashkharh" text,
"armenian_name" text,
"area_km" real,
"number_of_cantons_gavars" real,
"center" text
);
Question: What's the center of the Artsakh province?
<|assistant|>
SELECT "center" FROM "see_also" WHERE "province_ashkharh"='Artsakh';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"province_ashkharh" text,
"armenian_name" text,
"area_km" real,
"number_of_cantons_gavars" real,
"center" text
);
Question: How many different provinces is Baghaberd the center of?
<|assistant|>
SELECT COUNT("province_ashkharh") FROM "see_also" WHERE "center"='Baghaberd';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"province_ashkharh" text,
"armenian_name" text,
"area_km" real,
"number_of_cantons_gavars" real,
"center" text
);
Question: How big is the province with the Armenian name of փայտակարան?
<|assistant|>
SELECT MIN("area_km") FROM "see_also" WHERE "armenian_name"='Փայտակարան';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"province_ashkharh" text,
"armenian_name" text,
"area_km" real,
"number_of_cantons_gavars" real,
"center" text
);
Question: What's the center of the province that spreads out on 23860 km2?
<|assistant|>
SELECT "center" FROM "see_also" WHERE "area_km"=23860;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"province_ashkharh" text,
"armenian_name" text,
"area_km" real,
"number_of_cantons_gavars" real,
"center" text
);
Question: How many different numbers of cantons does the province with the Armenian name վասպուրական have?
<|assistant|>
SELECT COUNT("number_of_cantons_gavars") FROM "see_also" WHERE "armenian_name"='Վասպուրական';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23886181_1" (
"no" text,
"football_club" text,
"continent" text,
"associated_football_club" text,
"seasons" text,
"racing_drivers" text
);
Question: what are the seasons for no 3?
<|assistant|>
SELECT "seasons" FROM "table1_23886181_1" WHERE "no"='3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: what are the maximum wins where the poles are 2?
<|assistant|>
SELECT MAX("wins") FROM "nascar_sprint_cup_series" WHERE "poles"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples_of_different_pronunciation" (
"original" text,
"ipa_lisbon" text,
"ipa_rio_de_janeiro" text,
"ipa_s_o_paulo" text,
"ipa_santiago_de_compostela" text,
"translation" text
);
Question: What is the original of the ipa ( rio de janeiro )translation ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə?
<|assistant|>
SELECT "translation" FROM "examples_of_different_pronunciation" WHERE "ipa_rio_de_janeiro"='ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "examples_of_different_pronunciation" (
"original" text,
"ipa_lisbon" text,
"ipa_rio_de_janeiro" text,
"ipa_s_o_paulo" text,
"ipa_santiago_de_compostela" text,
"translation" text
);
Question: What is the original of the ipa ( são paulo ) translation dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə?
<|assistant|>
SELECT "translation" FROM "examples_of_different_pronunciation" WHERE "ipa_s_o_paulo"='dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "easy_rock_stations" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"location" text
);
Question: Which frequency is DYMY?
<|assistant|>
SELECT "frequency" FROM "easy_rock_stations" WHERE "callsign"='DYMY';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23915973_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
Question: What is the frequency when radio station branding is 106.3 energy fm naga?
<|assistant|>
SELECT "frequency" FROM "table1_23915973_1" WHERE "branding"='106.3 Energy FM Naga';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23915973_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
Question: What is the callsign when power kw is 25kw?
<|assistant|>
SELECT "callsign" FROM "table1_23915973_1" WHERE "power_k_w"='25kW';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23915973_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
Question: What is the frequency when callsign is dxru-fm?
<|assistant|>
SELECT "frequency" FROM "table1_23915973_1" WHERE "callsign"='DXRU-FM';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23915973_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
Question: What is the radio station branding when the power km is 5kw?
<|assistant|>
SELECT "branding" FROM "table1_23915973_1" WHERE "power_k_w"='5kW';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23915973_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
Question: What is the coverage when power kw is 25kw?
<|assistant|>
SELECT "coverage" FROM "table1_23915973_1" WHERE "power_k_w"='25kW';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23915973_1" (
"branding" text,
"callsign" text,
"frequency" text,
"power_k_w" text,
"coverage" text
);
Question: How many power kw have a frequency of 93.7 mhz?
<|assistant|>
SELECT COUNT("power_k_w") FROM "table1_23915973_1" WHERE "frequency"='93.7 MHz';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23918997_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Who were all the writers whose episodes had 0.97 million viewers?
<|assistant|>
SELECT "written_by" FROM "table1_23918997_1" WHERE "u_s_viewers_million"='0.97';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23918997_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: How many directors worked on the episode written by Brent Fletcher & Miranda Kwok?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_23918997_1" WHERE "written_by"='Brent Fletcher & Miranda Kwok';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23918997_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What was the title of the episode directed by Rowan Woods?
<|assistant|>
SELECT "title" FROM "table1_23918997_1" WHERE "directed_by"='Rowan Woods';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23918997_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: How many episodes were viewed by 1.29 million people?
<|assistant|>
SELECT COUNT("no") FROM "table1_23918997_1" WHERE "u_s_viewers_million"='1.29';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23916272_6" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who was the writer for the episode originally airing on March 1, 2004?
<|assistant|>
SELECT "written_by" FROM "table1_23916272_6" WHERE "original_air_date"='March 1, 2004';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23916272_6" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: List the title for the season episode number of 8.
<|assistant|>
SELECT "title" FROM "table1_23916272_6" WHERE "season_num"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23916272_6" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who directed the "Out with the Old, in with the new" episode?
<|assistant|>
SELECT "directed_by" FROM "table1_23916272_6" WHERE "title"='\"Out with the Old, in with the New\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23916272_6" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who was the director for the episode originally airing September 29, 2003?
<|assistant|>
SELECT "directed_by" FROM "table1_23916272_6" WHERE "original_air_date"='September 29, 2003';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23916272_6" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the highest series number of the episode "Til Death do us part-and make it soon"?
<|assistant|>
SELECT MAX("series_num") FROM "table1_23916272_6" WHERE "title"='\"Til Death Do Us Part-And Make It Soon\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23937219_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: Name the original air date for harry hannigan directed by adam weissman
<|assistant|>
SELECT "original_air_date" FROM "table1_23937219_2" WHERE "written_by"='Harry Hannigan' AND "directed_by"='Adam Weissman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23937219_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: How many people directed "through the looking glass"?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_23937219_3" WHERE "title"='\"Through The Looking Glass\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23937219_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: How many people directed episode 7 In the season?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_23937219_3" WHERE "season_num"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23937219_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: How many original air dates were there for the episode with production code 212?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_23937219_3" WHERE "prod_code"=212;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23937219_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: What is the production code for "road trip (aka "the kiss")"?
<|assistant|>
SELECT "prod_code" FROM "table1_23937219_3" WHERE "title"='\"Road Trip (aka \"The Kiss\")\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23937219_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
Question: What is the production code for episode 31 in the series?
<|assistant|>
SELECT MIN("prod_code") FROM "table1_23937219_3" WHERE "series_num"=31;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23927423_4" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: How many seasons did Barking Birmingham & Solihull Stourbridge were relegated from league?
<|assistant|>
SELECT COUNT("season") FROM "table1_23927423_4" WHERE "relegated_from_league"='Barking Birmingham & Solihull Stourbridge';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23927423_4" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: Who was relegated to league if Barking Birmingham & Solihull Stourbridge were relegated from league?
<|assistant|>
SELECT "relegated_to_league" FROM "table1_23927423_4" WHERE "relegated_from_league"='Barking Birmingham & Solihull Stourbridge';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23927423_4" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: How many were the minimum team that participated in the league?
<|assistant|>
SELECT MIN("teams") FROM "table1_23927423_4";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23927423_4" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: How many teams participated (maximum) when Cornish All Blacks Pertemps Bees were relegated to the league?
<|assistant|>
SELECT MAX("teams") FROM "table1_23927423_4" WHERE "relegated_to_league"='Cornish All Blacks Pertemps Bees';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23927423_4" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: Who was promoted to the league when Coventry was relegated to the league?
<|assistant|>
SELECT "promoted_to_league" FROM "table1_23927423_4" WHERE "relegated_to_league"='Coventry';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_23927423_4" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: How many were promoted from the league when Esher was relegated to the league?
<|assistant|>
SELECT COUNT("promoted_from_league") FROM "table1_23927423_4" WHERE "relegated_to_league"='Esher';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real,
"07_08_i_o_best" real,
"07_08_gp_jgp_best" real,
"07_08_gp_jgp_2nd" real,
"07_08_oi_best" real,
"07_08_oi_2nd" real
);
Question: What is the smallest 08-09 GP/JGP 2nd value when WS points equals 3197?
<|assistant|>
SELECT MIN("08_09_gp_jgp_2nd") FROM "ice_dancing" WHERE "ws_points"=3197;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real,
"07_08_i_o_best" real,
"07_08_gp_jgp_best" real,
"07_08_gp_jgp_2nd" real,
"07_08_oi_best" real,
"07_08_oi_2nd" real
);
Question: What is the number of 07-08 oi best values associated with 08-09 i/o bests of exactly 202?
<|assistant|>
SELECT COUNT("07_08_oi_best") FROM "ice_dancing" WHERE "08_09_i_o_best"=202;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real,
"07_08_i_o_best" real,
"07_08_gp_jgp_best" real,
"07_08_gp_jgp_2nd" real,
"07_08_oi_best" real,
"07_08_oi_2nd" real
);
Question: What is the smallest 07-08 oi best value?
<|assistant|>
SELECT MIN("07_08_oi_best") FROM "ice_dancing";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the number of partners for 5-7, 6-7 (5-7)
<|assistant|>
SELECT COUNT("partner") FROM "doubles_7_2_titles_5_runners_up" WHERE "score"='5-7, 6-7 (5-7)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the surface for cara black rennae stubbs
<|assistant|>
SELECT "surface" FROM "doubles_7_2_titles_5_runners_up" WHERE "opponents"='Cara Black Rennae Stubbs';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Name the score for san diego
<|assistant|>
SELECT "score" FROM "doubles_7_2_titles_5_runners_up" WHERE "championship"='San Diego';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.