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: Which Player has an Overall of 126? ### Context: CREATE TABLE table_name_68 (player VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT player FROM table_name_68 WHERE overall = "126" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player has a Nationality of united states, and an Overall of 61 (from boston)? ### Context: CREATE TABLE table_name_79 (player VARCHAR, nationality VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT player FROM table_name_79 WHERE nationality = "united states" AND overall = "61 (from boston)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Club team of brandon wheat kings (whl)? ### Context: CREATE TABLE table_name_92 (round VARCHAR, club_team VARCHAR) [/INST] ### Response: SELECT round FROM table_name_92 WHERE club_team = "brandon wheat kings (whl)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the team Minneapolis Lakers during round T? ### Context: CREATE TABLE table_name_62 (position VARCHAR, round VARCHAR, team VARCHAR) [/INST] ### Response: SELECT position FROM table_name_62 WHERE round = "t" AND team = "minneapolis lakers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the pick for the game at the College of Kentucky with the team Washington Capitols? ### Context: CREATE TABLE table_name_56 (pick VARCHAR, college VARCHAR, team VARCHAR) [/INST] ### Response: SELECT pick FROM table_name_56 WHERE college = "kentucky" AND team = "washington capitols" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the pick for round 2 with the team Indianapolis Olympians? ### Context: CREATE TABLE table_name_14 (pick VARCHAR, round VARCHAR, team VARCHAR) [/INST] ### Response: SELECT pick FROM table_name_14 WHERE round = "2" AND team = "indianapolis olympians" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points does Draw 5 have? ### Context: CREATE TABLE table_name_67 (points VARCHAR, draw VARCHAR) [/INST] ### Response: SELECT points FROM table_name_67 WHERE draw = 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: Where did the artist All Mixed Up place? ### Context: CREATE TABLE table_name_4 (place INTEGER, artist VARCHAR) [/INST] ### Response: SELECT MIN(place) FROM table_name_4 WHERE artist = "all mixed up" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score of Game 2? ### Context: CREATE TABLE table_name_73 (score VARCHAR, game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_73 WHERE game = 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: Can you tell me the Place that has the Score of 70-67-69-69=275? ### Context: CREATE TABLE table_name_81 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_81 WHERE score = 70 - 67 - 69 - 69 = 275 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts? ### Context: CREATE TABLE table_name_84 (money___ INTEGER, player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = "loren roberts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the Country that has the Score of 69-72-67-71=279? ### Context: CREATE TABLE table_name_94 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_94 WHERE score = 69 - 72 - 67 - 71 = 279 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver whose car was constructed by Renault and whose Q1 pos is greater than 2? ### Context: CREATE TABLE table_name_4 (driver VARCHAR, constructor VARCHAR, q1_pos VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_4 WHERE constructor = "renault" AND q1_pos > 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: Who was the constructor of the car that had a Q1 pos of less than 8 and a Q1 time of 1:15.038? ### Context: CREATE TABLE table_name_84 (constructor VARCHAR, q1_pos VARCHAR, q1_time VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_84 WHERE q1_pos < 8 AND q1_time = "1:15.038" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Q1+Q2 time for the driver whose Q1 time was 1:14.819, ? ### Context: CREATE TABLE table_name_51 (q1 VARCHAR, q2_time VARCHAR, q1_time VARCHAR) [/INST] ### Response: SELECT q1 + q2_time FROM table_name_51 WHERE q1_time = "1:14.819" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Q1+Q2 time for the driver whose Q1 order was 13? ### Context: CREATE TABLE table_name_35 (q1 VARCHAR, q2_time VARCHAR, q1_order VARCHAR) [/INST] ### Response: SELECT q1 + q2_time FROM table_name_35 WHERE q1_order = 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For what round was the opponent nikola ćirić dušan vemić? ### Context: CREATE TABLE table_name_72 (round VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT round FROM table_name_72 WHERE opponents = "nikola ćirić dušan vemić" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface when the result was 6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6? ### Context: CREATE TABLE table_name_82 (surface VARCHAR, result VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_82 WHERE result = "6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of the player from fiji? ### Context: CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR) [/INST] ### Response: SELECT score FROM table_name_6 WHERE country = "fiji" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the place of the player with a 70-66-67=203 score? ### Context: CREATE TABLE table_name_46 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_46 WHERE score = 70 - 66 - 67 = 203 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the player with a t6 place? ### Context: CREATE TABLE table_name_99 (player VARCHAR, place VARCHAR) [/INST] ### Response: SELECT player FROM table_name_99 WHERE place = "t6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the place of player john cook? ### Context: CREATE TABLE table_name_73 (place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_73 WHERE player = "john cook" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country of the player with a 70-71-68=209 score? ### Context: CREATE TABLE table_name_98 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_98 WHERE score = 70 - 71 - 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: How many casualties were in the earthquake with an unknown intensity and an epicenter in the bouïra province? ### Context: CREATE TABLE table_name_3 (casualties VARCHAR, intensity VARCHAR, epicenter VARCHAR) [/INST] ### Response: SELECT casualties FROM table_name_3 WHERE intensity = "unknown" AND epicenter = "bouïra province" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 magnitude of the earthquake with an epicenter in biskra province? ### Context: CREATE TABLE table_name_6 (magnitude VARCHAR, epicenter VARCHAR) [/INST] ### Response: SELECT magnitude FROM table_name_6 WHERE epicenter = "biskra province" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 epicenter of the earthquake on March 2, 1825 with an unknown intensity? ### Context: CREATE TABLE table_name_10 (epicenter VARCHAR, intensity VARCHAR, date VARCHAR) [/INST] ### Response: SELECT epicenter FROM table_name_10 WHERE intensity = "unknown" AND date = "march 2, 1825" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 epicenter on January 1, 1965? ### Context: CREATE TABLE table_name_88 (epicenter VARCHAR, date VARCHAR) [/INST] ### Response: SELECT epicenter FROM table_name_88 WHERE date = "january 1, 1965" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the winning driver Antonio Ascari? ### Context: CREATE TABLE table_name_27 (date VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT date FROM table_name_27 WHERE winning_driver = "antonio ascari" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the name Coppa Acerbo? ### Context: CREATE TABLE table_name_7 (date VARCHAR, name VARCHAR) [/INST] ### Response: SELECT date FROM table_name_7 WHERE name = "coppa acerbo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the Tigullio Circuit? ### Context: CREATE TABLE table_name_24 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_24 WHERE circuit = "tigullio" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the Madonie Circuit? ### Context: CREATE TABLE table_name_22 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_22 WHERE circuit = "madonie" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What surface was the tournament played on against Steven Diez? ### Context: CREATE TABLE table_name_96 (surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_96 WHERE opponent_in_the_final = "steven diez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the game played on the hard surface at the Tournament of Sweden f2? ### Context: CREATE TABLE table_name_77 (date VARCHAR, surface VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_77 WHERE surface = "hard" AND tournament = "sweden f2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 playing surface for the Tournament of Great Britain F16? ### Context: CREATE TABLE table_name_44 (surface VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_44 WHERE tournament = "great britain f16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Result of 1-0, and a Venue of A, and an Opponent of newcastle united? ### Context: CREATE TABLE table_name_77 (attendance INTEGER, opponent VARCHAR, result VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_77 WHERE result = "1-0" AND venue = "a" AND opponent = "newcastle 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's the position of the player with a Height of 2.06 and club of Triumph Lyubertsy? ### Context: CREATE TABLE table_name_99 (position VARCHAR, height VARCHAR, current_club VARCHAR) [/INST] ### Response: SELECT position FROM table_name_99 WHERE height = 2.06 AND current_club = "triumph lyubertsy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points were there when the average was 0.763 and the played was less than 76? ### Context: CREATE TABLE table_name_85 (points VARCHAR, played VARCHAR, average VARCHAR) [/INST] ### Response: SELECT points FROM table_name_85 WHERE played < 76 AND average = 0.763 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 median household income in Valley County? ### Context: CREATE TABLE table_name_8 (median_household_income VARCHAR, county VARCHAR) [/INST] ### Response: SELECT median_household_income FROM table_name_8 WHERE county = "valley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BYES WITH A WIN SMALLER THAN 16, 8 LOSSES, AND AT PENSHURST, WITH AGAINST SMALLER THAN 1405? ### Context: CREATE TABLE table_name_24 (byes INTEGER, against VARCHAR, mininera_dfl VARCHAR, wins VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT SUM(byes) FROM table_name_24 WHERE wins < 16 AND losses = 8 AND mininera_dfl = "penshurst" AND against < 1405 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BYES WITH A DRAWS OF 1, SMW ROVERS, AND WINS LARGER THAN 6? ### Context: CREATE TABLE table_name_76 (byes INTEGER, wins VARCHAR, draws VARCHAR, mininera_dfl VARCHAR) [/INST] ### Response: SELECT AVG(byes) FROM table_name_76 WHERE draws = 1 AND mininera_dfl = "smw rovers" AND wins > 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE HIGHEST AGAINST WITH LOSSES SMALLER THAN 17, DRAWS LARGER THAN 1? ### Context: CREATE TABLE table_name_35 (against INTEGER, losses VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT MAX(against) FROM table_name_35 WHERE losses < 17 AND draws > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE HIGHEST WINS WITH AGAINST SMALLER THAN 924, LOSSES SMALLER THAN 2? ### Context: CREATE TABLE table_name_72 (wins INTEGER, against VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_72 WHERE against < 924 AND losses < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score for the 2nd leg when Belasica is team 2? ### Context: CREATE TABLE table_name_75 (team_2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_75 WHERE team_2 = "belasica" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Cementarnica is team 2 what is the aggregate score? ### Context: CREATE TABLE table_name_65 (agg VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT agg FROM table_name_65 WHERE team_2 = "cementarnica" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Patrick Femerling, of the Alba Berlin club? ### Context: CREATE TABLE table_name_36 (height VARCHAR, current_club VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(height) FROM table_name_36 WHERE current_club = "alba berlin" AND player = "patrick femerling" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 born (Age) for the player who is taller than 2.04 and currently plays for the Los Angeles Clippers? ### Context: CREATE TABLE table_name_93 (year_born__age_ VARCHAR, height VARCHAR, current_club VARCHAR) [/INST] ### Response: SELECT year_born__age_ FROM table_name_93 WHERE height > 2.04 AND current_club = "los angeles clippers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the player from the Alba Berlin club who is taller than 1.96 and whose ear born (Age) is july 23, 1985 (age28)? ### Context: CREATE TABLE table_name_77 (position VARCHAR, year_born__age_ VARCHAR, current_club VARCHAR, height VARCHAR) [/INST] ### Response: SELECT position FROM table_name_77 WHERE current_club = "alba berlin" AND height > 1.96 AND year_born__age_ = "july 23, 1985 (age28)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against for 17/02/1979? ### Context: CREATE TABLE table_name_76 (against VARCHAR, date VARCHAR) [/INST] ### Response: SELECT against FROM table_name_76 WHERE date = "17/02/1979" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 24/11/1979, what is the opposing teams? ### Context: CREATE TABLE table_name_26 (opposing_teams VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opposing_teams FROM table_name_26 WHERE date = "24/11/1979" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the venue for 24/11/1979? ### Context: CREATE TABLE table_name_19 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_19 WHERE date = "24/11/1979" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the status for 24/11/1979? ### Context: CREATE TABLE table_name_86 (status VARCHAR, date VARCHAR) [/INST] ### Response: SELECT status FROM table_name_86 WHERE date = "24/11/1979" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament with a clay surface and sofia shapatava as the opponent? ### Context: CREATE TABLE table_name_54 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_54 WHERE surface = "clay" AND opponent = "sofia shapatava" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament on 5 October 2004? ### Context: CREATE TABLE table_name_50 (tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_50 WHERE date = "5 october 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score on 5 October 2004? ### Context: CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_1 WHERE date = "5 october 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in 2009 for the US Open Tournament? ### Context: CREATE TABLE table_name_17 (tournament VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_17 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: For the Australian Open, in 2007 the result was A, but what was the result in 2012? ### Context: CREATE TABLE table_name_4 (tournament VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_4 WHERE 2007 = "a" AND tournament = "australian open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result in the 2012 for the US Open tournament? ### Context: CREATE TABLE table_name_12 (tournament VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_12 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 IS THE ENDS IN 2007 AND NAMED MILITO? ### Context: CREATE TABLE table_name_77 (ends VARCHAR, since VARCHAR, name VARCHAR) [/INST] ### Response: SELECT ends FROM table_name_77 WHERE since = 2007 AND name = "milito" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Portugal has how many total number of medals when there is 1 gold medal, and bronze medals are greater than 0? ### Context: CREATE TABLE table_name_85 (total VARCHAR, bronze VARCHAR, gold VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_85 WHERE gold = 1 AND nation = "portugal" AND bronze > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Spain with a total of more than 4 medals is in what rank? ### Context: CREATE TABLE table_name_15 (rank VARCHAR, total VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_15 WHERE total > 4 AND nation = "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: How many tries for were there 48 points? ### Context: CREATE TABLE table_name_57 (tries_for VARCHAR, points VARCHAR) [/INST] ### Response: SELECT tries_for FROM table_name_57 WHERE points = "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: What is the played for tries for 50? ### Context: CREATE TABLE table_name_32 (played VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT played FROM table_name_32 WHERE tries_for = "50" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club has 77 points? ### Context: CREATE TABLE table_name_95 (club VARCHAR, points VARCHAR) [/INST] ### Response: SELECT club FROM table_name_95 WHERE points = "77" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries for when the points against is 214? ### Context: CREATE TABLE table_name_25 (tries_for VARCHAR, points_against VARCHAR) [/INST] ### Response: SELECT tries_for FROM table_name_25 WHERE points_against = "214" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title did he act in 1940? ### Context: CREATE TABLE table_name_65 (title VARCHAR, year VARCHAR) [/INST] ### Response: SELECT title FROM table_name_65 WHERE year = 1940 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 work where the role was Molly O'Day? ### Context: CREATE TABLE table_name_84 (title VARCHAR, role VARCHAR) [/INST] ### Response: SELECT title FROM table_name_84 WHERE role = "molly o'day" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 role in an original play, comedy in 1938? ### Context: CREATE TABLE table_name_77 (role VARCHAR, format_genre VARCHAR, year VARCHAR) [/INST] ### Response: SELECT role FROM table_name_77 WHERE format_genre = "original play, comedy" AND year = 1938 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series 3 with gavin duffy in series 5? ### Context: CREATE TABLE table_name_25 (series_3 VARCHAR, series_5 VARCHAR) [/INST] ### Response: SELECT series_3 FROM table_name_25 WHERE series_5 = "gavin duffy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series 4 with sarah newman in series 1? ### Context: CREATE TABLE table_name_70 (series_4 VARCHAR, series_1 VARCHAR) [/INST] ### Response: SELECT series_4 FROM table_name_70 WHERE series_1 = "sarah newman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series 3 with more than 4 seats? ### Context: CREATE TABLE table_name_77 (series_3 VARCHAR, seat INTEGER) [/INST] ### Response: SELECT series_3 FROM table_name_77 WHERE seat > 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 total number of seats with gavin duffy in series 4? ### Context: CREATE TABLE table_name_13 (seat VARCHAR, series_4 VARCHAR) [/INST] ### Response: SELECT COUNT(seat) FROM table_name_13 WHERE series_4 = "gavin duffy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points of the club with less than 9 draws, 11 wins, and more than 40 goals? ### Context: CREATE TABLE table_name_28 (points INTEGER, goals_for VARCHAR, draws VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_28 WHERE draws < 9 AND wins = 11 AND goals_for > 40 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What club has less than 10 losses, less than 55 goals, and 13 wins? ### Context: CREATE TABLE table_name_47 (club VARCHAR, wins VARCHAR, losses VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT club FROM table_name_47 WHERE losses < 10 AND goals_for < 55 AND wins = 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest position of the club with 53 goals against, 26 points, and a -11 goal difference? ### Context: CREATE TABLE table_name_70 (position INTEGER, goal_difference VARCHAR, goals_against VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(position) FROM table_name_70 WHERE goals_against = 53 AND points = 26 AND goal_difference > -11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of losses of club cf calvo sotelo, which has more than 31 goals against, 38 goals for, and less than 30 played? ### Context: CREATE TABLE table_name_85 (losses INTEGER, played VARCHAR, club VARCHAR, goals_against VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT MAX(losses) FROM table_name_85 WHERE goals_against > 31 AND goals_for = 38 AND club = "cf calvo sotelo" 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 position of club burgos cf, which has more than 42 goals against and more than 14 losses? ### Context: CREATE TABLE table_name_60 (position INTEGER, losses VARCHAR, goals_against VARCHAR, club VARCHAR) [/INST] ### Response: SELECT AVG(position) FROM table_name_60 WHERE goals_against > 42 AND club = "burgos cf" AND losses > 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest Pick, when Draft is less than 1991, and when Player is "Tom Sasso Category:Articles with hCards"? ### Context: CREATE TABLE table_name_7 (pick INTEGER, draft VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_7 WHERE draft < 1991 AND player = "tom sasso category:articles with hcards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Draft, when Round is "9", when Pick is "171", and when Player is "Dan Wiebe Category:Articles with hCards"? ### Context: CREATE TABLE table_name_17 (draft VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT draft FROM table_name_17 WHERE round = "9" AND pick = 171 AND player = "dan wiebe category:articles with hcards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Pick, when Round is "6", when Nationality is "Canada", when Draft is greater than 1983, and when Player is "Ed Ward Category:Articles with hCards"? ### Context: CREATE TABLE table_name_37 (pick VARCHAR, player VARCHAR, draft VARCHAR, round VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT pick FROM table_name_37 WHERE round = "6" AND nationality = "canada" AND draft > 1983 AND player = "ed ward category:articles with hcards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of metres for the Dzelzavas Street 74? ### Context: CREATE TABLE table_name_61 (metres INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(metres) FROM table_name_61 WHERE name = "dzelzavas street 74" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Date has a Rank of 2? ### Context: CREATE TABLE table_name_23 (date VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT date FROM table_name_23 WHERE rank = 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 Result has a Location of atlanta, and Rank smaller than 4? ### Context: CREATE TABLE table_name_11 (result INTEGER, location VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(result) FROM table_name_11 WHERE location = "atlanta" AND rank < 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest Result with a Location of birmingham, and Rank larger than 5? ### Context: CREATE TABLE table_name_73 (result INTEGER, location VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(result) FROM table_name_73 WHERE location = "birmingham" AND rank > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest total when there is less than 1 championship? ### Context: CREATE TABLE table_name_80 (total INTEGER, championship INTEGER) [/INST] ### Response: SELECT MAX(total) FROM table_name_80 WHERE championship < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest championship when the FA Cup is 0 and the League Cup is 1? ### Context: CREATE TABLE table_name_69 (championship INTEGER, fa_cup VARCHAR, league_cup VARCHAR) [/INST] ### Response: SELECT MIN(championship) FROM table_name_69 WHERE fa_cup = 0 AND league_cup = 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 was the result in 2013 in the tournament whose 2010 result was q2? ### Context: CREATE TABLE table_name_8 (Id VARCHAR) [/INST] ### Response: SELECT 2013 FROM table_name_8 WHERE 2010 = "q2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which tournament was the 2012 result 1r and the 2013 result 3r? ### Context: CREATE TABLE table_name_31 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_31 WHERE 2012 = "1r" AND 2013 = "3r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result in 2011 for the French Open tournament? ### Context: CREATE TABLE table_name_16 (tournament VARCHAR) [/INST] ### Response: SELECT 2011 FROM table_name_16 WHERE tournament = "french 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 is the 2000 figure when 2010 is 3R and 2001 is A? ### Context: CREATE TABLE table_name_66 (Id VARCHAR) [/INST] ### Response: SELECT 2000 FROM table_name_66 WHERE 2001 = "a" AND 2010 = "3r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2005 figure when 2002 is A and 2010 is 3R? ### Context: CREATE TABLE table_name_29 (Id VARCHAR) [/INST] ### Response: SELECT 2005 FROM table_name_29 WHERE 2002 = "a" AND 2010 = "3r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Partner Aurelija Misevičiūtė had an outcome of runner-up in what tournament? ### Context: CREATE TABLE table_name_82 (tournament VARCHAR, outcome VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_82 WHERE outcome = "runner-up" AND partner = "aurelija misevičiūtė" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The tournament with the opponent of Kelly De Beer Eva Pera was played on what date? ### Context: CREATE TABLE table_name_5 (date VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT date FROM table_name_5 WHERE opponents = "kelly de beer eva pera" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The tournament with a partner listed as Aurelija Misevičiūtė had what kind of surface? ### Context: CREATE TABLE table_name_88 (surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_88 WHERE partner = "aurelija misevičiūtė" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scored have utenis utena as the club, with wins less than 8? ### Context: CREATE TABLE table_name_31 (goals_scored INTEGER, club VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(goals_scored) FROM table_name_31 WHERE club = "utenis utena" AND wins < 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points have utenis utena as the club, with loses less than 16? ### Context: CREATE TABLE table_name_68 (points INTEGER, club VARCHAR, loses VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_68 WHERE club = "utenis utena" AND loses > 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: How many loses have points greater than 30, goals scored greater than 59, with a position greater than 5? ### Context: CREATE TABLE table_name_84 (loses INTEGER, position VARCHAR, points VARCHAR, goals_scored VARCHAR) [/INST] ### Response: SELECT SUM(loses) FROM table_name_84 WHERE points > 30 AND goals_scored > 59 AND position > 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 country has the label Control? ### Context: CREATE TABLE table_name_57 (country VARCHAR, label VARCHAR) [/INST] ### Response: SELECT country FROM table_name_57 WHERE label = "control" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 catalogue number for Brazil? ### Context: CREATE TABLE table_name_8 (catalogue__number VARCHAR, country VARCHAR) [/INST] ### Response: SELECT catalogue__number FROM table_name_8 WHERE country = "brazil" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country when the date shows October 24, 2008? ### Context: CREATE TABLE table_name_30 (country VARCHAR, date VARCHAR) [/INST] ### Response: SELECT country FROM table_name_30 WHERE date = "october 24, 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country for Sony / Sony Bmg? ### Context: CREATE TABLE table_name_61 (country VARCHAR, label VARCHAR) [/INST] ### Response: SELECT country FROM table_name_61 WHERE label = "sony / sony bmg" </s>