text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text,
"coat_of_cash_wearing_celebrity" text
);
Question: What episode did Pamela Anderson guest host.
<|assistant|>
SELECT COUNT("episode_number") FROM "series_7" WHERE "guest_host"='Pamela Anderson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text,
"coat_of_cash_wearing_celebrity" text
);
Question: What song was performed when Barbara Windsor was the guest host?
<|assistant|>
SELECT "musical_guest_song_performed" FROM "series_7" WHERE "guest_host"='Barbara Windsor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text,
"coat_of_cash_wearing_celebrity" text
);
Question: Who was the coat of cash celeb when Scott Mills and Sally Lindsay appeared?
<|assistant|>
SELECT "coat_of_cash_wearing_celebrity" FROM "series_7" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Scott Mills and Sally Lindsay';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_7" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text,
"coat_of_cash_wearing_celebrity" text
);
Question: Who was on the Who knows about the host panel on 8 June 2008?
<|assistant|>
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_7" WHERE "air_date"='8 June 2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text,
"coat_of_cash_wearing_celebrity" text
);
Question: Name the musical guest for panelists jermaine jackson and nora sands
<|assistant|>
SELECT "musical_guest_song_performed" FROM "series_4" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Jermaine Jackson and Nora Sands';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text,
"coat_of_cash_wearing_celebrity" text
);
Question: Name the total number of panelists for 19 january 2007
<|assistant|>
SELECT COUNT("who_knows_the_most_about_the_guest_host_panelists") FROM "series_4" WHERE "air_date"='19 January 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_4" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text,
"coat_of_cash_wearing_celebrity" text
);
Question: Name the panelists for david tennant
<|assistant|>
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_4" WHERE "guest_host"='David Tennant';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_08_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"time" text,
"jockey" text,
"winner_2nd" text
);
Question: What is the entry for weight in kilograms of jockey D. Nikolic?
<|assistant|>
SELECT "weight_kg" FROM "2007_08_season_as_a_three_year_old" WHERE "jockey"='D. Nikolic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_08_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"time" text,
"jockey" text,
"winner_2nd" text
);
Question: Which group had the time 1:11.65?
<|assistant|>
SELECT "group" FROM "2007_08_season_as_a_three_year_old" WHERE "time"='1:11.65';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007_08_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"time" text,
"jockey" text,
"winner_2nd" text
);
Question: Which horse won with a time of 1:35.98 and what was their position?
<|assistant|>
SELECT "winner_2nd" FROM "2007_08_season_as_a_three_year_old" WHERE "time"='1:35.98';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" text,
"sfc_in_g_k_n_s" text,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
Question: What engine type is used in a Space Shuttle Vacuum scenario?
<|assistant|>
SELECT "engine_type" FROM "specific_fuel_consumption_sfc_specific_i" WHERE "scenario"='Space shuttle vacuum';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" text,
"sfc_in_g_k_n_s" text,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
Question: What is the effective exhaust velocity in a Space Shuttle Vacuum?
<|assistant|>
SELECT COUNT("effective_exhaust_velocity_m_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "scenario"='Space shuttle vacuum';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" text,
"sfc_in_g_k_n_s" text,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
Question: What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?
<|assistant|>
SELECT MAX("specific_impulse_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "effective_exhaust_velocity_m_s"=4423;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specific_fuel_consumption_sfc_specific_i" (
"engine_type" text,
"scenario" text,
"sfc_in_lb_lbf_h" text,
"sfc_in_g_k_n_s" text,
"specific_impulse_s" real,
"effective_exhaust_velocity_m_s" real
);
Question: What is the SFC when the specific impulse is 453?
<|assistant|>
SELECT "sfc_in_g_k_n_s" FROM "specific_fuel_consumption_sfc_specific_i" WHERE "specific_impulse_s"=453;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_159359_2" (
"no" text,
"season" text,
"start_date_1st_night" text,
"end_date_last_night" text,
"location" text,
"no_of_proms" text
);
Question: When are start dates (1st night) for the season of 1966?
<|assistant|>
SELECT "start_date_1st_night" FROM "table1_159359_2" WHERE "season"='1966';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_159359_2" (
"no" text,
"season" text,
"start_date_1st_night" text,
"end_date_last_night" text,
"location" text,
"no_of_proms" text
);
Question: When are end dates (last night) for the season of 1918?
<|assistant|>
SELECT "end_date_last_night" FROM "table1_159359_2" WHERE "season"='1918';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_poll_summary" (
"party" text,
"marplan" text,
"gallup" text,
"national_opinion_polls_nop" text,
"opinion_research_centre_opc" text,
"harris" text
);
Question: What is the percentage of the Labour Party on the Harris Poll
<|assistant|>
SELECT "harris" FROM "opinion_poll_summary" WHERE "party"='Labour';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opinion_poll_summary" (
"party" text,
"marplan" text,
"gallup" text,
"national_opinion_polls_nop" text,
"opinion_research_centre_opc" text,
"harris" text
);
Question: On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage?
<|assistant|>
SELECT "opinion_research_centre_opc" FROM "opinion_poll_summary" WHERE "national_opinion_polls_nop"='1.3%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_schools_in_kyrene_sd" (
"information" text,
"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river" text,
"altade_a" text,
"aprende" text,
"centennial" text,
"kyrene_ms" text,
"del_pueblo" text
);
Question: Name the del pueblo for centennial 1988
<|assistant|>
SELECT "del_pueblo" FROM "middle_schools_in_kyrene_sd" WHERE "centennial"='1988';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_schools_in_kyrene_sd" (
"information" text,
"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river" text,
"altade_a" text,
"aprende" text,
"centennial" text,
"kyrene_ms" text,
"del_pueblo" text
);
Question: Name the centennial for 1992 akimel
<|assistant|>
SELECT "centennial" FROM "middle_schools_in_kyrene_sd" WHERE "akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river"='1992';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_schools_in_kyrene_sd" (
"information" text,
"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river" text,
"altade_a" text,
"aprende" text,
"centennial" text,
"kyrene_ms" text,
"del_pueblo" text
);
Question: Name the del pueblo for red/black
<|assistant|>
SELECT "del_pueblo" FROM "middle_schools_in_kyrene_sd" WHERE "centennial"='Red/black';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "middle_schools_in_kyrene_sd" (
"information" text,
"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river" text,
"altade_a" text,
"aprende" text,
"centennial" text,
"kyrene_ms" text,
"del_pueblo" text
);
Question: Name the centennial for location
<|assistant|>
SELECT "centennial" FROM "middle_schools_in_kyrene_sd" WHERE "information"='Location';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1597866_3" (
"country" text,
"name" text,
"host" text,
"channel" text,
"first_premiere" text,
"regular_judge" text,
"seasons" real
);
Question: Name the host when first premiere is august 3, 2007
<|assistant|>
SELECT "host" FROM "table1_1597866_3" WHERE "first_premiere"='August 3, 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1597866_3" (
"country" text,
"name" text,
"host" text,
"channel" text,
"first_premiere" text,
"regular_judge" text,
"seasons" real
);
Question: Name the regular judge when host is anja rubik
<|assistant|>
SELECT "regular_judge" FROM "table1_1597866_3" WHERE "host"='Anja Rubik';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1597866_3" (
"country" text,
"name" text,
"host" text,
"channel" text,
"first_premiere" text,
"regular_judge" text,
"seasons" real
);
Question: Name the number of regular judge when host is bernie chan
<|assistant|>
SELECT COUNT("regular_judge") FROM "table1_1597866_3" WHERE "host"='Bernie Chan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: Name the most number for 74 runs margins
<|assistant|>
SELECT MAX("s_no") FROM "one_day_international" WHERE "margin"='74 runs';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: Name the number of team for 35 runs margin and india winner
<|assistant|>
SELECT COUNT("team_b") FROM "one_day_international" WHERE "margin"='35 runs' AND "winner"='India';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: Namethe team for feb 27, 1996
<|assistant|>
SELECT "team_a" FROM "one_day_international" WHERE "match_date"='Feb 27, 1996';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: Name the numbers for date of feb 27, 1996
<|assistant|>
SELECT "s_no" FROM "one_day_international" WHERE "match_date"='Feb 27, 1996';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: Name the team for oct 30, 1989
<|assistant|>
SELECT "team_b" FROM "one_day_international" WHERE "match_date"='Oct 30, 1989';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: Name the winner for date of nov 5, 1987
<|assistant|>
SELECT "winner" FROM "one_day_international" WHERE "match_date"='Nov 5, 1987';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"oilers_points" real,
"opponents" real,
"oilers_first_downs" real,
"record" text,
"attendance" real
);
Question: On Sept. 17, how many first downs did the oilers have?
<|assistant|>
SELECT COUNT("oilers_first_downs") FROM "schedule" WHERE "date"='Sept. 17';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"oilers_points" real,
"opponents" real,
"oilers_first_downs" real,
"record" text,
"attendance" real
);
Question: How many games were against the los angeles rams?
<|assistant|>
SELECT MIN("game") FROM "schedule" WHERE "opponent"='Los Angeles Rams';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_growth" (
"member_state_sorted_by_gdp" text,
"gdp_in_s_billion_of_usd_2012" text,
"gdp_pct_of_eu_2012" text,
"annual_change_pct_of_gdp_2012" text,
"gdp_per_capita_in_ppp_us_2012" real,
"public_debt_pct_of_gdp_2013_q1" text,
"deficit_surplus_pct_of_gdp_2012" text,
"inflation_pct_annual_2012" text,
"unemp_pct_2013_m7" text
);
Question: What is the annual change of GDP with a 20.5% GDP of EU in 2012?
<|assistant|>
SELECT "annual_change_pct_of_gdp_2012" FROM "economic_growth" WHERE "gdp_pct_of_eu_2012"='20.5%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_growth" (
"member_state_sorted_by_gdp" text,
"gdp_in_s_billion_of_usd_2012" text,
"gdp_pct_of_eu_2012" text,
"annual_change_pct_of_gdp_2012" text,
"gdp_per_capita_in_ppp_us_2012" real,
"public_debt_pct_of_gdp_2013_q1" text,
"deficit_surplus_pct_of_gdp_2012" text,
"inflation_pct_annual_2012" text,
"unemp_pct_2013_m7" text
);
Question: What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012?
<|assistant|>
SELECT "public_debt_pct_of_gdp_2013_q1" FROM "economic_growth" WHERE "gdp_pct_of_eu_2012"='4.7%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "economic_growth" (
"member_state_sorted_by_gdp" text,
"gdp_in_s_billion_of_usd_2012" text,
"gdp_pct_of_eu_2012" text,
"annual_change_pct_of_gdp_2012" text,
"gdp_per_capita_in_ppp_us_2012" real,
"public_debt_pct_of_gdp_2013_q1" text,
"deficit_surplus_pct_of_gdp_2012" text,
"inflation_pct_annual_2012" text,
"unemp_pct_2013_m7" text
);
Question: What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?
<|assistant|>
SELECT "inflation_pct_annual_2012" FROM "economic_growth" WHERE "gdp_per_capita_in_ppp_us_2012"=24505;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" real,
"place" text,
"couple" text,
"perfect_40s" real,
"total" real,
"number_of_dances" real,
"season" real,
"average" text
);
Question: What are all the places where the number of perfect 40s is 0 and the average is 27.25?
<|assistant|>
SELECT "place" FROM "average_scores_of_all_couples" WHERE "perfect_40s"=0 AND "average"='27.25';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" real,
"place" text,
"couple" text,
"perfect_40s" real,
"total" real,
"number_of_dances" real,
"season" real,
"average" text
);
Question: What is the maximum total in which the average is 28.5?
<|assistant|>
SELECT MAX("total") FROM "average_scores_of_all_couples" WHERE "average"='28.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" real,
"place" text,
"couple" text,
"perfect_40s" real,
"total" real,
"number_of_dances" real,
"season" real,
"average" text
);
Question: What is the minimum number of perfect 40s?
<|assistant|>
SELECT MIN("perfect_40s") FROM "average_scores_of_all_couples";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"source" text
);
Question: When using a .375 Remington Ultra Magnum, what is the muzzle velocity?
<|assistant|>
SELECT "muzzle_velocity" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "cartridge"='.375 Remington Ultra Magnum';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"source" text
);
Question: What type of cartridge is used by a Weatherby?
<|assistant|>
SELECT "cartridge" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Weatherby';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"source" text
);
Question: What type of cartridge is used by a Winchester?
<|assistant|>
SELECT "cartridge" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Winchester';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"source" text
);
Question: What is the weight of the bullet used in a Weatherby?
<|assistant|>
SELECT "bullet_weight" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Weatherby';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"source" text
);
Question: What is the weight of the bullet used in a Remington?
<|assistant|>
SELECT "bullet_weight" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Remington';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"source" text
);
Question: When using a .375 Winchester, what is the muzzle energy?
<|assistant|>
SELECT "muzzle_energy" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "cartridge"='.375 Winchester';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_line_of_headphones" (
"headphone_model" text,
"headphone_class" text,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"us_msrp" text
);
Question: Which headphone models correspond to the US MSRP of $150?
<|assistant|>
SELECT "headphone_model" FROM "current_line_of_headphones" WHERE "us_msrp"='$150';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_line_of_headphones" (
"headphone_model" text,
"headphone_class" text,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"us_msrp" text
);
Question: Which terminations correspond to a US MSRP of $49?
<|assistant|>
SELECT "termination" FROM "current_line_of_headphones" WHERE "us_msrp"='$49';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_line_of_headphones" (
"headphone_model" text,
"headphone_class" text,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"us_msrp" text
);
Question: How many headphone classes have a US MSRP of $150?
<|assistant|>
SELECT COUNT("headphone_class") FROM "current_line_of_headphones" WHERE "us_msrp"='$150';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_line_of_headphones" (
"headphone_model" text,
"headphone_class" text,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"us_msrp" text
);
Question: How many values for earpads correspond to the headphone class Prestige and a US MSRP of $79?
<|assistant|>
SELECT COUNT("earpads") FROM "current_line_of_headphones" WHERE "headphone_class"='Prestige' AND "us_msrp"='$79';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_line_of_headphones" (
"headphone_model" text,
"headphone_class" text,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"us_msrp" text
);
Question: Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?
<|assistant|>
SELECT "headphone_model" FROM "current_line_of_headphones" WHERE "driver_matched_d_b"='0.1' AND "us_msrp"='$49';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_line_of_headphones" (
"headphone_model" text,
"headphone_class" text,
"driver_matched_d_b" text,
"construction" text,
"earpads" text,
"termination" text,
"us_msrp" text
);
Question: Which terminations correspond with headphone model SR80I?
<|assistant|>
SELECT "termination" FROM "current_line_of_headphones" WHERE "headphone_model"='SR80i';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1602620_1" (
"office" text,
"type" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
Question: What type are State Assemblyman
<|assistant|>
SELECT "type" FROM "table1_1602620_1" WHERE "office"='State Assemblyman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1602620_1" (
"office" text,
"type" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
Question: What type had a beginning term of December 8, 1980
<|assistant|>
SELECT "type" FROM "table1_1602620_1" WHERE "term_began"='December 8, 1980';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1602620_1" (
"office" text,
"type" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
Question: What type had an election day in 1980
<|assistant|>
SELECT "type" FROM "table1_1602620_1" WHERE "elected"=1980;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1602620_1" (
"office" text,
"type" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
Question: What year did the term end for those elected in 1990
<|assistant|>
SELECT "term_ended" FROM "table1_1602620_1" WHERE "elected"=1990;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1602620_1" (
"office" text,
"type" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
Question: What is the location for the office whose term ended December 2, 1976
<|assistant|>
SELECT "location" FROM "table1_1602620_1" WHERE "term_ended"='December 2, 1976';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1602620_1" (
"office" text,
"type" text,
"location" text,
"elected" real,
"term_began" text,
"term_ended" text
);
Question: What year did the term end for the office elected in 1984
<|assistant|>
SELECT "term_ended" FROM "table1_1602620_1" WHERE "elected"=1984;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the record on October 8, 1989?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "date"='October 8, 1989';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: Where was the game site on October 29, 1989?
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "date"='October 29, 1989';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the minimum attendance against the New Orleans Saints?
<|assistant|>
SELECT MIN("attendance") FROM "schedule" WHERE "opponent"='New Orleans Saints';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: What was the result of week 2?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
Question: What date did the team play the New York Jets?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "opponent"='New York Jets';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: What was the minimum crowd on January 24, 1987?
<|assistant|>
SELECT MIN("attendance") FROM "game_log" WHERE "date"='January 24, 1987';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1601935_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: How many millions of viewers were there for the episode with a run time of 18:00?
<|assistant|>
SELECT "viewers_in_millions" FROM "table1_1601935_1" WHERE "run_time"='18:00';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1601935_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: What was the archive for episode with 6.6 million viewers?
<|assistant|>
SELECT "archive" FROM "table1_1601935_1" WHERE "viewers_in_millions"='6.6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text
);
Question: When is the latest game the bills had 21 first downs
<|assistant|>
SELECT MIN("game") FROM "schedule" WHERE "bills_first_downs"=21;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text
);
Question: How many first downs did the bills have when their opponent had 6
<|assistant|>
SELECT MIN("bills_first_downs") FROM "schedule" WHERE "opponents"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text
);
Question: How many points did the bills score when their opponent had 14
<|assistant|>
SELECT "bills_points" FROM "schedule" WHERE "opponents"=14;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text
);
Question: What is the minimum number of points given up to the Baltimore Colts
<|assistant|>
SELECT MIN("opponents") FROM "schedule" WHERE "opponent"='Baltimore Colts';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_8" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who was the runner-up in the Memorial Tournament?
<|assistant|>
SELECT "runner_s_up" FROM "pga_tour_wins_8" WHERE "tournament"='Memorial Tournament';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_8" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score for the tournament with runner-up Rory Sabbatini?
<|assistant|>
SELECT "winning_score" FROM "pga_tour_wins_8" WHERE "runner_s_up"='Rory Sabbatini';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_wins_8" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory with the winning score "63-68-68-68=267"?
<|assistant|>
SELECT "margin_of_victory" FROM "pga_tour_wins_8" WHERE "winning_score"='63-68-68-68=267';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_north" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Name the least position
<|assistant|>
SELECT MIN("position") FROM "2_lyga_zone_north";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_north" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Name the most goals scored for position 4
<|assistant|>
SELECT MAX("goals_scored") FROM "2_lyga_zone_north" WHERE "position"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"conference_matchups" text,
"payout_us" text
);
Question: What is the name of the bowl game that was played in Tempe, Arizona?
<|assistant|>
SELECT "bowl_game" FROM "bowl_games" WHERE "city"='Tempe, Arizona';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"conference_matchups" text,
"payout_us" text
);
Question: What city in the Citrus Bowl aired on ABC?
<|assistant|>
SELECT "city" FROM "bowl_games" WHERE "stadium"='Citrus Bowl' AND "television"='ABC';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"conference_matchups" text,
"payout_us" text
);
Question: What teams played in the Capital One bowl game on January 1, 2009?
<|assistant|>
SELECT "conference_matchups" FROM "bowl_games" WHERE "date"='January 1, 2009' AND "bowl_game"='Capital One';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"conference_matchups" text,
"payout_us" text
);
Question: Which stadium has a payout of $3 million?
<|assistant|>
SELECT "stadium" FROM "bowl_games" WHERE "payout_us"='$3 Million';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_16048129_5" (
"region_of_ussr" text,
"number_of_families" real,
"number_of_people" real,
"average_family_size" text,
"pct_of_total_deportees" text
);
Question: What is the largest population in regions where the average family size is 2.8 people?
<|assistant|>
SELECT MAX("number_of_people") FROM "table1_16048129_5" WHERE "average_family_size"='2.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_16048129_5" (
"region_of_ussr" text,
"number_of_families" real,
"number_of_people" real,
"average_family_size" text,
"pct_of_total_deportees" text
);
Question: What is the total number of regions where the average family size is 2.8?
<|assistant|>
SELECT COUNT("pct_of_total_deportees") FROM "table1_16048129_5" WHERE "average_family_size"='2.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_16048129_5" (
"region_of_ussr" text,
"number_of_families" real,
"number_of_people" real,
"average_family_size" text,
"pct_of_total_deportees" text
);
Question: What regions of the USSR have a percentage of deportees of 10.6?
<|assistant|>
SELECT "region_of_ussr" FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='10.6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_16048129_5" (
"region_of_ussr" text,
"number_of_families" real,
"number_of_people" real,
"average_family_size" text,
"pct_of_total_deportees" text
);
Question: What is the most number of families in regions where average family size is 2.7?
<|assistant|>
SELECT MAX("number_of_families") FROM "table1_16048129_5" WHERE "average_family_size"='2.7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_16048129_5" (
"region_of_ussr" text,
"number_of_families" real,
"number_of_people" real,
"average_family_size" text,
"pct_of_total_deportees" text
);
Question: How many total families are there in regions with 5.8 percent of the population being made up of deportees?
<|assistant|>
SELECT COUNT("number_of_families") FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='5.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_16048129_5" (
"region_of_ussr" text,
"number_of_families" real,
"number_of_people" real,
"average_family_size" text,
"pct_of_total_deportees" text
);
Question: What is the most number of families among regions where the population is made up of 5.8% deportees?
<|assistant|>
SELECT MAX("number_of_families") FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='5.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1603807_2" (
"line" text,
"terminals" text,
"status" text,
"length" text,
"total_number_of_stations" real,
"operator" text
);
Question: Which operator runs the Mamariga shuttle line?
<|assistant|>
SELECT "operator" FROM "table1_1603807_2" WHERE "line"='Mamariga Shuttle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1603807_2" (
"line" text,
"terminals" text,
"status" text,
"length" text,
"total_number_of_stations" real,
"operator" text
);
Question: How many lengths of line 3 are given?
<|assistant|>
SELECT COUNT("length") FROM "table1_1603807_2" WHERE "line"='Line 3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1603807_2" (
"line" text,
"terminals" text,
"status" text,
"length" text,
"total_number_of_stations" real,
"operator" text
);
Question: What are the terminals for line 2?
<|assistant|>
SELECT "terminals" FROM "table1_1603807_2" WHERE "line"='Line 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1603807_2" (
"line" text,
"terminals" text,
"status" text,
"length" text,
"total_number_of_stations" real,
"operator" text
);
Question: What is the status of the airport line?
<|assistant|>
SELECT "status" FROM "table1_1603807_2" WHERE "line"='Airport Line';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_since_the_division_of_korea" (
"rr_romaja" text,
"m_r_romaja" text,
"hangul_chosongul" text,
"hanja" text,
"iso" text,
"area" text,
"capital" text,
"region" text,
"country" text
);
Question: Name the total number of hangul chosongul for 8,352
<|assistant|>
SELECT COUNT("hangul_chosongul") FROM "provinces_since_the_division_of_korea" WHERE "area"='8,352';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_since_the_division_of_korea" (
"rr_romaja" text,
"m_r_romaja" text,
"hangul_chosongul" text,
"hanja" text,
"iso" text,
"area" text,
"capital" text,
"region" text,
"country" text
);
Question: Name the iso for chungcheongnam
<|assistant|>
SELECT "iso" FROM "provinces_since_the_division_of_korea" WHERE "rr_romaja"='Chungcheongnam';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_since_the_division_of_korea" (
"rr_romaja" text,
"m_r_romaja" text,
"hangul_chosongul" text,
"hanja" text,
"iso" text,
"area" text,
"capital" text,
"region" text,
"country" text
);
Question: Name the country for 11,891 area
<|assistant|>
SELECT "country" FROM "provinces_since_the_division_of_korea" WHERE "area"='11,891';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_since_the_division_of_korea" (
"rr_romaja" text,
"m_r_romaja" text,
"hangul_chosongul" text,
"hanja" text,
"iso" text,
"area" text,
"capital" text,
"region" text,
"country" text
);
Question: Name the number of region for 경상남도
<|assistant|>
SELECT COUNT("region") FROM "provinces_since_the_division_of_korea" WHERE "hangul_chosongul"='경상남도';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_since_the_division_of_korea" (
"rr_romaja" text,
"m_r_romaja" text,
"hangul_chosongul" text,
"hanja" text,
"iso" text,
"area" text,
"capital" text,
"region" text,
"country" text
);
Question: Name the m r romaja for kwanbuk
<|assistant|>
SELECT "m_r_romaja" FROM "provinces_since_the_division_of_korea" WHERE "region"='Kwanbuk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "area_and_population" (
"member_state" text,
"population_in_millions" text,
"population_pct_of_eu" text,
"area_km_2" real,
"area_pct_of_eu" text,
"pop_density_people_km_2" text
);
Question: Name the population density where population % is 1.1% for slovakia
<|assistant|>
SELECT "pop_density_people_km_2" FROM "area_and_population" WHERE "population_pct_of_eu"='1.1%' AND "member_state"='Slovakia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "area_and_population" (
"member_state" text,
"population_in_millions" text,
"population_pct_of_eu" text,
"area_km_2" real,
"area_pct_of_eu" text,
"pop_density_people_km_2" text
);
Question: Name the population density people where population % eu for 1.7%
<|assistant|>
SELECT COUNT("pop_density_people_km_2") FROM "area_and_population" WHERE "population_pct_of_eu"='1.7%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "area_and_population" (
"member_state" text,
"population_in_millions" text,
"population_pct_of_eu" text,
"area_km_2" real,
"area_pct_of_eu" text,
"pop_density_people_km_2" text
);
Question: Name the number of area km 2 for population density is 87
<|assistant|>
SELECT COUNT("area_km_2") FROM "area_and_population" WHERE "pop_density_people_km_2"='87';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "area_and_population" (
"member_state" text,
"population_in_millions" text,
"population_pct_of_eu" text,
"area_km_2" real,
"area_pct_of_eu" text,
"pop_density_people_km_2" text
);
Question: Name the population % of eu for greece
<|assistant|>
SELECT "population_pct_of_eu" FROM "area_and_population" WHERE "member_state"='Greece';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_160728_4" (
"channel" real,
"band" text,
"video_frequency" text,
"audio_frequency" text,
"station" text,
"network" text,
"transmission" text,
"format" text,
"status" text
);
Question: How many networks are there that have a channel number 7?
<|assistant|>
SELECT COUNT("network") FROM "table1_160728_4" WHERE "channel"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_160728_4" (
"channel" real,
"band" text,
"video_frequency" text,
"audio_frequency" text,
"station" text,
"network" text,
"transmission" text,
"format" text,
"status" text
);
Question: What station on the network is tv3?
<|assistant|>
SELECT "network" FROM "table1_160728_4" WHERE "station"='TV3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: What year was the team named the Raiders established?
<|assistant|>
SELECT MAX("founded") FROM "division_ii" WHERE "team_nickname"='Raiders';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.