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 Fowler is 16, what is the number of cylinders? ### Context: CREATE TABLE table_20142629_2 (_3_cylinder VARCHAR, stanier VARCHAR, fowler VARCHAR) [/INST] ### Response: SELECT COUNT(stanier), _3_cylinder FROM table_20142629_2 WHERE fowler = 16 </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 tops for Folwer? ### Context: CREATE TABLE table_20142629_2 (fowler INTEGER) [/INST] ### Response: SELECT MAX(fowler) FROM table_20142629_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: On what grid was the time for part 1 1:31.063? ### Context: CREATE TABLE table_20159025_1 (grid VARCHAR, part_1 VARCHAR) [/INST] ### Response: SELECT grid FROM table_20159025_1 WHERE part_1 = "1:31.063" </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 driver was number 2‡? ### Context: CREATE TABLE table_20159025_1 (driver VARCHAR, no VARCHAR) [/INST] ### Response: SELECT driver FROM table_20159025_1 WHERE no = "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: Who was the driver in grid 01 1? ### Context: CREATE TABLE table_20159025_1 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_20159025_1 WHERE grid = "01 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 time in part 3 when Heikki Kovalainen was the driver? ### Context: CREATE TABLE table_20159025_1 (part_3 VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT part_3 FROM table_20159025_1 WHERE driver = "Heikki Kovalainen" </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 driver when the time in part 3 was 1:31.386? ### Context: CREATE TABLE table_20159025_1 (driver VARCHAR, part_1 VARCHAR) [/INST] ### Response: SELECT driver FROM table_20159025_1 WHERE part_1 = "1:31.386" </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 time in part 3 when Nick Heidfeld was the driver? ### Context: CREATE TABLE table_20159025_1 (part_3 VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT part_3 FROM table_20159025_1 WHERE driver = "Nick Heidfeld" </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 title that aired on 5 august 1967 ### Context: CREATE TABLE table_20345624_2 (title VARCHAR, original_airdate VARCHAR) [/INST] ### Response: SELECT COUNT(title) FROM table_20345624_2 WHERE original_airdate = "5 August 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: Name the total number of directors for number 6 ### Context: CREATE TABLE table_20345624_2 (director VARCHAR, no VARCHAR) [/INST] ### Response: SELECT COUNT(director) FROM table_20345624_2 WHERE no = 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: Name the original airdate for guy verney ### Context: CREATE TABLE table_20345624_2 (original_airdate VARCHAR, director VARCHAR) [/INST] ### Response: SELECT original_airdate FROM table_20345624_2 WHERE director = "Guy Verney" </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 number of writers for airdate of 15 july 1967 ### Context: CREATE TABLE table_20345624_2 (writer VARCHAR, original_airdate VARCHAR) [/INST] ### Response: SELECT COUNT(writer) FROM table_20345624_2 WHERE original_airdate = "15 July 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: What's the abbreviation for the month whose transcription is Kumphaphan? ### Context: CREATE TABLE table_20354_5 (abbr VARCHAR, transcription VARCHAR) [/INST] ### Response: SELECT abbr FROM table_20354_5 WHERE transcription = "kumphaphan" </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 zodiac sign for the month with Thai name มกราคม? ### Context: CREATE TABLE table_20354_5 (zodiac_sign VARCHAR, thai_name VARCHAR) [/INST] ### Response: SELECT zodiac_sign FROM table_20354_5 WHERE thai_name = "มกราคม" </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 zodiac sing for the month whose transcription is Karakadakhom? ### Context: CREATE TABLE table_20354_5 (zodiac_sign VARCHAR, transcription VARCHAR) [/INST] ### Response: SELECT zodiac_sign FROM table_20354_5 WHERE transcription = "karakadakhom" </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 transcription for the Thai name พฤษภาคม? ### Context: CREATE TABLE table_20354_5 (transcription VARCHAR, thai_name VARCHAR) [/INST] ### Response: SELECT transcription FROM table_20354_5 WHERE thai_name = "พฤษภาคม" </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 Sanskrit word for month with Thai name มกราคม? ### Context: CREATE TABLE table_20354_5 (sanskrit_word VARCHAR, thai_name VARCHAR) [/INST] ### Response: SELECT sanskrit_word FROM table_20354_5 WHERE thai_name = "มกราคม" </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 transcriptions are there for the Thai name พฤษภาคม? ### Context: CREATE TABLE table_20354_5 (transcription VARCHAR, thai_name VARCHAR) [/INST] ### Response: SELECT COUNT(transcription) FROM table_20354_5 WHERE thai_name = "พฤษภาคม" </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 innings when the average is 36.48? ### Context: CREATE TABLE table_20367820_16 (innings INTEGER, average VARCHAR) [/INST] ### Response: SELECT MAX(innings) FROM table_20367820_16 WHERE average = "36.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: How many no outs are there for an average of 43.70? ### Context: CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR) [/INST] ### Response: SELECT not_out FROM table_20367820_16 WHERE average = "43.70" </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 no outs for an average of 56.38? ### Context: CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR) [/INST] ### Response: SELECT COUNT(not_out) FROM table_20367820_16 WHERE average = "56.38" </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 poles had 78 points? ### Context: CREATE TABLE table_20396_1 (poles VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(poles) FROM table_20396_1 WHERE points = "78" </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 poles had 72 points? ### Context: CREATE TABLE table_20396_1 (poles VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(poles) FROM table_20396_1 WHERE points = "72" </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 poles were there in season 2000? ### Context: CREATE TABLE table_20396_1 (poles VARCHAR, season VARCHAR) [/INST] ### Response: SELECT poles FROM table_20396_1 WHERE season = 2000 </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 scored 4 points? ### Context: CREATE TABLE table_20396_1 (team VARCHAR, points VARCHAR) [/INST] ### Response: SELECT team FROM table_20396_1 WHERE points = "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: Who won the cup on 30.11.2008? ### Context: CREATE TABLE table_20462111_1 (winner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winner FROM table_20462111_1 WHERE date = "30.11.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 got the 3rd place in the cup on 01.02.2009? ### Context: CREATE TABLE table_20462111_1 (date VARCHAR) [/INST] ### Response: SELECT 3 AS rd_place FROM table_20462111_1 WHERE date = "01.02.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: Where was the cup on 07.02.2009 held? ### Context: CREATE TABLE table_20462111_1 (location VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location FROM table_20462111_1 WHERE date = "07.02.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 was the population of the coastal location Isio in May of 2000? ### Context: CREATE TABLE table_2051288_1 (_2000_ VARCHAR, population__may INTEGER, location VARCHAR, barangay VARCHAR) [/INST] ### Response: SELECT MIN(population__may), _2000_ FROM table_2051288_1 WHERE location = "coastal" AND barangay = "Isio" </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 share for rank 54? ### Context: CREATE TABLE table_20522228_2 (share INTEGER, rank__overall_ VARCHAR) [/INST] ### Response: SELECT MAX(share) FROM table_20522228_2 WHERE rank__overall_ = "54" </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 ratings/share ratio when viewers are 5.50 Million? ### Context: CREATE TABLE table_20522228_2 (rating VARCHAR, viewers__millions_ VARCHAR) [/INST] ### Response: SELECT rating / SHARE(18 - 49) FROM table_20522228_2 WHERE viewers__millions_ = "5.50" </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 rank timeslots where ratings are 4.1? ### Context: CREATE TABLE table_20522228_2 (rank__timeslot_ VARCHAR, rating VARCHAR) [/INST] ### Response: SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = "4.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 overall rank when viewers are at 6.59 million? ### Context: CREATE TABLE table_20522228_2 (rank__overall_ VARCHAR, viewers__millions_ VARCHAR) [/INST] ### Response: SELECT rank__overall_ FROM table_20522228_2 WHERE viewers__millions_ = "6.59" </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 episode name when share was 8? ### Context: CREATE TABLE table_20522228_2 (episode VARCHAR, share VARCHAR) [/INST] ### Response: SELECT episode FROM table_20522228_2 WHERE share = 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: Who were the writers of episode 20? ### Context: CREATE TABLE table_20538157_2 (written_by VARCHAR, no_in_season VARCHAR) [/INST] ### Response: SELECT written_by FROM table_20538157_2 WHERE no_in_season = 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: What county has others at 5? ### Context: CREATE TABLE table_20573232_1 (county VARCHAR, others_number VARCHAR) [/INST] ### Response: SELECT county FROM table_20573232_1 WHERE others_number = 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 is the percentage of others when McCain is at 57.7% ### Context: CREATE TABLE table_20573232_1 (others_percentage VARCHAR, mccain_percentage VARCHAR) [/INST] ### Response: SELECT others_percentage FROM table_20573232_1 WHERE mccain_percentage = "57.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 Nader's percentage when Obama is 44.6%? ### Context: CREATE TABLE table_20573232_1 (nader_percentage VARCHAR, obama_percentage VARCHAR) [/INST] ### Response: SELECT nader_percentage FROM table_20573232_1 WHERE obama_percentage = "44.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 schools are accredited by COE? ### Context: CREATE TABLE table_2064747_1 (location_s_ VARCHAR, accreditation VARCHAR) [/INST] ### Response: SELECT location_s_ FROM table_2064747_1 WHERE accreditation = "COE" </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 was there a school founded in 1927? ### Context: CREATE TABLE table_2064747_1 (location_s_ VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT location_s_ FROM table_2064747_1 WHERE founded = 1927 </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 minimum length of the locations where the average climb percentage is exactly 59%? ### Context: CREATE TABLE table_206361_2 (length__in_m_ INTEGER, average_climb___percentage_ VARCHAR) [/INST] ### Response: SELECT MIN(length__in_m_) FROM table_206361_2 WHERE average_climb___percentage_ = 59 </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 maximum number of km listed? ### Context: CREATE TABLE table_206361_2 (kilometer INTEGER) [/INST] ### Response: SELECT MAX(kilometer) FROM table_206361_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: Name the number of δs ‡ /cal mol −1 k −1 for butadiene being 1,2-dimethylene-cyclohexane ### Context: CREATE TABLE table_2068719_1 (δs_ VARCHAR, _butadiene VARCHAR) [/INST] ### Response: SELECT COUNT(δs_) AS ‡__cal_mol_−1_k_−1 FROM table_2068719_1 WHERE _butadiene = "1,2-dimethylene-cyclohexane" </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: When 17,874 (33.2) is the percentage against what is the percentage for? ### Context: CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, against___percentage_ VARCHAR) [/INST] ### Response: SELECT for___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "17,874 (33.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: When 27,822 (72.3) is the percentage for how many electorate measurements are there? ### Context: CREATE TABLE table_20683381_3 (electorate VARCHAR, for___percentage_ VARCHAR) [/INST] ### Response: SELECT COUNT(electorate) FROM table_20683381_3 WHERE for___percentage_ = "27,822 (72.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: When 13,895 (27.3) is the percentage against what is the toll poll percentage? ### Context: CREATE TABLE table_20683381_3 (total_poll___percentage_ VARCHAR, against___percentage_ VARCHAR) [/INST] ### Response: SELECT total_poll___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "13,895 (27.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: When +18.1 is the ± yes side 2008 percentage what is the percentage of against? ### Context: CREATE TABLE table_20683381_3 (against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR) [/INST] ### Response: SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+18.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: When 60,254 (58.0) is the toll poll percentage what is the for percentage? ### Context: CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, total_poll___percentage_ VARCHAR) [/INST] ### Response: SELECT for___percentage_ FROM table_20683381_3 WHERE total_poll___percentage_ = "60,254 (58.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: When +20.3 is the ± yes side 2008 (%) what is the for percentage? ### Context: CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR) [/INST] ### Response: SELECT for___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+20.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 original air date for season 11? ### Context: CREATE TABLE table_20704243_6 (original_air_date VARCHAR, season__number VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_20704243_6 WHERE season__number = 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 episode did John Rogers direct? ### Context: CREATE TABLE table_20704243_6 (title VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT title FROM table_20704243_6 WHERE directed_by = "John Rogers" </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 directed the episode that aired on july15,2012? ### Context: CREATE TABLE table_20704243_6 (directed_by VARCHAR, original_air_date VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_20704243_6 WHERE original_air_date = "July15,2012" </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 episode aired on august19,2012? ### Context: CREATE TABLE table_20704243_6 (title VARCHAR, original_air_date VARCHAR) [/INST] ### Response: SELECT title FROM table_20704243_6 WHERE original_air_date = "August19,2012" </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 weight with a cross section area of 25.3? ### Context: CREATE TABLE table_2071644_2 (weight__kg_m_ VARCHAR, cross_section_area__cm_2__ VARCHAR) [/INST] ### Response: SELECT weight__kg_m_ FROM table_2071644_2 WHERE cross_section_area__cm_2__ = "25.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 weights are there when the flange with is 304? ### Context: CREATE TABLE table_2071644_2 (weight__kg_m_ VARCHAR, flange_width__mm_ VARCHAR) [/INST] ### Response: SELECT COUNT(weight__kg_m_) FROM table_2071644_2 WHERE flange_width__mm_ = 304 </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 web thickness if the flange width is 100? ### Context: CREATE TABLE table_2071644_2 (web_thickness__mm_ VARCHAR, flange_width__mm_ VARCHAR) [/INST] ### Response: SELECT web_thickness__mm_ FROM table_2071644_2 WHERE flange_width__mm_ = 100 </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: If the cross-section area is 21.2, what is the weight? ### Context: CREATE TABLE table_2071644_2 (weight__kg_m_ VARCHAR, cross_section_area__cm_2__ VARCHAR) [/INST] ### Response: SELECT weight__kg_m_ FROM table_2071644_2 WHERE cross_section_area__cm_2__ = "21.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: What is the flange thickness when the weight is 19.9? ### Context: CREATE TABLE table_2071644_2 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR) [/INST] ### Response: SELECT flange_thickness__mm_ FROM table_2071644_2 WHERE weight__kg_m_ = "19.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: Who directed the episode with a production code of 4WAB05? ### Context: CREATE TABLE table_20726262_5 (directedby VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB05" </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 directed the episode with a production code of 4WAB04? ### Context: CREATE TABLE table_20726262_5 (directedby VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB04" </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 was directed by Karen Gaviola? ### Context: CREATE TABLE table_20726262_6 (no_in_season INTEGER, directedby VARCHAR) [/INST] ### Response: SELECT MIN(no_in_season) FROM table_20726262_6 WHERE directedby = "Karen Gaviola" </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 score on February 8, 1992? ### Context: CREATE TABLE table_20745706_1 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_20745706_1 WHERE date = "February 8, 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 opponent in game 5? ### Context: CREATE TABLE table_20745706_1 (opponent VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT opponent FROM table_20745706_1 WHERE _number = "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 is the date of game 5? ### Context: CREATE TABLE table_20745706_1 (date VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT date FROM table_20745706_1 WHERE _number = "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 was attendance on March 11, 1995? ### Context: CREATE TABLE table_20745746_1 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_20745746_1 WHERE date = "March 11, 1995" </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 score when 7260 people attended the game? ### Context: CREATE TABLE table_20745746_1 (score VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT score FROM table_20745746_1 WHERE attendance = 7260 </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 resulted in a loss? ### Context: CREATE TABLE table_20745746_1 (_number VARCHAR, record VARCHAR) [/INST] ### Response: SELECT _number FROM table_20745746_1 WHERE record = "Loss" </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 date of game 7? ### Context: CREATE TABLE table_20745746_1 (date VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT date FROM table_20745746_1 WHERE _number = "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 Obama# when McCain% is 64.4%? ### Context: CREATE TABLE table_20750731_1 (obama_number INTEGER, mccain_percentage VARCHAR) [/INST] ### Response: SELECT MAX(obama_number) FROM table_20750731_1 WHERE mccain_percentage = "64.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: Name the Others# when McCain# is 4730. ### Context: CREATE TABLE table_20750731_1 (others_number VARCHAR, mccain_number VARCHAR) [/INST] ### Response: SELECT others_number FROM table_20750731_1 WHERE mccain_number = 4730 </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 County was the Obama% at 41.7%? ### Context: CREATE TABLE table_20750731_1 (county VARCHAR, obama_percentage VARCHAR) [/INST] ### Response: SELECT county FROM table_20750731_1 WHERE obama_percentage = "41.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: When McCain% was 64.8%, what is the Others#? ### Context: CREATE TABLE table_20750731_1 (others_number VARCHAR, mccain_percentage VARCHAR) [/INST] ### Response: SELECT others_number FROM table_20750731_1 WHERE mccain_percentage = "64.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 was the Obama% when McCain% was 61.2%? ### Context: CREATE TABLE table_20750731_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR) [/INST] ### Response: SELECT obama_percentage FROM table_20750731_1 WHERE mccain_percentage = "61.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: Name the date for attendance 9372 ### Context: CREATE TABLE table_20745759_1 (date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_20745759_1 WHERE attendance = 9372 </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 record for january 18, 1997 ### Context: CREATE TABLE table_20745759_1 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_20745759_1 WHERE date = "January 18, 1997" </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 score for march 29, 1997 ### Context: CREATE TABLE table_20745759_1 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_20745759_1 WHERE date = "March 29, 1997" </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 tall is the contestant from Honduras? ### Context: CREATE TABLE table_20754016_2 (height__ft_ VARCHAR, country VARCHAR) [/INST] ### Response: SELECT height__ft_ FROM table_20754016_2 WHERE country = "Honduras" </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 is the contestant from Chihuahua from? ### Context: CREATE TABLE table_20754016_2 (country VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT country FROM table_20754016_2 WHERE hometown = "Chihuahua" </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 contestant is 173 cm tall? ### Context: CREATE TABLE table_20754016_2 (contestant VARCHAR, height__cm_ VARCHAR) [/INST] ### Response: SELECT contestant FROM table_20754016_2 WHERE height__cm_ = 173 </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 is the contestant from Salto from? ### Context: CREATE TABLE table_20754016_2 (country VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT country FROM table_20754016_2 WHERE hometown = "Salto" </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 tall is the contestant from Guatemala? ### Context: CREATE TABLE table_20754016_2 (height__cm_ VARCHAR, country VARCHAR) [/INST] ### Response: SELECT height__cm_ FROM table_20754016_2 WHERE country = "Guatemala" </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 much would you expect the enrollment to be in Springfield? ### Context: CREATE TABLE table_2076463_2 (enrollment INTEGER, location_s_ VARCHAR) [/INST] ### Response: SELECT MIN(enrollment) FROM table_2076463_2 WHERE location_s_ = "Springfield" </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 would you find a public university which was founded in 1915? ### Context: CREATE TABLE table_2076463_2 (location_s_ VARCHAR, control VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT location_s_ FROM table_2076463_2 WHERE control = "Public university" AND founded = 1915 </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 only type of university that was founded in 1873? ### Context: CREATE TABLE table_2076463_2 (control VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT control FROM table_2076463_2 WHERE founded = 1873 </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 enrollement would you expect if you were attending the university in St. Louis? ### Context: CREATE TABLE table_2076463_2 (enrollment VARCHAR, location_s_ VARCHAR) [/INST] ### Response: SELECT enrollment FROM table_2076463_2 WHERE location_s_ = "St. Louis" </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 school would you come across if you were in Kirksville? ### Context: CREATE TABLE table_2076463_2 (school VARCHAR, location_s_ VARCHAR) [/INST] ### Response: SELECT school FROM table_2076463_2 WHERE location_s_ = "Kirksville" </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 type of school would you see when visiting Missouri Western State University? ### Context: CREATE TABLE table_2076463_2 (control VARCHAR, school VARCHAR) [/INST] ### Response: SELECT control FROM table_2076463_2 WHERE school = "Missouri Western State University" </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: When east carolina university is the school what is the highest year founded? ### Context: CREATE TABLE table_2076516_1 (founded INTEGER, school VARCHAR) [/INST] ### Response: SELECT MAX(founded) FROM table_2076516_1 WHERE school = "East Carolina University" </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: When 1927 is the founded year how many measurements of enrollment in 2012 are there? ### Context: CREATE TABLE table_2076516_1 (enrollment__2012_ VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT COUNT(enrollment__2012_) FROM table_2076516_1 WHERE founded = 1927 </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: When western carolina university is the school what is the control? ### Context: CREATE TABLE table_2076516_1 (control VARCHAR, school VARCHAR) [/INST] ### Response: SELECT control FROM table_2076516_1 WHERE school = "Western Carolina University" </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: When university of north carolina at charlotte is the school what is the lowest enrollment in 2012? ### Context: CREATE TABLE table_2076516_1 (enrollment__2012_ INTEGER, school VARCHAR) [/INST] ### Response: SELECT MIN(enrollment__2012_) FROM table_2076516_1 WHERE school = "University of North Carolina at Charlotte" </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 enrollment for the school in bottineau? ### Context: CREATE TABLE table_2076522_2 (enrollment__fall_2010_ VARCHAR, location_s_ VARCHAR) [/INST] ### Response: SELECT enrollment__fall_2010_ FROM table_2076522_2 WHERE location_s_ = "Bottineau" </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 control for the school accredited by the higher learning commission ( nca ), ccne? ### Context: CREATE TABLE table_2076522_2 (control VARCHAR, accreditation VARCHAR) [/INST] ### Response: SELECT control FROM table_2076522_2 WHERE accreditation = "The Higher Learning Commission ( NCA ), CCNE" </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 the school founded with an 898 enrollment? ### Context: CREATE TABLE table_2076522_2 (founded INTEGER, enrollment__fall_2010_ VARCHAR) [/INST] ### Response: SELECT MAX(founded) FROM table_2076522_2 WHERE enrollment__fall_2010_ = 898 </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 schools founded in 2006? ### Context: CREATE TABLE table_2076522_2 (accreditation VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT COUNT(accreditation) FROM table_2076522_2 WHERE founded = 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 accrediation for united tribes technical college? ### Context: CREATE TABLE table_2076522_2 (accreditation VARCHAR, school VARCHAR) [/INST] ### Response: SELECT accreditation FROM table_2076522_2 WHERE school = "United Tribes Technical College" </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 latest founding date? ### Context: CREATE TABLE table_2076490_1 (founded INTEGER) [/INST] ### Response: SELECT MAX(founded) FROM table_2076490_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 enrollment (2005) for baccalaureate colleges , for Granite State College? ### Context: CREATE TABLE table_2076490_1 (enrollment__2005_ VARCHAR, type VARCHAR, school VARCHAR) [/INST] ### Response: SELECT enrollment__2005_ FROM table_2076490_1 WHERE type = "Baccalaureate college" AND school = "Granite State College" </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 is the founding year, for the school that had an enrollment in 2005 of 963? ### Context: CREATE TABLE table_2076490_1 (founded VARCHAR, enrollment__2005_ VARCHAR) [/INST] ### Response: SELECT founded FROM table_2076490_1 WHERE enrollment__2005_ = "963" </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 school had an enrollment in 2005 of 69? ### Context: CREATE TABLE table_2076490_1 (school VARCHAR, enrollment__2005_ VARCHAR) [/INST] ### Response: SELECT school FROM table_2076490_1 WHERE enrollment__2005_ = "69" </s>