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: How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums? ### Context: CREATE TABLE table_name_43 (wins VARCHAR, series VARCHAR, podiums VARCHAR) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_43 WHERE series = "formula 3 euro series" AND podiums > 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 largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy? ### Context: CREATE TABLE table_name_92 (wins INTEGER, season VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_92 WHERE season < 2007 AND team = "silverstone motorsport academy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0? ### Context: CREATE TABLE table_name_65 (season INTEGER, wins VARCHAR, podiums VARCHAR, races VARCHAR) [/INST] ### Response: SELECT MAX(season) FROM table_name_65 WHERE podiums = 0 AND races = 1 AND wins > 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: Name the week for december 4, 2009 ### Context: CREATE TABLE table_name_80 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_80 WHERE date = "december 4, 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: Name the opponent with record of 6-2 ### Context: CREATE TABLE table_name_19 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_19 WHERE record = "6-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 opponent with result of w 35-21 ### Context: CREATE TABLE table_name_82 (opponent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_82 WHERE result = "w 35-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: Name the date with resultof w 35-7 ### Context: CREATE TABLE table_name_22 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_22 WHERE result = "w 35-7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the date with record of 3-1 ### Context: CREATE TABLE table_name_33 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_33 WHERE record = "3-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: Name the week for date of bye ### Context: CREATE TABLE table_name_29 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_29 WHERE date = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 friendly game for Germany of France? ### Context: CREATE TABLE table_name_58 (friendly VARCHAR, germany VARCHAR) [/INST] ### Response: SELECT friendly FROM table_name_58 WHERE germany = "france" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 company is numbered larger than 5 and priced at $389M? ### Context: CREATE TABLE table_name_84 (company VARCHAR, number VARCHAR, price VARCHAR) [/INST] ### Response: SELECT company FROM table_name_84 WHERE number > 5 AND price = "$389m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category was william ivey long a nominee and nominated in? ### Context: CREATE TABLE table_name_55 (category VARCHAR, result VARCHAR, nominee VARCHAR) [/INST] ### Response: SELECT category FROM table_name_55 WHERE result = "nominated" AND nominee = "william ivey long" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 half-life discovered in 2003? ### Context: CREATE TABLE table_name_22 (half_life VARCHAR, discovery_year VARCHAR) [/INST] ### Response: SELECT half_life FROM table_name_22 WHERE discovery_year = "2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 decay mode of the 265m hs isotope discovered in 1984? ### Context: CREATE TABLE table_name_28 (decay_mode VARCHAR, discovery_year VARCHAR, isotope VARCHAR) [/INST] ### Response: SELECT decay_mode FROM table_name_28 WHERE discovery_year = "1984" AND isotope = "265m hs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Frequency MHz of Trinidad, Colorado? ### Context: CREATE TABLE table_name_6 (frequency_mhz VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT frequency_mhz FROM table_name_6 WHERE city_of_license = "trinidad, colorado" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7? ### Context: CREATE TABLE table_name_76 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_76 WHERE erp_w < 500 AND class = "a" AND frequency_mhz > 89.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 smallest capacity for Fandok? ### Context: CREATE TABLE table_name_84 (capacity INTEGER, team VARCHAR) [/INST] ### Response: SELECT MIN(capacity) FROM table_name_84 WHERE team = "fandok" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick number of a defensive back with less than 136 overall points? ### Context: CREATE TABLE table_name_99 (pick__number INTEGER, overall VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MAX(pick__number) FROM table_name_99 WHERE overall < 136 AND position = "defensive back" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest pick number of John Scully? ### Context: CREATE TABLE table_name_45 (pick__number INTEGER, name VARCHAR) [/INST] ### Response: SELECT MIN(pick__number) FROM table_name_45 WHERE name = "john scully" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points with less than 5 games? ### Context: CREATE TABLE table_name_28 (points VARCHAR, games INTEGER) [/INST] ### Response: SELECT COUNT(points) FROM table_name_28 WHERE games < 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 the outcome for the India Open? ### Context: CREATE TABLE table_name_34 (outcome VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_34 WHERE venue = "india open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome at the 1985 India Open? ### Context: CREATE TABLE table_name_16 (outcome VARCHAR, year VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_16 WHERE year = "1985" AND venue = "india open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outcome in 1982 with Kang Haeng-Suk as partner? ### Context: CREATE TABLE table_name_88 (outcome VARCHAR, partner VARCHAR, year VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_88 WHERE partner = "kang haeng-suk" AND year = "1982" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Party has a First elected smaller than 1878, and a District of south carolina 3? ### Context: CREATE TABLE table_name_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Result has a First elected of 1876, and a District of south carolina 3? ### Context: CREATE TABLE table_name_6 (result VARCHAR, first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_name_6 WHERE first_elected = 1876 AND district = "south carolina 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson? ### Context: CREATE TABLE table_name_98 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_98 WHERE first_elected > 1876 AND incumbent = "john s. richardson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent that is a republican and first elected before 1864? ### Context: CREATE TABLE table_name_73 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_name_73 WHERE party = "republican" AND first_elected < 1864 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district is the democratic Francis C. Le Blond from? ### Context: CREATE TABLE table_name_69 (district VARCHAR, party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_name_69 WHERE party = "democratic" AND incumbent = "francis c. le blond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Ohio 4 district, that is the first elected date that has a result of re-elected? ### Context: CREATE TABLE table_name_66 (first_elected INTEGER, result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT SUM(first_elected) FROM table_name_66 WHERE result = "re-elected" AND district = "ohio 4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the party in Ohio 6 District? ### Context: CREATE TABLE table_name_68 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_name_68 WHERE district = "ohio 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: Which To par has a Year of 1994? ### Context: CREATE TABLE table_name_24 (to_par VARCHAR, year VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_24 WHERE year = 1994 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country has a Margin of victory of 2 strokes? ### Context: CREATE TABLE table_name_91 (country VARCHAR, margin_of_victory VARCHAR) [/INST] ### Response: SELECT country FROM table_name_91 WHERE margin_of_victory = "2 strokes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year is the lowest one that has a To par of –1? ### Context: CREATE TABLE table_name_93 (year INTEGER, to_par VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_93 WHERE to_par = "–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: Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274? ### Context: CREATE TABLE table_name_25 (margin_of_victory VARCHAR, year VARCHAR, to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_25 WHERE year > 1994 AND to_par = "–14" AND score = 69 - 67 - 69 - 69 = 274 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record after the game at the Astrodome? ### Context: CREATE TABLE table_name_37 (record VARCHAR, location VARCHAR) [/INST] ### Response: SELECT record FROM table_name_37 WHERE location = "astrodome" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record after the game against the Houston Oilers? ### Context: CREATE TABLE table_name_98 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_98 WHERE opponent = "houston oilers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average total score of Belarus, which had an E score less than 8.2? ### Context: CREATE TABLE table_name_71 (total INTEGER, nation VARCHAR, e_score VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_71 WHERE nation = "belarus" AND e_score < 8.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 total of the team with a T score greater than 8 and an E score less than 8.4? ### Context: CREATE TABLE table_name_57 (total INTEGER, t_score VARCHAR, e_score VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_57 WHERE t_score > 8 AND e_score < 8.4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the T score of the team with an E score of 6.625? ### Context: CREATE TABLE table_name_52 (t_score VARCHAR, e_score VARCHAR) [/INST] ### Response: SELECT t_score FROM table_name_52 WHERE e_score = 6.625 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of Poland, which has an E score greater than 7.725? ### Context: CREATE TABLE table_name_97 (total VARCHAR, nation VARCHAR, e_score VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_97 WHERE nation = "poland" AND e_score > 7.725 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the team with a T score less than 6.8? ### Context: CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER) [/INST] ### Response: SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.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 date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue? ### Context: CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opposition do 31.1% of Social Democrats have? ### Context: CREATE TABLE table_name_70 (opposition VARCHAR, social_democrats__a_ VARCHAR) [/INST] ### Response: SELECT opposition FROM table_name_70 WHERE social_democrats__a_ = "31.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: Which Position has a Round larger than 14, and a School/Club Team of north texas? ### Context: CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT position FROM table_name_22 WHERE round > 14 AND school_club_team = "north texas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Round has a Player of anthony christnovich? ### Context: CREATE TABLE table_name_72 (round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT round FROM table_name_72 WHERE player = "anthony christnovich" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round is the lowest one that has a School/Club Team of virginia? ### Context: CREATE TABLE table_name_20 (round INTEGER, school_club_team VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_20 WHERE school_club_team = "virginia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the leading scorer on 2006-11-22? ### Context: CREATE TABLE table_name_5 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_5 WHERE date = "2006-11-22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the leading scorer when the record was 9–6? ### Context: CREATE TABLE table_name_18 (leading_scorer VARCHAR, record VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_18 WHERE record = "9–6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of people in Attendance when Visitor was the warriors on 2006-11-04? ### Context: CREATE TABLE table_name_40 (attendance VARCHAR, visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_40 WHERE visitor = "warriors" AND date = "2006-11-04" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the visitor on 2006-11-04? ### Context: CREATE TABLE table_name_46 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_46 WHERE date = "2006-11-04" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the Leading scorer when the Score was 89–102? ### Context: CREATE TABLE table_name_59 (leading_scorer VARCHAR, score VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_59 WHERE score = "89–102" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 live in Norton? ### Context: CREATE TABLE table_name_1 (population INTEGER, town VARCHAR) [/INST] ### Response: SELECT SUM(population) FROM table_name_1 WHERE town = "norton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish? ### Context: CREATE TABLE table_name_59 (year VARCHAR, definition VARCHAR, borough VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT year FROM table_name_59 WHERE borough = "harrogate" AND rank < 6 AND definition = "civil parish" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Definition has a Rank smaller than 12, and a Town of tadcaster? ### Context: CREATE TABLE table_name_63 (definition VARCHAR, rank VARCHAR, town VARCHAR) [/INST] ### Response: SELECT definition FROM table_name_63 WHERE rank < 12 AND town = "tadcaster" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178? ### Context: CREATE TABLE table_name_16 (rank INTEGER, borough VARCHAR, population VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_16 WHERE borough = "richmondshire" AND population > 8 OFFSET 178 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bronze medals did Bulgaria receive? ### Context: CREATE TABLE table_name_1 (bronze VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT bronze FROM table_name_1 WHERE nation = "bulgaria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Phil Mickelson's score to par? ### Context: CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_28 WHERE player = "phil mickelson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name has an overall less than 268, and 1 as the round? ### Context: CREATE TABLE table_name_98 (name VARCHAR, overall VARCHAR, round VARCHAR) [/INST] ### Response: SELECT name FROM table_name_98 WHERE overall < 268 AND round = 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 pick #'s have james britt as the name, with a round greater than 2? ### Context: CREATE TABLE table_name_91 (pick__number VARCHAR, name VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_name_91 WHERE name = "james britt" AND round > 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 score on november 15 ### Context: CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_66 WHERE date = "november 15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4? ### Context: CREATE TABLE table_name_66 (wins INTEGER, rank VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_66 WHERE country = "united states" AND player = "andy bean" AND rank < 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: Which Country has a Rank of 5? ### Context: CREATE TABLE table_name_23 (country VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT country FROM table_name_23 WHERE rank = 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: Which Earnings ($) is the lowest one that has a Rank smaller than 1? ### Context: CREATE TABLE table_name_12 (earnings___ INTEGER, rank INTEGER) [/INST] ### Response: SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 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 score of the game on September 13 when the Expos were the opponent? ### Context: CREATE TABLE table_name_49 (score VARCHAR, opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_49 WHERE opponent = "expos" AND date = "september 13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent on the September 3 game? ### Context: CREATE TABLE table_name_38 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_38 WHERE date = "september 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 save of the game on September 15? ### Context: CREATE TABLE table_name_92 (save VARCHAR, date VARCHAR) [/INST] ### Response: SELECT save FROM table_name_92 WHERE date = "september 15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Game site has a Week larger than 14? ### Context: CREATE TABLE table_name_44 (game_site VARCHAR, week INTEGER) [/INST] ### Response: SELECT game_site FROM table_name_44 WHERE week > 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Date has a Game site of jeppesen stadium? ### Context: CREATE TABLE table_name_27 (date VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT date FROM table_name_27 WHERE game_site = "jeppesen stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Game site has 27,189 Attendances ? ### Context: CREATE TABLE table_name_99 (game_site VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT game_site FROM table_name_99 WHERE attendance = "27,189" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is it has 15,557 Attendances? ### Context: CREATE TABLE table_name_35 (date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_35 WHERE attendance = "15,557" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With an Overall less than 171, what is the Round pick of Lance Moon? ### Context: CREATE TABLE table_name_36 (round INTEGER, name VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_36 WHERE name = "lance moon" AND overall < 171 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of draft Pick #10? ### Context: CREATE TABLE table_name_19 (name VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT name FROM table_name_19 WHERE pick__number = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Rounds have a Defensive End Pick? ### Context: CREATE TABLE table_name_16 (round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_16 WHERE position = "defensive end" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Shinya Aoki was the opponent? ### Context: CREATE TABLE table_name_57 (time VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT time FROM table_name_57 WHERE opponent = "shinya aoki" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 method was used in round 1 with a record of 1-0? ### Context: CREATE TABLE table_name_89 (method VARCHAR, round VARCHAR, record VARCHAR) [/INST] ### Response: SELECT method FROM table_name_89 WHERE round = 1 AND record = "1-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: Which rank has a team of Suzuki with under 16 points? ### Context: CREATE TABLE table_name_96 (rank VARCHAR, team VARCHAR, points VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_96 WHERE team = "suzuki" AND points < 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: Which class has a rank of 5th? ### Context: CREATE TABLE table_name_79 (class VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT class FROM table_name_79 WHERE rank = "5th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has a class of 500cc and rank of 16th? ### Context: CREATE TABLE table_name_88 (team VARCHAR, class VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT team FROM table_name_88 WHERE class = "500cc" AND rank = "16th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has 16 points and ranks 14th? ### Context: CREATE TABLE table_name_90 (team VARCHAR, points VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT team FROM table_name_90 WHERE points = 16 AND rank = "14th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dance that has priscilla presley is the worst dancer(s), and the worst score of 21? ### Context: CREATE TABLE table_name_68 (dance VARCHAR, worst_dancer_s_ VARCHAR, worst_score VARCHAR) [/INST] ### Response: SELECT dance FROM table_name_68 WHERE worst_dancer_s_ = "priscilla presley" AND worst_score = "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: What is the best score of the dance freestyle? ### Context: CREATE TABLE table_name_30 (best_score VARCHAR, dance VARCHAR) [/INST] ### Response: SELECT best_score FROM table_name_30 WHERE dance = "freestyle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dance has the worst dancer(s) as marissa jaret winokur? ### Context: CREATE TABLE table_name_52 (dance VARCHAR, worst_dancer_s_ VARCHAR) [/INST] ### Response: SELECT dance FROM table_name_52 WHERE worst_dancer_s_ = "marissa jaret winokur" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points have an Opponent of vancouver canucks? ### Context: CREATE TABLE table_name_91 (points INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_91 WHERE opponent = "vancouver canucks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points have a Score of 3–0? ### Context: CREATE TABLE table_name_80 (points VARCHAR, score VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_80 WHERE score = "3–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: Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals? ### Context: CREATE TABLE table_name_5 (game INTEGER, opponent VARCHAR, points VARCHAR, october VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_5 WHERE points < 10 AND october > 12 AND opponent = "@ washington capitals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has Points larger than 0, and a Score of 7–3? ### Context: CREATE TABLE table_name_96 (record VARCHAR, points VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_96 WHERE points > 0 AND score = "7–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: On what date was the game more than 5? ### Context: CREATE TABLE table_name_23 (date VARCHAR, game INTEGER) [/INST] ### Response: SELECT date FROM table_name_23 WHERE game > 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: Which series was on May 16? ### Context: CREATE TABLE table_name_4 (series VARCHAR, date VARCHAR) [/INST] ### Response: SELECT series FROM table_name_4 WHERE date = "may 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: Name the date for oregon jurisdiction ### Context: CREATE TABLE table_name_92 (date VARCHAR, jurisdiction VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 WHERE jurisdiction = "oregon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 john b. anderson for ronald reagan of 43% and phil crane of 0% ### Context: CREATE TABLE table_name_21 (john_b_anderson VARCHAR, phil_crane VARCHAR, ronald_reagan VARCHAR) [/INST] ### Response: SELECT john_b_anderson FROM table_name_21 WHERE phil_crane = "0%" AND ronald_reagan = "43%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 howard bake when bush had 66% ### Context: CREATE TABLE table_name_64 (howard_baker VARCHAR, george_h_w_bush VARCHAR) [/INST] ### Response: SELECT howard_baker FROM table_name_64 WHERE george_h_w_bush = "66%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 george bush for ronald reagan of 43% ### Context: CREATE TABLE table_name_59 (george_h_w_bush VARCHAR, ronald_reagan VARCHAR) [/INST] ### Response: SELECT george_h_w_bush FROM table_name_59 WHERE ronald_reagan = "43%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 howard baker for ronald reagan of 72% ### Context: CREATE TABLE table_name_46 (howard_baker VARCHAR, ronald_reagan VARCHAR) [/INST] ### Response: SELECT howard_baker FROM table_name_46 WHERE ronald_reagan = "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: What is the sum of goals for the 2004/05 Season? ### Context: CREATE TABLE table_name_48 (goals INTEGER, season VARCHAR) [/INST] ### Response: SELECT SUM(goals) FROM table_name_48 WHERE season = "2004/05" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest caps for the Club of SBV Excelsior? ### Context: CREATE TABLE table_name_86 (caps INTEGER, club VARCHAR) [/INST] ### Response: SELECT MIN(caps) FROM table_name_86 WHERE club = "sbv excelsior" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season has Caps lower than 36 for the Club of NAC Breda? ### Context: CREATE TABLE table_name_35 (season VARCHAR, caps VARCHAR, club VARCHAR) [/INST] ### Response: SELECT season FROM table_name_35 WHERE caps < 36 AND club = "nac breda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponents in the final have a Partner of daniella dominikovic? ### Context: CREATE TABLE table_name_91 (opponents_in_the_final VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT opponents_in_the_final FROM table_name_91 WHERE partner = "daniella dominikovic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date has a Partner of daniella dominikovic? ### Context: CREATE TABLE table_name_33 (date VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_33 WHERE partner = "daniella dominikovic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Surface has a Partner of pemra özgen? ### Context: CREATE TABLE table_name_89 (surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_89 WHERE partner = "pemra özgen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date has Opponents in the final of valeria casillo lilly raffa? ### Context: CREATE TABLE table_name_59 (date VARCHAR, opponents_in_the_final VARCHAR) [/INST] ### Response: SELECT date FROM table_name_59 WHERE opponents_in_the_final = "valeria casillo lilly raffa" </s>