text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Total, when Silver is 0, and when Gold is 1?
### Context:
CREATE TABLE table_name_72 (total INTEGER, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT SUM(total) FROM table_name_72 WHERE silver = 0 AND gold = 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 highest Total, when Gold is 1, when Nation is Hungary, and when Bronze is less than 0?
### Context:
CREATE TABLE table_name_32 (total INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_32 WHERE gold = 1 AND nation = "hungary" AND bronze < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Year of the Film Belle of the Nineties?
### Context:
CREATE TABLE table_name_22 (year VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_22 WHERE film = "belle of the nineties" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year of the Film Klondike Annie?
### Context:
CREATE TABLE table_name_25 (year INTEGER, film VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_25 WHERE film = "klondike annie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Studio of the Film with Director Gregory Ratoff after 1933?
### Context:
CREATE TABLE table_name_38 (studio VARCHAR, year VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT studio FROM table_name_38 WHERE year > 1933 AND director = "gregory ratoff" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 label has a year older than 2004 and a 2xcd detail as well as the sonic seducer cold hands seduction vol. 69 title?
### Context:
CREATE TABLE table_name_88 (label VARCHAR, title VARCHAR, year VARCHAR, details VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_88 WHERE year > 2004 AND details = "2xcd" AND title = "sonic seducer cold hands seduction vol. 69" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 details has the out of line label and the year of 2005?
### Context:
CREATE TABLE table_name_9 (details VARCHAR, label VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT details FROM table_name_9 WHERE label = "out of line" AND year = 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What average year contains the title of machineries of joy vol. 4?
### Context:
CREATE TABLE table_name_54 (year INTEGER, title VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_54 WHERE title = "machineries of joy vol. 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 track title has a year lesser thsn 2005?
### Context:
CREATE TABLE table_name_6 (Track VARCHAR, year INTEGER) [/INST]
### Response:
SELECT Track AS title FROM table_name_6 WHERE year < 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 less than 25, an overall greater than 159, a round less than 10, and wr as the position?
### Context:
CREATE TABLE table_name_10 (college VARCHAR, position VARCHAR, round VARCHAR, pick VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_10 WHERE pick < 25 AND overall > 159 AND round < 10 AND position = "wr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that has a pick less than 20, North Carolina as the college, with a round less than 8?
### Context:
CREATE TABLE table_name_69 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT AVG(overall) FROM table_name_69 WHERE pick < 20 AND college = "north carolina" AND round < 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:
How many overalls have a pick greater than 19, with florida as the college?
### Context:
CREATE TABLE table_name_24 (overall INTEGER, pick VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT SUM(overall) FROM table_name_24 WHERE pick > 19 AND college = "florida" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What college has an overall less than 243, and tony green as the name?
### Context:
CREATE TABLE table_name_70 (college VARCHAR, overall VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_70 WHERE overall < 243 AND name = "tony green" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Large end has a Taper/ft smaller than 0.6000000000000001?
### Context:
CREATE TABLE table_name_5 (large_end VARCHAR, taper VARCHAR, ft VARCHAR) [/INST]
### Response:
SELECT COUNT(large_end) FROM table_name_5 WHERE taper / ft < 0.6000000000000001 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Taper/ft that has a Large end smaller than 0.5, and a Taper of #2?
### Context:
CREATE TABLE table_name_27 (ft VARCHAR, taper INTEGER, large_end VARCHAR) [/INST]
### Response:
SELECT MAX(taper) / ft FROM table_name_27 WHERE large_end < 0.5 AND taper = "#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:
Which Length has a Taper of #15, and a Large end larger than 1.875?
### Context:
CREATE TABLE table_name_92 (length INTEGER, taper VARCHAR, large_end VARCHAR) [/INST]
### Response:
SELECT MAX(length) FROM table_name_92 WHERE taper = "#15" AND large_end > 1.875 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Angle from center/Β° has a Taper/ft smaller than 0.6000000000000001?
### Context:
CREATE TABLE table_name_97 (angle_from_center_ VARCHAR, taper VARCHAR, ft VARCHAR) [/INST]
### Response:
SELECT COUNT(angle_from_center_) AS Β° FROM table_name_97 WHERE taper / ft < 0.6000000000000001 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What driver had the highest grid position with a time of +0.283?
### Context:
CREATE TABLE table_name_90 (grid INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_90 WHERE time = "+0.283" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most number of laps run by Ilario Dionisi?
### Context:
CREATE TABLE table_name_89 (laps INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_89 WHERE rider = "ilario dionisi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps run by the driver with a grid under 17 and a time of +5.088?
### Context:
CREATE TABLE table_name_3 (laps INTEGER, time VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_3 WHERE time = "+5.088" AND grid < 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver with the laps under 16, grid of 10, a bike of Yamaha YZF-R6, and ended with an accident?
### Context:
CREATE TABLE table_name_67 (rider VARCHAR, grid VARCHAR, bike VARCHAR, laps VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_67 WHERE laps < 16 AND time = "accident" AND bike = "yamaha yzf-r6" AND grid = 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:
Who scored more than 72?
### Context:
CREATE TABLE table_name_28 (player VARCHAR, score INTEGER) [/INST]
### Response:
SELECT player FROM table_name_28 WHERE score > 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 top score for tsuneyuki nakajima?
### Context:
CREATE TABLE table_name_80 (score INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(score) FROM table_name_80 WHERE player = "tsuneyuki nakajima" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 low score for TO par +2 in japan?
### Context:
CREATE TABLE table_name_5 (score INTEGER, to_par VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT MIN(score) FROM table_name_5 WHERE to_par = "+2" AND country = "japan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Anders Forsbrand's Place?
### Context:
CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_14 WHERE player = "anders forsbrand" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T8 Place Player?
### Context:
CREATE TABLE table_name_78 (player VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_78 WHERE place = "t8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score of 70-71=141?
### Context:
CREATE TABLE table_name_58 (to_par INTEGER, score VARCHAR) [/INST]
### Response:
SELECT AVG(to_par) FROM table_name_58 WHERE 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:
Which Partner has Opponents in the final of john bromwich frank sedgman?
### Context:
CREATE TABLE table_name_20 (partner VARCHAR, opponents_in_the_final VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_20 WHERE opponents_in_the_final = "john bromwich frank sedgman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score of 4β6, 6β4, 2β6, 4β6?
### Context:
CREATE TABLE table_name_18 (opponents_in_the_final VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponents_in_the_final FROM table_name_18 WHERE score = "4β6, 6β4, 2β6, 4β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 Year has a Score of 5β7, 4β6, 6β3, 1β6?
### Context:
CREATE TABLE table_name_88 (year VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_88 WHERE score = "5β7, 4β6, 6β3, 1β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 Championship has a Score of 2β6, 4β6, 4β6?
### Context:
CREATE TABLE table_name_91 (championship VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_91 WHERE score = "2β6, 4β6, 4β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 Score has Opponents in the final of john bromwich frank sedgman?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, opponents_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_92 WHERE opponents_in_the_final = "john bromwich frank sedgman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent has a Date of november 17, 1963?
### Context:
CREATE TABLE table_name_30 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_30 WHERE date = "november 17, 1963" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent has a Result of l 14β10?
### Context:
CREATE TABLE table_name_27 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_27 WHERE result = "l 14β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:
Which Result has a Week smaller than 11, and Attendance of 17,568?
### Context:
CREATE TABLE table_name_87 (result VARCHAR, week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_87 WHERE week < 11 AND attendance = "17,568" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent has a Result of w 19β10?
### Context:
CREATE TABLE table_name_40 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_40 WHERE result = "w 19β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:
What is the average goals for Essi Sainio?
### Context:
CREATE TABLE table_name_54 (goals INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_54 WHERE name = "essi sainio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the champions in 1988?
### Context:
CREATE TABLE table_name_26 (champion VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT champion FROM table_name_26 WHERE year = 1988 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up in 1989?
### Context:
CREATE TABLE table_name_32 (runner_up VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_32 WHERE year = 1989 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 December, when Score is "4 - 4"?
### Context:
CREATE TABLE table_name_66 (december INTEGER, score VARCHAR) [/INST]
### Response:
SELECT MIN(december) FROM table_name_66 WHERE score = "4 - 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 Record, when Game is "24"?
### Context:
CREATE TABLE table_name_24 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_24 WHERE game = 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 Opponent, when Game is "37"?
### Context:
CREATE TABLE table_name_9 (opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_9 WHERE game = 37 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 spectators attended the game on 11/09/1935?
### Context:
CREATE TABLE table_name_22 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_22 WHERE date = "11/09/1935" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 against which the result was w20-0?
### Context:
CREATE TABLE table_name_3 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_3 WHERE result = "w20-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:
On which date was the result w20-0?
### Context:
CREATE TABLE table_name_66 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_66 WHERE result = "w20-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:
How many spectators attended the game that ended in a result of w29-7?
### Context:
CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_27 WHERE result = "w29-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:
Which Place has a To par of β8?
### Context:
CREATE TABLE table_name_19 (place VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_19 WHERE to_par = "β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:
Which Score has a Place of 3?
### Context:
CREATE TABLE table_name_18 (score VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_18 WHERE place = "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 average money has a Score of 69-72-72-72=285?
### Context:
CREATE TABLE table_name_38 (money___ INTEGER, score VARCHAR) [/INST]
### Response:
SELECT AVG(money___) AS $__ FROM table_name_38 WHERE score = 69 - 72 - 72 - 72 = 285 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score has a Place of t6, and a Country of paraguay?
### Context:
CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_20 WHERE place = "t6" AND country = "paraguay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total rounds for the texas college and has a pick smaller than 25?
### Context:
CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_39 WHERE college = "texas" AND pick < 25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What top round has a pick smaller than 2?
### Context:
CREATE TABLE table_name_7 (round INTEGER, pick INTEGER) [/INST]
### Response:
SELECT MAX(round) FROM table_name_7 WHERE pick < 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 RESULT WITH A SCORE OF 70-73?
### Context:
CREATE TABLE table_name_81 (result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_81 WHERE score = "70-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 the date with score of 66-62?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE score = "66-62" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE SCORE WITH A RECORD OF 1-0?
### Context:
CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_94 WHERE 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:
WHAT IS THE OPPONENT WITH A SCORE OF 72-63?
### Context:
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_89 WHERE score = "72-63" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the weight number when the distance was 5 Β½ f?
### Context:
CREATE TABLE table_name_89 (weight VARCHAR, distance VARCHAR) [/INST]
### Response:
SELECT COUNT(weight) FROM table_name_89 WHERE distance = "5 Β½ f" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 distance when the weight was 6.11?
### Context:
CREATE TABLE table_name_21 (distance VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT distance FROM table_name_21 WHERE weight = 6.11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the race when the winner of 2nd was Voleuse?
### Context:
CREATE TABLE table_name_27 (race VARCHAR, winner_or_2nd VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_27 WHERE winner_or_2nd = "voleuse" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the winner or 2nd when the result was β, and weight was 6.7?
### Context:
CREATE TABLE table_name_91 (winner_or_2nd VARCHAR, result VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT winner_or_2nd FROM table_name_91 WHERE result = "β" AND weight = 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:
What is the largest weight wth a Result of β, and a Distance of 7f?
### Context:
CREATE TABLE table_name_37 (weight INTEGER, result VARCHAR, distance VARCHAR) [/INST]
### Response:
SELECT MAX(weight) FROM table_name_37 WHERE result = "β" AND distance = "7f" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the the name of the winner or 2nd with a weight more than 7.3, and the result was β?
### Context:
CREATE TABLE table_name_41 (winner_or_2nd VARCHAR, weight VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT winner_or_2nd FROM table_name_41 WHERE weight > 7.3 AND result = "β" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total, when Silver is 1, and when Bronze is 7?
### Context:
CREATE TABLE table_name_5 (total VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_5 WHERE silver = "1" AND bronze = "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 Bronze, when Silver is 2, and when Nation is Italy?
### Context:
CREATE TABLE table_name_20 (bronze VARCHAR, silver VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_20 WHERE silver = "2" AND nation = "italy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold, when Total is 6?
### Context:
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_79 WHERE total = 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 Gold, when Silver is 5, and when Nation is Belgium?
### Context:
CREATE TABLE table_name_91 (gold VARCHAR, silver VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_91 WHERE silver = "5" AND nation = "belgium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold, when Bronze is 11?
### Context:
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_71 WHERE bronze = "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 poll source determined undecided of 5% and Jim DeMint (R) of 58%?
### Context:
CREATE TABLE table_name_98 (poll_source VARCHAR, undecided VARCHAR, jim_demint__r_ VARCHAR) [/INST]
### Response:
SELECT poll_source FROM table_name_98 WHERE undecided = "5%" AND jim_demint__r_ = "58%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 poll source had an other of 15%?
### Context:
CREATE TABLE table_name_38 (poll_source VARCHAR, other VARCHAR) [/INST]
### Response:
SELECT poll_source FROM table_name_38 WHERE other = "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 was the vote for Alvin Green when other was 9%?
### Context:
CREATE TABLE table_name_29 (alvin_greene__d_ VARCHAR, other VARCHAR) [/INST]
### Response:
SELECT alvin_greene__d_ FROM table_name_29 WHERE other = "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 was the vote for Alvin Green when Jim DeMint was 62%?
### Context:
CREATE TABLE table_name_71 (alvin_greene__d_ VARCHAR, jim_demint__r_ VARCHAR) [/INST]
### Response:
SELECT alvin_greene__d_ FROM table_name_71 WHERE jim_demint__r_ = "62%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the vote for Alvin Green when other was 9%?
### Context:
CREATE TABLE table_name_22 (alvin_greene__d_ VARCHAR, other VARCHAR) [/INST]
### Response:
SELECT alvin_greene__d_ FROM table_name_22 WHERE other = "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 Place of the Player with a To par of β1?
### Context:
CREATE TABLE table_name_61 (place VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_61 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:
What is the Place of the Player with Money greater than 300 and a Score of 71-69-70-70=280?
### Context:
CREATE TABLE table_name_1 (place VARCHAR, money___$__ VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_1 WHERE money___$__ > 300 AND score = 71 - 69 - 70 - 70 = 280 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Player in Place 4?
### Context:
CREATE TABLE table_name_16 (score VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_16 WHERE place = "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 To par of the Player with a Score of 73-70-71-72=286?
### Context:
CREATE TABLE table_name_35 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_35 WHERE score = 73 - 70 - 71 - 72 = 286 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 4 Place Player?
### Context:
CREATE TABLE table_name_9 (to_par VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_9 WHERE place = "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 Money of the Player in Place 5?
### Context:
CREATE TABLE table_name_37 (money___ INTEGER, place VARCHAR) [/INST]
### Response:
SELECT SUM(money___) AS $__ FROM table_name_37 WHERE place = "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:
Who was the arranger for the song that had a lyricist of Sirapatara Kalayapanid?
### Context:
CREATE TABLE table_name_8 (arranger_s_ VARCHAR, lyricist_s_ VARCHAR) [/INST]
### Response:
SELECT arranger_s_ FROM table_name_8 WHERE lyricist_s_ = "sirapatara kalayapanid" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bush#, when Bush% is "65.4%"?
### Context:
CREATE TABLE table_name_63 (bush_number INTEGER, bush_percentage VARCHAR) [/INST]
### Response:
SELECT MIN(bush_number) FROM table_name_63 WHERE bush_percentage = "65.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 lowest Kerry#, when Others# is "106", and when Bush# is less than 3,188?
### Context:
CREATE TABLE table_name_38 (kerry_number INTEGER, others_number VARCHAR, bush_number VARCHAR) [/INST]
### Response:
SELECT MIN(kerry_number) FROM table_name_38 WHERE others_number = 106 AND bush_number < 3 OFFSET 188 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bush#, when Others% is "1.7%", when Others# is less than 75, and when Kerry# is greater than 1,524?
### Context:
CREATE TABLE table_name_85 (bush_number INTEGER, kerry_number VARCHAR, others_percentage VARCHAR, others_number VARCHAR) [/INST]
### Response:
SELECT MAX(bush_number) FROM table_name_85 WHERE others_percentage = "1.7%" AND others_number < 75 AND kerry_number > 1 OFFSET 524 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Manchester United play against Bristol City with an H/A of A?
### Context:
CREATE TABLE table_name_66 (date VARCHAR, h___a VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_66 WHERE h___a = "a" AND opponents = "bristol 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:
How many people attended the match when Manchester United played against the Hearts?
### Context:
CREATE TABLE table_name_95 (attendance INTEGER, opponents VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_95 WHERE opponents = "hearts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of weeks that the opponent was the Denver Broncos?
### Context:
CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_78 WHERE opponent = "denver broncos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game played on November 23, 2003?
### Context:
CREATE TABLE table_name_67 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_67 WHERE date = "november 23, 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 was the kickoff time on week 1?
### Context:
CREATE TABLE table_name_53 (kickoff_time VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT kickoff_time FROM table_name_53 WHERE week = 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:
Can you tell me the sum of FA Cup Goals that has the League Cup Goals larger than 0?
### Context:
CREATE TABLE table_name_57 (fa_cup_goals INTEGER, league_cup_goals INTEGER) [/INST]
### Response:
SELECT SUM(fa_cup_goals) FROM table_name_57 WHERE league_cup_goals > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?
### Context:
CREATE TABLE table_name_51 (english_translation VARCHAR, artist VARCHAR, language VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT english_translation FROM table_name_51 WHERE language = "english" AND draw < 16 AND artist = "aysel and arash" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points when the artist is kamil mikulΔΓk and nela, and the Place is larger than 18?
### Context:
CREATE TABLE table_name_42 (points INTEGER, artist VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_42 WHERE artist = "kamil mikulΔΓk and nela" AND place > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the draw is less than 12 and the artist is quartissimo feat. martina?
### Context:
CREATE TABLE table_name_60 (place INTEGER, draw VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT SUM(place) FROM table_name_60 WHERE draw < 12 AND artist = "quartissimo feat. martina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amer sulaiman won?
### Context:
CREATE TABLE table_name_50 (date VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_50 WHERE winner = "amer sulaiman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event has a $248,004 prize?
### Context:
CREATE TABLE table_name_24 (event VARCHAR, prize VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_24 WHERE prize = "$248,004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 event with a $322,280 prize?
### Context:
CREATE TABLE table_name_12 (date VARCHAR, prize VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_12 WHERE prize = "$322,280" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event is in florianopolis?
### Context:
CREATE TABLE table_name_12 (event VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_12 WHERE city = "florianopolis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner in the city of lima?
### Context:
CREATE TABLE table_name_16 (winner VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_16 WHERE city = "lima" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Alton Lister Category:Articles with hCards has what as the listed years?
### Context:
CREATE TABLE table_name_56 (years VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_56 WHERE player = "alton lister category:articles with hcards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tom Lagarde Category:Articles with hCards used what Jersey Number(s)?
### Context:
CREATE TABLE table_name_22 (jersey_number_s_ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT jersey_number_s_ FROM table_name_22 WHERE player = "tom lagarde category:articles with hcards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fastest lap for Seiji Ara?
### Context:
CREATE TABLE table_name_49 (fastest_lap VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_49 WHERE winning_driver = "seiji ara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does Yuji Tachikawa have the fastest lap in round 1?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, fastest_lap VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_24 WHERE fastest_lap = "yuji tachikawa" AND round = 1 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.