text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Who is the director of the fimm Biola Tak Berdawai? <|assistant|> SELECT "director" FROM "submissions" WHERE "original_title"='Biola tak berdawai';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What title was used in the nomination for the title Biola Tak Berdawai? <|assistant|> SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='Biola tak berdawai';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: How many years have a film that uses the title "Nagabonar" in the nomination? <|assistant|> SELECT COUNT("year_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='Nagabonar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Who is the director of the film Gie? <|assistant|> SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='Gie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the try bonus for tries against is 70 <|assistant|> SELECT "try_bonus" FROM "2008_2009_table" WHERE "tries_against"='70';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the try bonus for when tries against is 43? <|assistant|> SELECT "try_bonus" FROM "2008_2009_table" WHERE "tries_against"='43';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the drawn for llandaff rfc <|assistant|> SELECT "drawn" FROM "2008_2009_table" WHERE "club"='Llandaff RFC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Name the won for try bonus of 10 <|assistant|> SELECT "won" FROM "2008_2009_table" WHERE "try_bonus"='10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1373542_1" ( "asset_acquired" text, "acquired_from" text, "date_announced" text, "date_completed" text, "reported_cost" text ); Question: It was announced on July 2, 2006 that what asset was acquired? <|assistant|> SELECT "asset_acquired" FROM "table1_1373542_1" WHERE "date_announced"='July 2, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1373542_1" ( "asset_acquired" text, "acquired_from" text, "date_announced" text, "date_completed" text, "reported_cost" text ); Question: On what date was it announced that an asset was acquired for US$9 Million? <|assistant|> SELECT "date_announced" FROM "table1_1373542_1" WHERE "reported_cost"='US$9 million';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1373542_1" ( "asset_acquired" text, "acquired_from" text, "date_announced" text, "date_completed" text, "reported_cost" text ); Question: On what date was the asset acquisition that was announced on February 22, 2007 completed? <|assistant|> SELECT "date_completed" FROM "table1_1373542_1" WHERE "date_announced"='February 22, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1373542_1" ( "asset_acquired" text, "acquired_from" text, "date_announced" text, "date_completed" text, "reported_cost" text ); Question: It is was announced on July 2, 2006 that what asset had been acquired? <|assistant|> SELECT "asset_acquired" FROM "table1_1373542_1" WHERE "date_announced"='July 2, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1373542_1" ( "asset_acquired" text, "acquired_from" text, "date_announced" text, "date_completed" text, "reported_cost" text ); Question: What was the reported cost of the asset acquired from Standard & Poor's? <|assistant|> SELECT "reported_cost" FROM "table1_1373542_1" WHERE "acquired_from"='Standard & Poor''s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb <|assistant|> SELECT "trim" FROM "engines" WHERE "fuel_mileage_latest_epa_mpg_us"='22 city, 30 hwy, 25 comb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb <|assistant|> SELECT "trim" FROM "engines" WHERE "fuel_mileage_latest_epa_mpg_us"='22 city, 30 hwy, 25 comb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: what's the trim with engine being 3.5l lz4 v6 <|assistant|> SELECT "trim" FROM "engines" WHERE "engine"='3.5L LZ4 V6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: what's the torque with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb <|assistant|> SELECT "torque" FROM "engines" WHERE "fuel_mileage_latest_epa_mpg_us"='22 city, 30 hwy, 25 comb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: what's the torque with trim being xe (2009) <|assistant|> SELECT "torque" FROM "engines" WHERE "trim"='XE (2009)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: what's the transmbeingsion with trim being xe (2009) <|assistant|> SELECT "transmission" FROM "engines" WHERE "trim"='XE (2009)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13740746_1" ( "ep_no" real, "title" text, "director" text, "written_by" text, "original_air_date" text, "production_no" real ); Question: Who is the director of the episode "rain of terror" that was written by John Brown? <|assistant|> SELECT "director" FROM "table1_13740746_1" WHERE "written_by"='John Brown' AND "title"='\"Rain of Terror\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13740746_1" ( "ep_no" real, "title" text, "director" text, "written_by" text, "original_air_date" text, "production_no" real ); Question: What is the production number of "rain of terror"? <|assistant|> SELECT MIN("production_no") FROM "table1_13740746_1" WHERE "title"='\"Rain of Terror\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13740746_1" ( "ep_no" real, "title" text, "director" text, "written_by" text, "original_air_date" text, "production_no" real ); Question: Who wrote the episode called "mercury falling"? <|assistant|> SELECT "written_by" FROM "table1_13740746_1" WHERE "title"='\"Mercury Falling\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text ); Question: Nantyglo RFC had 546 points for and how many points? <|assistant|> SELECT "points" FROM "2006_2007_table" WHERE "points_for"='546';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text ); Question: What club had 523 points against? <|assistant|> SELECT "club" FROM "2006_2007_table" WHERE "points_against"='523';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text ); Question: What club has 536 points for? <|assistant|> SELECT "club" FROM "2006_2007_table" WHERE "points_for"='536';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text ); Question: How many clubs had 7 wins? <|assistant|> SELECT COUNT("club") FROM "2006_2007_table" WHERE "won"='7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text ); Question: What club had 404 points against? <|assistant|> SELECT "club" FROM "2006_2007_table" WHERE "points_against"='404';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text ); Question: Risca RFC has 54 tries for and how many draws? <|assistant|> SELECT "drawn" FROM "2006_2007_table" WHERE "tries_for"='54';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What club has 36 points? <|assistant|> SELECT "club" FROM "2009_2010_table" WHERE "points"='36';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What are the lost where points lost is 353? <|assistant|> SELECT "lost" FROM "2009_2010_table" WHERE "points_for"='353';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What are the won games with losing bonus of 0? <|assistant|> SELECT "won" FROM "2009_2010_table" WHERE "losing_bonus"='0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Which club has 565 points? <|assistant|> SELECT "club" FROM "2009_2010_table" WHERE "points_for"='565';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many tries where points is 77? <|assistant|> SELECT "tries_for" FROM "2009_2010_table" WHERE "points"='77';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliamentary_elections" ( "election_date" real, "party_leader" text, "number_of_votes_received" real, "percentage_of_votes" text, "number_of_deputies" real ); Question: what's the percentage of votes with number of deputies being 112 <|assistant|> SELECT "percentage_of_votes" FROM "parliamentary_elections" WHERE "number_of_deputies"=112;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliamentary_elections" ( "election_date" real, "party_leader" text, "number_of_votes_received" real, "percentage_of_votes" text, "number_of_deputies" real ); Question: what's the percentage of votes with number of deputies being 112 <|assistant|> SELECT "percentage_of_votes" FROM "parliamentary_elections" WHERE "number_of_deputies"=112;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliamentary_elections" ( "election_date" real, "party_leader" text, "number_of_votes_received" real, "percentage_of_votes" text, "number_of_deputies" real ); Question: what's the percentage of votes with election date being 1981 <|assistant|> SELECT "percentage_of_votes" FROM "parliamentary_elections" WHERE "election_date"=1981;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parliamentary_elections" ( "election_date" real, "party_leader" text, "number_of_votes_received" real, "percentage_of_votes" text, "number_of_deputies" real ); Question: what's the number of deputies with number of votes received being smaller than 1549176.2765483726 and election date being 1969 <|assistant|> SELECT "number_of_deputies" FROM "parliamentary_elections" WHERE "number_of_votes_received"<1549176.2765483726 AND "election_date"=1969;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13755296_1" ( "series_num" real, "season_num" real, "title" text, "story_by" text, "teleplay_by" text, "directed_by" text, "original_air_date" text ); Question: Who wrote the sorry of the episode directed by Dan Attias? <|assistant|> SELECT "story_by" FROM "table1_13755296_1" WHERE "directed_by"='Dan Attias';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13755296_1" ( "series_num" real, "season_num" real, "title" text, "story_by" text, "teleplay_by" text, "directed_by" text, "original_air_date" text ); Question: What's the season number of the episode directed by Dan Attias? <|assistant|> SELECT MIN("season_num") FROM "table1_13755296_1" WHERE "directed_by"='Dan Attias';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13755296_1" ( "series_num" real, "season_num" real, "title" text, "story_by" text, "teleplay_by" text, "directed_by" text, "original_air_date" text ); Question: What's the title of the episode written by David Simon? <|assistant|> SELECT "title" FROM "table1_13755296_1" WHERE "teleplay_by"='David Simon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_a_members" ( "high_school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "division" text ); Question: What year was Skyline High School founded? <|assistant|> SELECT COUNT("founded") FROM "4_a_members" WHERE "high_school"='Skyline';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_a_members" ( "high_school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "division" text ); Question: How many enrollment figures are provided for Roosevelt High School? <|assistant|> SELECT COUNT("enrollment") FROM "4_a_members" WHERE "high_school"='Roosevelt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_a_members" ( "high_school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "division" text ); Question: Which location has a team that is nicknamed the Vikings? <|assistant|> SELECT "location" FROM "4_a_members" WHERE "nickname"='Vikings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "3_a_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text ); Question: What year was Kirkland founded? <|assistant|> SELECT "founded" FROM "3_a_members" WHERE "location"='Kirkland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "3_a_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text ); Question: Which institution was founded in 1923? <|assistant|> SELECT "institution" FROM "3_a_members" WHERE "founded"=1923;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "3_a_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text ); Question: Where is Interlake located? <|assistant|> SELECT "location" FROM "3_a_members" WHERE "institution"='Interlake';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_nba_playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); Question: What was the series count at on May 23? <|assistant|> SELECT "series" FROM "2006_nba_playoffs" WHERE "date"='May 23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the lowest numbered game on the list? <|assistant|> SELECT MIN("game") FROM "game_log";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high rebounds at the delta center? <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='Delta Center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many people had the high rebound total when the team was 19-13? <|assistant|> SELECT COUNT("high_rebounds") FROM "game_log" WHERE "record"='19-13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high point total when the team was 24-17? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "record"='24-17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the score when the heat played at charlotte arena? <|assistant|> SELECT "score" FROM "game_log" WHERE "location_attendance"='Charlotte Arena';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many games had the team played after they were 40-20? <|assistant|> SELECT "game" FROM "game_log" WHERE "record"='40-20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the score on November 25? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='November 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many players scored the most points when the opposing team was New Orleans/Oklahoma City? <|assistant|> SELECT COUNT("high_points") FROM "game_log" WHERE "team"='New Orleans/Oklahoma City';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many players scored the most points on game 4? <|assistant|> SELECT COUNT("high_points") FROM "game_log" WHERE "game"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the last game where the record was 6-3? <|assistant|> SELECT MAX("game") FROM "game_log" WHERE "record"='6-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13779832_1" ( "country_region" text, "local_title" text, "television_network" text, "seasons_and_winners" text, "judges" text, "presenters" text ); Question: what's the country/region with seasons and winners being season 1, 2012: demetra malalan <|assistant|> SELECT "country_region" FROM "table1_13779832_1" WHERE "seasons_and_winners"='Season 1, 2012: Demetra Malalan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13779832_1" ( "country_region" text, "local_title" text, "television_network" text, "seasons_and_winners" text, "judges" text, "presenters" text ); Question: how many local title with televbeingion network being tv nova website <|assistant|> SELECT COUNT("local_title") FROM "table1_13779832_1" WHERE "television_network"='TV Nova Website';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13779832_1" ( "country_region" text, "local_title" text, "television_network" text, "seasons_and_winners" text, "judges" text, "presenters" text ); Question: who is the the judges with seasons and winners being season 1, 2013–2014: upcoming season <|assistant|> SELECT "judges" FROM "table1_13779832_1" WHERE "seasons_and_winners"='Season 1, 2013–2014: Upcoming season';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13779832_1" ( "country_region" text, "local_title" text, "television_network" text, "seasons_and_winners" text, "judges" text, "presenters" text ); Question: who is the the judges with local title being x factor and presenters being heikki paasonen jukka rossi (xtra factor) <|assistant|> SELECT "judges" FROM "table1_13779832_1" WHERE "local_title"='X Factor' AND "presenters"='Heikki Paasonen Jukka Rossi (Xtra Factor)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13779832_1" ( "country_region" text, "local_title" text, "television_network" text, "seasons_and_winners" text, "judges" text, "presenters" text ); Question: what's the local title with seasons and winners being series 1, 2006: lucy benjamin <|assistant|> SELECT "local_title" FROM "table1_13779832_1" WHERE "seasons_and_winners"='Series 1, 2006: Lucy Benjamin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13779832_1" ( "country_region" text, "local_title" text, "television_network" text, "seasons_and_winners" text, "judges" text, "presenters" text ); Question: what's the country/region with presenters being heikki paasonen jukka rossi (xtra factor) <|assistant|> SELECT "country_region" FROM "table1_13779832_1" WHERE "presenters"='Heikki Paasonen Jukka Rossi (Xtra Factor)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mpeg_2_profiles" ( "abbr" text, "name" text, "picture_coding_types" text, "chroma_format" text, "aspect_ratios" text, "scalable_modes" text, "intra_dc_precision" text ); Question: how many chroma format with name being high profile <|assistant|> SELECT COUNT("chroma_format") FROM "mpeg_2_profiles" WHERE "name"='High profile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mpeg_2_profiles" ( "abbr" text, "name" text, "picture_coding_types" text, "chroma_format" text, "aspect_ratios" text, "scalable_modes" text, "intra_dc_precision" text ); Question: what's the chroma format with scalable modes being snr- or spatial-scalable and intra dc precbeingion being 8, 9, 10 <|assistant|> SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "scalable_modes"='SNR- or spatial-scalable' AND "intra_dc_precision"='8, 9, 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mpeg_2_profiles" ( "abbr" text, "name" text, "picture_coding_types" text, "chroma_format" text, "aspect_ratios" text, "scalable_modes" text, "intra_dc_precision" text ); Question: what's the chroma format with name being high profile <|assistant|> SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "name"='High profile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13789248_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real ); Question: who is the the artbeingt with song title being " a steel guitar and a glass of wine " <|assistant|> SELECT "artist" FROM "table1_13789248_2" WHERE "song_title"='\" A Steel Guitar And A Glass Of Wine \"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13789248_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real ); Question: what's the points with artbeingt being dave appell <|assistant|> SELECT "points" FROM "table1_13789248_2" WHERE "artist"='Dave Appell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13789248_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real ); Question: who is the the artbeingt with song title being " a little bitty tear " <|assistant|> SELECT "artist" FROM "table1_13789248_2" WHERE "song_title"='\" A Little Bitty Tear \"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13789248_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real ); Question: who is the the artbeingt with position being 32 <|assistant|> SELECT "artist" FROM "table1_13789248_2" WHERE "position"=32;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13789248_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real ); Question: how many song title with artbeingt being chubby checker <|assistant|> SELECT COUNT("song_title") FROM "table1_13789248_2" WHERE "artist"='Chubby Checker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13789248_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real ); Question: what is the minimum points with highest position being 1 <|assistant|> SELECT MIN("points") FROM "table1_13789248_2" WHERE "highest_position"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2007_2008" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: What is the maximum number of trnsit passeners when the total number of international passengers is 4870184? <|assistant|> SELECT MAX("transit_passengers") FROM "2008_data" WHERE "international_passengers"=4870184;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2007_2008" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: What is Edinburgh's airport's freight in metric tonnes? <|assistant|> SELECT MAX("freight_metric_tonnes") FROM "2008_data" WHERE "airport"='Edinburgh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2007_2008" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: How many different total number of transit passengers are there in London Luton? <|assistant|> SELECT COUNT("transit_passengers") FROM "2008_data" WHERE "airport"='London Luton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2007_2008" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: What are the total freights in metric tonnes when the total transit passengers is 147791? <|assistant|> SELECT "freight_metric_tonnes" FROM "2008_data" WHERE "transit_passengers"=147791;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2007_2008" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: What is the total number of passengers of the airport ranked 15? <|assistant|> SELECT "international_passengers" FROM "2008_data" WHERE "rank"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_13834298_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Whatis the original title for lion's den? <|assistant|> SELECT "original_title" FROM "table1_13834298_1" WHERE "film_title_used_in_nomination"='Lion''s Den';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2008_2009" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: What is the percent change from 08/09 for belfast international? <|assistant|> SELECT "pct_change_2008_2009" FROM "2009_data" WHERE "airport"='Belfast International';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2008_2009" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: How many transit passengers at london gatwick? <|assistant|> SELECT "transit_passengers" FROM "2009_data" WHERE "airport"='London Gatwick';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2008_2009" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: What is the rank of the airport with freight ( metric tonnes ) of 255121? <|assistant|> SELECT "rank" FROM "2009_data" WHERE "freight_metric_tonnes"=255121;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2008_2009" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: What is the rank of the airport with a freight ( metric tonnes ) of 23791? <|assistant|> SELECT "rank" FROM "2009_data" WHERE "freight_metric_tonnes"=23791;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_data" ( "rank" real, "airport" text, "total_passengers_2008" real, "total_passengers_2009" real, "change_2008_09" text, "aircraft_movements_2009" real ); Question: what's the airport with total passengers 2009 being 157933 <|assistant|> SELECT "airport" FROM "2008_2009_data" WHERE "total_passengers_2009"=157933;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_data" ( "rank" real, "airport" text, "total_passengers_2008" real, "total_passengers_2009" real, "change_2008_09" text, "aircraft_movements_2009" real ); Question: what being the maximum total passengers 2008 with change 2008/09 being 6.5% <|assistant|> SELECT MAX("total_passengers_2008") FROM "2008_2009_data" WHERE "change_2008_09"='6.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_data" ( "rank" real, "airport" text, "total_passengers_2008" real, "total_passengers_2009" real, "change_2008_09" text, "aircraft_movements_2009" real ); Question: what's the airport with aircraft movements 2009 being smaller than 238223.1659471435 and change 2008/09 being 0.5% <|assistant|> SELECT "airport" FROM "2008_2009_data" WHERE "aircraft_movements_2009"<238223.1659471435 AND "change_2008_09"='0.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_data" ( "rank" real, "airport" text, "total_passengers_2008" real, "total_passengers_2009" real, "change_2008_09" text, "aircraft_movements_2009" real ); Question: what is the maximum aircraft movements 2009 with change 2008/09 being 18.2% <|assistant|> SELECT MAX("aircraft_movements_2009") FROM "2008_2009_data" WHERE "change_2008_09"='18.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_data" ( "rank" real, "airport" text, "total_passengers_2008" real, "total_passengers_2009" real, "change_2008_09" text, "aircraft_movements_2009" real ); Question: what's the total passengers 2008 with change 2008/09 being 6.5% <|assistant|> SELECT "total_passengers_2008" FROM "2008_2009_data" WHERE "change_2008_09"='6.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2006_2007" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: Name the rank of birmingham airport <|assistant|> SELECT MAX("rank") FROM "2007_data" WHERE "airport"='Birmingham Airport';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2006_2007" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: Name the transit passengers for 171078 <|assistant|> SELECT MAX("transit_passengers") FROM "2007_data" WHERE "freight_metric_tonnes"=171078;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Beata syta is the minimum year for womens singles. <|assistant|> SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Beata Syta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2005_2006" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: what is the maximum aircraft movements with international passengers being 21002260 <|assistant|> SELECT MAX("aircraft_movements") FROM "2006_data" WHERE "international_passengers"=21002260;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2005_2006" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: what is the maximum freight (metric tonnes) with airport being liverpool <|assistant|> SELECT MAX("freight_metric_tonnes") FROM "2006_data" WHERE "airport"='Liverpool';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2005_2006" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: what's the airport with % change 2005/2006 being 13.0% <|assistant|> SELECT "airport" FROM "2006_data" WHERE "pct_change_2005_2006"='13.0%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2005_2006" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: what is the maximum aircraft movements with airport being liverpool <|assistant|> SELECT MAX("aircraft_movements") FROM "2006_data" WHERE "airport"='Liverpool';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2005_2006" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: what's the total passengers with freight (metric tonnes) being 827 <|assistant|> SELECT "total_passengers" FROM "2006_data" WHERE "freight_metric_tonnes"=827;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_data" ( "rank" real, "airport" text, "total_passengers" real, "pct_change_2005_2006" text, "international_passengers" real, "domestic_passengers" real, "transit_passengers" real, "aircraft_movements" real, "freight_metric_tonnes" real ); Question: how many airport with rank being 4 <|assistant|> SELECT COUNT("airport") FROM "2006_data" WHERE "rank"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: how many mens singles with mens doubles being pontus jantti lasse lindelöf <|assistant|> SELECT COUNT("mens_singles") FROM "past_winners" WHERE "mens_doubles"='Pontus Jantti Lasse Lindelöf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto <|assistant|> SELECT "mens_doubles" FROM "past_winners" WHERE "mixed_doubles"='Jimm Aalto Nina Sarnesto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: who is the the mixed doubles with year being 1972 <|assistant|> SELECT "mixed_doubles" FROM "past_winners" WHERE "year"=1972;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: who is the the mens doubles with year being 1978 <|assistant|> SELECT "mens_doubles" FROM "past_winners" WHERE "year"=1978;<|endoftext|>