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: What is the pinyin for the English name Wuping County? ### Context: CREATE TABLE table_1204998_2 (pinyin VARCHAR, english_name VARCHAR) [/INST] ### Response: SELECT pinyin FROM table_1204998_2 WHERE english_name = "Wuping 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 area of the English name Shanghang County? ### Context: CREATE TABLE table_1204998_2 (area VARCHAR, english_name VARCHAR) [/INST] ### Response: SELECT area FROM table_1204998_2 WHERE english_name = "Shanghang 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: Which pinyin have a population of 374047? ### Context: CREATE TABLE table_1204998_2 (pinyin VARCHAR, population VARCHAR) [/INST] ### Response: SELECT pinyin FROM table_1204998_2 WHERE population = 374047 </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 NHL teams are there in the Phoenix, Arizona area? ### Context: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, metropolitan_area VARCHAR) [/INST] ### Response: SELECT COUNT(nhl_team_s_) FROM table_1205598_1 WHERE metropolitan_area = "Phoenix, Arizona" </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 media market ranking for the Blackhawks? ### Context: CREATE TABLE table_1205598_1 (media_market_ranking VARCHAR, nhl_team_s_ VARCHAR) [/INST] ### Response: SELECT COUNT(media_market_ranking) FROM table_1205598_1 WHERE nhl_team_s_ = "Blackhawks" </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 the name of the NHL team that is in the same market as the NBA team, Nuggets? ### Context: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, nba_team_s_ VARCHAR) [/INST] ### Response: SELECT nhl_team_s_ FROM table_1205598_1 WHERE nba_team_s_ = "Nuggets" </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 NHL team in the media market ranking number 7? ### Context: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, media_market_ranking VARCHAR) [/INST] ### Response: SELECT nhl_team_s_ FROM table_1205598_1 WHERE media_market_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: How many netflow version are there when the vendor and type is enterasys switches? ### Context: CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR) [/INST] ### Response: SELECT COUNT(netflow_version) FROM table_1206114_2 WHERE vendor_and_type = "Enterasys Switches" </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 comments when the vendor and type is alcatel-lucent routers? ### Context: CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR) [/INST] ### Response: SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Alcatel-Lucent routers" </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 comments when vendor and type is enterasys switches? ### Context: CREATE TABLE table_1206114_2 (comments VARCHAR, vendor_and_type VARCHAR) [/INST] ### Response: SELECT comments FROM table_1206114_2 WHERE vendor_and_type = "Enterasys Switches" </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 netflow version when vendor and type is pc and servers? ### Context: CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR) [/INST] ### Response: SELECT netflow_version FROM table_1206114_2 WHERE vendor_and_type = "PC and Servers" </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 comments when the implementation is software running on central processor module? ### Context: CREATE TABLE table_1206114_2 (comments VARCHAR, implementation VARCHAR) [/INST] ### Response: SELECT comments FROM table_1206114_2 WHERE implementation = "Software running on Central Processor Module" </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 implementation when the netflow version is v5, v8, v9, ipfix? ### Context: CREATE TABLE table_1206114_2 (implementation VARCHAR, netflow_version VARCHAR) [/INST] ### Response: SELECT implementation FROM table_1206114_2 WHERE netflow_version = "v5, v8, v9, IPFIX" </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 minimum for prohibition? ### Context: CREATE TABLE table_120778_1 (for_prohibition INTEGER) [/INST] ### Response: SELECT MIN(for_prohibition) FROM table_120778_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 number of jurisdiction for 57.3 percent? ### Context: CREATE TABLE table_120778_1 (jurisdiction VARCHAR, percent_for VARCHAR) [/INST] ### Response: SELECT COUNT(jurisdiction) FROM table_120778_1 WHERE percent_for = "57.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: Name the max for prohibition. ### Context: CREATE TABLE table_120778_1 (for_prohibition INTEGER) [/INST] ### Response: SELECT MAX(for_prohibition) FROM table_120778_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 percent for when against prohibition is 2978? ### Context: CREATE TABLE table_120778_1 (percent_for VARCHAR, against_prohibition VARCHAR) [/INST] ### Response: SELECT percent_for FROM table_120778_1 WHERE against_prohibition = 2978 </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 percent for in manitoba? ### Context: CREATE TABLE table_120778_1 (percent_for VARCHAR, jurisdiction VARCHAR) [/INST] ### Response: SELECT percent_for FROM table_120778_1 WHERE jurisdiction = "Manitoba" </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 trains leave from puri? ### Context: CREATE TABLE table_12095519_1 (train_name VARCHAR, origin VARCHAR) [/INST] ### Response: SELECT COUNT(train_name) FROM table_12095519_1 WHERE origin = "Puri" </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 train number is heading to amritsar? ### Context: CREATE TABLE table_12095519_1 (train_no VARCHAR, destination VARCHAR) [/INST] ### Response: SELECT train_no FROM table_12095519_1 WHERE destination = "Amritsar" </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 often does a train leave sealdah? ### Context: CREATE TABLE table_12095519_1 (frequency VARCHAR, origin VARCHAR) [/INST] ### Response: SELECT frequency FROM table_12095519_1 WHERE origin = "Sealdah" </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 does the bg express train end? ### Context: CREATE TABLE table_12095519_1 (destination VARCHAR, train_name VARCHAR) [/INST] ### Response: SELECT destination FROM table_12095519_1 WHERE train_name = "BG Express" </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 name of train number 15647/48? ### Context: CREATE TABLE table_12095519_1 (train_name VARCHAR, train_no VARCHAR) [/INST] ### Response: SELECT train_name FROM table_12095519_1 WHERE train_no = "15647/48" </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 number of nationality in 1992? ### Context: CREATE TABLE table_12086015_7 (nationality VARCHAR, year_s_ VARCHAR) [/INST] ### Response: SELECT COUNT(nationality) FROM table_12086015_7 WHERE year_s_ = "1992" </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 the academic & University affairs when the Human resources & operations is N. Charles Hamilton? ### Context: CREATE TABLE table_12113818_1 (academic_ VARCHAR, _university_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR) [/INST] ### Response: SELECT academic_ & _university_affairs FROM table_12113818_1 WHERE human_resources_ & _operations = "N. Charles Hamilton" </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 year was communications and corporate affairs held by Jeff Rotman? ### Context: CREATE TABLE table_12113818_1 (year VARCHAR, communications_and_corporate_affairs VARCHAR) [/INST] ### Response: SELECT year FROM table_12113818_1 WHERE communications_and_corporate_affairs = "Jeff Rotman" </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 built data for Knocklayd rebuild? ### Context: CREATE TABLE table_12113888_1 (built VARCHAR, name_as_rebuilt VARCHAR) [/INST] ### Response: SELECT built FROM table_12113888_1 WHERE name_as_rebuilt = "Knocklayd" </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 does the rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954? ### Context: CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR, scrapped_sold VARCHAR) [/INST] ### Response: SELECT COUNT(number) FROM table_12113888_1 WHERE rebuilt = "Cannot handle non-empty timestamp argument! 1929" AND scrapped_sold = "Cannot handle non-empty timestamp argument! 1954" </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 built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947? ### Context: CREATE TABLE table_12113888_1 (built VARCHAR, scrapped_sold VARCHAR) [/INST] ### Response: SELECT built FROM table_12113888_1 WHERE scrapped_sold = "Cannot handle non-empty timestamp argument! 1947" </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 rebuilt data cannot handle non-empty timestamp argument! 1934? ### Context: CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR) [/INST] ### Response: SELECT COUNT(number) FROM table_12113888_1 WHERE rebuilt = "Cannot handle non-empty timestamp argument! 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: What is the built data for number 34? ### Context: CREATE TABLE table_12113888_1 (built VARCHAR, number VARCHAR) [/INST] ### Response: SELECT built FROM table_12113888_1 WHERE number = 34 </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 listed? ### Context: CREATE TABLE table_12113888_1 (number INTEGER) [/INST] ### Response: SELECT MAX(number) FROM table_12113888_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: Who won the womens singles when Marc Zwiebler won the men's singles? ### Context: CREATE TABLE table_12121208_1 (womens_singles VARCHAR, mens_singles VARCHAR) [/INST] ### Response: SELECT womens_singles FROM table_12121208_1 WHERE mens_singles = "Marc Zwiebler" </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: The 1.6 Duratec model/engine has how many torque formulas? ### Context: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR) [/INST] ### Response: SELECT COUNT(torque__nm__rpm) FROM table_1212189_1 WHERE model_engine = "1.6 Duratec" </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: For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power? ### Context: CREATE TABLE table_1212189_1 (power_rpm VARCHAR, torque__nm__rpm VARCHAR) [/INST] ### Response: SELECT power_rpm FROM table_1212189_1 WHERE torque__nm__rpm = "N·m (lb·ft)/*N·m (lb·ft) @1750" </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: For the model/engine of 1.8 Duratec HE, what is the torque? ### Context: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR) [/INST] ### Response: SELECT torque__nm__rpm FROM table_1212189_1 WHERE model_engine = "1.8 Duratec HE" </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 capacities are possible for the 1.6 Duratec model/engine? ### Context: CREATE TABLE table_1212189_1 (capacity VARCHAR, model_engine VARCHAR) [/INST] ### Response: SELECT COUNT(capacity) FROM table_1212189_1 WHERE model_engine = "1.6 Duratec" </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 torque formula for the model/engine which has 1,753 cc capacity? ### Context: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT torque__nm__rpm FROM table_1212189_1 WHERE capacity = "1,753 cc" </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 torque formula for the 1.6 Duratec ti-vct model/engine? ### Context: CREATE TABLE table_1212189_1 (torque__nm__rpm VARCHAR, model_engine VARCHAR) [/INST] ### Response: SELECT torque__nm__rpm FROM table_1212189_1 WHERE model_engine = "1.6 Duratec Ti-VCT" </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 date of birth with end of term being 2april1969 ### Context: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "2April1969" </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 the the president with date of inauguration being 4june1979 ### Context: CREATE TABLE table_12134383_1 (president VARCHAR, date_of_inauguration VARCHAR) [/INST] ### Response: SELECT president FROM table_12134383_1 WHERE date_of_inauguration = "4June1979" </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 president with date of inauguration being 4june1979 ### Context: CREATE TABLE table_12134383_1 (president VARCHAR, date_of_inauguration VARCHAR) [/INST] ### Response: SELECT COUNT(president) FROM table_12134383_1 WHERE date_of_inauguration = "4June1979" </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 date of birth with end of term being 5july1978 ### Context: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "5July1978" </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 date of birth with # being 2 ### Context: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_12134383_1 WHERE _number = 2 </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 end of term with age at inauguration being 64-066 64years, 66days ### Context: CREATE TABLE table_12134383_1 (end_of_term VARCHAR, age_at_inauguration VARCHAR) [/INST] ### Response: SELECT COUNT(end_of_term) FROM table_12134383_1 WHERE age_at_inauguration = "64-066 64years, 66days" </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 winning pitcher on june 25? ### Context: CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_pitcher FROM table_12125069_2 WHERE date = "June 25" </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 games were on May 20? ### Context: CREATE TABLE table_12125069_2 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_12125069_2 WHERE date = "May 20" </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 the losing pitcher when the winning pitcher is roy oswalt? ### Context: CREATE TABLE table_12125069_2 (losing_pitcher VARCHAR, winning_pitcher VARCHAR) [/INST] ### Response: SELECT losing_pitcher FROM table_12125069_2 WHERE winning_pitcher = "Roy Oswalt" </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 the winning pitcher when attendance is 38109? ### Context: CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT winning_pitcher FROM table_12125069_2 WHERE attendance = 38109 </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 NHL teams does Terry French play for? ### Context: CREATE TABLE table_1213511_2 (nhl_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(nhl_team) FROM table_1213511_2 WHERE player = "Terry French" </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's the player for the New York Rangers? ### Context: CREATE TABLE table_1213511_2 (player VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT player FROM table_1213511_2 WHERE nhl_team = "New York Rangers" </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 positions do the players of Chicago Black Hawks play in? ### Context: CREATE TABLE table_1213511_2 (position VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT COUNT(position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks" </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 nationality of the player from Buffalo Sabres? ### Context: CREATE TABLE table_1213511_2 (nationality VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_1213511_2 WHERE nhl_team = "Buffalo Sabres" </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 position does the player from Peterborough Petes (OHA) play on? ### Context: CREATE TABLE table_1213511_2 (position VARCHAR, college_junior_club_team VARCHAR) [/INST] ### Response: SELECT position FROM table_1213511_2 WHERE college_junior_club_team = "Peterborough Petes (OHA)" </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 Dave Fortier's pick number? ### Context: CREATE TABLE table_1213511_2 (pick__number VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_1213511_2 WHERE player = "Dave Fortier" </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 team does George Hulme play for? ### Context: CREATE TABLE table_1213511_4 (college_junior_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team FROM table_1213511_4 WHERE player = "George Hulme" </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 position does Neil Komadoski play? ### Context: CREATE TABLE table_1213511_4 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_1213511_4 WHERE player = "Neil Komadoski" </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 team player mike mcniven played for? ### Context: CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team FROM table_1213511_5 WHERE player = "Mike McNiven" </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 college has nhl team chicago black hawks? ### Context: CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT college_junior_club_team FROM table_1213511_5 WHERE nhl_team = "Chicago Black Hawks" </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 the player with the nationality of canada and pick # is 65? ### Context: CREATE TABLE table_1213511_5 (player VARCHAR, nationality VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT player FROM table_1213511_5 WHERE nationality = "Canada" AND pick__number = 65 </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 did Bob Peppler play for? ### Context: CREATE TABLE table_1213511_3 (nhl_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(nhl_team) FROM table_1213511_3 WHERE player = "Bob Peppler" </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 position listed for the team the Philadelphia Flyers? ### Context: CREATE TABLE table_1213511_3 (position VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT position FROM table_1213511_3 WHERE nhl_team = "Philadelphia Flyers" </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 nationalities are listed for the player Glen Irwin? ### Context: CREATE TABLE table_1213511_3 (nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(nationality) FROM table_1213511_3 WHERE player = "Glen Irwin" </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 players have the position of centre and play for the nhl team new york rangers ### Context: CREATE TABLE table_1213511_7 (player VARCHAR, position VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT player FROM table_1213511_7 WHERE position = "Centre" AND nhl_team = "New York Rangers" </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 nhl team has a college/junior/club team named university of notre dame (ncaa) ### Context: CREATE TABLE table_1213511_7 (nhl_team VARCHAR, college_junior_club_team VARCHAR) [/INST] ### Response: SELECT nhl_team FROM table_1213511_7 WHERE college_junior_club_team = "University of Notre Dame (NCAA)" </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 all the position where player is al simmons ### Context: CREATE TABLE table_1213511_7 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_1213511_7 WHERE player = "Al Simmons" </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 nationality is pick # 89 ### Context: CREATE TABLE table_1213511_7 (nationality VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT nationality FROM table_1213511_7 WHERE pick__number = 89 </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 college/junior/club teams nationality is canada and nhl team is minnesota north stars ### Context: CREATE TABLE table_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = "Canada" AND nhl_team = "Minnesota North Stars" </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 total number of pick # where nhl team is philadelphia flyers ### Context: CREATE TABLE table_1213511_7 (pick__number VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_1213511_7 WHERE nhl_team = "Philadelphia Flyers" </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 nationality of the player from the Detroit Red Wings? ### Context: CREATE TABLE table_1213511_6 (nationality VARCHAR, nhl_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_1213511_6 WHERE nhl_team = "Detroit Red Wings" </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 position does Jim Johnston play? ### Context: CREATE TABLE table_1213511_6 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_1213511_6 WHERE player = "Jim Johnston" </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 does Pierre Duguay play for? ### Context: CREATE TABLE table_1213511_6 (nhl_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT nhl_team FROM table_1213511_6 WHERE player = "Pierre Duguay" </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 country does the goaltender come from? ### Context: CREATE TABLE table_1213511_6 (nationality VARCHAR, position VARCHAR) [/INST] ### Response: SELECT nationality FROM table_1213511_6 WHERE position = "Goaltender" </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 the writer where viewers is 5.16m ### Context: CREATE TABLE table_12148018_2 (writer VARCHAR, viewers VARCHAR) [/INST] ### Response: SELECT writer FROM table_12148018_2 WHERE viewers = "5.16m" </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: For which league is the open cup the quarter finals ### Context: CREATE TABLE table_1214035_1 (league VARCHAR, open_cup VARCHAR) [/INST] ### Response: SELECT league FROM table_1214035_1 WHERE open_cup = "Quarter Finals" </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 open cups where played in 2002 ### Context: CREATE TABLE table_1214035_1 (open_cup VARCHAR, year VARCHAR) [/INST] ### Response: SELECT open_cup FROM table_1214035_1 WHERE year = 2002 </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 leagues includes division 3 ### Context: CREATE TABLE table_1214035_1 (league VARCHAR, division VARCHAR) [/INST] ### Response: SELECT league FROM table_1214035_1 WHERE division = "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 was the result of the playoffs when the regular season was 7th, southeast ### Context: CREATE TABLE table_1214035_1 (playoffs VARCHAR, regular_season VARCHAR) [/INST] ### Response: SELECT playoffs FROM table_1214035_1 WHERE regular_season = "7th, Southeast" </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 original air date of the episode with production code 2T6719? ### Context: CREATE TABLE table_12159115_2 (original_air_date VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_12159115_2 WHERE production_code = "2T6719" </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's the writer of the episode see by 12.13 million US viewers? ### Context: CREATE TABLE table_12159115_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT written_by FROM table_12159115_2 WHERE us_viewers__millions_ = "12.13" </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 total number of episodes with production code 2T6705? ### Context: CREATE TABLE table_12159115_2 (title VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT COUNT(title) FROM table_12159115_2 WHERE production_code = "2T6705" </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 total number of directors who've directed episodes seen by 11.34 million US viewers? ### Context: CREATE TABLE table_12159115_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT COUNT(directed_by) FROM table_12159115_2 WHERE us_viewers__millions_ = "11.34" </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 production code of the episode seen by 11.64 million US viewers? ### Context: CREATE TABLE table_12159115_2 (production_code VARCHAR, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT production_code FROM table_12159115_2 WHERE us_viewers__millions_ = "11.64" </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 winner women and third is italy and runner-up is finland? ### Context: CREATE TABLE table_1216097_7 (winner VARCHAR, third VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT winner AS Women FROM table_1216097_7 WHERE third = "Italy" AND runner_up = "Finland" </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 report with fastest lap being felipe massa and winning driver being jenson button ### Context: CREATE TABLE table_12161822_5 (report VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT report FROM table_12161822_5 WHERE fastest_lap = "Felipe Massa" AND winning_driver = "Jenson Button" </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 grand prix with winning driver being jenson button ### Context: CREATE TABLE table_12161822_5 (grand_prix VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT grand_prix FROM table_12161822_5 WHERE winning_driver = "Jenson Button" </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 the the pole position with grand prix being italian grand prix ### Context: CREATE TABLE table_12161822_5 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_12161822_5 WHERE grand_prix = "Italian grand_prix" </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 the the fastest lap with grand prix being european grand prix ### Context: CREATE TABLE table_12161822_5 (fastest_lap VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_12161822_5 WHERE grand_prix = "European grand_prix" </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 viewers, in millions, were for the episode directed by Tawnia McKiernan? ### Context: CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT us_viewers__millions_ FROM table_12159115_3 WHERE directed_by = "Tawnia McKiernan" </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 were written only by William N. Fordes? ### Context: CREATE TABLE table_12159115_3 (series__number VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT COUNT(series__number) FROM table_12159115_3 WHERE written_by = "William N. Fordes" </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 U.S Viewers, in millions, were for series # 26? ### Context: CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, series__number VARCHAR) [/INST] ### Response: SELECT us_viewers__millions_ FROM table_12159115_3 WHERE series__number = 26 </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 third year course in science? ### Context: CREATE TABLE table_12148147_2 (third_year VARCHAR, subjects VARCHAR) [/INST] ### Response: SELECT third_year FROM table_12148147_2 WHERE subjects = "Science" </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 second year class following pag-unawa? ### Context: CREATE TABLE table_12148147_2 (second_year VARCHAR, first_year VARCHAR) [/INST] ### Response: SELECT second_year FROM table_12148147_2 WHERE first_year = "Pag-unawa" </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 classes are taken in the third year when pag-unawa was taken in the first year? ### Context: CREATE TABLE table_12148147_2 (third_year VARCHAR, first_year VARCHAR) [/INST] ### Response: SELECT COUNT(third_year) FROM table_12148147_2 WHERE first_year = "Pag-unawa" </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 first year course in the program where geometry is taken in the third year? ### Context: CREATE TABLE table_12148147_2 (first_year VARCHAR, third_year VARCHAR) [/INST] ### Response: SELECT first_year FROM table_12148147_2 WHERE third_year = "Geometry" </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 second year course in the program where physics is taken in the fourth year? ### Context: CREATE TABLE table_12148147_2 (second_year VARCHAR, fourth_year VARCHAR) [/INST] ### Response: SELECT second_year FROM table_12148147_2 WHERE fourth_year = "Physics" </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 won the womens singles event the year that Jonas Lyduch won? ### Context: CREATE TABLE table_12163387_1 (womens_singles VARCHAR, mens_singles VARCHAR) [/INST] ### Response: SELECT womens_singles FROM table_12163387_1 WHERE mens_singles = "Jonas Lyduch" </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 won the mens doubles the year Alison Humby won the womens singles? ### Context: CREATE TABLE table_12163387_1 (mens_doubles VARCHAR, womens_singles VARCHAR) [/INST] ### Response: SELECT mens_doubles FROM table_12163387_1 WHERE womens_singles = "Alison Humby" </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 years did Peter Mikkelsen win the Mens Singles? ### Context: CREATE TABLE table_12164707_1 (year VARCHAR, mens_singles VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_12164707_1 WHERE mens_singles = "Peter Mikkelsen" </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 won the Men's Doubles when Karina de Wit won the Women's Singles? ### Context: CREATE TABLE table_12164707_1 (mens_doubles VARCHAR, womens_singles VARCHAR) [/INST] ### Response: SELECT mens_doubles FROM table_12164707_1 WHERE womens_singles = "Karina de Wit" </s>