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: For which to par was the score 71-74-68=213? ### Context: CREATE TABLE table_name_11 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_11 WHERE score = 71 - 74 - 68 = 213 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored 70-72-70=212? ### Context: CREATE TABLE table_name_35 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_35 WHERE score = 70 - 72 - 70 = 212 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the to par for the score 72-69-68=209? ### Context: CREATE TABLE table_name_11 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_11 WHERE score = 72 - 69 - 68 = 209 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Australia's to par when the place was t9? ### Context: CREATE TABLE table_name_7 (to_par VARCHAR, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_7 WHERE place = "t9" AND country = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Wht did Mark O'Meara place when the to par was +2? ### Context: CREATE TABLE table_name_51 (place VARCHAR, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_51 WHERE to_par = "+2" AND player = "mark o'meara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses for entries with 15 wins and a position larger than 3? ### Context: CREATE TABLE table_name_69 (losses INTEGER, wins VARCHAR, position VARCHAR) [/INST] ### Response: SELECT SUM(losses) FROM table_name_69 WHERE wins = 15 AND position > 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 goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins? ### Context: CREATE TABLE table_name_97 (goal_difference VARCHAR, wins VARCHAR, draws VARCHAR, position VARCHAR) [/INST] ### Response: SELECT goal_difference FROM table_name_97 WHERE draws > 6 AND position > 12 AND wins < 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 position of club Melilla CF, with a goal difference smaller than -10? ### Context: CREATE TABLE table_name_63 (position INTEGER, club VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT SUM(position) FROM table_name_63 WHERE club = "melilla cf" AND goal_difference < -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 sum of goals against for positions higher than 14, with fewer than 30 played? ### Context: CREATE TABLE table_name_22 (goals_against INTEGER, position VARCHAR, played VARCHAR) [/INST] ### Response: SELECT SUM(goals_against) FROM table_name_22 WHERE position > 14 AND played < 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30? ### Context: CREATE TABLE table_name_61 (wins INTEGER, played VARCHAR, goals_against VARCHAR, points VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_61 WHERE points > 32 AND goal_difference < 23 AND goals_against = 36 AND played < 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Location has a Year larger than 2006, and a Score of 6–3, 6–3? ### Context: CREATE TABLE table_name_78 (location VARCHAR, year VARCHAR, score VARCHAR) [/INST] ### Response: SELECT location FROM table_name_78 WHERE year > 2006 AND score = "6–3, 6–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 Score has a Year larger than 2004, and a Champion of gaΓ«l monfils? ### Context: CREATE TABLE table_name_68 (score VARCHAR, year VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT score FROM table_name_68 WHERE year > 2004 AND champion = "gaΓ«l monfils" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner-up has a Year smaller than 2008, and a Champion of josΓ© acasuso? ### Context: CREATE TABLE table_name_49 (runner_up VARCHAR, year VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_49 WHERE year < 2008 AND champion = "josΓ© acasuso" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5? ### Context: CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_96 WHERE runner_up = "florian mayer" AND score = "7–6(6), 4–6, 7–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 SCORE WITH A WINNER AND OPPONENT BYRON BLACK? ### Context: CREATE TABLE table_name_89 (score VARCHAR, outcome VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_89 WHERE outcome = "winner" AND opponent = "byron black" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of points of the match with less than 22 games played? ### Context: CREATE TABLE table_name_69 (points VARCHAR, games_played INTEGER) [/INST] ### Response: SELECT COUNT(points) FROM table_name_69 WHERE games_played < 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of loses of the club with a 4 position and less than 23 goals conceded? ### Context: CREATE TABLE table_name_96 (loses VARCHAR, position VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT COUNT(loses) FROM table_name_96 WHERE position = 4 AND goals_conceded < 23 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7? ### Context: CREATE TABLE table_name_40 (games_played INTEGER, position VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR) [/INST] ### Response: SELECT MIN(games_played) FROM table_name_40 WHERE goals_conceded > 25 AND goals_scored > 17 AND position = 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 lowest number of loses of the club with more than 42 goals scored, more than 20 goals conceded, and less than 3 draws? ### Context: CREATE TABLE table_name_30 (loses INTEGER, draws VARCHAR, goals_scored VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT MIN(loses) FROM table_name_30 WHERE goals_scored > 42 AND goals_conceded > 20 AND draws < 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 points of the club with more than 23 goals conceded and a position larger than 12? ### Context: CREATE TABLE table_name_64 (points INTEGER, goals_conceded VARCHAR, position VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_64 WHERE goals_conceded > 23 AND position > 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: How many goals did coe get? ### Context: CREATE TABLE table_name_80 (goals INTEGER, name VARCHAR) [/INST] ### Response: SELECT MIN(goals) FROM table_name_80 WHERE name = "coe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ends when the transfer fee was dkk 14m? ### Context: CREATE TABLE table_name_80 (ends VARCHAR, transfer_fee VARCHAR) [/INST] ### Response: SELECT COUNT(ends) FROM table_name_80 WHERE transfer_fee = "dkk 14m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transfer fee of dkk 6m? ### Context: CREATE TABLE table_name_39 (name VARCHAR, transfer_fee VARCHAR) [/INST] ### Response: SELECT name FROM table_name_39 WHERE transfer_fee = "dkk 6m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Craig Parry with a score of 68-68=136 is in what place? ### Context: CREATE TABLE table_name_83 (place VARCHAR, player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_83 WHERE score = 68 - 68 = 136 AND player = "craig parry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What place is the golfer in who is from Spain? ### Context: CREATE TABLE table_name_21 (place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT place FROM table_name_21 WHERE country = "spain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For what country does the golfer play who has a score of 72-65=137? ### Context: CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_47 WHERE score = 72 - 65 = 137 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Golfer Steve Pate is in what place? ### Context: CREATE TABLE table_name_6 (place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_6 WHERE player = "steve pate" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Bolton Wanderers career has 293 Apps? ### Context: CREATE TABLE table_name_77 (bolton_wanderers_career VARCHAR, apps VARCHAR) [/INST] ### Response: SELECT bolton_wanderers_career FROM table_name_77 WHERE apps = 293 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals? ### Context: CREATE TABLE table_name_75 (bolton_wanderers_career VARCHAR, goals VARCHAR, apps VARCHAR, total VARCHAR, position VARCHAR) [/INST] ### Response: SELECT bolton_wanderers_career FROM table_name_75 WHERE total > 404 AND position = "fw" AND apps < 492 AND goals = "79" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 apps have 28 goals, and a Total smaller than 191? ### Context: CREATE TABLE table_name_42 (apps INTEGER, goals VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(apps) FROM table_name_42 WHERE goals = "28" AND total < 191 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what Date is Sheffield Wednesday the Home team? ### Context: CREATE TABLE table_name_61 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_61 WHERE home_team = "sheffield wednesday" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Tie no of the Blackburn Rovers Away game? ### Context: CREATE TABLE table_name_61 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_61 WHERE away_team = "blackburn rovers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at the Wolverhampton Wanderers Home game with a Score of 2–0? ### Context: CREATE TABLE table_name_33 (away_team VARCHAR, score VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_33 WHERE score = "2–0" AND home_team = "wolverhampton wanderers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at the Blackburn Rovers Away game? ### Context: CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_70 WHERE away_team = "blackburn rovers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the game with a Score of 2–3? ### Context: CREATE TABLE table_name_17 (home_team VARCHAR, score VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_17 WHERE score = "2–3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 1st leg with Team 2 Lyon? ### Context: CREATE TABLE table_name_98 (team_2 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = "lyon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team is Team 1 with a Team 2 being Sporting CP? ### Context: CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_81 WHERE team_2 = "sporting cp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 second leg for Team 1 Servette? ### Context: CREATE TABLE table_name_54 (team_1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_54 WHERE team_1 = "servette" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1999 Tournament at the US Open? ### Context: CREATE TABLE table_name_47 (tournament VARCHAR) [/INST] ### Response: SELECT 1999 FROM table_name_47 WHERE tournament = "us open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tournament was an A 1988, and a 2R 1999? ### Context: CREATE TABLE table_name_38 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_38 WHERE 1988 = "a" AND 1999 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1991 for 2R 1999? ### Context: CREATE TABLE table_name_92 (Id VARCHAR) [/INST] ### Response: SELECT 1991 FROM table_name_92 WHERE 1999 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1999 for an A 1991, and a 1r 1997? ### Context: CREATE TABLE table_name_45 (Id VARCHAR) [/INST] ### Response: SELECT 1999 FROM table_name_45 WHERE 1991 = "a" AND 1997 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1991 with a 2r 1996? ### Context: CREATE TABLE table_name_34 (Id VARCHAR) [/INST] ### Response: SELECT 1991 FROM table_name_34 WHERE 1996 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance larger than 74,382? ### Context: CREATE TABLE table_name_36 (date VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT date FROM table_name_36 WHERE attendance > 74 OFFSET 382 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue has a status of Five Nations and an against of 22? ### Context: CREATE TABLE table_name_16 (venue VARCHAR, status VARCHAR, against VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_16 WHERE status = "five nations" AND against = 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the rounds of the match with brett chism as the opponent? ### Context: CREATE TABLE table_name_73 (round INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_73 WHERE opponent = "brett chism" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lwoest round of wild bill's fight night 21 at 5:00? ### Context: CREATE TABLE table_name_8 (round INTEGER, time VARCHAR, event VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_8 WHERE time = "5:00" AND event = "wild bill's fight night 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: Which Country has a To par smaller than 7, and a Place of 1? ### Context: CREATE TABLE table_name_99 (country VARCHAR, to_par VARCHAR, place VARCHAR) [/INST] ### Response: SELECT country FROM table_name_99 WHERE to_par < 7 AND place = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Place has a Country of australia, and a Score of 70-70-72=212? ### Context: CREATE TABLE table_name_64 (place VARCHAR, country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_64 WHERE country = "australia" AND score = 70 - 70 - 72 = 212 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was sweden's score in T9 place? ### Context: CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT score FROM table_name_27 WHERE place = "t9" AND country = "sweden" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which To par has a Country of england, and a Place of t9, and a Player of graeme storm? ### Context: CREATE TABLE table_name_47 (to_par INTEGER, player VARCHAR, country VARCHAR, place VARCHAR) [/INST] ### Response: SELECT MAX(to_par) FROM table_name_47 WHERE country = "england" AND place = "t9" AND player = "graeme storm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Distance, when Venue is "Belgrade"? ### Context: CREATE TABLE table_name_39 (distance VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT distance FROM table_name_39 WHERE venue = "belgrade" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Athlete is "Yussuf Alli"? ### Context: CREATE TABLE table_name_15 (date VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT date FROM table_name_15 WHERE athlete = "yussuf alli" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Distance, when Athlete is "Irving Saladino"? ### Context: CREATE TABLE table_name_57 (distance VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT distance FROM table_name_57 WHERE athlete = "irving saladino" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Athlete, when Nation is "Nigeria"? ### Context: CREATE TABLE table_name_12 (athlete VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT athlete FROM table_name_12 WHERE nation = "nigeria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nation, when Date is "2004-07-22"? ### Context: CREATE TABLE table_name_67 (nation VARCHAR, date VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_67 WHERE date = "2004-07-22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Distance, when Date is "2008-01-12"? ### Context: CREATE TABLE table_name_18 (distance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT distance FROM table_name_18 WHERE date = "2008-01-12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Week of the game with a Result of w 48–20? ### Context: CREATE TABLE table_name_58 (week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT week FROM table_name_58 WHERE result = "w 48–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 the Record of the game with a Result of l 14–16? ### Context: CREATE TABLE table_name_82 (record VARCHAR, result VARCHAR) [/INST] ### Response: SELECT record FROM table_name_82 WHERE result = "l 14–16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Date of the game with a Record of 2–3–1? ### Context: CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_86 WHERE record = "2–3–1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What opponent has 32 as the round? ### Context: CREATE TABLE table_name_41 (opponent VARCHAR, round VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_41 WHERE round = "32" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was Kelin nominated? ### Context: CREATE TABLE table_name_53 (year_ceremony VARCHAR, english_title VARCHAR) [/INST] ### Response: SELECT year_ceremony FROM table_name_53 WHERE english_title = "kelin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par score in the match that had a score of 76-71-78-67=292? ### Context: CREATE TABLE table_name_49 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT COUNT(to_par) FROM table_name_49 WHERE score = 76 - 71 - 78 - 67 = 292 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Robert Allenby's average to par score? ### Context: CREATE TABLE table_name_88 (to_par INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(to_par) FROM table_name_88 WHERE player = "robert allenby" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament that has the 2009 of 1r, and the 2012 of w? ### Context: CREATE TABLE table_name_1 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_1 WHERE 2009 = "1r" AND 2012 = "w" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2010 that has the 2008 of grand slam tournaments? ### Context: CREATE TABLE table_name_44 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_44 WHERE 2008 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2009 that has the 2011 of A? ### Context: CREATE TABLE table_name_50 (Id VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_50 WHERE 2011 = "a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the player with total of 155? ### Context: CREATE TABLE table_name_28 (to_par INTEGER, total VARCHAR) [/INST] ### Response: SELECT AVG(to_par) FROM table_name_28 WHERE total = 155 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won Bronze with Notes of 2.5km, 16controls? ### Context: CREATE TABLE table_name_31 (bronze VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT bronze FROM table_name_31 WHERE notes = "2.5km, 16controls" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won Gold later than 2004 with Notes of 2.73km, 14controls? ### Context: CREATE TABLE table_name_32 (gold VARCHAR, year VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT gold FROM table_name_32 WHERE year > 2004 AND notes = "2.73km, 14controls" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won Bronze with notes of 2.5km, 14controls? ### Context: CREATE TABLE table_name_60 (bronze VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT bronze FROM table_name_60 WHERE notes = "2.5km, 14controls" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Notes against a Silver for Jenny Johansson earlier than 2006? ### Context: CREATE TABLE table_name_77 (notes VARCHAR, year VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_77 WHERE year < 2006 AND silver = "jenny johansson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Constituency number for Meerut? ### Context: CREATE TABLE table_name_8 (constituency_number VARCHAR, name VARCHAR) [/INST] ### Response: SELECT constituency_number FROM table_name_8 WHERE name = "meerut" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name for the constituency at number 48? ### Context: CREATE TABLE table_name_38 (name VARCHAR, constituency_number VARCHAR) [/INST] ### Response: SELECT name FROM table_name_38 WHERE constituency_number = "48" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bronze is more than 3, what is the rank? ### Context: CREATE TABLE table_name_19 (rank VARCHAR, bronze INTEGER) [/INST] ### Response: SELECT rank FROM table_name_19 WHERE bronze > 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: When rank is 7 and silver is less than 0, what is the total gold? ### Context: CREATE TABLE table_name_17 (gold INTEGER, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_17 WHERE rank = "7" AND silver < 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 player is from Wales? ### Context: CREATE TABLE table_name_84 (player VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_84 WHERE country = "wales" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored 73-68-66=207? ### Context: CREATE TABLE table_name_78 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_78 WHERE score = 73 - 68 - 66 = 207 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Seve Ballesteros's score? ### Context: CREATE TABLE table_name_82 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_82 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: What country is Craig Parry from? ### Context: CREATE TABLE table_name_59 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_59 WHERE player = "craig parry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country has a score of 66-73-69=208? ### Context: CREATE TABLE table_name_69 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_69 WHERE score = 66 - 73 - 69 = 208 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Road Team, when Result is "74-71"? ### Context: CREATE TABLE table_name_36 (road_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT road_team FROM table_name_36 WHERE result = "74-71" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Result, when Date is "April 3"? ### Context: CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_54 WHERE date = "april 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 Game, when Road Team is "Syracuse", and when Result is "96-89"? ### Context: CREATE TABLE table_name_47 (game VARCHAR, road_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT game FROM table_name_47 WHERE road_team = "syracuse" AND result = "96-89" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home Team, when Date is "April 10"? ### Context: CREATE TABLE table_name_58 (home_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_58 WHERE date = "april 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 Game, when Road Team is "Syracuse", and when Result is "109-82"? ### Context: CREATE TABLE table_name_77 (game VARCHAR, road_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT game FROM table_name_77 WHERE road_team = "syracuse" AND result = "109-82" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Road Team, when Date is "April 10"? ### Context: CREATE TABLE table_name_29 (road_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT road_team FROM table_name_29 WHERE date = "april 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 was the earliest round with Neil Colzie and a pick smaller than 24? ### Context: CREATE TABLE table_name_26 (round INTEGER, player VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_26 WHERE player = "neil colzie" AND pick < 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 score of the replay game when watford was the away team? ### Context: CREATE TABLE table_name_84 (score VARCHAR, tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_84 WHERE tie_no = "replay" AND away_team = "watford" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team when walsall was the away team? ### Context: CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_8 WHERE away_team = "walsall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when Venue is "Hong Kong"? ### Context: CREATE TABLE table_name_15 (name VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT name FROM table_name_15 WHERE venue = "hong kong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when Venue is "Motherwell"? ### Context: CREATE TABLE table_name_71 (name VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT name FROM table_name_71 WHERE venue = "motherwell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In 1987, what is the Runners-up when Stefan Edberg is Champion? ### Context: CREATE TABLE table_name_95 (runners_up VARCHAR, champions VARCHAR, year VARCHAR) [/INST] ### Response: SELECT runners_up FROM table_name_95 WHERE champions = "stefan edberg" AND year = 1987 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament? ### Context: CREATE TABLE table_name_80 (runners_up VARCHAR, year VARCHAR, champions VARCHAR, name_of_tournament VARCHAR) [/INST] ### Response: SELECT runners_up FROM table_name_80 WHERE champions = "ivan lendl" AND name_of_tournament = "seiko super tennis" AND year < 1990 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In What Tournament did Boris Becker have a Score of 7–6, 6–4? ### Context: CREATE TABLE table_name_84 (name_of_tournament VARCHAR, champions VARCHAR, score VARCHAR) [/INST] ### Response: SELECT name_of_tournament FROM table_name_84 WHERE champions = "boris becker" AND score = "7–6, 6–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 external weapon with the falcon shield animal? ### Context: CREATE TABLE table_name_17 (external_weapon VARCHAR, shield_animal VARCHAR) [/INST] ### Response: SELECT external_weapon FROM table_name_17 WHERE shield_animal = "falcon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What cart has a serpent shield animal? ### Context: CREATE TABLE table_name_47 (cart VARCHAR, shield_animal VARCHAR) [/INST] ### Response: SELECT cart FROM table_name_47 WHERE shield_animal = "serpent" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 external weapon of knight zeke? ### Context: CREATE TABLE table_name_26 (external_weapon VARCHAR, knight VARCHAR) [/INST] ### Response: SELECT external_weapon FROM table_name_26 WHERE knight = "zeke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shield animal of knight phil? ### Context: CREATE TABLE table_name_57 (shield_animal VARCHAR, knight VARCHAR) [/INST] ### Response: SELECT shield_animal FROM table_name_57 WHERE knight = "phil" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 external weapon with a ramhead cart? ### Context: CREATE TABLE table_name_59 (external_weapon VARCHAR, cart VARCHAR) [/INST] ### Response: SELECT external_weapon FROM table_name_59 WHERE cart = "ramhead cart" </s>