text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Loss when the opponent was the Rangers and the attendance was greater than 43,211? ### Context: CREATE TABLE table_name_57 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_57 WHERE opponent = "rangers" AND attendance > 43 OFFSET 211 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 result associated with a 2007 finish of 2R and a 2009 of 1R? ### Context: CREATE TABLE table_name_18 (Id VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_18 WHERE 2007 = "2r" AND 2009 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R? ### Context: CREATE TABLE table_name_2 (Id VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_2 WHERE 2012 = "1r" AND 2007 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the 2008 result associated with a 2009 of A and a 2011 of 2R? ### Context: CREATE TABLE table_name_36 (Id VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_36 WHERE 2009 = "a" AND 2011 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which tournament did Pauline Parmentier finish LQ in 2007? ### Context: CREATE TABLE table_name_34 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_34 WHERE 2007 = "lq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player name with matches of 51 ### Context: CREATE TABLE table_name_23 (player_name VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT player_name FROM table_name_23 WHERE matches = "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: Name the position for brazil 2008 with goals of 0 1 ### Context: CREATE TABLE table_name_6 (position VARCHAR, goals VARCHAR, country VARCHAR, period VARCHAR) [/INST] ### Response: SELECT position FROM table_name_6 WHERE country = "brazil" AND period = "2008" AND goals = "0 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: Name the goals with matches of 21 ### Context: CREATE TABLE table_name_38 (goals VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_38 WHERE matches = "21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the period with matches of 0 0 of portugal ### Context: CREATE TABLE table_name_56 (period VARCHAR, matches VARCHAR, country VARCHAR) [/INST] ### Response: SELECT period FROM table_name_56 WHERE matches = "0 0" AND country = "portugal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponents for round of round 5 ### Context: CREATE TABLE table_name_9 (opponents VARCHAR, round VARCHAR) [/INST] ### Response: SELECT opponents FROM table_name_9 WHERE round = "round 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: Name the attendance for 4 january 2004 ### Context: CREATE TABLE table_name_72 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_72 WHERE date = "4 january 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: Name the most attendance for 25 january 2004 ### Context: CREATE TABLE table_name_64 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_64 WHERE date = "25 january 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 average Attendance for the final round? ### Context: CREATE TABLE table_name_54 (attendance INTEGER, round VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_54 WHERE round = "final" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of people to attend a game with an H/A of h and the opponent was Roma? ### Context: CREATE TABLE table_name_67 (attendance INTEGER, h___a VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_67 WHERE h___a = "h" AND opponents = "roma" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game does the quentyn martell have? ### Context: CREATE TABLE table_name_54 (game VARCHAR, pov_character VARCHAR) [/INST] ### Response: SELECT game FROM table_name_54 WHERE pov_character = "quentyn martell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 storm has a clash of 3 and a dance of 4? ### Context: CREATE TABLE table_name_58 (storm VARCHAR, dance VARCHAR, clash VARCHAR) [/INST] ### Response: SELECT storm FROM table_name_58 WHERE dance = "4" AND clash = "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: Name the melbourne with perth, adelaide and auckland of no with sydney of yes ### Context: CREATE TABLE table_name_38 (melbourne VARCHAR, sydney VARCHAR, auckland VARCHAR, perth VARCHAR, adelaide VARCHAR) [/INST] ### Response: SELECT melbourne FROM table_name_38 WHERE perth = "no" AND adelaide = "no" AND auckland = "no" AND sydney = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold coast which has an auckland of no and melbourne of yes ### Context: CREATE TABLE table_name_88 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) [/INST] ### Response: SELECT gold_coast FROM table_name_88 WHERE auckland = "no" AND melbourne = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes ### Context: CREATE TABLE table_name_53 (sydney VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, perth VARCHAR, adelaide VARCHAR) [/INST] ### Response: SELECT sydney FROM table_name_53 WHERE perth = "no" AND adelaide = "no" AND melbourne = "yes" AND gold_coast = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Adelaide for Sydney of yes and Perth of yes ### Context: CREATE TABLE table_name_6 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR) [/INST] ### Response: SELECT adelaide FROM table_name_6 WHERE sydney = "yes" AND perth = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 melbourne for adelaide of no with auckland of yes and gold coast of yes ### Context: CREATE TABLE table_name_49 (melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR, auckland VARCHAR) [/INST] ### Response: SELECT melbourne FROM table_name_49 WHERE adelaide = "no" AND auckland = "yes" AND gold_coast = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Prime Minister of Antoine Wehenkel? ### Context: CREATE TABLE table_name_71 (Prime VARCHAR, minister VARCHAR) [/INST] ### Response: SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least amount of wins earlier than 1964 with more than 7 points? ### Context: CREATE TABLE table_name_49 (wins INTEGER, year VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the least points for class 125cc with 1 win earlier than 1961? ### Context: CREATE TABLE table_name_57 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_57 WHERE class = "125cc" AND wins = 1 AND year < 1961 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of wins when there are 7 points? ### Context: CREATE TABLE table_name_6 (wins VARCHAR, points VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_6 WHERE points = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the least amount of points when there is 1 win? ### Context: CREATE TABLE table_name_95 (points INTEGER, wins VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_95 WHERE wins = 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 club has more than 35 goals, more than 7 draws, and 20 losses? ### Context: CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many goals have more than 38 played and more than 9 draws? ### Context: CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR) [/INST] ### Response: SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has more than 59 goals against and more than 17 position? ### Context: CREATE TABLE table_name_32 (losses INTEGER, goals_against VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 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: On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78? ### Context: CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR) [/INST] ### Response: SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Nationality's time is 2:07.64? ### Context: CREATE TABLE table_name_98 (nationality VARCHAR, time VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_98 WHERE time = "2:07.64" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's Time is 4:01.00? ### Context: CREATE TABLE table_name_4 (event VARCHAR, time VARCHAR) [/INST] ### Response: SELECT event FROM table_name_4 WHERE time = "4:01.00" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location in the United States the Time 2:25.62? ### Context: CREATE TABLE table_name_87 (location VARCHAR, nationality VARCHAR, time VARCHAR) [/INST] ### Response: SELECT location FROM table_name_87 WHERE nationality = "united states" AND time = "2:25.62" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Year larger than 1975, and a Record of 13–11 is what playoffs? ### Context: CREATE TABLE table_name_54 (playoffs VARCHAR, year VARCHAR, record VARCHAR) [/INST] ### Response: SELECT playoffs FROM table_name_54 WHERE year > 1975 AND record = "13–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 are the venues prior to 2005 in the World Class category that resulted in a bronze? ### Context: CREATE TABLE table_name_57 (venue VARCHAR, result VARCHAR, year VARCHAR, category VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competitions that occurred before 2006 in SVK Nitra? ### Context: CREATE TABLE table_name_10 (competition VARCHAR, year VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_10 WHERE year < 2006 AND venue = "svk nitra" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 categories of events that occurred after 2007 that were World Championships? ### Context: CREATE TABLE table_name_93 (category VARCHAR, year VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT category FROM table_name_93 WHERE year > 2007 AND competition = "world championships" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result of events held at Nor Elverum, prior to 2010? ### Context: CREATE TABLE table_name_22 (result VARCHAR, year VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT result FROM table_name_22 WHERE year < 2010 AND venue = "nor elverum" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition held in 2003? ### Context: CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_17 WHERE year = 2003 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What chassis type does a scuderia ferrari with more than 1 point have? ### Context: CREATE TABLE table_name_33 (chassis VARCHAR, entrant VARCHAR, points VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_33 WHERE entrant = "scuderia ferrari" AND points > 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: A ferrari flat-12 engine with more than 1 point has what kind of chassis? ### Context: CREATE TABLE table_name_80 (chassis VARCHAR, engine VARCHAR, points VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 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 average year for a merzario a2 chassis? ### Context: CREATE TABLE table_name_91 (year INTEGER, chassis VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team's record when they played visitor team Chicago Black Hawks on November 24? ### Context: CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the visitor team who played home team Chicago Black Hawks on March 20? ### Context: CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "march 20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the team's record on November 12? ### Context: CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_38 WHERE date = "november 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 champion has 1981 as the year? ### Context: CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_33 WHERE year = "1981" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final has 1982 as the year? ### Context: CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR) [/INST] ### Response: SELECT date_final FROM table_name_59 WHERE year = "1982" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What prize money has michelob light challenge of champions as the commercial name? ### Context: CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR) [/INST] ### Response: SELECT prize_money FROM table_name_56 WHERE commercial_name = "michelob light challenge of champions" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final has 1989 as the year? ### Context: CREATE TABLE table_name_90 (date_final VARCHAR, year VARCHAR) [/INST] ### Response: SELECT date_final FROM table_name_90 WHERE year = "1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score in final has boris becker as the champion? ### Context: CREATE TABLE table_name_54 (score_in_final VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT score_in_final FROM table_name_54 WHERE champion = "boris becker" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957 ### Context: CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What 1957 engine has a Chassis of connaught type b? ### Context: CREATE TABLE table_name_71 (engine VARCHAR, chassis VARCHAR, year VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_71 WHERE chassis = "connaught type b" AND year > 1957 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the winning score βˆ’9 (72-68-64-67=271)? ### Context: CREATE TABLE table_name_89 (date VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_89 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory for the Mississippi Gulf Resort Classic? ### Context: CREATE TABLE table_name_77 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_77 WHERE tournament = "mississippi gulf resort classic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory when Mark Calcavecchia was the runner-up? ### Context: CREATE TABLE table_name_53 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ace Group Classic tournament with a 1 stroke margin of victory? ### Context: CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory when the winning score was βˆ’9 (72-68-64-67=271)? ### Context: CREATE TABLE table_name_84 (margin_of_victory VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_84 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round for te position? ### Context: CREATE TABLE table_name_65 (round INTEGER, position VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_65 WHERE position = "te" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall for james davis ### Context: CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_91 WHERE player = "james davis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall for james davis and round more than 5 ### Context: CREATE TABLE table_name_89 (overall INTEGER, player VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 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: Name the total number of overall for villanova and round less than 2 ### Context: CREATE TABLE table_name_20 (overall VARCHAR, college VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(overall) FROM table_name_20 WHERE college = "villanova" AND round < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which state is Mount Chiginagak located in? ### Context: CREATE TABLE table_name_8 (state VARCHAR, mountain_peak VARCHAR) [/INST] ### Response: SELECT state FROM table_name_8 WHERE mountain_peak = "mount chiginagak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 circumstances for the Baghlan location? ### Context: CREATE TABLE table_name_62 (circumstances VARCHAR, location VARCHAR) [/INST] ### Response: SELECT circumstances FROM table_name_62 WHERE location = "baghlan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 casualties in the Baghlan location? ### Context: CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR) [/INST] ### Response: SELECT casualties FROM table_name_64 WHERE location = "baghlan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 natural cause situation? ### Context: CREATE TABLE table_name_12 (date VARCHAR, circumstances VARCHAR) [/INST] ### Response: SELECT date FROM table_name_12 WHERE circumstances = "natural cause" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes? ### Context: CREATE TABLE table_name_49 (gold_coast VARCHAR, auckland VARCHAR, perth VARCHAR, sydney VARCHAR) [/INST] ### Response: SELECT gold_coast FROM table_name_49 WHERE perth = "no" AND sydney = "yes" AND auckland = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Melbourne has an Auckland of no, and a Gold Coast of no? ### Context: CREATE TABLE table_name_14 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR) [/INST] ### Response: SELECT melbourne FROM table_name_14 WHERE auckland = "no" AND gold_coast = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes? ### Context: CREATE TABLE table_name_2 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR) [/INST] ### Response: SELECT adelaide FROM table_name_2 WHERE melbourne = "yes" AND auckland = "yes" AND perth = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no? ### Context: CREATE TABLE table_name_27 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, melbourne VARCHAR) [/INST] ### Response: SELECT sydney FROM table_name_27 WHERE perth = "no" AND melbourne = "yes" AND gold_coast = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes? ### Context: CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR) [/INST] ### Response: SELECT auckland FROM table_name_1 WHERE adelaide = "no" AND melbourne = "yes" AND sydney = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled? ### Context: CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR) [/INST] ### Response: SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 owner of RSS Racing that driver Ryan Sieg belongs to? ### Context: CREATE TABLE table_name_75 (owner_s_ VARCHAR, team VARCHAR, driver_s_ VARCHAR) [/INST] ### Response: SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Parts Plus sponsors what driver? ### Context: CREATE TABLE table_name_21 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR) [/INST] ### Response: SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 owner of NTS Motorsports sponsored by Qore-24? ### Context: CREATE TABLE table_name_61 (owner_s_ VARCHAR, team VARCHAR, primary_sponsor_s_ VARCHAR) [/INST] ### Response: SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the crew chief, of driver Matt kurzejewski? ### Context: CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR) [/INST] ### Response: SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has a crew chief Gary Ritter? ### Context: CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR) [/INST] ### Response: SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 award for the 2009 songwriter of the year? ### Context: CREATE TABLE table_name_24 (award VARCHAR, year VARCHAR, category VARCHAR) [/INST] ### Response: SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 category that has the people's choice awards? ### Context: CREATE TABLE table_name_38 (category VARCHAR, award VARCHAR) [/INST] ### Response: SELECT category FROM table_name_38 WHERE award = "people's choice awards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what year has general nominated in the category or choice breakthrough artist? ### Context: CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on 6 February 2008? ### Context: CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_35 WHERE date = "6 february 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: Which competition was held on 14 November 2012? ### Context: CREATE TABLE table_name_41 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_41 WHERE date = "14 november 2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition took place on 10 August 2011? ### Context: CREATE TABLE table_name_85 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_85 WHERE date = "10 august 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 is the average Year with Chassis equalling cooper t60? ### Context: CREATE TABLE table_name_49 (year INTEGER, chassis VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_49 WHERE chassis = "cooper t60" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Chassis has an Entrant of cooper car company, and a Year of 1963? ### Context: CREATE TABLE table_name_26 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_26 WHERE entrant = "cooper car company" AND year = 1963 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Entrant has an Engine of climax straight-4, and Points larger than 0? ### Context: CREATE TABLE table_name_44 (entrant VARCHAR, engine VARCHAR, points VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" 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 tournament has hard as the surface and apr. 12, 1998 as the date? ### Context: CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface has wynne prakusya as the opponent in the final? ### Context: CREATE TABLE table_name_51 (surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_51 WHERE opponent_in_the_final = "wynne prakusya" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score has wynne prakusya as the opponent in the final? ### Context: CREATE TABLE table_name_15 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_15 WHERE opponent_in_the_final = "wynne prakusya" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tournament has nov. 21, 1999 as the date? ### Context: CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 1999" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 authority for coed gender and chanel college ### Context: CREATE TABLE table_name_67 (authority VARCHAR, gender VARCHAR, name VARCHAR) [/INST] ### Response: SELECT authority FROM table_name_67 WHERE gender = "coed" AND name = "chanel college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 decile for state authority and area of fernridge ### Context: CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, area VARCHAR) [/INST] ### Response: SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week on October 11, 1998? ### Context: CREATE TABLE table_name_48 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_48 WHERE date = "october 11, 1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the game with attendance of 63,336? ### Context: CREATE TABLE table_name_93 (game_site VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT game_site FROM table_name_93 WHERE attendance = "63,336" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 13 game? ### Context: CREATE TABLE table_name_96 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_96 WHERE week = 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 Panthers' Division Record? ### Context: CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR) [/INST] ### Response: SELECT division_record FROM table_name_48 WHERE team = "panthers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Senators' division record? ### Context: CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR) [/INST] ### Response: SELECT division_record FROM table_name_39 WHERE team = "senators" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 January 18 game? ### Context: CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_86 WHERE date = "january 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 was the record after the January 6 game? ### Context: CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_44 WHERE date = "january 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: Name the former name for 49 rank ### Context: CREATE TABLE table_name_79 (Former VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT Former AS name FROM table_name_79 WHERE rank = 49 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NHL team has left wing listed as the position? ### Context: CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT nhl_team FROM table_name_66 WHERE position = "left wing" </s>