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 points for is 139 is points difference? ### Context: CREATE TABLE table_20396710_1 (points_difference VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT COUNT(points_difference) FROM table_20396710_1 WHERE points_for = "139" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points against is points again, which are the drawn? ### Context: CREATE TABLE table_20396710_1 (drawn VARCHAR) [/INST] ### Response: SELECT drawn FROM table_20396710_1 WHERE "points_against" = "points_against" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points for is 39 what is the total number of drawn ### Context: CREATE TABLE table_20396710_1 (drawn VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT drawn FROM table_20396710_1 WHERE points_for = "39" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mccain % where obama got 19.3% ### Context: CREATE TABLE table_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR) [/INST] ### Response: SELECT mccain__percentage FROM table_20424014_1 WHERE obama__percentage = "19.3%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the highest mccain # where obama got 33.7% ### Context: CREATE TABLE table_20424014_1 (mccain__number INTEGER, obama__percentage VARCHAR) [/INST] ### Response: SELECT MAX(mccain__number) FROM table_20424014_1 WHERE obama__percentage = "33.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: where did obama get 39.8% ### Context: CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR) [/INST] ### Response: SELECT county FROM table_20424014_1 WHERE obama__percentage = "39.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 is the obama # in carson city ### Context: CREATE TABLE table_20424014_1 (obama__number VARCHAR, county VARCHAR) [/INST] ### Response: SELECT obama__number FROM table_20424014_1 WHERE county = "Carson City" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: where did obama get 41.3% ### Context: CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR) [/INST] ### Response: SELECT county FROM table_20424014_1 WHERE obama__percentage = "41.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 number of season for team bruichladdich ### Context: CREATE TABLE table_20398823_1 (season VARCHAR, team VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_20398823_1 WHERE team = "team Bruichladdich" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the least podiums for 49 points ### Context: CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR) [/INST] ### Response: SELECT MIN(podiums) FROM table_20398823_1 WHERE points = "49" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the least f/laps ### Context: CREATE TABLE table_20398823_1 (f_laps INTEGER) [/INST] ### Response: SELECT MIN(f_laps) FROM table_20398823_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: Namet he season for wins being 0 and 20 races ### Context: CREATE TABLE table_20398823_1 (season VARCHAR, wins VARCHAR, races VARCHAR) [/INST] ### Response: SELECT season FROM table_20398823_1 WHERE wins = 0 AND races = 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: Name the least podiums for 0 wins and 2005 season for 321 points ### Context: CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR, wins VARCHAR, season VARCHAR) [/INST] ### Response: SELECT MIN(podiums) FROM table_20398823_1 WHERE wins = 0 AND season = 2005 AND points = "321" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui? ### Context: CREATE TABLE table_20404716_1 (spanish_title VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT spanish_title FROM table_20404716_1 WHERE film_title_used_in_nomination = "Ogu and Mampato in Rapa Nui" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of the film that was not nominated and had the Spanish title of play? ### Context: CREATE TABLE table_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR) [/INST] ### Response: SELECT director FROM table_20404716_1 WHERE result = "Not Nominated" AND spanish_title = "Play" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 couples have an average of 25.3? ### Context: CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR) [/INST] ### Response: SELECT COUNT(couple) FROM table_20424140_3 WHERE average = "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 different numbers of total dances are there for the couple ranked at number 6? ### Context: CREATE TABLE table_20424140_3 (number_of_dances VARCHAR, place VARCHAR) [/INST] ### Response: SELECT COUNT(number_of_dances) FROM table_20424140_3 WHERE place = 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 couple has an average of 17.2? ### Context: CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR) [/INST] ### Response: SELECT couple FROM table_20424140_3 WHERE average = "17.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's the minimal number of dances a couple has danced? ### Context: CREATE TABLE table_20424140_3 (number_of_dances INTEGER) [/INST] ### Response: SELECT MIN(number_of_dances) FROM table_20424140_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's the highest number a couple has ranked at? ### Context: CREATE TABLE table_20424140_3 (place INTEGER) [/INST] ### Response: SELECT MAX(place) FROM table_20424140_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 crops were damaged when the public property damage was 1,03,049.60? ### Context: CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR) [/INST] ### Response: SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 panchayat when the public property damage was 1,03,049.60 ### Context: CREATE TABLE table_20403667_2 (panchayat INTEGER, public_property_damaged__in_lakh_inr__ VARCHAR) [/INST] ### Response: SELECT MAX(panchayat) FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest village that had 103279 houses affected? ### Context: CREATE TABLE table_20403667_2 (village INTEGER, house_affected VARCHAR) [/INST] ### Response: SELECT MAX(village) FROM table_20403667_2 WHERE house_affected = 103279 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smallest district that had 33.25 in animals ### Context: CREATE TABLE table_20403667_2 (district INTEGER, animal__in_lakh__ VARCHAR) [/INST] ### Response: SELECT MIN(district) FROM table_20403667_2 WHERE animal__in_lakh__ = "33.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 districts had crib damage of 1,164.50? ### Context: CREATE TABLE table_20403667_2 (district VARCHAR, crop_damaged__in_lakh_inr__ VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_20403667_2 WHERE crop_damaged__in_lakh_inr__ = "1,164.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: Where did Obama get 37.1%? ### Context: CREATE TABLE table_20453681_1 (county VARCHAR, obama_percentage VARCHAR) [/INST] ### Response: SELECT county FROM table_20453681_1 WHERE obama_percentage = "37.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's the county where McCain got 60.6% and Obama got 37.3%? ### Context: CREATE TABLE table_20453681_1 (county VARCHAR, mccain_percentage VARCHAR, obama_percentage VARCHAR) [/INST] ### Response: SELECT county FROM table_20453681_1 WHERE mccain_percentage = "60.6%" AND obama_percentage = "37.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's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes? ### Context: CREATE TABLE table_20453681_1 (mccain_number INTEGER, obama_percentage VARCHAR, others_percentage VARCHAR) [/INST] ### Response: SELECT MIN(mccain_number) FROM table_20453681_1 WHERE obama_percentage = "35.7%" AND others_percentage = "1.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: How many votes did Obama get in Geauga? ### Context: CREATE TABLE table_20453681_1 (obama_number VARCHAR, county VARCHAR) [/INST] ### Response: SELECT obama_number FROM table_20453681_1 WHERE county = "Geauga" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people voted for others in the county where McCain got 65.5% of the votes? ### Context: CREATE TABLE table_20453681_1 (others VARCHAR, mccain_percentage VARCHAR) [/INST] ### Response: SELECT others FROM table_20453681_1 WHERE mccain_percentage = "65.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 Phil Taylor's 3-dart average? ### Context: CREATE TABLE table_20463779_22 (player VARCHAR) [/INST] ### Response: SELECT 3 AS _dart_average FROM table_20463779_22 WHERE player = "Phil Taylor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guest 3 in the show where guest 4 is Jill Douglas? ### Context: CREATE TABLE table_20466963_4 (guest_3 VARCHAR, guest_4 VARCHAR) [/INST] ### Response: SELECT guest_3 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver? ### Context: CREATE TABLE table_20466963_4 (guest_2 VARCHAR, guest_4 VARCHAR, guest_3 VARCHAR) [/INST] ### Response: SELECT guest_2 FROM table_20466963_4 WHERE guest_4 = "Iyare Igiehon" AND guest_3 = "John Oliver" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the guest 1 in the episode where guest 4 is Jill Douglas? ### Context: CREATE TABLE table_20466963_4 (guest_1 VARCHAR, guest_4 VARCHAR) [/INST] ### Response: SELECT guest_1 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dates are associated with a guest 4 being Jim Jeffries (debut)? ### Context: CREATE TABLE table_20466963_4 (date VARCHAR, guest_4 VARCHAR) [/INST] ### Response: SELECT COUNT(date) FROM table_20466963_4 WHERE guest_4 = "Jim Jeffries (debut)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the episode in which the presenter is Johnny Vaughan? ### Context: CREATE TABLE table_20466963_4 (date VARCHAR, presenter VARCHAR) [/INST] ### Response: SELECT date FROM table_20466963_4 WHERE presenter = "Johnny Vaughan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guest 4 for 8 december ### Context: CREATE TABLE table_20466963_13 (guest_4 VARCHAR, date VARCHAR) [/INST] ### Response: SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guest 4 for steve lamacq ### Context: CREATE TABLE table_20466963_13 (guest_4 VARCHAR, guest_2 VARCHAR) [/INST] ### Response: SELECT guest_4 FROM table_20466963_13 WHERE guest_2 = "Steve Lamacq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guest 2 for colin murray 6 april ### Context: CREATE TABLE table_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = "Colin Murray" AND date = "6 April" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 presenter 11 may ### Context: CREATE TABLE table_20466963_13 (presenter VARCHAR, date VARCHAR) [/INST] ### Response: SELECT presenter FROM table_20466963_13 WHERE date = "11 May" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guest 3 for iyare igiehon ### Context: CREATE TABLE table_20466963_13 (guest_3 VARCHAR, guest_2 VARCHAR) [/INST] ### Response: SELECT guest_3 FROM table_20466963_13 WHERE guest_2 = "Iyare Igiehon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many seasons featured 29 conversions? ### Context: CREATE TABLE table_20505342_1 (penalties VARCHAR, conversions VARCHAR) [/INST] ### Response: SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Lowest number of drop goals? ### Context: CREATE TABLE table_20505342_1 (drop_goals INTEGER) [/INST] ### Response: SELECT MIN(drop_goals) FROM table_20505342_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 point total for the season with 2 drop goals? ### Context: CREATE TABLE table_20505342_1 (total_points INTEGER, drop_goals VARCHAR) [/INST] ### Response: SELECT MIN(total_points) FROM table_20505342_1 WHERE drop_goals = 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 most obama number for mccain being 38.86% ### Context: CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_percentage VARCHAR) [/INST] ### Response: SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_percentage = "38.86%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the most abama number for mccain being 29266 ### Context: CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_number VARCHAR) [/INST] ### Response: SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_number = 29266 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 county for mccain being 38.78% ### Context: CREATE TABLE table_20468206_1 (county VARCHAR, mccain_percentage VARCHAR) [/INST] ### Response: SELECT county FROM table_20468206_1 WHERE mccain_percentage = "38.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: In how many counties di McCain win 41.62% of the vote? ### Context: CREATE TABLE table_20524090_1 (county VARCHAR, mccain_percentage VARCHAR) [/INST] ### Response: SELECT COUNT(county) FROM table_20524090_1 WHERE mccain_percentage = "41.62%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage of the vote did McCain win in Waynesboro (city)? ### Context: CREATE TABLE table_20524090_1 (mccain_percentage VARCHAR, county VARCHAR) [/INST] ### Response: SELECT mccain_percentage FROM table_20524090_1 WHERE county = "Waynesboro (city)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Obama's percentage in those places where McCain's percentage was 55.46%? ### Context: CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR) [/INST] ### Response: SELECT obama_percentage FROM table_20524090_1 WHERE mccain_percentage = "55.46%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Obama's percentage in the county of Alleghany? ### Context: CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, county VARCHAR) [/INST] ### Response: SELECT obama_percentage FROM table_20524090_1 WHERE county = "Alleghany" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Obama's percentage in the county of Surry? ### Context: CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, county VARCHAR) [/INST] ### Response: SELECT obama_percentage FROM table_20524090_1 WHERE county = "Surry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percent of the votes in Debaca did McCain get? ### Context: CREATE TABLE table_20539826_1 (mccain_percentage VARCHAR, county VARCHAR) [/INST] ### Response: SELECT mccain_percentage FROM table_20539826_1 WHERE county = "DeBaca" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage of the votes did Obama get in the county where 3909 people voted in total? ### Context: CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, total VARCHAR) [/INST] ### Response: SELECT obama_percentage FROM table_20539826_1 WHERE total = 3909 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage of the votes did Obama get in the county where McCain got 3648 votes? ### Context: CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, mccain_number VARCHAR) [/INST] ### Response: SELECT obama_percentage FROM table_20539826_1 WHERE mccain_number = 3648 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner when the SEC team LSU played? ### Context: CREATE TABLE table_20540006_6 (winner VARCHAR, sec_team VARCHAR) [/INST] ### Response: SELECT winner FROM table_20540006_6 WHERE sec_team = "LSU" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance for the game when the challenge leader was at Big East (4-2)? ### Context: CREATE TABLE table_20540006_6 (attendance INTEGER, challenge_leader VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_20540006_6 WHERE challenge_leader = "Big East (4-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 suumer team was James Lomangino from St. John's on? ### Context: CREATE TABLE table_20589703_2 (summer_team VARCHAR, college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT summer_team FROM table_20589703_2 WHERE college = "St. John's" AND player = "James Lomangino" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what draft round in 2012 did a player from Rio Hondo get drafted? ### Context: CREATE TABLE table_20589703_2 (draft_round VARCHAR, college VARCHAR, draft_year VARCHAR) [/INST] ### Response: SELECT draft_round FROM table_20589703_2 WHERE college = "Rio Hondo" AND draft_year = 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 college did Aaron Slegers attend? ### Context: CREATE TABLE table_20589703_2 (college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college FROM table_20589703_2 WHERE player = "Aaron Slegers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? ### Context: CREATE TABLE table_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR) [/INST] ### Response: SELECT platelet_count FROM table_20592988_1 WHERE prothrombin_time = "Unaffected" AND partial_thromboplastin_time = "Unaffected" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 status of partial thromboplastin times for conditions where the platelet count is decreased? ### Context: CREATE TABLE table_20592988_1 (partial_thromboplastin_time VARCHAR, platelet_count VARCHAR) [/INST] ### Response: SELECT partial_thromboplastin_time FROM table_20592988_1 WHERE platelet_count = "Decreased" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what conditions are both the platelet count and prothrombin time unaffected? ### Context: CREATE TABLE table_20592988_1 (condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR) [/INST] ### Response: SELECT condition FROM table_20592988_1 WHERE platelet_count = "Unaffected" AND prothrombin_time = "Unaffected" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 status of bleeding time for thrombocytopenia? ### Context: CREATE TABLE table_20592988_1 (bleeding_time VARCHAR, condition VARCHAR) [/INST] ### Response: SELECT bleeding_time FROM table_20592988_1 WHERE condition = "Thrombocytopenia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? ### Context: CREATE TABLE table_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR) [/INST] ### Response: SELECT platelet_count FROM table_20592988_1 WHERE bleeding_time = "Prolonged" AND partial_thromboplastin_time = "Unaffected" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 made exactly 8 cuts? ### Context: CREATE TABLE table_20590020_2 (player VARCHAR, cuts_made VARCHAR) [/INST] ### Response: SELECT player FROM table_20590020_2 WHERE cuts_made = 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 is the total number of entries for Leif Olson? ### Context: CREATE TABLE table_20590020_2 (starts VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 players who had a money list rank of 96? ### Context: CREATE TABLE table_20590020_2 (best_finish VARCHAR, money_list_rank VARCHAR) [/INST] ### Response: SELECT COUNT(best_finish) FROM table_20590020_2 WHERE money_list_rank = 96 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name for br no. 60501 ### Context: CREATE TABLE table_20595642_2 (name VARCHAR, br_no VARCHAR) [/INST] ### Response: SELECT name FROM table_20595642_2 WHERE br_no = 60501 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 23% scott mcadams (d) what are the dates administered? ### Context: CREATE TABLE table_20597634_3 (dates_administered VARCHAR, scott_mcadams__d_ VARCHAR) [/INST] ### Response: SELECT dates_administered FROM table_20597634_3 WHERE scott_mcadams__d_ = "23%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 30% is scott mcadams (d) percentage how many poll sources are there? ### Context: CREATE TABLE table_20597634_3 (poll_source VARCHAR, scott_mcadams__d_ VARCHAR) [/INST] ### Response: SELECT COUNT(poll_source) FROM table_20597634_3 WHERE scott_mcadams__d_ = "30%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 revenue for eps being 1.19 ### Context: CREATE TABLE table_20614109_1 (revenue__ INTEGER, earnings_per_share__€_ VARCHAR) [/INST] ### Response: SELECT MAX(revenue__) AS €million_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 net profit for eps beign 1.19 ### Context: CREATE TABLE table_20614109_1 (net_profit__€m_ VARCHAR, earnings_per_share__€_ VARCHAR) [/INST] ### Response: SELECT net_profit__€m_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ebit for eps being 1.78 ### Context: CREATE TABLE table_20614109_1 (earnings_before_interest_and_taxes__€m_ VARCHAR, earnings_per_share__€_ VARCHAR) [/INST] ### Response: SELECT earnings_before_interest_and_taxes__€m_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.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 different production codes does the episode directed by Dominic Polcino have? ### Context: CREATE TABLE table_20613292_1 (production_code VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT COUNT(production_code) FROM table_20613292_1 WHERE directed_by = "Dominic Polcino" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 written by Kirker Butler and directed by Dan Povenmire? ### Context: CREATE TABLE table_20613292_1 (production_code VARCHAR, written_by VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT production_code FROM table_20613292_1 WHERE written_by = "Kirker Butler" AND directed_by = "Dan Povenmire" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weight in kg when the jockey was B. York? ### Context: CREATE TABLE table_2062148_2 (weight__kg_ VARCHAR, jockey VARCHAR) [/INST] ### Response: SELECT weight__kg_ FROM table_2062148_2 WHERE jockey = "B. York" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 race where the jockey was J. Marshall? ### Context: CREATE TABLE table_2062148_2 (result VARCHAR, jockey VARCHAR) [/INST] ### Response: SELECT result FROM table_2062148_2 WHERE jockey = "J. Marshall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the most weight ### Context: CREATE TABLE table_2062148_4 (weight__kg_ INTEGER) [/INST] ### Response: SELECT MAX(weight__kg_) FROM table_2062148_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 date for moonee valley ### Context: CREATE TABLE table_2062148_4 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_2062148_4 WHERE venue = "Moonee Valley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 group was the Hollindale Stakes in? ### Context: CREATE TABLE table_2062148_3 (group VARCHAR, race VARCHAR) [/INST] ### Response: SELECT group FROM table_2062148_3 WHERE race = "Hollindale Stakes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 race has a distance of 1200 m? ### Context: CREATE TABLE table_2062148_3 (race VARCHAR, distance VARCHAR) [/INST] ### Response: SELECT race FROM table_2062148_3 WHERE distance = "1200 m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the time of 1-26.21? ### Context: CREATE TABLE table_20626467_1 (result VARCHAR, time VARCHAR) [/INST] ### Response: SELECT result FROM table_20626467_1 WHERE time = "1-26.21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jockey in group 1 at the 1400m distance at randwick? ### Context: CREATE TABLE table_20626467_1 (jockey VARCHAR, distance VARCHAR, class VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT jockey FROM table_20626467_1 WHERE class = "Group 1" AND venue = "Randwick" AND distance = "1400m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class was the 2nd - portillo? ### Context: CREATE TABLE table_20626467_1 (class VARCHAR, winner_2nd VARCHAR) [/INST] ### Response: SELECT class FROM table_20626467_1 WHERE winner_2nd = "2nd - Portillo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time for the entrant weighing 54.4kg? ### Context: CREATE TABLE table_20626467_1 (time VARCHAR, weight__kg_ VARCHAR) [/INST] ### Response: SELECT time FROM table_20626467_1 WHERE weight__kg_ = "54.4kg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every entry for epoch if periselene is 5,454.925? ### Context: CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR) [/INST] ### Response: SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "5,454.925" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every entry for epoch if periselene is 2,291.250? ### Context: CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR) [/INST] ### Response: SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "2,291.250" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every value of period when eccentricity is 0.583085? ### Context: CREATE TABLE table_206217_2 (period__h_ VARCHAR, eccentricity VARCHAR) [/INST] ### Response: SELECT period__h_ FROM table_206217_2 WHERE eccentricity = "0.583085" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every value of epoch if inclination is 90.063603? ### Context: CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, inclination__deg___to_moon_equator_ VARCHAR) [/INST] ### Response: SELECT epoch__utc_ FROM table_206217_2 WHERE inclination__deg___to_moon_equator_ = "90.063603" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every value for periselene if period is 4.947432? ### Context: CREATE TABLE table_206217_2 (periselene__km_ VARCHAR, period__h_ VARCHAR) [/INST] ### Response: SELECT periselene__km_ FROM table_206217_2 WHERE period__h_ = "4.947432" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 values of periselene when epoch is November 15, 2004, 17:47:12.1? ### Context: CREATE TABLE table_206217_2 (periselene__km_ VARCHAR, epoch__utc_ VARCHAR) [/INST] ### Response: SELECT COUNT(periselene__km_) FROM table_206217_2 WHERE epoch__utc_ = "November 15, 2004, 17:47:12.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: How many times did the Bruins play Tennessee? ### Context: CREATE TABLE table_20630665_1 (result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_20630665_1 WHERE opponent = "Tennessee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 current tournament name for the event in Tampa? ### Context: CREATE TABLE table_20630462_1 (also_currently_known_as VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT also_currently_known_as FROM table_20630462_1 WHERE tournament = "Tampa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tier IV year for the tournament held in Tampa? ### Context: CREATE TABLE table_20630462_1 (tier_iv_in VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT tier_iv_in FROM table_20630462_1 WHERE tournament = "Tampa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the most years that tournaments held in Rome have lasted? ### Context: CREATE TABLE table_20630462_1 (years INTEGER, tournament VARCHAR) [/INST] ### Response: SELECT MAX(years) FROM table_20630462_1 WHERE tournament = "Rome" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city location of the tournament currently known as the Medibank International Sydney? ### Context: CREATE TABLE table_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR) [/INST] ### Response: SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = "Medibank International Sydney" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many different shareholders have 2.39 % of capital? ### Context: CREATE TABLE table_206359_1 (shareholder_name VARCHAR, _percentage_of_capital VARCHAR) [/INST] ### Response: SELECT COUNT(shareholder_name) FROM table_206359_1 WHERE _percentage_of_capital = "2.39" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shareholders have 0 A shares? ### Context: CREATE TABLE table_206359_1 (shareholder_name VARCHAR, a_shares VARCHAR) [/INST] ### Response: SELECT shareholder_name FROM table_206359_1 WHERE a_shares = 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage of votes does the shareholder with 78.19% of capital have? ### Context: CREATE TABLE table_206359_1 (_percentage_of_votes VARCHAR, _percentage_of_capital VARCHAR) [/INST] ### Response: SELECT _percentage_of_votes FROM table_206359_1 WHERE _percentage_of_capital = "78.19" </s>