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: Who had a total of 34? ### Context: CREATE TABLE table_name_90 (name VARCHAR, total VARCHAR) [/INST] ### Response: SELECT name FROM table_name_90 WHERE total = 34 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What rank is Takatōriki having less than 30 total? ### Context: CREATE TABLE table_name_60 (highest_rank VARCHAR, total VARCHAR, name VARCHAR) [/INST] ### Response: SELECT highest_rank FROM table_name_60 WHERE total < 30 AND name = "takatōriki" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total when the first was November 1966? ### Context: CREATE TABLE table_name_42 (total INTEGER, first VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_42 WHERE first = "november 1966" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last when the first was January 2001 and more than 26 total? ### Context: CREATE TABLE table_name_72 (last VARCHAR, total VARCHAR, first VARCHAR) [/INST] ### Response: SELECT last FROM table_name_72 WHERE total > 26 AND first = "january 2001" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 greatest total when the last was September 1970? ### Context: CREATE TABLE table_name_87 (total INTEGER, last VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_87 WHERE last = "september 1970" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What rank is Takatōriki? ### Context: CREATE TABLE table_name_53 (highest_rank VARCHAR, name VARCHAR) [/INST] ### Response: SELECT highest_rank FROM table_name_53 WHERE name = "takatōriki" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year has 54 (73) points? ### Context: CREATE TABLE table_name_55 (year INTEGER, pts VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_55 WHERE pts = "54 (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 chassis more recent than 1967? ### Context: CREATE TABLE table_name_90 (chassis VARCHAR, year INTEGER) [/INST] ### Response: SELECT chassis FROM table_name_90 WHERE year > 1967 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the year of the Lotus 25 chassis? ### Context: CREATE TABLE table_name_19 (year INTEGER, chassis VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_19 WHERE chassis = "lotus 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 is the year of the Lotus 18 chassis? ### Context: CREATE TABLE table_name_97 (year VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_97 WHERE chassis = "lotus 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 First Elected, when District is "Minnesota 2"? ### Context: CREATE TABLE table_name_16 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_name_16 WHERE district = "minnesota 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 lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"? ### Context: CREATE TABLE table_name_19 (first_elected INTEGER, party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_name_19 WHERE party = "republican" AND district = "minnesota 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 Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"? ### Context: CREATE TABLE table_name_10 (party VARCHAR, district VARCHAR, results VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT party FROM table_name_10 WHERE results = "re-elected" AND first_elected > 1990 AND district = "minnesota 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 Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"? ### Context: CREATE TABLE table_name_75 (incumbent VARCHAR, district VARCHAR, results VARCHAR, party VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_name_75 WHERE results = "re-elected" AND party = "democratic" AND district = "minnesota 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 Score has a Place of t5, and a Country of united states? ### Context: CREATE TABLE table_name_30 (score VARCHAR, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT score FROM table_name_30 WHERE place = "t5" AND country = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name The Score of Player of seve ballesteros? ### Context: CREATE TABLE table_name_86 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_86 WHERE player = "seve ballesteros" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Country has a Place of 2? ### Context: CREATE TABLE table_name_60 (country VARCHAR, place VARCHAR) [/INST] ### Response: SELECT country FROM table_name_60 WHERE place = "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: How many wins did they have when they had 5 losses? ### Context: CREATE TABLE table_name_80 (wins VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_80 WHERE losses = 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: How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0? ### Context: CREATE TABLE table_name_48 (byes VARCHAR, draws VARCHAR, against VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT COUNT(byes) FROM table_name_48 WHERE against < 1544 AND wins = 13 AND draws > 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 byes has a draw larger than 0? ### Context: CREATE TABLE table_name_55 (byes VARCHAR, draws INTEGER) [/INST] ### Response: SELECT COUNT(byes) FROM table_name_55 WHERE draws > 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 lowest against that has less than 9 wins, and draws smaller than 0? ### Context: CREATE TABLE table_name_84 (against INTEGER, wins VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT MIN(against) FROM table_name_84 WHERE wins < 9 AND draws < 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 total number of wins that has byes less than 0? ### Context: CREATE TABLE table_name_84 (wins VARCHAR, byes INTEGER) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_84 WHERE byes < 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 most money for the score 75-74-72-67=288? ### Context: CREATE TABLE table_name_16 (money___ INTEGER, score VARCHAR) [/INST] ### Response: SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 - 67 = 288 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 American pronunciation when the Australian is əʉ? ### Context: CREATE TABLE table_name_11 (american VARCHAR, australian VARCHAR) [/INST] ### Response: SELECT american FROM table_name_11 WHERE australian = "əʉ" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 17th c. pronunciation when the british is əʊ? ### Context: CREATE TABLE table_name_68 (british VARCHAR) [/INST] ### Response: SELECT 17 AS th_c FROM table_name_68 WHERE british = "əʊ" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 British pronunciation when the American and Australian is i? ### Context: CREATE TABLE table_name_44 (british VARCHAR, american VARCHAR, australian VARCHAR) [/INST] ### Response: SELECT british FROM table_name_44 WHERE american = "i" AND australian = "i" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf? ### Context: CREATE TABLE table_name_15 (height VARCHAR, pos VARCHAR, weight VARCHAR, club VARCHAR) [/INST] ### Response: SELECT height FROM table_name_15 WHERE weight = "kg (lb)" AND club = "sainte-foy" AND pos = "cf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 height of valérie dionne at Club Sainte-Foy? ### Context: CREATE TABLE table_name_48 (height VARCHAR, club VARCHAR, name VARCHAR) [/INST] ### Response: SELECT height FROM table_name_48 WHERE club = "sainte-foy" AND name = "valérie dionne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Date of Birth 1980-07-29? ### Context: CREATE TABLE table_name_64 (name VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT name FROM table_name_64 WHERE date_of_birth = "1980-07-29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the team from cisne fairfield school? ### Context: CREATE TABLE table_name_84 (team_name VARCHAR, schools VARCHAR) [/INST] ### Response: SELECT team_name FROM table_name_84 WHERE schools = "cisne fairfield" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team from goreville vienna school? ### Context: CREATE TABLE table_name_80 (team_name VARCHAR, schools VARCHAR) [/INST] ### Response: SELECT team_name FROM table_name_80 WHERE schools = "goreville vienna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 colors of the team hosted by Christopher? ### Context: CREATE TABLE table_name_77 (colors VARCHAR, host VARCHAR) [/INST] ### Response: SELECT colors FROM table_name_77 WHERE host = "christopher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team 1 if Renova is team 2? ### Context: CREATE TABLE table_name_99 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_99 WHERE team_2 = "renova" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the 76-70-76-76=298 score? ### Context: CREATE TABLE table_name_96 (to_par INTEGER, score VARCHAR) [/INST] ### Response: SELECT MAX(to_par) FROM table_name_96 WHERE score = 76 - 70 - 76 - 76 = 298 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score has a to par of 12 and is from Jersey? ### Context: CREATE TABLE table_name_25 (score VARCHAR, to_par VARCHAR, country VARCHAR) [/INST] ### Response: SELECT score FROM table_name_25 WHERE to_par = 12 AND country = "jersey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money for a to par of 15, and is from the United States? ### Context: CREATE TABLE table_name_55 (money___ INTEGER, to_par VARCHAR, country VARCHAR) [/INST] ### Response: SELECT AVG(money___) AS $__ FROM table_name_55 WHERE to_par = 15 AND country = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of money that has a t2 place, is from the United States for player Leo Diegel? ### Context: CREATE TABLE table_name_49 (money___ VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT COUNT(money___) AS $__ FROM table_name_49 WHERE place = "t2" AND country = "united states" AND player = "leo diegel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What county has less than $188 and a score of 74-76-73-75=298? ### Context: CREATE TABLE table_name_3 (country VARCHAR, money___$__ VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_3 WHERE money___$__ < 188 AND score = 74 - 76 - 73 - 75 = 298 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location is "Winnipeg, Manitoba , Canada"? ### Context: CREATE TABLE table_name_27 (opponent VARCHAR, location VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_27 WHERE location = "winnipeg, manitoba , canada" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"? ### Context: CREATE TABLE table_name_81 (res VARCHAR, location VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT res FROM table_name_81 WHERE location = "butte, montana , united states" AND opponent = "jerome smith" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Method, when Time is "3:20"? ### Context: CREATE TABLE table_name_40 (method VARCHAR, time VARCHAR) [/INST] ### Response: SELECT method FROM table_name_40 WHERE time = "3:20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Location, when Opponent is "Mario Rinaldi"? ### Context: CREATE TABLE table_name_86 (location VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT location FROM table_name_86 WHERE opponent = "mario rinaldi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much Grid has a Time/Retired of +0.785, and Laps larger than 29? ### Context: CREATE TABLE table_name_19 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_19 WHERE time_retired = "+0.785" AND laps > 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement? ### Context: CREATE TABLE table_name_61 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_61 WHERE laps > 8 AND manufacturer = "honda" AND time_retired = "retirement" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Laps have a Grid smaller than 5, and a Time/Retired of retirement? ### Context: CREATE TABLE table_name_97 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_97 WHERE grid < 5 AND time_retired = "retirement" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time/Retired has Laps smaller than 14, and a Rider of darren barton? ### Context: CREATE TABLE table_name_78 (time_retired VARCHAR, laps VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_78 WHERE laps < 14 AND rider = "darren barton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest lost entry for a team with fewer than 21 goals for? ### Context: CREATE TABLE table_name_39 (lost INTEGER, goals_for INTEGER) [/INST] ### Response: SELECT MIN(lost) FROM table_name_39 WHERE goals_for < 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 was the position has a played entry of more than 24? ### Context: CREATE TABLE table_name_68 (position VARCHAR, played INTEGER) [/INST] ### Response: SELECT COUNT(position) FROM table_name_68 WHERE played > 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 highest position for Nelson, with a played entry of more than 24? ### Context: CREATE TABLE table_name_10 (position INTEGER, team VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MAX(position) FROM table_name_10 WHERE team = "nelson" AND played > 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 was the average Lost entry for Newton, for games with a drawn less than 5? ### Context: CREATE TABLE table_name_78 (lost INTEGER, team VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT AVG(lost) FROM table_name_78 WHERE team = "newton" AND drawn < 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 lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27? ### Context: CREATE TABLE table_name_40 (lost INTEGER, points_1 VARCHAR, drawn VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_40 WHERE drawn < 6 AND goals_against < 44 AND points_1 = "27" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Snatch of 157.0? ### Context: CREATE TABLE table_name_78 (name VARCHAR, snatch VARCHAR) [/INST] ### Response: SELECT name FROM table_name_78 WHERE snatch = "157.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 total bodyweight of everyone that has a Snatch of 153.0? ### Context: CREATE TABLE table_name_98 (bodyweight INTEGER, snatch VARCHAR) [/INST] ### Response: SELECT SUM(bodyweight) FROM table_name_98 WHERE snatch = "153.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 ranking is the Battersea Power Station? ### Context: CREATE TABLE table_name_86 (rank VARCHAR, name VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_86 WHERE name = "battersea power station" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What ranking is the structure with 01.0 87 floors? ### Context: CREATE TABLE table_name_51 (rank VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_51 WHERE floors = "01.0 87" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance, when Date is "Oct. 26"? ### Context: CREATE TABLE table_name_25 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_25 WHERE date = "oct. 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponents, when Raiders Poinsts is greater than 38, and when Attendance is greater than 51,267? ### Context: CREATE TABLE table_name_79 (opponents INTEGER, raiders_points VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT MIN(opponents) FROM table_name_79 WHERE raiders_points > 38 AND attendance > 51 OFFSET 267 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponents, when Raiders Points is "42", when Attendance is less than 52,505? ### Context: CREATE TABLE table_name_16 (opponents VARCHAR, raiders_points VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(opponents) FROM table_name_16 WHERE raiders_points = 42 AND attendance < 52 OFFSET 505 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Raiders First Downs, when Date is "Nov. 2", and when Raiders Points is greater than 42? ### Context: CREATE TABLE table_name_21 (raiders_first_downs VARCHAR, date VARCHAR, raiders_points VARCHAR) [/INST] ### Response: SELECT COUNT(raiders_first_downs) FROM table_name_21 WHERE date = "nov. 2" AND raiders_points > 42 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournaments, when Highest Rank is "Maegashira 1"? ### Context: CREATE TABLE table_name_90 (tournaments INTEGER, highest_rank VARCHAR) [/INST] ### Response: SELECT AVG(tournaments) FROM table_name_90 WHERE highest_rank = "maegashira 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 Top Division Debut, when Tournaments is "12", and when Name is "Yamamotoyama"? ### Context: CREATE TABLE table_name_67 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR) [/INST] ### Response: SELECT top_division_debut FROM table_name_67 WHERE tournaments = 12 AND name = "yamamotoyama" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournaments, when Name is "Baruto"? ### Context: CREATE TABLE table_name_76 (tournaments INTEGER, name VARCHAR) [/INST] ### Response: SELECT MIN(tournaments) FROM table_name_76 WHERE name = "baruto" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournaments, when Pro Debut is "July 2002"? ### Context: CREATE TABLE table_name_13 (tournaments INTEGER, pro_debut VARCHAR) [/INST] ### Response: SELECT MAX(tournaments) FROM table_name_13 WHERE pro_debut = "july 2002" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pro Debut, when Tournament is greater than 11, and when Highest Rank is "Maegashira 1"? ### Context: CREATE TABLE table_name_68 (pro_debut VARCHAR, tournaments VARCHAR, highest_rank VARCHAR) [/INST] ### Response: SELECT pro_debut FROM table_name_68 WHERE tournaments > 11 AND highest_rank = "maegashira 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many League Cup Goals have 0 as the total goals, with delroy facey as the name? ### Context: CREATE TABLE table_name_90 (league_cup_goals VARCHAR, total_goals VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(league_cup_goals) FROM table_name_90 WHERE total_goals = 0 AND name = "delroy facey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total goals have 0 (3) as total apps, with league goals less than 0? ### Context: CREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR) [/INST] ### Response: SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = "0 (3)" AND league_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 lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps? ### Context: CREATE TABLE table_name_46 (league_goals INTEGER, fa_cup_apps VARCHAR, total_apps VARCHAR) [/INST] ### Response: SELECT MIN(league_goals) FROM table_name_46 WHERE fa_cup_apps = "0" AND total_apps = "1 (3)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Stockholm's score when Malmo scored 2? ### Context: CREATE TABLE table_name_54 (stockholm VARCHAR, malmö VARCHAR) [/INST] ### Response: SELECT stockholm FROM table_name_54 WHERE malmö = "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 did Vaxjo score when Karlstad scored 1? ### Context: CREATE TABLE table_name_53 (växjö VARCHAR, karlstad VARCHAR) [/INST] ### Response: SELECT växjö FROM table_name_53 WHERE karlstad = "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 did Sundsvall score when Falun scored 2? ### Context: CREATE TABLE table_name_94 (sundsvall VARCHAR, falun VARCHAR) [/INST] ### Response: SELECT sundsvall FROM table_name_94 WHERE falun = "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 the highest total when Norrkoping scored 12? ### Context: CREATE TABLE table_name_21 (total INTEGER, norrköping VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_21 WHERE norrköping = "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 did Orebro score when Umea scored 2? ### Context: CREATE TABLE table_name_67 (örebro VARCHAR, umeå VARCHAR) [/INST] ### Response: SELECT örebro FROM table_name_67 WHERE umeå = "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 the result of the game that was attended by 80,886 people? ### Context: CREATE TABLE table_name_38 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_38 WHERE attendance = "80,886" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that was attended by 72,703 people? ### Context: CREATE TABLE table_name_76 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_76 WHERE attendance = "72,703" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that was attended by 41,650 people? ### Context: CREATE TABLE table_name_56 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_56 WHERE attendance = "41,650" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the game against Indiana? ### Context: CREATE TABLE table_name_78 (date VARCHAR, opponent_number VARCHAR) [/INST] ### Response: SELECT date FROM table_name_78 WHERE opponent_number = "indiana" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country is Brian Henninger from, who had a score larger than 69? ### Context: CREATE TABLE table_name_98 (country VARCHAR, score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_98 WHERE score > 69 AND player = "brian henninger" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Darren Clarke's total score? ### Context: CREATE TABLE table_name_45 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(score) FROM table_name_45 WHERE player = "darren clarke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team on 9 February 1988? ### Context: CREATE TABLE table_name_3 (away_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_3 WHERE date = "9 february 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 away team on 30 January 1988, when the home team was Everton? ### Context: CREATE TABLE table_name_45 (away_team VARCHAR, home_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_45 WHERE home_team = "everton" AND date = "30 january 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: On which date was the Tie no 2? ### Context: CREATE TABLE table_name_41 (date VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT date FROM table_name_41 WHERE tie_no = "2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Tie no when Manchester United was the home team? ### Context: CREATE TABLE table_name_51 (tie_no VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_51 WHERE home_team = "manchester united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when the Tie no was 9? ### Context: CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT score FROM table_name_56 WHERE tie_no = "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: Which away team goes against the home team Mauritius? ### Context: CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_94 WHERE home_team = "mauritius" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team that goes against Team Zambia? ### Context: CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_13 WHERE home_team = "zambia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie no 3? ### Context: CREATE TABLE table_name_80 (away_team VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_80 WHERE tie_no = "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 away team playing at Everton? ### Context: CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_88 WHERE home_team = "everton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team that Bradford City is playing against? ### Context: CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_72 WHERE away_team = "bradford 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: Which Location has a Method of decision (unanimous), and Res of win x? ### Context: CREATE TABLE table_name_99 (location VARCHAR, method VARCHAR, res VARCHAR) [/INST] ### Response: SELECT location FROM table_name_99 WHERE method = "decision (unanimous)" AND res = "win x" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Round has a Time of 0:37? ### Context: CREATE TABLE table_name_26 (round VARCHAR, time VARCHAR) [/INST] ### Response: SELECT round FROM table_name_26 WHERE time = "0: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: Which result has a Record of 16-6? ### Context: CREATE TABLE table_name_20 (res VARCHAR, record VARCHAR) [/INST] ### Response: SELECT res FROM table_name_20 WHERE record = "16-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 Champion had a Score of 9–1? ### Context: CREATE TABLE table_name_82 (champion VARCHAR, score VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_82 WHERE score = "9–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 score has 3 as the place? ### Context: CREATE TABLE table_name_87 (score VARCHAR, place VARCHAR) [/INST] ### Response: SELECT score FROM table_name_87 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: What player has t7 as the place, with tje United States as the country? ### Context: CREATE TABLE table_name_12 (player VARCHAR, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_12 WHERE place = "t7" AND country = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score has hal sutton as the player? ### Context: CREATE TABLE table_name_17 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_17 WHERE player = "hal sutton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 artist after 2012 with CD, LP as the format? ### Context: CREATE TABLE table_name_64 (artist VARCHAR, year VARCHAR, format VARCHAR) [/INST] ### Response: SELECT artist FROM table_name_64 WHERE year > 2012 AND format = "cd, lp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year had a title of Die Shaolin Affen EP and EP as the type? ### Context: CREATE TABLE table_name_50 (year INTEGER, type VARCHAR, title VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_50 WHERE type = "ep" AND title = "die shaolin affen ep" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the Misfits with a CD format? ### Context: CREATE TABLE table_name_67 (title VARCHAR, format VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT title FROM table_name_67 WHERE format = "cd" AND artist = "misfits" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of bronze medals for the entry with rank 2 and fewer than 3 silver medals? ### Context: CREATE TABLE table_name_15 (bronze INTEGER, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_15 WHERE rank = "2" AND silver < 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 average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4? ### Context: CREATE TABLE table_name_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1 </s>