text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10470082_4" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
Question: Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?
<|assistant|>
SELECT COUNT("director") FROM "table1_10470082_4" WHERE "num"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10470082_4" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
Question: Who is the director of the episode whom Scott Peters is the writer?
<|assistant|>
SELECT "director" FROM "table1_10470082_4" WHERE "writer"='Scott Peters';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10470082_4" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
Question: Who is the villain in episode #7?
<|assistant|>
SELECT "villains" FROM "table1_10470082_4" WHERE "num"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10470082_8" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
Question: Who wrote episode #1 in season 7?
<|assistant|>
SELECT COUNT("writer") FROM "table1_10470082_8" WHERE "num"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10470082_8" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
Question: When did the episode written by Jim Morris air?
<|assistant|>
SELECT "us_air_date" FROM "table1_10470082_8" WHERE "writer"='Jim Morris';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What was Datsun Twin 200's fastest lap?
<|assistant|>
SELECT "fastest_lap" FROM "race_results" WHERE "name"='Datsun Twin 200';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: In the Datsun Twin 200 race, what was the fastest lap?
<|assistant|>
SELECT "fastest_lap" FROM "race_results" WHERE "name"='Datsun Twin 200';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What's the report for the True Value 500?
<|assistant|>
SELECT "report" FROM "race_results" WHERE "name"='True Value 500';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What was Johnny Rutherford's fastest lap while Al Unser was the pole position?
<|assistant|>
SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='Johnny Rutherford' AND "pole_position"='Al Unser';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What's the report on Penske Racing winning while the pole position was Al Unser?
<|assistant|>
SELECT COUNT("report") FROM "race_results" WHERE "pole_position"='Al Unser' AND "winning_team"='Penske Racing';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
Question: Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?
<|assistant|>
SELECT "country" FROM "table_of_world_organization_of_the_scout" WHERE "year_current_scouting_organization_joined_wosm"='1930' AND "year_member_organization_was_founded"='1926';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
Question: Does Venezuela admit only boys, only girls, or both?
<|assistant|>
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "country"='Venezuela';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
Question: Which organizations were founded in 1972, but became WOSM members until 1977?
<|assistant|>
SELECT "name_of_member_organization" FROM "table_of_world_organization_of_the_scout" WHERE "year_member_organization_was_founded"='1972' AND "year_current_scouting_organization_joined_wosm"='1977';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
Question: Does the Scout Association of Hong Kong admit boys, girls, or both?
<|assistant|>
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "name_of_member_organization"='The Scout Association of Hong Kong';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
Question: Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?
<|assistant|>
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "year_member_organization_was_founded"='1912' AND "name_of_member_organization"='The Ghana Scout Association';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
"model" real,
"introduction" text,
"discontinued" text,
"cpu_speed" text,
"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" text,
"print_speed_ppm" text,
"standard_memory" text,
"maximum_memory" text
);
Question: What is the model number introduced May 1999?
<|assistant|>
SELECT MAX("model") FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "introduction"='May 1999';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
"model" real,
"introduction" text,
"discontinued" text,
"cpu_speed" text,
"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" text,
"print_speed_ppm" text,
"standard_memory" text,
"maximum_memory" text
);
Question: What is the print resolution (FPI) for December 2002?
<|assistant|>
SELECT "print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "introduction"='December 2002';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
"model" real,
"introduction" text,
"discontinued" text,
"cpu_speed" text,
"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" text,
"print_speed_ppm" text,
"standard_memory" text,
"maximum_memory" text
);
Question: What is the maximum memory for the model discontinued in November 2001?
<|assistant|>
SELECT "maximum_memory" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "discontinued"='November 2001';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1053802_1" (
"region_country" text,
"local_title" text,
"network" text,
"winners" text,
"main_presenters" text
);
Question: What is main presenters of La Granja?
<|assistant|>
SELECT "main_presenters" FROM "table1_1053802_1" WHERE "local_title"='La Granja';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1053802_1" (
"region_country" text,
"local_title" text,
"network" text,
"winners" text,
"main_presenters" text
);
Question: What is the main presenter of bulgaria?
<|assistant|>
SELECT "main_presenters" FROM "table1_1053802_1" WHERE "region_country"='Bulgaria';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1053802_1" (
"region_country" text,
"local_title" text,
"network" text,
"winners" text,
"main_presenters" text
);
Question: How many winners are there of farma?
<|assistant|>
SELECT COUNT("winners") FROM "table1_1053802_1" WHERE "local_title"='Farma';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: What is the most cup goals for seasson 1911-12?
<|assistant|>
SELECT MAX("cup_goals") FROM "swindon_town_career_details" WHERE "season"='1911-12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: What is the league apps for season 1923-24?
<|assistant|>
SELECT "league_apps" FROM "swindon_town_career_details" WHERE "season"='1923-24';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: What is the team for season 1911-12?
<|assistant|>
SELECT "team" FROM "swindon_town_career_details" WHERE "season"='1911-12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
Question: what's the minimum attendance with score 10.16 (76) – 9.22 (76)
<|assistant|>
SELECT MIN("attendance") FROM "trivia_and_statistics" WHERE "score"='10.16 (76) – 9.22 (76)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
Question: who's the premier with in 1970
<|assistant|>
SELECT "premier" FROM "trivia_and_statistics" WHERE "season"=1970;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
Question: who are all the runner-up for premier in richmond
<|assistant|>
SELECT "runner_up" FROM "trivia_and_statistics" WHERE "premier"='Richmond';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
Question: what is the minimum attendance with score 8.16 (64) – 8.12 (60)
<|assistant|>
SELECT MIN("attendance") FROM "trivia_and_statistics" WHERE "score"='8.16 (64) – 8.12 (60)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
Question: How many mileposts are there on Anne Street?
<|assistant|>
SELECT COUNT("milepost") FROM "table1_10568553_1" WHERE "street_names"='Anne Street';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
Question: Which street is 12.2 miles long?
<|assistant|>
SELECT "street_names" FROM "table1_10568553_1" WHERE "milepost"='12.2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
Question: Where does Route 24 intersect?
<|assistant|>
SELECT "location" FROM "table1_10568553_1" WHERE "roads_intersected"='Route 24';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
Question: Where is milepost 12.8?
<|assistant|>
SELECT "location" FROM "table1_10568553_1" WHERE "milepost"='12.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_agricultural_products" (
"commodity" text,
"2001_02" real,
"2002_03" real,
"2003_04" real,
"2004_05" real,
"2005_06" real,
"2006_07" real
);
Question: What is the minimum amount for wool for 2001-02?
<|assistant|>
SELECT MIN("2001_02") FROM "major_agricultural_products" WHERE "commodity"='Wool';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
Question: Who were the operational owners during the construction date of April 1892?
<|assistant|>
SELECT "operational_owner_s" FROM "table1_1057316_1" WHERE "build_date"='April 1892';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
Question: Where can you find Colorado and Southern Railway #9?
<|assistant|>
SELECT "disposition" FROM "table1_1057316_1" WHERE "operational_owner_s"='Colorado and Southern Railway #9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
Question: What is the wheel arrangement for the train in Riverdale, Georgia?
<|assistant|>
SELECT "wheel_arrangement_whyte_notation" FROM "table1_1057316_1" WHERE "disposition"='Riverdale, Georgia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
Question: When was the train 2053 built?
<|assistant|>
SELECT "build_date" FROM "table1_1057316_1" WHERE "serial_number"='2053';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
Question: How many wheels does the train owned by Texas and New Orleans Railroad #319 have?
<|assistant|>
SELECT COUNT("wheel_arrangement_whyte_notation") FROM "table1_1057316_1" WHERE "operational_owner_s"='Texas and New Orleans Railroad #319';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
Question: Which college has the men's nickname of the blazers?
<|assistant|>
SELECT "institution" FROM "former_members" WHERE "men_s_nickname"='Blazers';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
Question: Name the joined for the wolfpack women's nickname
<|assistant|>
SELECT "joined" FROM "former_members" WHERE "women_s_nickname"='Wolfpack';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
Question: Name the left of the Lady Pilots.
<|assistant|>
SELECT "left" FROM "former_members" WHERE "women_s_nickname"='Lady Pilots';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
Question: Name the women's nickname when the enrollment is 1500 in mobile, Alabama.
<|assistant|>
SELECT "women_s_nickname" FROM "former_members" WHERE "enrollment"=1500 AND "location"='Mobile, Alabama';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
Question: Which conference is in Jackson, Mississippi?
<|assistant|>
SELECT "current_conference" FROM "former_members" WHERE "location"='Jackson, Mississippi';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
Question: What is the men's nickname at the school that has the lady wildcats women's nickname?
<|assistant|>
SELECT "men_s_nickname" FROM "former_members" WHERE "women_s_nickname"='Lady Wildcats';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
Question: What is the Mens Nickname for the member location of Jacksonville, florida?
<|assistant|>
SELECT "mens_nickname" FROM "current_members" WHERE "location"='Jacksonville, Florida';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
Question: What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?
<|assistant|>
SELECT MAX("enrollment") FROM "current_members" WHERE "founded"=1866 AND "type"='Private/(African Methodist)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
Question: That is the year founded for the institution location of Nashville, Tennessee?
<|assistant|>
SELECT MIN("founded") FROM "current_members" WHERE "location"='Nashville, Tennessee';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
Question: What is the year the institution Tougaloo College joined?
<|assistant|>
SELECT "joined" FROM "current_members" WHERE "institution"='Tougaloo College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='28 November 2007' AND "replaced_by"='Alex McLeish';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: What is the date of appointment when the date of vacancy is 21 december 2007?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='21 December 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: Who replaced when team is wigan athletic?
<|assistant|>
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='Wigan Athletic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: What is the date of vacancy when the team is manchester city and replaced by is mark hughes?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Manchester City' AND "replaced_by"='Mark Hughes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: What is the date of appointment when replaced by is roy hodgson?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Roy Hodgson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: Who replaced when position in table is pre-season?
<|assistant|>
SELECT "replaced_by" FROM "managerial_changes" WHERE "position_in_table"='Pre-season';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1059743_1" (
"rank" real,
"member_association" text,
"points" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: How many games had a score value of 813.5 in post-season play?
<|assistant|>
SELECT COUNT("play_off") FROM "table1_1059743_1" WHERE "points"='813.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1059743_1" (
"rank" real,
"member_association" text,
"points" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
Question: Did any team score games that totaled up to 860.5?
<|assistant|>
SELECT "play_off" FROM "table1_1059743_1" WHERE "points"='860.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_season_schedule" (
"date" text,
"opponent" text,
"home_away" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the score of the game when the team reached a record of 6-9?
<|assistant|>
SELECT "score" FROM "2009_season_schedule" WHERE "record"='6-9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
Question: What type institution is point park university
<|assistant|>
SELECT "type" FROM "current_members" WHERE "institution"='Point Park University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
Question: How many institutions are located in wilmore, kentucky and private
<|assistant|>
SELECT MAX("founded") FROM "current_members" WHERE "type"='Private' AND "location"='Wilmore, Kentucky';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
Question: point park university is what type of institution
<|assistant|>
SELECT "type" FROM "current_members" WHERE "institution"='Point Park University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
Question: how many founded dates are listed for carlow university 1
<|assistant|>
SELECT COUNT("founded") FROM "current_members" WHERE "institution"='Carlow University 1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10610087_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who wrote the episode titled "black"?
<|assistant|>
SELECT "written_by" FROM "table1_10610087_6" WHERE "title"='\"Black\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10610087_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who are the writers for the episode "solo"?
<|assistant|>
SELECT "written_by" FROM "table1_10610087_6" WHERE "title"='\"Solo\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10610087_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: what is the original air date of the episode no in season 9?
<|assistant|>
SELECT "original_air_date" FROM "table1_10610087_3" WHERE "no_in_season"=9;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10610087_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the title of the episode written by denis leary, peter tolan and evan reilly?
<|assistant|>
SELECT "title" FROM "table1_10610087_3" WHERE "written_by"='Denis Leary, Peter Tolan and Evan Reilly';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10610087_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: How many episodes were titles "voicemail"?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_10610087_3" WHERE "title"='\"Voicemail\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
Question: When was Kamba active?
<|assistant|>
SELECT "dates_active" FROM "season_effects" WHERE "name"='Kamba';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
Question: What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?
<|assistant|>
SELECT "pressure" FROM "season_effects" WHERE "deaths"='95km/h (60mph)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
Question: What were the active dates for the storm that had 185km/h (115mph) deaths?
<|assistant|>
SELECT "dates_active" FROM "season_effects" WHERE "deaths"='185km/h (115mph)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
Question: What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?
<|assistant|>
SELECT "damage_usd" FROM "season_effects" WHERE "pressure"='1003hPa (29.62inHg)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"n_o" real,
"runs" real,
"high_score" real,
"average" text,
"100" real,
"50" real,
"catches" real,
"stump" real
);
Question: what's the average where high score is 120
<|assistant|>
SELECT "average" FROM "batting_averages" WHERE "high_score"=120;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"n_o" real,
"runs" real,
"high_score" real,
"average" text,
"100" real,
"50" real,
"catches" real,
"stump" real
);
Question: what's the player where 50 is 2 and n/o is 0
<|assistant|>
SELECT "player" FROM "batting_averages" WHERE "50"=2 AND "n_o"=0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"n_o" real,
"runs" real,
"high_score" real,
"average" text,
"100" real,
"50" real,
"catches" real,
"stump" real
);
Question: what's the player where inns is 21
<|assistant|>
SELECT "player" FROM "batting_averages" WHERE "inns"=21;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
);
Question: Which general election had a pq majority and a 44.75% of the popular vote?
<|assistant|>
SELECT "general_election" FROM "general_election_results" WHERE "result"='PQ majority' AND "pct_of_popular_vote"='44.75%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
);
Question: What is the least number of candidates running were there when 80 seats were won?
<|assistant|>
SELECT MIN("num_of_candidates") FROM "general_election_results" WHERE "num_of_seats_won"=80;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
);
Question: How many seats were won in the election with 125 candidates?
<|assistant|>
SELECT COUNT("num_of_seats_won") FROM "general_election_results" WHERE "num_of_candidates"=125;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: How many weeks are there?
<|assistant|>
SELECT MAX("week") FROM "regular_season";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: How many people attended the game against the indianapolis colts?
<|assistant|>
SELECT COUNT("attendance") FROM "regular_season" WHERE "opponent"='Indianapolis Colts';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: On december 16, 1985, all the records were what?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "date"='December 16, 1985';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
Question: How many results are there for the 0-4 record?
<|assistant|>
SELECT COUNT("result") FROM "game_by_game_results" WHERE "record"='0-4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
Question: How many weeks are there that include the date October 11, 1969.
<|assistant|>
SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='October 11, 1969';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
Question: How many weeks are there that include the date November 9, 1969.
<|assistant|>
SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='November 9, 1969';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
Question: How many records are there at the War Memorial Stadium?
<|assistant|>
SELECT COUNT("record") FROM "game_by_game_results" WHERE "stadium"='War Memorial Stadium';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
Question: What was the minimum attendance on December 7, 1969?
<|assistant|>
SELECT MIN("attendance") FROM "game_by_game_results" WHERE "date"='December 7, 1969';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
Question: What week corresponds to the last one to be played at the memorial stadium?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "stadium"='Memorial Stadium';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
Question: In which stadium is the week 5 game played?
<|assistant|>
SELECT "stadium" FROM "schedule" WHERE "week"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Question: In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?
<|assistant|>
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_of_a_draw"='8.28%' AND "2nd_players_choice"='B BR';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Question: If the first player chooses RB B, what is the second player's choices?
<|assistant|>
SELECT "2nd_players_choice" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='RB B';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Question: What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?
<|assistant|>
SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "2nd_players_choice"='R RB' AND "probability_1st_player_wins"='5.18%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Question: What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?
<|assistant|>
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='80.11%' AND "2nd_players_choice"='R RB';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Question: What are the chances that player 2 wins if player 1's choice is BB R?
<|assistant|>
SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='BB R';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
Question: How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?
<|assistant|>
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='88.29%' AND "2nd_players_choice"='R RB';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what is the nfl team where player is thane gash
<|assistant|>
SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Thane Gash';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what is the maximum pick # where player is anthony blaylock
<|assistant|>
SELECT MAX("pick_num") FROM "nfl_draft" WHERE "player"='Anthony Blaylock';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what's the nfl team where player is clifford charlton
<|assistant|>
SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Clifford Charlton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what's the position where player is anthony blaylock
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "player"='Anthony Blaylock';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what is the minimum pick # where position is defensive tackle
<|assistant|>
SELECT MIN("pick_num") FROM "nfl_draft" WHERE "position"='Defensive Tackle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_area_and_density_sortable_on_" (
"province" text,
"population_2004_estimate" real,
"area_km" real,
"density" text,
"gdp_2003_pps_in_mil" real,
"gdp_per_cap_2003_in" real
);
Question: Which province has a density of 971.4?
<|assistant|>
SELECT "province" FROM "population_area_and_density_sortable_on_" WHERE "density"='971.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_area_and_density_sortable_on_" (
"province" text,
"population_2004_estimate" real,
"area_km" real,
"density" text,
"gdp_2003_pps_in_mil" real,
"gdp_per_cap_2003_in" real
);
Question: What is Friesland's gdp per capita?
<|assistant|>
SELECT MIN("gdp_per_cap_2003_in") FROM "population_area_and_density_sortable_on_" WHERE "province"='Friesland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_area_and_density_sortable_on_" (
"province" text,
"population_2004_estimate" real,
"area_km" real,
"density" text,
"gdp_2003_pps_in_mil" real,
"gdp_per_cap_2003_in" real
);
Question: What is the area of the place that has a population density of 331.4?
<|assistant|>
SELECT MAX("area_km") FROM "population_area_and_density_sortable_on_" WHERE "density"='331.4';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.