text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: when the writer is Brad Kern, how many u.s viewers (in millions) had the episode? ### Context: CREATE TABLE table_21313327_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT us_viewers__millions_ FROM table_21313327_1 WHERE written_by = "Brad Kern" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 100 year for Carbon Dioxide? ### Context: CREATE TABLE table_21350772_2 (gas_name VARCHAR) [/INST] ### Response: SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = "Carbon dioxide" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 20 year for Nitrous Oxide? ### Context: CREATE TABLE table_21350772_2 (gas_name VARCHAR) [/INST] ### Response: SELECT 20 AS _yr FROM table_21350772_2 WHERE gas_name = "Nitrous oxide" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lifetime (years) for chemical formula ch 4? ### Context: CREATE TABLE table_21350772_2 (lifetime__years_ VARCHAR, chemical_formula VARCHAR) [/INST] ### Response: SELECT lifetime__years_ FROM table_21350772_2 WHERE chemical_formula = "CH 4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 20 year for Sulfur Hexafluoride? ### Context: CREATE TABLE table_21350772_2 (gas_name VARCHAR) [/INST] ### Response: SELECT 20 AS _yr FROM table_21350772_2 WHERE gas_name = "Sulfur hexafluoride" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the traditional form for 永城市? ### Context: CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR) [/INST] ### Response: SELECT traditional FROM table_2135222_2 WHERE simplified = "永城市" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many figures are there for density for Yucheng County? ### Context: CREATE TABLE table_2135222_2 (density VARCHAR, english_name VARCHAR) [/INST] ### Response: SELECT COUNT(density) FROM table_2135222_2 WHERE english_name = "Yucheng County" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the traditional form for 宁陵县? ### Context: CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR) [/INST] ### Response: SELECT traditional FROM table_2135222_2 WHERE simplified = "宁陵县" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the traditional with density of 820? ### Context: CREATE TABLE table_2135222_2 (traditional VARCHAR, density VARCHAR) [/INST] ### Response: SELECT traditional FROM table_2135222_2 WHERE density = 820 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Pinyin for the simplified 虞城县? ### Context: CREATE TABLE table_2135222_2 (pinyin VARCHAR, simplified VARCHAR) [/INST] ### Response: SELECT pinyin FROM table_2135222_2 WHERE simplified = "虞城县" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many areas have a population of 703379? ### Context: CREATE TABLE table_2135222_2 (area VARCHAR, population VARCHAR) [/INST] ### Response: SELECT COUNT(area) FROM table_2135222_2 WHERE population = 703379 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the episode summary for torae carr ### Context: CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Torae Carr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the episode summary for travis brown ### Context: CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Travis Brown" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the least episode for donnie klang ### Context: CREATE TABLE table_2140071_12 (episode INTEGER, coach VARCHAR) [/INST] ### Response: SELECT MIN(episode) FROM table_2140071_12 WHERE coach = "Donnie Klang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the episode for travis brown ### Context: CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT episode FROM table_2140071_12 WHERE coach = "Travis Brown" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many episodes have a premier date of july 24, 2006 ### Context: CREATE TABLE table_2140071_7 (external_link VARCHAR, premier_date VARCHAR) [/INST] ### Response: SELECT COUNT(external_link) FROM table_2140071_7 WHERE premier_date = "July 24, 2006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the newest season? ### Context: CREATE TABLE table_2140071_7 (season INTEGER) [/INST] ### Response: SELECT MAX(season) FROM table_2140071_7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many episodes have Valerie? ### Context: CREATE TABLE table_2140071_7 (episode VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT COUNT(episode) AS Summary FROM table_2140071_7 WHERE coach = "Valerie" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What the summary of episode 15? ### Context: CREATE TABLE table_2140071_7 (episode VARCHAR) [/INST] ### Response: SELECT episode AS Summary FROM table_2140071_7 WHERE episode = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Maximum episode premiered March 8, 2008? ### Context: CREATE TABLE table_2140071_8 (episode INTEGER, premier_date VARCHAR) [/INST] ### Response: SELECT MAX(episode) FROM table_2140071_8 WHERE premier_date = "March 8, 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the coach for episode 15? ### Context: CREATE TABLE table_2140071_8 (coach VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT coach FROM table_2140071_8 WHERE episode = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What coach premiered February 16, 2008 later than episode 21.0? ### Context: CREATE TABLE table_2140071_8 (coach VARCHAR, premier_date VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT coach FROM table_2140071_8 WHERE premier_date = "February 16, 2008" AND episode > 21.0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Cici Kelley's minimum season? ### Context: CREATE TABLE table_2140071_8 (season INTEGER, coach VARCHAR) [/INST] ### Response: SELECT MIN(season) FROM table_2140071_8 WHERE coach = "Cici Kelley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many seasons feature Rob Masek? ### Context: CREATE TABLE table_2140071_8 (season VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_2140071_8 WHERE coach = "Rob Masek" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the stadium that had the regular season game? ### Context: CREATE TABLE table_21436373_4 (stadium VARCHAR, type_of_record VARCHAR) [/INST] ### Response: SELECT stadium FROM table_21436373_4 WHERE type_of_record = "Regular season game" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the y = 2008 when y = 2011 is a = 3? ### Context: CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, a VARCHAR, _2011 VARCHAR) [/INST] ### Response: SELECT y_ = _2008 FROM table_214479_8 WHERE y_ = _2011 = a = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)? ### Context: CREATE TABLE table_214479_8 (y_ VARCHAR, _2011 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR) [/INST] ### Response: SELECT y_ = _2011 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the y = 2008 when the expression is easter day (julian calendar)? ### Context: CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, expression VARCHAR) [/INST] ### Response: SELECT y_ = _2008 FROM table_214479_8 WHERE expression = "Easter Day (Julian calendar)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)? ### Context: CREATE TABLE table_214479_8 (y_ VARCHAR, _2009 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR) [/INST] ### Response: SELECT y_ = _2009 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the most rr1 pts for 7 ranking ### Context: CREATE TABLE table_21471897_2 (rr1_pts INTEGER, ranking VARCHAR) [/INST] ### Response: SELECT MAX(rr1_pts) FROM table_21471897_2 WHERE ranking = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the races for the prada challenge ### Context: CREATE TABLE table_21471897_2 (races VARCHAR, team_name VARCHAR) [/INST] ### Response: SELECT races FROM table_21471897_2 WHERE team_name = "Prada Challenge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the min total pts for team dennis conner ### Context: CREATE TABLE table_21471897_2 (total_pts INTEGER, team_name VARCHAR) [/INST] ### Response: SELECT MIN(total_pts) FROM table_21471897_2 WHERE team_name = "Team Dennis Conner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the ranking for rr2 pts being 8 ### Context: CREATE TABLE table_21471897_2 (ranking VARCHAR, rr2_pts VARCHAR) [/INST] ### Response: SELECT ranking FROM table_21471897_2 WHERE rr2_pts = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total number of rr2 pts for won being 11 ### Context: CREATE TABLE table_21471897_2 (rr3_pts VARCHAR, won VARCHAR) [/INST] ### Response: SELECT COUNT(rr3_pts) FROM table_21471897_2 WHERE won = 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage is listed in column r1b1a2 (r-m269) for the 77.8% r1b1c (r-v88)? ### Context: CREATE TABLE table_21481509_4 (r1b1a2__r_m269_ VARCHAR, r1b1c__r_v88_ VARCHAR) [/INST] ### Response: SELECT r1b1a2__r_m269_ FROM table_21481509_4 WHERE r1b1c__r_v88_ = "77.8%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage? ### Context: CREATE TABLE table_21481509_4 (r1b1c__r_v88_ VARCHAR, total_percentage VARCHAR) [/INST] ### Response: SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = "4.5%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many n are listed for 0.6% r1b1a2 (r-m269)? ### Context: CREATE TABLE table_21481509_4 (COUnT VARCHAR, r1b1a2__r_m269_ VARCHAR) [/INST] ### Response: SELECT COUnT AS n FROM table_21481509_4 WHERE r1b1a2__r_m269_ = "0.6%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many n are listed for berbers from siwa? ### Context: CREATE TABLE table_21481509_4 (COUnT VARCHAR, population VARCHAR) [/INST] ### Response: SELECT COUnT AS n FROM table_21481509_4 WHERE population = "Berbers from Siwa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest n value for 55.6% r1b1c4 (r-v69)? ### Context: CREATE TABLE table_21481509_4 (n INTEGER, r1b1c4__r_v69_ VARCHAR) [/INST] ### Response: SELECT MAX(n) FROM table_21481509_4 WHERE r1b1c4__r_v69_ = "55.6%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the seat of the RCM in the county that has a density of 9.7? ### Context: CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR) [/INST] ### Response: SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the seat of the county that has a density of 14.1? ### Context: CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR) [/INST] ### Response: SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "14.1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the land area for the RCM that has a population of 18847? ### Context: CREATE TABLE table_214920_1 (land_area VARCHAR, population_canada_2011_census VARCHAR) [/INST] ### Response: SELECT land_area FROM table_214920_1 WHERE population_canada_2011_census = 18847 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the RCM that has a density of 9.7? ### Context: CREATE TABLE table_214920_1 (regional_county_municipality__rcm_ VARCHAR, density__pop_per_km2_ VARCHAR) [/INST] ### Response: SELECT regional_county_municipality__rcm_ FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the land area of the RCM having a density of 21.1? ### Context: CREATE TABLE table_214920_1 (land_area VARCHAR, density__pop_per_km2_ VARCHAR) [/INST] ### Response: SELECT land_area FROM table_214920_1 WHERE density__pop_per_km2_ = "21.1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the withdrawal rate for the school district with a graduation rate of 89.3%? ### Context: CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, graduation_rate__2011_12_ VARCHAR) [/INST] ### Response: SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE graduation_rate__2011_12_ = "89.3%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where is the headquarter located for the Annapolis Valley Regional School Board? ### Context: CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR) [/INST] ### Response: SELECT headquarters FROM table_21514460_1 WHERE school_district = "Annapolis Valley Regional School Board" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is their withdrawal rate for the school district with headquarters located in Truro? ### Context: CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, headquarters VARCHAR) [/INST] ### Response: SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE headquarters = "Truro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the graduation rate for the school district with headquarters located in Sydney? ### Context: CREATE TABLE table_21514460_1 (graduation_rate__2011_12_ VARCHAR, headquarters VARCHAR) [/INST] ### Response: SELECT graduation_rate__2011_12_ FROM table_21514460_1 WHERE headquarters = "Sydney" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the surface for events held in 1983? ### Context: CREATE TABLE table_2151643_3 (surface VARCHAR, year VARCHAR) [/INST] ### Response: SELECT surface FROM table_2151643_3 WHERE year = 1983 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface? ### Context: CREATE TABLE table_2151643_3 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT COUNT(opponents) FROM table_2151643_3 WHERE outcome = "Winner" AND partner = "John Lloyd" AND surface = "Clay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the opponents that led to an outcome of winner on a grass surface? ### Context: CREATE TABLE table_2151643_3 (opponents VARCHAR, outcome VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT opponents FROM table_2151643_3 WHERE outcome = "Winner" AND surface = "Grass" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many times did episode 6 originally air? ### Context: CREATE TABLE table_21550897_1 (original_air_date VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT COUNT(original_air_date) FROM table_21550897_1 WHERE _number = 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the production code for the episode that had 9.18 million viewers (U.S.)? ### Context: CREATE TABLE table_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = "9.18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What episode number was directed by Craig Ross, Jr. ### Context: CREATE TABLE table_21550897_1 (_number VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT _number FROM table_21550897_1 WHERE directed_by = "Craig Ross, Jr." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What episode had 10.14 million viewers (U.S.)? ### Context: CREATE TABLE table_21550897_1 (_number INTEGER, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = "10.14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who wrote the episode with the production code 519? ### Context: CREATE TABLE table_21550897_1 (written_by VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT written_by FROM table_21550897_1 WHERE production_code = 519 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who are all successors when reason for change is died May 12, 1964? ### Context: CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR) [/INST] ### Response: SELECT successor FROM table_2159506_4 WHERE reason_for_change = "Died May 12, 1964" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every district for reason for change is died August 9, 1964? ### Context: CREATE TABLE table_2159506_4 (district VARCHAR, reason_for_change VARCHAR) [/INST] ### Response: SELECT district FROM table_2159506_4 WHERE reason_for_change = "Died August 9, 1964" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest division number? ### Context: CREATE TABLE table_21602734_1 (division INTEGER) [/INST] ### Response: SELECT MIN(division) FROM table_21602734_1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the regular season name where they did not qualify for the playoffs in 2009? ### Context: CREATE TABLE table_21602734_1 (reg_season VARCHAR, playoffs VARCHAR, year VARCHAR) [/INST] ### Response: SELECT reg_season FROM table_21602734_1 WHERE playoffs = "Did not qualify" AND year = 2009 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What league was involved in 2010? ### Context: CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR) [/INST] ### Response: SELECT league FROM table_21602734_1 WHERE year = 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of divisions mentioned? ### Context: CREATE TABLE table_21602734_1 (division INTEGER) [/INST] ### Response: SELECT MAX(division) FROM table_21602734_1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What league was involved in 2008? ### Context: CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR) [/INST] ### Response: SELECT league FROM table_21602734_1 WHERE year = 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which administrative division had a population of 2011 according to the siak database of 3,672,994? ### Context: CREATE TABLE table_21734764_1 (administrative_division VARCHAR, population_2011_siak_database VARCHAR) [/INST] ### Response: SELECT administrative_division FROM table_21734764_1 WHERE population_2011_siak_database = "3,672,994" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the population density of bandung regency? ### Context: CREATE TABLE table_21734764_1 (population_density___km²_2010_ VARCHAR, administrative_division VARCHAR) [/INST] ### Response: SELECT population_density___km²_2010_ FROM table_21734764_1 WHERE administrative_division = "Bandung Regency" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which administrative division had a 2011 population of 606,699 according to the siak database? ### Context: CREATE TABLE table_21734764_1 (administrative_division VARCHAR, population_2011_siak_database VARCHAR) [/INST] ### Response: SELECT administrative_division FROM table_21734764_1 WHERE population_2011_siak_database = "606,699" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the area of cimahi city? ### Context: CREATE TABLE table_21734764_1 (area__km²__2005 VARCHAR, administrative_division VARCHAR) [/INST] ### Response: SELECT area__km²__2005 FROM table_21734764_1 WHERE administrative_division = "Cimahi City" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the population density of the administrative division with a population in 2010 of 264170 according to the census? ### Context: CREATE TABLE table_21734764_1 (population_density___km²_2010_ VARCHAR, population_2010_census VARCHAR) [/INST] ### Response: SELECT population_density___km²_2010_ FROM table_21734764_1 WHERE population_2010_census = 264170 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the installation date in El Paso, Texas? ### Context: CREATE TABLE table_21821014_1 (installation_date VARCHAR, location VARCHAR) [/INST] ### Response: SELECT installation_date FROM table_21821014_1 WHERE location = "El Paso, Texas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the chapter for Illinois Wesleyan? ### Context: CREATE TABLE table_21821014_1 (chapter VARCHAR, institution VARCHAR) [/INST] ### Response: SELECT chapter FROM table_21821014_1 WHERE institution = "Illinois Wesleyan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What does the inactive state for University of Texas, El Paso? ### Context: CREATE TABLE table_21821014_1 (inactive VARCHAR, institution VARCHAR) [/INST] ### Response: SELECT inactive FROM table_21821014_1 WHERE institution = "University of Texas, El Paso" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the installation date for the Delta Chapter? ### Context: CREATE TABLE table_21821014_1 (installation_date VARCHAR, chapter VARCHAR) [/INST] ### Response: SELECT installation_date FROM table_21821014_1 WHERE chapter = "Delta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest when pohang steelyard is the stadium? ### Context: CREATE TABLE table_21824695_8 (lowest VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT lowest FROM table_21824695_8 WHERE stadium = "Pohang Steelyard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many match played have the highest as 32250? ### Context: CREATE TABLE table_21824695_8 (match_played VARCHAR, highest VARCHAR) [/INST] ### Response: SELECT match_played FROM table_21824695_8 WHERE highest = 32250 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has a match played of 10 4? ### Context: CREATE TABLE table_21824695_8 (team VARCHAR, match_played VARCHAR) [/INST] ### Response: SELECT team FROM table_21824695_8 WHERE match_played = "10 4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest when pohang steelers is the team? ### Context: CREATE TABLE table_21824695_8 (highest VARCHAR, team VARCHAR) [/INST] ### Response: SELECT highest FROM table_21824695_8 WHERE team = "Pohang Steelers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has 7757 as the average? ### Context: CREATE TABLE table_21824695_8 (team VARCHAR, average VARCHAR) [/INST] ### Response: SELECT team FROM table_21824695_8 WHERE average = 7757 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What s the episode number in the season that was written by Nancy Oliver? ### Context: CREATE TABLE table_2182654_6 (no_in_season INTEGER, written_by VARCHAR) [/INST] ### Response: SELECT MAX(no_in_season) FROM table_2182654_6 WHERE written_by = "Nancy Oliver" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was episode 10 in the season originally aired? ### Context: CREATE TABLE table_2182654_6 (original_air_date VARCHAR, no_in_season VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_2182654_6 WHERE no_in_season = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the name of the episode that was directed by Mary Harron? ### Context: CREATE TABLE table_2182654_6 (title VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT title FROM table_2182654_6 WHERE directed_by = "Mary Harron" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the average grade for şımarık tarkan ### Context: CREATE TABLE table_21829580_1 (average_grade VARCHAR, song VARCHAR) [/INST] ### Response: SELECT average_grade FROM table_21829580_1 WHERE song = "Şımarık Tarkan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the classification for 9, 9, 8, 9 ### Context: CREATE TABLE table_21829580_1 (classification__judges_ VARCHAR, detailed_grades VARCHAR) [/INST] ### Response: SELECT classification__judges_ FROM table_21829580_1 WHERE detailed_grades = "9, 9, 8, 9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the poles is #08 Miller racing? ### Context: CREATE TABLE table_2190919_1 (poles VARCHAR, team_s_ VARCHAR) [/INST] ### Response: SELECT poles FROM table_2190919_1 WHERE team_s_ = "#08 Miller Racing" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the most recent year where the average start is 8.5? ### Context: CREATE TABLE table_2190919_1 (year INTEGER, avg_start VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_2190919_1 WHERE avg_start = "8.5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the racing teams for which the average finish is 23.3? ### Context: CREATE TABLE table_2190919_1 (team_s_ VARCHAR, avg_finish VARCHAR) [/INST] ### Response: SELECT team_s_ FROM table_2190919_1 WHERE avg_finish = "23.3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What racing team/s had the 92nd position? ### Context: CREATE TABLE table_2190919_1 (team_s_ VARCHAR, position VARCHAR) [/INST] ### Response: SELECT team_s_ FROM table_2190919_1 WHERE position = "92nd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many teams finished in the top team with an average finish of 23.3? ### Context: CREATE TABLE table_2190919_1 (top_10 VARCHAR, avg_finish VARCHAR) [/INST] ### Response: SELECT COUNT(top_10) FROM table_2190919_1 WHERE avg_finish = "23.3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many times was the opponent country India? ### Context: CREATE TABLE table_21907770_4 (country VARCHAR, versus VARCHAR) [/INST] ### Response: SELECT COUNT(country) FROM table_21907770_4 WHERE versus = "India" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the dates where the versus team is South Africa? ### Context: CREATE TABLE table_21907770_4 (date VARCHAR, versus VARCHAR) [/INST] ### Response: SELECT date FROM table_21907770_4 WHERE versus = "South Africa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What championship was played in 1981? ### Context: CREATE TABLE table_2201541_3 (championship__titles_finals_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT championship__titles_finals_ FROM table_2201541_3 WHERE year = 1981 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many different outcomes did the final with Paul McNamee as a partner have? ### Context: CREATE TABLE table_2201541_3 (outcome VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT COUNT(outcome) FROM table_2201541_3 WHERE partner = "Paul McNamee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many different partners were played with during French Open (0/1)? ### Context: CREATE TABLE table_2201541_3 (partner VARCHAR, championship__titles_finals_ VARCHAR) [/INST] ### Response: SELECT COUNT(partner) FROM table_2201541_3 WHERE championship__titles_finals_ = "French Open (0/1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the episode originally aired that was directed by James Widdoes and the production code is 320? ### Context: CREATE TABLE table_2221374_3 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_2221374_3 WHERE directed_by = "James Widdoes" AND production_code = 320 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the production code for episode 3 of the season? ### Context: CREATE TABLE table_2221374_3 (production_code VARCHAR, no_in_season VARCHAR) [/INST] ### Response: SELECT production_code FROM table_2221374_3 WHERE no_in_season = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which orchestra has a recording year of 1951? ### Context: CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR) [/INST] ### Response: SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1951 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where is the orchestra when the year of recording is 1934? ### Context: CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR) [/INST] ### Response: SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1934 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the former codes for merged into panama ( pa , pan , 591 ) ### Context: CREATE TABLE table_222666_1 (former_codes VARCHAR, new_country_names_and_codes VARCHAR) [/INST] ### Response: SELECT former_codes FROM table_222666_1 WHERE new_country_names_and_codes = "Merged into Panama ( PA , PAN , 591 )" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total number for period of validity for upper volta ### Context: CREATE TABLE table_222666_1 (period_of_validity VARCHAR, former_country_name VARCHAR) [/INST] ### Response: SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = "Upper Volta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner of seat no 4 for the election on January 25, 1967 ### Context: CREATE TABLE table_2231241_1 (seat_no_4 VARCHAR, election VARCHAR) [/INST] ### Response: SELECT seat_no_4 FROM table_2231241_1 WHERE election = "January 25, 1967" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is seat no 1 when the mayor was john j. seguier ### Context: CREATE TABLE table_2231241_1 (seat_no_1 VARCHAR, mayor VARCHAR) [/INST] ### Response: SELECT seat_no_1 FROM table_2231241_1 WHERE mayor = "John J. Seguier" </s>