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 Anchero Pantaleone was the elector what is under nationality? ### Context: CREATE TABLE table_name_11 (nationality VARCHAR, elector VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_11 WHERE elector = "anchero pantaleone" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a date of May 1262 under elevated, Guillaume de Bray as the elector, what is the order and title? ### Context: CREATE TABLE table_name_78 (order_and_title VARCHAR, elevated VARCHAR, elector VARCHAR) [/INST] ### Response: SELECT order_and_title FROM table_name_78 WHERE elevated = "may 1262" AND elector = "guillaume de bray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the San Francisco 49ers were the opponents? ### Context: CREATE TABLE table_name_35 (result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_35 WHERE opponent = "san francisco 49ers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Score of the Rabat Tournament with Opponent in the final Yannik Reuter? ### Context: CREATE TABLE table_name_20 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_20 WHERE tournament = "rabat" AND opponent_in_the_final = "yannik reuter" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent of the match played on a Clay Surface with a Score of 6–0, 6–2? ### Context: CREATE TABLE table_name_4 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_4 WHERE surface = "clay" AND score = "6–0, 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: What is the Date of the match with Opponent in the final of Filip Polášek? ### Context: CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT date FROM table_name_49 WHERE opponent_in_the_final = "filip polášek" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rabat Tournament with Opponent in the final of Frederico Gil? ### Context: CREATE TABLE table_name_56 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_56 WHERE tournament = "rabat" AND opponent_in_the_final = "frederico gil" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result of the game W 30–15? ### Context: CREATE TABLE table_name_40 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_40 WHERE result = "w 30–15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Date of Week 9? ### Context: CREATE TABLE table_name_6 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_6 WHERE week = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Result of the game on September 1, 1996? ### Context: CREATE TABLE table_name_56 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_56 WHERE date = "september 1, 1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Week was the Result W 34–24? ### Context: CREATE TABLE table_name_22 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_22 WHERE result = "w 34–24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Week on November 10, 1996? ### Context: CREATE TABLE table_name_42 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_42 WHERE date = "november 10, 1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Paris with a Census Ranking of 3,474 of 5,008? ### Context: CREATE TABLE table_name_2 (status VARCHAR, census_ranking VARCHAR) [/INST] ### Response: SELECT status FROM table_name_2 WHERE census_ranking = "3,474 of 5,008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Area of the Parish with a Population of 2,113? ### Context: CREATE TABLE table_name_58 (area_km_2 VARCHAR, population VARCHAR) [/INST] ### Response: SELECT COUNT(area_km_2) FROM table_name_58 WHERE population = 2 OFFSET 113 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Population of the Parish with an Area km 2 of 236.76? ### Context: CREATE TABLE table_name_85 (population INTEGER, area_km_2 VARCHAR) [/INST] ### Response: SELECT MIN(population) FROM table_name_85 WHERE area_km_2 = 236.76 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Area of the Parish with a Population of 71? ### Context: CREATE TABLE table_name_71 (area_km_2 VARCHAR, population VARCHAR) [/INST] ### Response: SELECT area_km_2 FROM table_name_71 WHERE population = 71 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 elevation and height for Halfbeak? ### Context: CREATE TABLE table_name_21 (elevation_ VARCHAR, _height VARCHAR, name VARCHAR) [/INST] ### Response: SELECT elevation_ + _height FROM table_name_21 WHERE name = "halfbeak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 purpose of Long Shot? ### Context: CREATE TABLE table_name_91 (purpose VARCHAR, name VARCHAR) [/INST] ### Response: SELECT purpose FROM table_name_91 WHERE name = "long shot" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 yield in NTS Area U2R when the purpose is weapons development? ### Context: CREATE TABLE table_name_69 (yield VARCHAR, purpose VARCHAR, location VARCHAR) [/INST] ### Response: SELECT yield FROM table_name_69 WHERE purpose = "weapons development" AND location = "nts area u2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location was listed on 1977-09-15? ### Context: CREATE TABLE table_name_60 (location VARCHAR, listed VARCHAR) [/INST] ### Response: SELECT location FROM table_name_60 WHERE listed = "1977-09-15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Borough for the Seward listing on 1977-11-23? ### Context: CREATE TABLE table_name_54 (borough VARCHAR, location VARCHAR, listed VARCHAR) [/INST] ### Response: SELECT borough FROM table_name_54 WHERE location = "seward" AND listed = "1977-11-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: What location was listed on 1977-11-23? ### Context: CREATE TABLE table_name_25 (location VARCHAR, listed VARCHAR) [/INST] ### Response: SELECT location FROM table_name_25 WHERE listed = "1977-11-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: What are the listings in the Valdez-cordova (census area) Borough? ### Context: CREATE TABLE table_name_93 (listed VARCHAR, borough VARCHAR) [/INST] ### Response: SELECT listed FROM table_name_93 WHERE borough = "valdez-cordova (census area)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 building listed on 1977-11-23? ### Context: CREATE TABLE table_name_81 (name VARCHAR, listed VARCHAR) [/INST] ### Response: SELECT name FROM table_name_81 WHERE listed = "1977-11-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: What was the Maple Leafs' record on game 52? ### Context: CREATE TABLE table_name_51 (record VARCHAR, game VARCHAR) [/INST] ### Response: SELECT record FROM table_name_51 WHERE game = 52 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Germany's lowest sales when the profit was smaller than 6.7 billion? ### Context: CREATE TABLE table_name_43 (sales__billion_ INTEGER, headquarters VARCHAR, profits__billion_$_ VARCHAR) [/INST] ### Response: SELECT MIN(sales__billion_) AS $_ FROM table_name_43 WHERE headquarters = "germany" AND profits__billion_$_ < 6.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: For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion? ### Context: CREATE TABLE table_name_83 (industry VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR) [/INST] ### Response: SELECT industry FROM table_name_83 WHERE profits__billion_$_ < 14.2 AND assets__billion_$_ > 2 OFFSET 467.9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average rank for USA when the market value is 407.2 billion? ### Context: CREATE TABLE table_name_31 (rank INTEGER, headquarters VARCHAR, market_value__billion_$_ VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_31 WHERE headquarters = "usa" AND market_value__billion_$_ > 407.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 was date was the attendance larger than 875 against Platense? ### Context: CREATE TABLE table_name_26 (date VARCHAR, attendance VARCHAR, home VARCHAR) [/INST] ### Response: SELECT date FROM table_name_26 WHERE attendance > 875 AND home = "platense" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team with 3305 in attendance? ### Context: CREATE TABLE table_name_27 (home VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT home FROM table_name_27 WHERE attendance = 3305 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest attendance for the Hispano team? ### Context: CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_56 WHERE home = "hispano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country has the player Tiger Woods? ### Context: CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_60 WHERE player = "tiger woods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Money ($) player Loren Roberts has made? ### Context: CREATE TABLE table_name_93 (money___ INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(money___) AS $__ FROM table_name_93 WHERE player = "loren roberts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pinnacle height for Metcalf, Georgia? ### Context: CREATE TABLE table_name_17 (pinnacle_height VARCHAR, town VARCHAR) [/INST] ### Response: SELECT pinnacle_height FROM table_name_17 WHERE town = "metcalf, georgia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 placed t7 with a score of 70-71=141? ### Context: CREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_16 WHERE place = "t7" AND score = 70 - 71 = 141 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country scored 71-69=140? ### Context: CREATE TABLE table_name_30 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_30 WHERE score = 71 - 69 = 140 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nation had more than 3 bronze, 0 gold, and a total of 9? ### Context: CREATE TABLE table_name_38 (nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_38 WHERE bronze > 3 AND gold = 0 AND total = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the earliest year the new york giants lost at new meadowlands stadium? ### Context: CREATE TABLE table_name_31 (year INTEGER, loser VARCHAR, location VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_31 WHERE loser = "new york giants" AND location = "new meadowlands 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: How many years did the new york giants lose at metlife stadium? ### Context: CREATE TABLE table_name_15 (year VARCHAR, location VARCHAR, loser VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_15 WHERE location = "metlife stadium" AND loser = "new york giants" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years did the new york giants win with a result of 15-7 at lincoln financial field? ### Context: CREATE TABLE table_name_53 (year VARCHAR, result VARCHAR, location VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_53 WHERE location = "lincoln financial field" AND winner = "new york giants" AND result = "15-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: Who lost when the philadelphia eagles won at lincoln financial field on september 30? ### Context: CREATE TABLE table_name_24 (loser VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT loser FROM table_name_24 WHERE location = "lincoln financial field" AND winner = "philadelphia eagles" AND date = "september 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: What date did the new york giants win after 2011? ### Context: CREATE TABLE table_name_96 (date VARCHAR, winner VARCHAR, year VARCHAR) [/INST] ### Response: SELECT date FROM table_name_96 WHERE winner = "new york giants" AND year > 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Official Name, when Census Ranking is 769 of 5,008? ### Context: CREATE TABLE table_name_70 (official_name VARCHAR, census_ranking VARCHAR) [/INST] ### Response: SELECT official_name FROM table_name_70 WHERE census_ranking = "769 of 5,008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Status, when Area km 2 is greater than 303.73? ### Context: CREATE TABLE table_name_93 (status VARCHAR, area_km_2 INTEGER) [/INST] ### Response: SELECT status FROM table_name_93 WHERE area_km_2 > 303.73 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Area km 2, when Population is greater than 1,395? ### Context: CREATE TABLE table_name_21 (area_km_2 INTEGER, population INTEGER) [/INST] ### Response: SELECT MIN(area_km_2) FROM table_name_21 WHERE population > 1 OFFSET 395 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Place of the Player from Zimbabwe? ### Context: CREATE TABLE table_name_75 (place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT place FROM table_name_75 WHERE country = "zimbabwe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Place of the Player with a Score of 73-68-71=212? ### Context: CREATE TABLE table_name_16 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_16 WHERE score = 73 - 68 - 71 = 212 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Place of the Player with a +3 To par? ### Context: CREATE TABLE table_name_19 (place VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT place FROM table_name_19 WHERE to_par = "+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 Score of Stewart Cink with a To par of +4? ### Context: CREATE TABLE table_name_50 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_50 WHERE to_par = "+4" AND player = "stewart cink" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 T10 Place Player has a Score of 74-73-68=215? ### Context: CREATE TABLE table_name_96 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_96 WHERE place = "t10" AND score = 74 - 73 - 68 = 215 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255? ### Context: CREATE TABLE table_name_16 (pick INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_16 WHERE position = "wr" AND college = "michigan" AND overall > 255 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round when DB was the position, and the pick less than 21, and Jeff Welch as the name? ### Context: CREATE TABLE table_name_95 (round INTEGER, pick VARCHAR, position VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_95 WHERE position = "db" AND name = "jeff welch" AND pick < 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 Player, when Year(s) Won is 1978 , 1985? ### Context: CREATE TABLE table_name_41 (player VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT player FROM table_name_41 WHERE year_s__won = "1978 , 1985" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5? ### Context: CREATE TABLE table_name_49 (pick INTEGER, college VARCHAR, round VARCHAR) [/INST] ### Response: SELECT AVG(pick) FROM table_name_49 WHERE college = "purdue" AND round < 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2? ### Context: CREATE TABLE table_name_11 (pick INTEGER, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_11 WHERE position = "te" 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 AVERAGE OVERALL, FOR MARK FISCHER? ### Context: CREATE TABLE table_name_56 (overall INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_56 WHERE name = "mark fischer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7? ### Context: CREATE TABLE table_name_82 (pick INTEGER, name VARCHAR, round VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_82 WHERE name = "david terrell" AND round < 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 POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191? ### Context: CREATE TABLE table_name_9 (position VARCHAR, round VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT position FROM table_name_9 WHERE round > 6 AND overall = 191 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the player with a score of 68-71=139? ### Context: CREATE TABLE table_name_84 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_84 WHERE score = 68 - 71 = 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: What is the to par of player jerry pate, who has a 70-69=139 score? ### Context: CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_66 WHERE score = 70 - 69 = 139 AND player = "jerry pate" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 to par of the player with a t9 place and a score of 72-67=139? ### Context: CREATE TABLE table_name_86 (to_par VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_86 WHERE place = "t9" AND score = 72 - 67 = 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: What is the place of the player witha 69-69=138 score? ### Context: CREATE TABLE table_name_45 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_45 WHERE score = 69 - 69 = 138 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team played the Jazz at game 68? ### Context: CREATE TABLE table_name_50 (team VARCHAR, game VARCHAR) [/INST] ### Response: SELECT team FROM table_name_50 WHERE game = 68 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did mehmet okur (24) have the most points? ### Context: CREATE TABLE table_name_14 (date VARCHAR, high_points VARCHAR) [/INST] ### Response: SELECT date FROM table_name_14 WHERE high_points = "mehmet okur (24)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week had attendance of 64,146? ### Context: CREATE TABLE table_name_3 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_3 WHERE attendance = 64 OFFSET 146 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance of week 12? ### Context: CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_63 WHERE week = 12 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance from November 3, 1974? ### Context: CREATE TABLE table_name_35 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_35 WHERE date = "november 3, 1974" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance of week 8? ### Context: CREATE TABLE table_name_23 (attendance VARCHAR, week VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_23 WHERE week = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the loser against the New York Giants in 2001? ### Context: CREATE TABLE table_name_43 (loser VARCHAR, year VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT loser FROM table_name_43 WHERE year = 2001 AND winner = "new york giants" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location with the 24-21 result? ### Context: CREATE TABLE table_name_54 (location VARCHAR, result VARCHAR) [/INST] ### Response: SELECT location FROM table_name_54 WHERE result = "24-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 winner with the 24-21 result? ### Context: CREATE TABLE table_name_60 (winner VARCHAR, result VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_60 WHERE result = "24-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 average To Par, when Place is "T3", and when Player is "Ben Hogan"? ### Context: CREATE TABLE table_name_33 (to_par INTEGER, place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(to_par) FROM table_name_33 WHERE place = "t3" AND player = "ben hogan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To Par, when Player is "Julius Boros"? ### Context: CREATE TABLE table_name_22 (to_par INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(to_par) FROM table_name_22 WHERE player = "julius boros" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To Par, when Score is "72-73=145"? ### Context: CREATE TABLE table_name_35 (to_par INTEGER, score VARCHAR) [/INST] ### Response: SELECT MAX(to_par) FROM table_name_35 WHERE score = 72 - 73 = 145 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score, when Place is "T1"? ### Context: CREATE TABLE table_name_15 (score VARCHAR, place VARCHAR) [/INST] ### Response: SELECT score FROM table_name_15 WHERE place = "t1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Place, when To Par is "5", and when Score is "72-73=145"? ### Context: CREATE TABLE table_name_30 (place VARCHAR, to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_30 WHERE to_par = 5 AND score = 72 - 73 = 145 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 # after round 11? ### Context: CREATE TABLE table_name_33 (pick__number INTEGER, round INTEGER) [/INST] ### Response: SELECT MAX(pick__number) FROM table_name_33 WHERE round > 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which college has a pick # 84 in round 3? ### Context: CREATE TABLE table_name_47 (college VARCHAR, round VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT college FROM table_name_47 WHERE round = 3 AND pick__number = 84 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick # for round 11? ### Context: CREATE TABLE table_name_68 (pick__number VARCHAR, round VARCHAR) [/INST] ### Response: SELECT pick__number FROM table_name_68 WHERE round = 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297? ### Context: CREATE TABLE table_name_64 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_64 WHERE round > 8 AND name = "kenny fells" AND overall > 297 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 7, and a Name of wayne asberry? ### Context: CREATE TABLE table_name_92 (position VARCHAR, round VARCHAR, name VARCHAR) [/INST] ### Response: SELECT position FROM table_name_92 WHERE round > 7 AND name = "wayne asberry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Overall has a Name of markus koch? ### Context: CREATE TABLE table_name_39 (overall INTEGER, name VARCHAR) [/INST] ### Response: SELECT SUM(overall) FROM table_name_39 WHERE name = "markus koch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smaller than 8, a Pick of 20, and an Overall smaller than 186? ### Context: CREATE TABLE table_name_17 (position VARCHAR, overall VARCHAR, round VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT position FROM table_name_17 WHERE round < 8 AND pick = 20 AND overall < 186 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Fulham is the away team? ### Context: CREATE TABLE table_name_55 (score VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_55 WHERE away_team = "fulham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team has a tie number of 14? ### Context: CREATE TABLE table_name_62 (away_team VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_62 WHERE tie_no = "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: What is the tie number in the game on 5 January 1986 where Exeter City is the away team? ### Context: CREATE TABLE table_name_26 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_26 WHERE date = "5 january 1986" AND away_team = "exeter city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total average for McCain% of 55.0% and Obama# higher than 3,487? ### Context: CREATE TABLE table_name_52 (total INTEGER, mccain_percentage VARCHAR, obama_number VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_52 WHERE mccain_percentage = "55.0%" AND obama_number > 3 OFFSET 487 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2010 when 2009 is w and 2007 is qf? ### Context: CREATE TABLE table_name_8 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_8 WHERE 2009 = "w" AND 2007 = "qf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2000 when 2012 is 4r? ### Context: CREATE TABLE table_name_4 (Id VARCHAR) [/INST] ### Response: SELECT 2000 FROM table_name_4 WHERE 2012 = "4r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2000 when 2012 is w and 2011 is 4r? ### Context: CREATE TABLE table_name_54 (Id VARCHAR) [/INST] ### Response: SELECT 2000 FROM table_name_54 WHERE 2012 = "w" AND 2011 = "4r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2010 when 2006 is 3r? ### Context: CREATE TABLE table_name_24 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_24 WHERE 2006 = "3r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2013 when 2001 is qf and 2011 is 4r? ### Context: CREATE TABLE table_name_11 (Id VARCHAR) [/INST] ### Response: SELECT 2013 FROM table_name_11 WHERE 2001 = "qf" AND 2011 = "4r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round for the record of 1-1? ### Context: CREATE TABLE table_name_25 (round INTEGER, record VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_25 WHERE record = "1-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 method had a record 12-2-3? ### Context: CREATE TABLE table_name_87 (method VARCHAR, record VARCHAR) [/INST] ### Response: SELECT method FROM table_name_87 WHERE record = "12-2-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 Hanyu Pinyin is in the Jinning Township? ### Context: CREATE TABLE table_name_66 (hanyu_pinyin VARCHAR, name VARCHAR) [/INST] ### Response: SELECT hanyu_pinyin FROM table_name_66 WHERE name = "jinning township" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Sham Kwok Fai score in the game that was played on 22 February 2006? ### Context: CREATE TABLE table_name_72 (scored INTEGER, date VARCHAR) [/INST] ### Response: SELECT SUM(scored) FROM table_name_72 WHERE date = "22 february 2006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The home team york city has what score? ### Context: CREATE TABLE table_name_44 (score VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_44 WHERE home_team = "york city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of Week(s), when Attendance is 61,603? ### Context: CREATE TABLE table_name_23 (week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_23 WHERE attendance = "61,603" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent, when Attendance is 62,170? ### Context: CREATE TABLE table_name_52 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_52 WHERE attendance = "62,170" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17? ### Context: CREATE TABLE table_name_43 (points INTEGER, driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_43 WHERE driver = "alex sperafico" AND grid > 17 </s>