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: Name the most attendance for october 11 ### Context: CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_75 WHERE date = "october 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: Name the visitor for october 19 ### Context: CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_52 WHERE date = "october 19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest year for the series titled dragon laws ii: kidnapped is what? ### Context: CREATE TABLE table_name_12 (year INTEGER, series_title VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_12 WHERE series_title = "dragon laws ii: kidnapped" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series titled dragon laws i: the undercover has what role? ### Context: CREATE TABLE table_name_73 (role VARCHAR, series_title VARCHAR) [/INST] ### Response: SELECT role FROM table_name_73 WHERE series_title = "dragon laws i: the undercover" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 athlete has the fastest time of 15.82? ### Context: CREATE TABLE table_name_7 (athlete VARCHAR, fastest_time__s_ VARCHAR) [/INST] ### Response: SELECT athlete FROM table_name_7 WHERE fastest_time__s_ = 15.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 the total number of years that an entrant had more than 0 points? ### Context: CREATE TABLE table_name_87 (year VARCHAR, points INTEGER) [/INST] ### Response: SELECT COUNT(year) FROM table_name_87 WHERE points > 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: Name the total number of years for brm straight-4 ### Context: CREATE TABLE table_name_65 (year VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_65 WHERE engine = "brm straight-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: Name the total number of points for chassis of bmw t269 (f2) ### Context: CREATE TABLE table_name_2 (points VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_2 WHERE chassis = "bmw t269 (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: Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0? ### Context: CREATE TABLE table_name_43 (promotions INTEGER, team VARCHAR, relegations VARCHAR) [/INST] ### Response: SELECT MAX(promotions) FROM table_name_43 WHERE team = "pallacanestro messina" AND relegations > 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 are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985? ### Context: CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_32 WHERE chassis = "zakspeed 841" AND year < 1985 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest year with tyres in g and less than 0 points? ### Context: CREATE TABLE table_name_32 (year INTEGER, tyres VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_32 WHERE tyres = "g" AND points < 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: Which year has an Engine(s) of yamaha v8? ### Context: CREATE TABLE table_name_6 (year VARCHAR, engine_s_ VARCHAR) [/INST] ### Response: SELECT year FROM table_name_6 WHERE engine_s_ = "yamaha v8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average points with a Chassis of zakspeed 881? ### Context: CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 League has a Venue of martin luther king, jr. recreation center? ### Context: CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium? ### Context: CREATE TABLE table_name_96 (championships__years_ VARCHAR, league VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT championships__years_ FROM table_name_96 WHERE league = "milb, florida state league" AND venue = "ed smith stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Sport has a League of continental basketball league, and a Venue of avalon middle school? ### Context: CREATE TABLE table_name_11 (sport VARCHAR, league VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT sport FROM table_name_11 WHERE league = "continental basketball league" AND venue = "avalon middle school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads? ### Context: CREATE TABLE table_name_38 (venue VARCHAR, club VARCHAR, league VARCHAR, sport VARCHAR, championships__years_ VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_38 WHERE sport = "baseball" AND championships__years_ = "0" AND league = "milb, florida state league" AND club = "jupiter hammerheads" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a League of american basketball association, and a Venue of tba? ### Context: CREATE TABLE table_name_86 (club VARCHAR, league VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT club FROM table_name_86 WHERE league = "american basketball association" AND venue = "tba" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school? ### Context: CREATE TABLE table_name_71 (area VARCHAR, name VARCHAR, years VARCHAR, decile VARCHAR) [/INST] ### Response: SELECT area FROM table_name_71 WHERE years = "1–8" AND decile < 7 AND name = "waikari school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 decile with Years of 1–8, and an Area of waipara? ### Context: CREATE TABLE table_name_98 (decile INTEGER, years VARCHAR, area VARCHAR) [/INST] ### Response: SELECT AVG(decile) FROM table_name_98 WHERE years = "1–8" AND area = "waipara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 area has Years of 1–8, and a Name of broomfield school? ### Context: CREATE TABLE table_name_9 (area VARCHAR, years VARCHAR, name VARCHAR) [/INST] ### Response: SELECT area FROM table_name_9 WHERE years = "1–8" AND name = "broomfield school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 roll with a Decile larger than 6, and a Name of broomfield school? ### Context: CREATE TABLE table_name_40 (roll INTEGER, decile VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MIN(roll) FROM table_name_40 WHERE decile > 6 AND name = "broomfield school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name has a Roll of 270? ### Context: CREATE TABLE table_name_97 (name VARCHAR, roll VARCHAR) [/INST] ### Response: SELECT name FROM table_name_97 WHERE roll = 270 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed the episode written by Dan Serafin and aired on July 23, 2008? ### Context: CREATE TABLE table_name_52 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 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 title of the episode originally aired on February 2, 2008? ### Context: CREATE TABLE table_name_65 (title VARCHAR, original_airdate VARCHAR) [/INST] ### Response: SELECT title FROM table_name_65 WHERE original_airdate = "february 2, 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: How much money did James Seddon request? ### Context: CREATE TABLE table_name_2 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) [/INST] ### Response: SELECT money_requested__£_ FROM table_name_2 WHERE entrepreneur_s_ = "james seddon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Entrepreneur(s) first aired on 24 August 2006? ### Context: CREATE TABLE table_name_28 (entrepreneur_s_ VARCHAR, first_aired VARCHAR) [/INST] ### Response: SELECT entrepreneur_s_ FROM table_name_28 WHERE first_aired = "24 august 2006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Entrepreneur(s) have mixalbum? ### Context: CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR) [/INST] ### Response: SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much money did Ian Chamings request? ### Context: CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) [/INST] ### Response: SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = "ian chamings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Investing Dragon(s) requested 100,000 in money and has autosafe? ### Context: CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR) [/INST] ### Response: SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tall is the Anqing Bridge which opened prior to 2011? ### Context: CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR) [/INST] ### Response: SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cable-stayed Badong Bridge open in 2005? ### Context: CREATE TABLE table_name_18 (location VARCHAR, name VARCHAR, type VARCHAR, opened VARCHAR) [/INST] ### Response: SELECT location FROM table_name_18 WHERE type = "cable-stayed" AND opened = 2005 AND name = "badong bridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the average year for janaprakal chandruang ### Context: CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the literature for pradit prasarttong ### Context: CREATE TABLE table_name_72 (literature VARCHAR, performing_arts VARCHAR) [/INST] ### Response: SELECT literature FROM table_name_72 WHERE performing_arts = "pradit prasarttong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first year Fabrice Soulier was a runner-up? ### Context: CREATE TABLE table_name_43 (year INTEGER, runner_up VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_43 WHERE runner_up = "fabrice soulier" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrants were there in 2011? ### Context: CREATE TABLE table_name_21 (entrants VARCHAR, year VARCHAR) [/INST] ### Response: SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the rank of Bobby Grim when he finished 1059 laps? ### Context: CREATE TABLE table_name_95 (rank VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_95 WHERE laps = 1059 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent? ### Context: CREATE TABLE table_name_43 (rd VARCHAR, _time VARCHAR, opponent VARCHAR, res VARCHAR, type VARCHAR) [/INST] ### Response: SELECT rd, _time FROM table_name_43 WHERE res = "win" AND type = "tko" AND opponent = "carlos molina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match on 2009-07-18? ### Context: CREATE TABLE table_name_21 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_21 WHERE date = "2009-07-18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the type of the match with a win result and Michael Gomez as the opponent? ### Context: CREATE TABLE table_name_79 (type VARCHAR, res VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT type FROM table_name_79 WHERE res = "win" AND opponent = "michael gomez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals when the caps were set at 48? ### Context: CREATE TABLE table_name_66 (goals VARCHAR, caps VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_66 WHERE caps = 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: How many caps did the player Mile Sterjovski have? ### Context: CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR) [/INST] ### Response: SELECT caps FROM table_name_22 WHERE player = "mile sterjovski" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals of Mile Sterjovski as a player? ### Context: CREATE TABLE table_name_59 (goals VARCHAR, player VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_59 WHERE player = "mile sterjovski" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 caps did Mitchell Duke have overall? ### Context: CREATE TABLE table_name_32 (caps VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(caps) FROM table_name_32 WHERE player = "mitchell duke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which opponent has a Date of 16 february 2003? ### Context: CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_83 WHERE date = "16 february 2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which date has an A venue with an Opponent of stoke city? ### Context: CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which opponent has a Round of r5? ### Context: CREATE TABLE table_name_51 (opponent VARCHAR, round VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_51 WHERE round = "r5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Scorers have a Venue of A, and an Opponent of arsenal? ### Context: CREATE TABLE table_name_41 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT scorers FROM table_name_41 WHERE venue = "a" AND opponent = "arsenal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Opponent has a Round of qf replay? ### Context: CREATE TABLE table_name_22 (opponent VARCHAR, round VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_22 WHERE round = "qf replay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 took the loss on the April 6 game? ### Context: CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_84 WHERE date = "april 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 was the record after the April 15 game? ### Context: CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_75 WHERE date = "april 15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent that led to a 10-13 record? ### Context: CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_38 WHERE record = "10-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 record after the April 6 game? ### Context: CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_14 WHERE date = "april 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 was the score for the April 12 game? ### Context: CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_73 WHERE date = "april 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 team has the most wins with at least 18 goals and less than 5 losses? ### Context: CREATE TABLE table_name_85 (wins INTEGER, goals_for VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_85 WHERE goals_for = 18 AND losses < 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many times has the Cornwall HC team, that has scored more than 18 goals, lost ? ### Context: CREATE TABLE table_name_12 (losses VARCHAR, team VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_12 WHERE team = "cornwall hc" AND goals_for > 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the series number that has a production code of 50021–50025? ### Context: CREATE TABLE table_name_19 (number_in_series INTEGER, production_code VARCHAR) [/INST] ### Response: SELECT MAX(number_in_series) FROM table_name_19 WHERE production_code = "50021–50025" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 county team has jimmy finn as the player? ### Context: CREATE TABLE table_name_88 (county_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT county_team FROM table_name_88 WHERE player = "jimmy finn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team numbers have john keane as the player? ### Context: CREATE TABLE table_name_93 (team_number VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(team_number) FROM table_name_93 WHERE player = "john keane" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which position has john keane as the player? ### Context: CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_15 WHERE player = "john keane" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss of the game when the record was 27-17? ### Context: CREATE TABLE table_name_61 (loss VARCHAR, record VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_61 WHERE record = "27-17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the smallest goals with wins smaller than 16, and a Draws larger than 14? ### Context: CREATE TABLE table_name_48 (goals_against INTEGER, wins VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT MIN(goals_against) FROM table_name_48 WHERE wins < 16 AND draws > 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 are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44? ### Context: CREATE TABLE table_name_86 (wins INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_86 WHERE points = "42-2" AND goals_against = 67 AND played < 44 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which average wins have a Club of barcelona atlètic, and Goals for larger than 56? ### Context: CREATE TABLE table_name_59 (wins INTEGER, club VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_59 WHERE club = "barcelona atlètic" AND goals_for > 56 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15? ### Context: CREATE TABLE table_name_63 (position INTEGER, wins VARCHAR, goals_against VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(position) FROM table_name_63 WHERE goals_against < 78 AND points = "42-2" AND wins > 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which lowest played has a Position of 2, and Goals against larger than 53? ### Context: CREATE TABLE table_name_6 (played INTEGER, position VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goal differences have Played larger than 44? ### Context: CREATE TABLE table_name_99 (goal_difference INTEGER, played INTEGER) [/INST] ### Response: SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the race in Vienna, Austria? ### Context: CREATE TABLE table_name_72 (year INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_72 WHERE venue = "vienna, austria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event (Extra) in 2002 did the competitor compete in and place 8th? ### Context: CREATE TABLE table_name_80 (extra VARCHAR, year VARCHAR, result VARCHAR) [/INST] ### Response: SELECT extra FROM table_name_80 WHERE year = 2002 AND result = "8th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Olympic Games held? ### Context: CREATE TABLE table_name_29 (venue VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_29 WHERE tournament = "olympic games" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: That is the value for Try bonus when the value for Points is 418? ### Context: CREATE TABLE table_name_82 (try_bonus VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT try_bonus FROM table_name_82 WHERE points_for = "418" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Club, when the value for Played is 22, and when the value for Tries is 41? ### Context: CREATE TABLE table_name_44 (club VARCHAR, played VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT club FROM table_name_44 WHERE played = "22" AND tries_for = "41" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for Drawn, when the value for Losing bonus is 6? ### Context: CREATE TABLE table_name_12 (drawn VARCHAR, losing_bonus VARCHAR) [/INST] ### Response: SELECT drawn FROM table_name_12 WHERE losing_bonus = "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 value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4? ### Context: CREATE TABLE table_name_35 (lost VARCHAR, try_bonus VARCHAR, losing_bonus VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_35 WHERE try_bonus = "2" AND losing_bonus = "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 Losing bonus, when the value for Points is 43? ### Context: CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR) [/INST] ### Response: SELECT losing_bonus FROM table_name_61 WHERE points = "43" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Club, when the value for Lost is 9, and when the value for Tries is 55? ### Context: CREATE TABLE table_name_8 (club VARCHAR, lost VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT club FROM table_name_8 WHERE lost = "9" AND tries_for = "55" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest draw with 37 games from England? ### Context: CREATE TABLE table_name_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR) [/INST] ### Response: SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many draws have a Cambridge United career of 2008–2009 and less than 13 losses? ### Context: CREATE TABLE table_name_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(drawn) FROM table_name_2 WHERE cambridge_united_career = "2008–2009" AND lost < 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 was the record at the game when the score was 1–0? ### Context: CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_66 WHERE score = "1–0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the game when the record was 19–13–3? ### Context: CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_92 WHERE record = "19–13–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: Who was the visiting team when the score was 1–3? ### Context: CREATE TABLE table_name_16 (visitor VARCHAR, score VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_16 WHERE score = "1–3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team when there was a record of 20–13–3? ### Context: CREATE TABLE table_name_52 (home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT home FROM table_name_52 WHERE record = "20–13–3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the game with the record of 18–10–2? ### Context: CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_60 WHERE record = "18–10–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: Visitor of minnesota has what average attendance? ### Context: CREATE TABLE table_name_30 (attendance INTEGER, visitor VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_30 WHERE visitor = "minnesota" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Date of december 29 has what visitor? ### Context: CREATE TABLE table_name_9 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_9 WHERE date = "december 29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Score of 2 – 3 has what attendance? ### Context: CREATE TABLE table_name_61 (attendance VARCHAR, score VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_61 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: With a record of 48-51 for the team, the lowest 2005 attendance was listed as how many? ### Context: CREATE TABLE table_name_35 (attendance INTEGER, record VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_35 WHERE record = "48-51" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What would be the lowest Attendance that also showed a loss of Obermueller (1-2)? ### Context: CREATE TABLE table_name_36 (attendance INTEGER, loss VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_36 WHERE loss = "obermueller (1-2)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the stadium for the game held on October 31? ### Context: CREATE TABLE table_name_61 (stadium VARCHAR, date VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_61 WHERE date = "october 31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weeks in total were games played at Cleveland Browns Stadium? ### Context: CREATE TABLE table_name_81 (week VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_81 WHERE stadium = "cleveland browns stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the surface on 23 October 2011? ### Context: CREATE TABLE table_name_97 (surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_97 WHERE date = "23 october 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Notre Dame coach lost 15 games? ### Context: CREATE TABLE table_name_27 (coach VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT coach FROM table_name_27 WHERE losses = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many losses did Notre Dame have in 1904? ### Context: CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR) [/INST] ### Response: SELECT AVG(losses) FROM table_name_43 WHERE years = "1904" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning percent of Notre Dame in 1905? ### Context: CREATE TABLE table_name_86 (pct VARCHAR, years VARCHAR) [/INST] ### Response: SELECT pct FROM table_name_86 WHERE years = "1905" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home captain that played at Edgbaston? ### Context: CREATE TABLE table_name_22 (home_captain VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_captain FROM table_name_22 WHERE venue = "edgbaston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home captain that played at Edgbaston? ### Context: CREATE TABLE table_name_41 (home_captain VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_captain FROM table_name_41 WHERE venue = "edgbaston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result? ### Context: CREATE TABLE table_name_24 (result VARCHAR, home_captain VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_24 WHERE home_captain = "graham gooch" AND date = "3,4,5,6,7 june 1993" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue for the matches played on the dates 3,4,5,6,7 June 1993? ### Context: CREATE TABLE table_name_32 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_32 WHERE date = "3,4,5,6,7 june 1993" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the away captain for matches played at Trent Bridge? ### Context: CREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_captain FROM table_name_81 WHERE venue = "trent bridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank is Hawthorn? ### Context: CREATE TABLE table_name_32 (rank VARCHAR, club_clubs VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_32 WHERE club_clubs = "hawthorn" </s>