text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" real, "country" text, "miss_universe" text, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real ); Question: Which country has had 6 miss universe's? <|assistant|> SELECT "country" FROM "references" WHERE "miss_universe"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" real, "country" text, "miss_universe" text, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real ); Question: Which country has had 8 miss universes? <|assistant|> SELECT "country" FROM "references" WHERE "miss_universe"='8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); Question: What is the minimum number of points for teams averaging 1.412? <|assistant|> SELECT MIN("points") FROM "relegation" WHERE "average"='1.412';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); Question: What is the 2004-2005 value associated with a 2005-2006 value of 56/38? <|assistant|> SELECT "2004_05" FROM "relegation" WHERE "2005_06"='56/38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); Question: How many averages are associated with a 2003-2004 value of 62/38? <|assistant|> SELECT COUNT("average") FROM "relegation" WHERE "2003_04"='62/38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); Question: What 2003-2004 values are associated with an average of 1.377? <|assistant|> SELECT "2003_04" FROM "relegation" WHERE "average"='1.377';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); Question: How many teams have a 2004-05 value of 49/38? <|assistant|> SELECT COUNT("team") FROM "relegation" WHERE "2004_05"='49/38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); Question: How many 2003-04 values have a 2004-05 value of 73/38? <|assistant|> SELECT COUNT("2003_04") FROM "relegation" WHERE "2004_05"='73/38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866503_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: How many millions of viewers are listed where the writer is Matthew Okumura? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_2866503_1" WHERE "written_by"='Matthew Okumura';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866503_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: What is the U.S air date when the title is "calling"? <|assistant|> SELECT "u_s_air_date" FROM "table1_2866503_1" WHERE "title"='\"Calling\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866503_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: What is the U.S. air date when the U.S. viewers are 7.5 million? <|assistant|> SELECT "u_s_air_date" FROM "table1_2866503_1" WHERE "u_s_viewers_million"='7.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866456_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many u.s. viewers (million) have 6 as the #? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_2866456_1" WHERE "num"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866456_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who is directed by when "fade" is the title? <|assistant|> SELECT "directed_by" FROM "table1_2866456_1" WHERE "title"='\"Fade\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866456_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who is the directed by when 2t6404 is the production code? <|assistant|> SELECT "directed_by" FROM "table1_2866456_1" WHERE "production_code"='2T6404';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866509_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: what is the number of the episode in the season that had 5.60 millions of north american spectors? <|assistant|> SELECT "no" FROM "table1_2866509_1" WHERE "u_s_viewers_million"='5.60';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2866509_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); Question: who are the writers of the episode whose production code is 176206? <|assistant|> SELECT "written_by" FROM "table1_2866509_1" WHERE "production_code"=176206;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "num" real, "stadium" text, "capacity" real, "opened" text, "city_town" text, "home_team" text ); Question: What stadium does FK Rudar play in? <|assistant|> SELECT "stadium" FROM "see_also" WHERE "home_team"='FK Rudar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "num" real, "stadium" text, "capacity" real, "opened" text, "city_town" text, "home_team" text ); Question: What town holds Stadion Zlatica? <|assistant|> SELECT "city_town" FROM "see_also" WHERE "stadium"='Stadion Zlatica';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "num" real, "stadium" text, "capacity" real, "opened" text, "city_town" text, "home_team" text ); Question: What stadium does FK Jedinstvo play in? <|assistant|> SELECT "stadium" FROM "see_also" WHERE "home_team"='FK Jedinstvo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is listed in tor floysvik when karianne gulliksen is 6? <|assistant|> SELECT MIN("tor_fl_ysvik") FROM "week_6" WHERE "karianne_gulliksen"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: How many music entries are there when tor floysvik is 3? <|assistant|> SELECT COUNT("music") FROM "week_6" WHERE "tor_fl_ysvik"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is listed under chister tornell when karianne gulliksen is 7? <|assistant|> SELECT MIN("christer_tornell") FROM "week_6" WHERE "karianne_gulliksen"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is listed under tor floysvik when couple is maria & asmund? <|assistant|> SELECT MIN("tor_fl_ysvik") FROM "week_6" WHERE "couple"='Maria & Asmund';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "installed_capacity" ( "stage" text, "unit_number" real, "installed_capacity_mw" text, "date_of_commissioning" text, "status" text, "tg_set_provider" text, "boiler_provider" text ); Question: What are Unit 2's dates of commissioning? <|assistant|> SELECT COUNT("date_of_commissioning") FROM "installed_capacity" WHERE "unit_number"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "installed_capacity" ( "stage" text, "unit_number" real, "installed_capacity_mw" text, "date_of_commissioning" text, "status" text, "tg_set_provider" text, "boiler_provider" text ); Question: What is the boiler provider for Bhel, India's TG Set provider? <|assistant|> SELECT "boiler_provider" FROM "installed_capacity" WHERE "tg_set_provider"='BHEL, India';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: Name the trine dehli cleve for english waltz <|assistant|> SELECT MIN("trine_dehli_cleve") FROM "week_10" WHERE "style"='English Waltz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: Name the style for 39 <|assistant|> SELECT "style" FROM "week_10" WHERE "total"=39;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: Name the style for 27 <|assistant|> SELECT "style" FROM "week_10" WHERE "total"=27;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: Name the most for fløysvik for 8 <|assistant|> SELECT MAX("tor_fl_ysvik") FROM "week_10" WHERE "karianne_gulliksen"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_7" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: how many for floysvik and christer tornell is 7? <|assistant|> SELECT COUNT("tor_fl_ysvik") FROM "week_7" WHERE "christer_tornell"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_7" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: how many for christer tornell where the total is 30? <|assistant|> SELECT COUNT("christer_tornell") FROM "week_7" WHERE "total"=30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What score did Karianne Gulliksen give to the couple that danced to " la cumparsita "— tango argentino? <|assistant|> SELECT "karianne_gulliksen" FROM "week_12" WHERE "music"='\" La Cumparsita \"— Tango Argentino';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is the couple that received a total score of 38? <|assistant|> SELECT "couple" FROM "week_12" WHERE "total"=38;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is the greatest total score received by aylar & egor when karianne Gulliksen gave an 8? <|assistant|> SELECT MAX("total") FROM "week_12" WHERE "couple"='Aylar & Egor' AND "karianne_gulliksen"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is the total score received by the couple that danced to " ymca "— village people? <|assistant|> SELECT MAX("total") FROM "week_12" WHERE "music"='\" YMCA \"— Village People';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: How many different scores did Christer Tornell give to the couple that danced to " song triste "— charlie chaplin? <|assistant|> SELECT COUNT("christer_tornell") FROM "week_12" WHERE "music"='\" Song Triste \"— Charlie Chaplin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is the largest number for trine dehli cleve? <|assistant|> SELECT MAX("trine_dehli_cleve") FROM "week_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: How many couples are there for the song " i wonder why "— curtis stigers? <|assistant|> SELECT COUNT("couple") FROM "week_1" WHERE "music"='\" I Wonder Why \"— Curtis Stigers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is the largest number for karianne gulliksen? <|assistant|> SELECT MAX("karianne_gulliksen") FROM "week_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: How many entries arr there for christer tornell for the song " you light up my life "— whitney houston? <|assistant|> SELECT COUNT("christer_tornell") FROM "week_1" WHERE "music"='\" You Light Up My Life \"— Whitney Houston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: How many styles had a total score of exactly 33? <|assistant|> SELECT COUNT("style") FROM "week_5" WHERE "total"=33;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: Which style led to a score given by Tor Floysvik of 8? <|assistant|> SELECT "style" FROM "week_5" WHERE "tor_fl_ysvik"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); Question: What is the smallest total score for the Pasodoble style? <|assistant|> SELECT MIN("total") FROM "week_5" WHERE "style"='Pasodoble';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who directed the episode titled "Playing the Cancer Car"? <|assistant|> SELECT "directed_by" FROM "table1_28680377_2" WHERE "title"='\"Playing the Cancer Car\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What is the title of the episode watched by 0.88 million U.S. viewers? <|assistant|> SELECT "title" FROM "table1_28680377_2" WHERE "u_s_viewers_million"='0.88';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How many millions of U.S. viewers watched the episode titled "New Beginnings"? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_28680377_2" WHERE "title"='\"New Beginnings\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who directed the episode titled "Everything That Rises Must Converge"? <|assistant|> SELECT "directed_by" FROM "table1_28680377_2" WHERE "title"='\"Everything That Rises Must Converge\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What is the original air date of the episode that was watched by 0.88 million U.S. viewers? <|assistant|> SELECT "original_air_date" FROM "table1_28680377_2" WHERE "u_s_viewers_million"='0.88';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How many million U.S. viewers watched "musical chairs"? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_28680377_3" WHERE "title"='\"Musical Chairs\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How many episodes in the series were titled "a little death"? <|assistant|> SELECT COUNT("no_in_series") FROM "table1_28680377_3" WHERE "title"='\"A Little Death\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28680377_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); Question: How many people directed "a little death"? <|assistant|> SELECT COUNT("directed_by") FROM "table1_28680377_3" WHERE "title"='\"A Little Death\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); Question: How may players have a passing yard score of 208? <|assistant|> SELECT COUNT("player") FROM "single_game" WHERE "passing_yards"=208;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); Question: What is the name of the player with total offense of 454? <|assistant|> SELECT "player" FROM "single_game" WHERE "total_offense"=454;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); Question: What is the number of rushing yards when the opponentis Indiana and the player is Denard Robinson? <|assistant|> SELECT MAX("rushing_yards") FROM "single_game" WHERE "opponent"='Indiana' AND "player"='Denard Robinson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); Question: What is the number of total offense when the opponentis Penn State? <|assistant|> SELECT MAX("total_offense") FROM "single_game" WHERE "opponent"='Penn State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); Question: How many rushing yards are listed when the passing yards are 244? <|assistant|> SELECT "rushing_yards" FROM "single_game" WHERE "passing_yards"=244;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "reservoir" text, "basin" text, "location" text, "type" text, "height_m" text, "length_along_the_top_m" text, "drainage_basin_km" text, "reservoir_surface_ha" text, "volume_hm" text ); Question: What is listed in drainage basin when the type is gravity and the reservoir surface is 34.36? <|assistant|> SELECT "drainage_basin_km" FROM "see_also" WHERE "type"='Gravity' AND "reservoir_surface_ha"='34.36';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "reservoir" text, "basin" text, "location" text, "type" text, "height_m" text, "length_along_the_top_m" text, "drainage_basin_km" text, "reservoir_surface_ha" text, "volume_hm" text ); Question: What is the drainage basin when the reservoir suface is 6.14? <|assistant|> SELECT "drainage_basin_km" FROM "see_also" WHERE "reservoir_surface_ha"='6.14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "reservoir" text, "basin" text, "location" text, "type" text, "height_m" text, "length_along_the_top_m" text, "drainage_basin_km" text, "reservoir_surface_ha" text, "volume_hm" text ); Question: What is the volume when the resrvoir is Tanes? <|assistant|> SELECT "volume_hm" FROM "see_also" WHERE "reservoir"='Tanes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2869843_1" ( "model" text, "in" text, "mm" text, "caliber" text, "standard" real, "w_sleeve" text, "black" text, "olive_drab" text, "bi_tone" text, "dark_earth" text ); Question: are there bi-tone is there's no olive drab and the caliber is 9×19mm parabellum and model is xdm 5.25 competition <|assistant|> SELECT "bi_tone" FROM "table1_2869843_1" WHERE "olive_drab"='No' AND "caliber"='9×19mm Parabellum' AND "model"='XDM 5.25 Competition';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); Question: What is the family of the constellation that has lyncis /ˈlɪnsɨs/ as genitive? <|assistant|> SELECT "family" FROM "modern_constellations" WHERE "genitive"='Lyncis /ˈlɪnsɨs/';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); Question: What is the origin of the constellation that can be abbreviated to tele? <|assistant|> SELECT "origin" FROM "modern_constellations" WHERE "other_abbreviation"='Tele';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); Question: What is the other abbreviation of the constellation that has β trianguli as its brightest star? <|assistant|> SELECT "other_abbreviation" FROM "modern_constellations" WHERE "brightest_star"='β Trianguli';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); Question: What is the brightest star of the constellation that means archer? <|assistant|> SELECT "brightest_star" FROM "modern_constellations" WHERE "meaning"='archer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); Question: What is the other abbreviation of the constellation that has hydrae /ˈhaɪdriː/ as genitive? <|assistant|> SELECT "other_abbreviation" FROM "modern_constellations" WHERE "genitive"='Hydrae /ˈhaɪdriː/';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); Question: What is the meaning of the constellation that has puppis /ˈpʌpɨs/ as genitive? <|assistant|> SELECT "meaning" FROM "modern_constellations" WHERE "genitive"='Puppis /ˈpʌpɨs/';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text ); Question: How many track numbers were called song 2? <|assistant|> SELECT COUNT("track_no") FROM "out_of_the_blue_discography" WHERE "track"='Song 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text ); Question: Who was the vocal percussionist when stevie wonder was the original artist? <|assistant|> SELECT "vocal_percussionist" FROM "out_of_the_blue_discography" WHERE "original_artist"='Stevie Wonder';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text ); Question: What track name had Terry Tamm as the soloist? <|assistant|> SELECT "track" FROM "out_of_the_blue_discography" WHERE "soloist_s"='Terry Tamm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchups_results" text, "attendance" real, "payout_us" text ); Question: What was the date of the game that had a result of Army 16, SMU 14? <|assistant|> SELECT "date" FROM "bowl_games" WHERE "matchups_results"='Army 16, SMU 14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchups_results" text, "attendance" real, "payout_us" text ); Question: What was the city whose stadium is Gerald J. Ford Stadium? <|assistant|> SELECT "city" FROM "bowl_games" WHERE "stadium"='Gerald J. Ford Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "width_wise_details_of_government_roads_a" ( "sl_no" real, "category_wise" text, "single_lane" real, "intermediate_lane" real, "double_lane" real, "multi_lane" real, "total" real ); Question: What is every category wise when the multi lane is 677? <|assistant|> SELECT "category_wise" FROM "width_wise_details_of_government_roads_a" WHERE "multi_lane"=677;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "width_wise_details_of_government_roads_a" ( "sl_no" real, "category_wise" text, "single_lane" real, "intermediate_lane" real, "double_lane" real, "multi_lane" real, "total" real ); Question: What is the highest value for multi lane if category wise is major district roads? <|assistant|> SELECT MAX("multi_lane") FROM "width_wise_details_of_government_roads_a" WHERE "category_wise"='Major district roads';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "width_wise_details_of_government_roads_a" ( "sl_no" real, "category_wise" text, "single_lane" real, "intermediate_lane" real, "double_lane" real, "multi_lane" real, "total" real ); Question: What is the least total? <|assistant|> SELECT MIN("total") FROM "width_wise_details_of_government_roads_a";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "nation" text, "te_be_career" text, "league_matches" real, "league_goals" real, "cup_matches" real, "cup_goals" real ); Question: What are the years of TeBe career for the players whose league matches are exactly 163? <|assistant|> SELECT "te_be_career" FROM "players" WHERE "league_matches"=163;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players" ( "player" text, "nation" text, "te_be_career" text, "league_matches" real, "league_goals" real, "cup_matches" real, "cup_goals" real ); Question: What is the number of league goals for players with 10 league matches and a TeBe career of 2003? <|assistant|> SELECT "league_goals" FROM "players" WHERE "league_matches"=10 AND "te_be_career"='2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: What is listed in eliminated when the finish is 15th voted out 9th jury Member Day 46? <|assistant|> SELECT "eliminated" FROM "table1_28742659_2" WHERE "finish"='15th Voted Out 9th Jury Member Day 46';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: What is listed in reward when the finish is listed at 13th voted out 6th jury Member Day 43? <|assistant|> SELECT "reward" FROM "table1_28742659_2" WHERE "finish"='13th Voted Out 6th Jury Member Day 43';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: What is the name of immunity when the finish is 3rd voted out day 9? <|assistant|> SELECT "immunity" FROM "table1_28742659_2" WHERE "finish"='3rd Voted Out Day 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: What is the vote number when immunity listed as David and reward is listed as none? <|assistant|> SELECT "vote" FROM "table1_28742659_2" WHERE "immunity"='David' AND "reward"='None';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); Question: what is the united fc wehre pifa colaba is maratha united? <|assistant|> SELECT "united_fc" FROM "division_two" WHERE "pifa_colaba_fc_u_17"='Maratha United';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); Question: what is the united fc where pifa colaba is sporting options? <|assistant|> SELECT "united_fc" FROM "division_two" WHERE "pifa_colaba_fc_u_17"='Sporting Options';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); Question: what is the dadar xi b where pifa colaba is sporting options? <|assistant|> SELECT "dadar_xi_b" FROM "division_two" WHERE "pifa_colaba_fc_u_17"='Sporting Options';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); Question: what is the athens xi where dada xi b is strikers fc? <|assistant|> SELECT "athens_xi" FROM "division_two" WHERE "dadar_xi_b"='Strikers FC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); Question: what is the dadar xi b where the good shepherd is sea liner fc? <|assistant|> SELECT "dadar_xi_b" FROM "division_two" WHERE "good_shepherd"='Sea Liner FC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); Question: What is the Record at School of Tom O'Brien's team? <|assistant|> SELECT "record_at_school" FROM "coaches" WHERE "head_coach"='Tom O''Brien';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); Question: How many values were used to express the years at school of the Maryland team? <|assistant|> SELECT COUNT("years_at_school") FROM "coaches" WHERE "team"='Maryland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); Question: What is the record in the atlantic coast conference for the Miami team? <|assistant|> SELECT "acc_record" FROM "coaches" WHERE "team"='Miami';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); Question: How many values reflect the overall record of the team coached by Frank Beamer? <|assistant|> SELECT COUNT("overall_record") FROM "coaches" WHERE "head_coach"='Frank Beamer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); Question: what type over school is Clemson? <|assistant|> SELECT "school_type" FROM "member_schools" WHERE "institution"='Clemson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); Question: what year did north carolina institution join the acc? <|assistant|> SELECT MAX("joined_acc") FROM "member_schools" WHERE "institution"='North Carolina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); Question: how many acc football titles have been won by the institution nicknamed tar heels? <|assistant|> SELECT "acc_football_titles" FROM "member_schools" WHERE "nickname"='Tar Heels';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); Question: what type of school is the institution nicknamed seminoles? <|assistant|> SELECT "school_type" FROM "member_schools" WHERE "nickname"='Seminoles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); Question: when did the institution at chapel hill, North carolina join acc? <|assistant|> SELECT "joined_acc" FROM "member_schools" WHERE "location"='Chapel Hill, North Carolina';<|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 were the supersonics record at game 2? <|assistant|> SELECT "record" FROM "game_log" WHERE "game"=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: What is the most amount of games played this season? <|assistant|> SELECT MAX("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 highest assists in game against Utah? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "team"='Utah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tbm_regions" ( "region_name" text, "state_name" text, "region_num" real, "page_count" real, "regional_page_num" text ); Question: In the North Central region, what are the regional page #'s? <|assistant|> SELECT "regional_page_num" FROM "tbm_regions" WHERE "region_name"='North Central';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tbm_regions" ( "region_name" text, "state_name" text, "region_num" real, "page_count" real, "regional_page_num" text ); Question: What states have a regional page # of 1, 5-7, 9-11, 13-15? <|assistant|> SELECT "state_name" FROM "tbm_regions" WHERE "regional_page_num"='1, 5-7, 9-11, 13-15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tbm_regions" ( "region_name" text, "state_name" text, "region_num" real, "page_count" real, "regional_page_num" text ); Question: Which region has a regional page # of 1-3, 5-7, 9-11, 13-15? <|assistant|> SELECT "region_name" FROM "tbm_regions" WHERE "regional_page_num"='1-3, 5-7, 9-11, 13-15';<|endoftext|>