text
stringlengths
310
1.28k
<|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 assists @ Dallas? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "team"='@ Dallas';<|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 assists when the location attendance was Toyota Center 18,370? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "location_attendance"='Toyota Center 18,370';<|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 record when the high rebounds was from Nick Collison (11)? <|assistant|> SELECT "record" FROM "game_log" WHERE "high_rebounds"='Nick Collison (11)';<|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 times was the final score l 96–123 (ot)? <|assistant|> SELECT COUNT("record") FROM "game_log" WHERE "score"='L 96–123 (OT)';<|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 times was the high assists earl watson (5) and the date of the game was december 2? <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "high_assists"='Earl Watson (5)' AND "date"='December 2';<|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: Whom did they play on game number 25? <|assistant|> SELECT "team" FROM "game_log" WHERE "game"=25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: What is the number of the leading scorer for keyarena 16,640? <|assistant|> SELECT COUNT("leading_scorer") FROM "february" WHERE "attendance"='KeyArena 16,640';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: What is the number of leading scorer of february 21? <|assistant|> SELECT COUNT("leading_scorer") FROM "february" WHERE "date"='February 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: What is the leading scorer on february 1? <|assistant|> SELECT "leading_scorer" FROM "february" WHERE "date"='February 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: what's the score where record is 35–33 <|assistant|> SELECT "score" FROM "march" WHERE "record"='35–33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: what's the home where date is march 27 <|assistant|> SELECT "home" FROM "march" WHERE "date"='March 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: what's the date where visitor is phoenix suns and record is 31–30 <|assistant|> SELECT "date" FROM "march" WHERE "visitor"='Phoenix Suns' AND "record"='31–30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: what's the home team where score is l 80–88 <|assistant|> SELECT "home" FROM "march" WHERE "score"='L 80–88';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: what's the leading scorer on march 2 <|assistant|> SELECT "leading_scorer" FROM "march" WHERE "date"='March 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "num" real, "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: what's the leading scorer where home is sacramento kings <|assistant|> SELECT "leading_scorer" FROM "march" WHERE "home"='Sacramento Kings';<|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's the team where date is february 8 <|assistant|> SELECT "team" FROM "game_log" WHERE "date"='February 8';<|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's the location attendance where high rebounds is nick collison (14) <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "high_rebounds"='Nick Collison (14)';<|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's the record where score is w 105–92 (ot) <|assistant|> SELECT "record" FROM "game_log" WHERE "score"='W 105–92 (OT)';<|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's the location attendance where record is 14–39 <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "record"='14–39';<|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 maximum game where high points is mickaël gelabale (21) <|assistant|> SELECT MAX("game") FROM "game_log" WHERE "high_points"='Mickaël Gelabale (21)';<|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's the record where location attendance is keyarena 13,627 <|assistant|> SELECT "record" FROM "game_log" WHERE "location_attendance"='KeyArena 13,627';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "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 is the score for april 29? <|assistant|> SELECT "score" FROM "playoffs" WHERE "date"='April 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); Question: Name the minimum game <|assistant|> SELECT MIN("game") FROM "playoffs";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); Question: Name the high points for toyota center 18,269? <|assistant|> SELECT "high_points" FROM "playoffs" WHERE "location_attendance"='Toyota Center 18,269';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: what's the preliminaries with average being 9.135 <|assistant|> SELECT "preliminaries" FROM "scores" WHERE "average"='9.135';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: what's the evening gown with preliminaries being 9.212 <|assistant|> SELECT "evening_gown" FROM "scores" WHERE "preliminaries"='9.212';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: what's the interview with swimsuit being 9.140 <|assistant|> SELECT "interview" FROM "scores" WHERE "swimsuit"='9.140';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: what's the evening gown with swimsuit being 9.134 <|assistant|> SELECT "evening_gown" FROM "scores" WHERE "swimsuit"='9.134';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); Question: what's the preliminaries with average being 9.360 <|assistant|> SELECT "preliminaries" FROM "scores" WHERE "average"='9.360';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1199219_2" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: How many successors were seated in the New York 20th district? <|assistant|> SELECT COUNT("successor") FROM "table1_1199219_2" WHERE "district"='New York 20th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: What playoff result happened during the season in which they finished 1st, southern? <|assistant|> SELECT "playoffs" FROM "year_by_year" WHERE "reg_season"='1st, Southern';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: How many teams placed 4th in the regular season? <|assistant|> SELECT COUNT("division") FROM "year_by_year" WHERE "reg_season"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: What was the result of the open cup when they finished 4th in the regular season? <|assistant|> SELECT "open_cup" FROM "year_by_year" WHERE "reg_season"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: How many open cups were hosted in 1993? <|assistant|> SELECT COUNT("open_cup") FROM "year_by_year" WHERE "year"=1993;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: What year did they finish 1st, southern? <|assistant|> SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='1st, Southern';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: What was the playoff result for theteam in the apsl in 1992? <|assistant|> SELECT "playoffs" FROM "year_by_year" WHERE "league"='APSL' AND "year"=1992;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_score" ( "finish" real, "start" real, "car_no" real, "driver" text, "car_name" text, "car_make" text, "entrant" text, "laps" real, "status" text ); Question: What was the status of tropartic? <|assistant|> SELECT "status" FROM "box_score" WHERE "car_name"='TropArtic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_score" ( "finish" real, "start" real, "car_no" real, "driver" text, "car_name" text, "car_make" text, "entrant" text, "laps" real, "status" text ); Question: What is the status of joe gibbs racing? <|assistant|> SELECT "status" FROM "box_score" WHERE "entrant"='Joe Gibbs Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_score" ( "finish" real, "start" real, "car_no" real, "driver" text, "car_name" text, "car_make" text, "entrant" text, "laps" real, "status" text ); Question: What is the laops of marcis auto racing? <|assistant|> SELECT "laps" FROM "box_score" WHERE "entrant"='Marcis Auto Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); Question: what's the author / editor / source with index (year) being press freedom (2007) <|assistant|> SELECT "author_editor_source" FROM "table" WHERE "index_year"='Press Freedom (2007)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); Question: how many countries sampled with year of publication being 2007 and ranking l.a. (2) being 7th <|assistant|> SELECT COUNT("countries_sampled") FROM "table" WHERE "year_of_publication"='2007' AND "ranking_l_a_2"='7th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "index_year" text, "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_l_a_2" text ); Question: what's the author / editor / source with world ranking (1) being 73rd <|assistant|> SELECT "author_editor_source" FROM "table" WHERE "world_ranking_1"='73rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nsl_cup_winners" ( "season" text, "cup_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "cup_final_attendance" real ); Question: How many losingteams were for the cup finaldate 20 August 1989? <|assistant|> SELECT COUNT("losing_team") FROM "nsl_cup_winners" WHERE "cup_final_date"='20 August 1989';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nsl_cup_winners" ( "season" text, "cup_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "cup_final_attendance" real ); Question: How many seasons was the losing team Adelaide City? <|assistant|> SELECT COUNT("season") FROM "nsl_cup_winners" WHERE "losing_team"='Adelaide City';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nsl_cup_winners" ( "season" text, "cup_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "cup_final_attendance" real ); Question: Who was the winning team in the 1989 season? <|assistant|> SELECT "winning_team" FROM "nsl_cup_winners" WHERE "season"='1989';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12027364_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the womens doubles when wu jianqui won the womens singles? <|assistant|> SELECT "womens_doubles" FROM "table1_12027364_1" WHERE "womens_singles"='Wu Jianqui';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12027364_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the mixed doubles when ji xinpeng won the mens singles? <|assistant|> SELECT "mixed_doubles" FROM "table1_12027364_1" WHERE "mens_singles"='Ji Xinpeng';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12027364_1" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: How many womens singles winners were there when peter rasmussen won the mens singles? <|assistant|> SELECT COUNT("womens_singles") FROM "table1_12027364_1" WHERE "mens_singles"='Peter Rasmussen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12033013_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: WHO WROTE THE STORY WITH THE PRODUCTION CODE OF 1ADK-03 <|assistant|> SELECT "written_by" FROM "table1_12033013_1" WHERE "production_code"='1ADK-03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12033013_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: WHAT IS "DAVE MOVES OUT" PRODUCTION CODE? <|assistant|> SELECT "production_code" FROM "table1_12033013_1" WHERE "title"='\"Dave Moves Out\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12033013_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: WHO WROTE "DAD'S DEAD" <|assistant|> SELECT "written_by" FROM "table1_12033013_1" WHERE "title"='\"Dad''s Dead\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12033013_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: WHO AUTHORED "RED ASPHALT"? <|assistant|> SELECT "written_by" FROM "table1_12033013_1" WHERE "title"='\"Red Asphalt\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12030612_9" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Name the number of titles written by adam i. lapidus <|assistant|> SELECT COUNT("title") FROM "table1_12030612_9" WHERE "written_by"='Adam I. Lapidus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12033013_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What's the season number of the episode titled "Houseboat"? <|assistant|> SELECT "no_in_season" FROM "table1_12033013_3" WHERE "title"='\"Houseboat\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12033013_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: What's the season number of the episode titled "Grad school"? <|assistant|> SELECT "no_in_season" FROM "table1_12033013_3" WHERE "title"='\"Grad School\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12033013_3" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); Question: Who directed the episode with a production code 3ADK-03? <|assistant|> SELECT "directed_by" FROM "table1_12033013_3" WHERE "production_code"='3ADK-03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "hakka" text, "area" real, "population" real, "density" real ); Question: When pinyin is xīnluó qū, what is the simplified value? <|assistant|> SELECT COUNT("simplified") FROM "administration" WHERE "pinyin"='Xīnluó Qū';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "hakka" text, "area" real, "population" real, "density" real ); Question: What is the pinyin for the English name Wuping County? <|assistant|> SELECT "pinyin" FROM "administration" WHERE "english_name"='Wuping County';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "hakka" text, "area" real, "population" real, "density" real ); Question: What is the area of the English name Shanghang County? <|assistant|> SELECT "area" FROM "administration" WHERE "english_name"='Shanghang County';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "hakka" text, "area" real, "population" real, "density" real ); Question: Which pinyin have a population of 374047? <|assistant|> SELECT "pinyin" FROM "administration" WHERE "population"=374047;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview_by_city" ( "metropolitan_area" text, "media_market_ranking" real, "hosted_4_teams_since" real, "nfl_team_s" text, "mlb_team_s" text, "nba_team_s" text, "nhl_team_s" text ); Question: How many NHL teams are there in the Phoenix, Arizona area? <|assistant|> SELECT COUNT("nhl_team_s") FROM "overview_by_city" WHERE "metropolitan_area"='Phoenix, Arizona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview_by_city" ( "metropolitan_area" text, "media_market_ranking" real, "hosted_4_teams_since" real, "nfl_team_s" text, "mlb_team_s" text, "nba_team_s" text, "nhl_team_s" text ); Question: What is the media market ranking for the Blackhawks? <|assistant|> SELECT COUNT("media_market_ranking") FROM "overview_by_city" WHERE "nhl_team_s"='Blackhawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview_by_city" ( "metropolitan_area" text, "media_market_ranking" real, "hosted_4_teams_since" real, "nfl_team_s" text, "mlb_team_s" text, "nba_team_s" text, "nhl_team_s" text ); Question: What is the the name of the NHL team that is in the same market as the NBA team, Nuggets? <|assistant|> SELECT "nhl_team_s" FROM "overview_by_city" WHERE "nba_team_s"='Nuggets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview_by_city" ( "metropolitan_area" text, "media_market_ranking" real, "hosted_4_teams_since" real, "nfl_team_s" text, "mlb_team_s" text, "nba_team_s" text, "nhl_team_s" text ); Question: What is the NHL team in the media market ranking number 7? <|assistant|> SELECT "nhl_team_s" FROM "overview_by_city" WHERE "media_market_ranking"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1206114_2" ( "vendor_and_type" text, "models" text, "net_flow_version" text, "implementation" text, "comments" text ); Question: How many netflow version are there when the vendor and type is enterasys switches? <|assistant|> SELECT COUNT("net_flow_version") FROM "table1_1206114_2" WHERE "vendor_and_type"='Enterasys Switches';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1206114_2" ( "vendor_and_type" text, "models" text, "net_flow_version" text, "implementation" text, "comments" text ); Question: What are the comments when the vendor and type is alcatel-lucent routers? <|assistant|> SELECT "comments" FROM "table1_1206114_2" WHERE "vendor_and_type"='Alcatel-Lucent routers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1206114_2" ( "vendor_and_type" text, "models" text, "net_flow_version" text, "implementation" text, "comments" text ); Question: What are the comments when vendor and type is enterasys switches? <|assistant|> SELECT "comments" FROM "table1_1206114_2" WHERE "vendor_and_type"='Enterasys Switches';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1206114_2" ( "vendor_and_type" text, "models" text, "net_flow_version" text, "implementation" text, "comments" text ); Question: What is the netflow version when vendor and type is pc and servers? <|assistant|> SELECT "net_flow_version" FROM "table1_1206114_2" WHERE "vendor_and_type"='PC and Servers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1206114_2" ( "vendor_and_type" text, "models" text, "net_flow_version" text, "implementation" text, "comments" text ); Question: What are the comments when the implementation is software running on central processor module? <|assistant|> SELECT "comments" FROM "table1_1206114_2" WHERE "implementation"='Software running on Central Processor Module';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1206114_2" ( "vendor_and_type" text, "models" text, "net_flow_version" text, "implementation" text, "comments" text ); Question: What is the implementation when the netflow version is v5, v8, v9, ipfix? <|assistant|> SELECT "implementation" FROM "table1_1206114_2" WHERE "net_flow_version"='v5, v8, v9, IPFIX';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" text, "against_prohibition" real, "percent_against" text ); Question: Name the minimum for prohibition? <|assistant|> SELECT MIN("for_prohibition") FROM "results_of_the_national_referendum_on_pr";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" text, "against_prohibition" real, "percent_against" text ); Question: What is the number of jurisdiction for 57.3 percent? <|assistant|> SELECT COUNT("jurisdiction") FROM "results_of_the_national_referendum_on_pr" WHERE "percent_for"='57.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" text, "against_prohibition" real, "percent_against" text ); Question: Name the max for prohibition. <|assistant|> SELECT MAX("for_prohibition") FROM "results_of_the_national_referendum_on_pr";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" text, "against_prohibition" real, "percent_against" text ); Question: What is the percent for when against prohibition is 2978? <|assistant|> SELECT "percent_for" FROM "results_of_the_national_referendum_on_pr" WHERE "against_prohibition"=2978;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_of_the_national_referendum_on_pr" ( "jurisdiction" text, "for_prohibition" real, "percent_for" text, "against_prohibition" real, "percent_against" text ); Question: What is the percent for in manitoba? <|assistant|> SELECT "percent_for" FROM "results_of_the_national_referendum_on_pr" WHERE "jurisdiction"='Manitoba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); Question: How many trains leave from puri? <|assistant|> SELECT COUNT("train_name") FROM "train_services" WHERE "origin"='Puri';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); Question: What train number is heading to amritsar? <|assistant|> SELECT "train_no" FROM "train_services" WHERE "destination"='Amritsar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); Question: How often does a train leave sealdah? <|assistant|> SELECT "frequency" FROM "train_services" WHERE "origin"='Sealdah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); Question: Where does the bg express train end? <|assistant|> SELECT "destination" FROM "train_services" WHERE "train_name"='BG Express';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "train_services" ( "train_no" text, "train_name" text, "origin" text, "destination" text, "frequency" text ); Question: What's the name of train number 15647/48? <|assistant|> SELECT "train_name" FROM "train_services" WHERE "train_no"='15647/48';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_12086015_7" ( "player" text, "nationality" text, "finals" real, "win_loss" text, "year_s" text ); Question: What is the number of nationality in 1992? <|assistant|> SELECT COUNT("nationality") FROM "table1_12086015_7" WHERE "year_s"='1992';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "executive_commissioners" ( "year" text, "communications_and_corporate_affairs" text, "human_resources_operations" text, "local_affairs" text, "academic_university_affairs" text, "external_affairs" text ); Question: Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton? <|assistant|> SELECT "academic_university_affairs" FROM "executive_commissioners" WHERE "human_resources_operations"='N. Charles Hamilton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "executive_commissioners" ( "year" text, "communications_and_corporate_affairs" text, "human_resources_operations" text, "local_affairs" text, "academic_university_affairs" text, "external_affairs" text ); Question: What year was communications and corporate affairs held by Jeff Rotman? <|assistant|> SELECT "year" FROM "executive_commissioners" WHERE "communications_and_corporate_affairs"='Jeff Rotman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text ); Question: What was the built data for Knocklayd rebuild? <|assistant|> SELECT "built" FROM "building_and_withdrawal_data" WHERE "name_as_rebuilt"='Knocklayd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text ); Question: How many times does the rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954? <|assistant|> SELECT COUNT("number") FROM "building_and_withdrawal_data" WHERE "rebuilt"='Cannot handle non-empty timestamp argument! 1929' AND "scrapped_sold"='Cannot handle non-empty timestamp argument! 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text ); Question: What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947? <|assistant|> SELECT "built" FROM "building_and_withdrawal_data" WHERE "scrapped_sold"='Cannot handle non-empty timestamp argument! 1947';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text ); Question: How many times was the rebuilt data cannot handle non-empty timestamp argument! 1934? <|assistant|> SELECT COUNT("number") FROM "building_and_withdrawal_data" WHERE "rebuilt"='Cannot handle non-empty timestamp argument! 1934';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text ); Question: What is the built data for number 34? <|assistant|> SELECT "built" FROM "building_and_withdrawal_data" WHERE "number"=34;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text ); Question: What is the highest number listed? <|assistant|> SELECT MAX("number") FROM "building_and_withdrawal_data";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "21st_century" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Who won the womens singles when Marc Zwiebler won the men's singles? <|assistant|> SELECT "womens_singles" FROM "21st_century" WHERE "mens_singles"='Marc Zwiebler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines_and_transmissions" ( "model_engine" text, "capacity" text, "cylinders_valves" text, "power_rpm" text, "torque_nm_rpm" text ); Question: The 1.6 Duratec model/engine has how many torque formulas? <|assistant|> SELECT COUNT("torque_nm_rpm") FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines_and_transmissions" ( "model_engine" text, "capacity" text, "cylinders_valves" text, "power_rpm" text, "torque_nm_rpm" text ); Question: For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power? <|assistant|> SELECT "power_rpm" FROM "engines_and_transmissions" WHERE "torque_nm_rpm"='N·m (lb·ft)/*N·m (lb·ft) @1750';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines_and_transmissions" ( "model_engine" text, "capacity" text, "cylinders_valves" text, "power_rpm" text, "torque_nm_rpm" text ); Question: For the model/engine of 1.8 Duratec HE, what is the torque? <|assistant|> SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "model_engine"='1.8 Duratec HE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines_and_transmissions" ( "model_engine" text, "capacity" text, "cylinders_valves" text, "power_rpm" text, "torque_nm_rpm" text ); Question: How many capacities are possible for the 1.6 Duratec model/engine? <|assistant|> SELECT COUNT("capacity") FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines_and_transmissions" ( "model_engine" text, "capacity" text, "cylinders_valves" text, "power_rpm" text, "torque_nm_rpm" text ); Question: What is the torque formula for the model/engine which has 1,753 cc capacity? <|assistant|> SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "capacity"='1,753 cc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines_and_transmissions" ( "model_engine" text, "capacity" text, "cylinders_valves" text, "power_rpm" text, "torque_nm_rpm" text ); Question: What is the torque formula for the 1.6 Duratec ti-vct model/engine? <|assistant|> SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec Ti-VCT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ghanaian_presidents_ages" ( "num" real, "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" text ); Question: what's the date of birth with end of term being 2april1969 <|assistant|> SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "end_of_term"='2April1969';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ghanaian_presidents_ages" ( "num" real, "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" text ); Question: who is the the president with date of inauguration being 4june1979 <|assistant|> SELECT "president" FROM "ghanaian_presidents_ages" WHERE "date_of_inauguration"='4June1979';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ghanaian_presidents_ages" ( "num" real, "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" text ); Question: how many president with date of inauguration being 4june1979 <|assistant|> SELECT COUNT("president") FROM "ghanaian_presidents_ages" WHERE "date_of_inauguration"='4June1979';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ghanaian_presidents_ages" ( "num" real, "president" text, "date_of_birth" text, "date_of_inauguration" text, "age_at_inauguration" text, "end_of_term" text, "length_of_retirement" text, "date_of_death" text, "lifespan" text ); Question: what's the date of birth with end of term being 5july1978 <|assistant|> SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "end_of_term"='5July1978';<|endoftext|>