text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the visitor when ward recorded the decision with a record of 22–21–4? ### Context: CREATE TABLE table_name_4 (visitor VARCHAR, decision VARCHAR, record VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_4 WHERE decision = "ward" AND record = "22–21–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 score of the game when they had a record of 22–19–4? ### Context: CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_77 WHERE record = "22–19–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 1st week sales for the album finding forever before the number 6? ### Context: CREATE TABLE table_name_51 (album VARCHAR, number VARCHAR) [/INST] ### Response: SELECT SUM(1 AS st_week_sales) FROM table_name_51 WHERE album = "finding forever" AND number < 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 sum number of grid where time/retired is 2:41:38.4 and laps were more than 40? ### Context: CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "2:41:38.4" AND laps > 40 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which constructor had laps amounting to more than 21 where the driver was John Surtees? ### Context: CREATE TABLE table_name_14 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_14 WHERE laps > 21 AND driver = "john surtees" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many laps did Jo Bonnier driver when the grid number was smaller than 11? ### Context: CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_6 WHERE driver = "jo bonnier" AND grid < 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: How many laps were there when time/retired was gearbox? ### Context: CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_53 WHERE time_retired = "gearbox" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in attendance at the game where the visiting team was the Jazz? ### Context: CREATE TABLE table_name_67 (attendance INTEGER, visitor VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_67 WHERE visitor = "jazz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Chiefs play at the game attended by 34,063? ### Context: CREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_82 WHERE attendance = "34,063" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week's game was attended by 33,057 people? ### Context: CREATE TABLE table_name_48 (week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT week FROM table_name_48 WHERE attendance = "33,057" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 organisation when the year is less than 2005 and the award is the best variety show host? ### Context: CREATE TABLE table_name_84 (organisation VARCHAR, year VARCHAR, award VARCHAR) [/INST] ### Response: SELECT organisation FROM table_name_84 WHERE year < 2005 AND award = "best variety show host" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 organisation when the nominated work title is n/a in the year 2005? ### Context: CREATE TABLE table_name_79 (organisation VARCHAR, nominated_work_title VARCHAR, year VARCHAR) [/INST] ### Response: SELECT organisation FROM table_name_79 WHERE nominated_work_title = "n/a" AND year = 2005 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the result is nominated for the work title is love bites? ### Context: CREATE TABLE table_name_99 (year INTEGER, result VARCHAR, nominated_work_title VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_99 WHERE result = "nominated" AND nominated_work_title = "love bites" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the year when then organisation is star awards, the result is won and the nominated work title is n/a? ### Context: CREATE TABLE table_name_98 (year VARCHAR, nominated_work_title VARCHAR, organisation VARCHAR, result VARCHAR) [/INST] ### Response: SELECT year FROM table_name_98 WHERE organisation = "star awards" AND result = "won" AND nominated_work_title = "n/a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the latest year that has the result of nominated and the nominated work title is n/a? ### Context: CREATE TABLE table_name_85 (year INTEGER, result VARCHAR, nominated_work_title VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_85 WHERE result = "nominated" AND nominated_work_title = "n/a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007? ### Context: CREATE TABLE table_name_52 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR) [/INST] ### Response: SELECT nominated_work_title FROM table_name_52 WHERE result = "won" AND organisation = "star awards" AND award = "top 10 most popular female artiste" AND year > 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the games that had 9 gold and 9 silvers? ### Context: CREATE TABLE table_name_47 (rank VARCHAR, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_47 WHERE gold = "9" AND silver = "9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many golds were there in a game that has 17 bronze and a total of 31? ### Context: CREATE TABLE table_name_8 (gold VARCHAR, bronze VARCHAR, total VARCHAR) [/INST] ### Response: SELECT gold FROM table_name_8 WHERE bronze = "17" AND total = "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: Which game had 8 bronze and 4 gold? ### Context: CREATE TABLE table_name_61 (games VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT games FROM table_name_61 WHERE bronze = "8" AND gold = "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: When did San Jose visit the St. Louis? ### Context: CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT date FROM table_name_91 WHERE visitor = "san jose" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15? ### Context: CREATE TABLE table_name_12 (wins INTEGER, latest_win VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT SUM(wins) FROM table_name_12 WHERE latest_win = "1999 italian grand prix" AND rank > 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: What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix? ### Context: CREATE TABLE table_name_46 (wins INTEGER, rank VARCHAR, first_win VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_46 WHERE rank > 6 AND first_win = "1950 british grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank 16 wins with the latest win at the 1967 Belgian Grand Prix? ### Context: CREATE TABLE table_name_47 (wins VARCHAR, rank VARCHAR, latest_win VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_47 WHERE rank > 16 AND latest_win = "1967 belgian grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the lowest pick for a defensive back at Drake? ### Context: CREATE TABLE table_name_99 (pick INTEGER, position VARCHAR, school VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_99 WHERE position = "defensive back" AND school = "drake" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's terry jones' lowest pick? ### Context: CREATE TABLE table_name_11 (pick INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_11 WHERE player = "terry jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position does gerald carter play? ### Context: CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_52 WHERE player = "gerald carter" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guard for Wisconsin? ### Context: CREATE TABLE table_name_44 (player VARCHAR, position VARCHAR, school VARCHAR) [/INST] ### Response: SELECT player FROM table_name_44 WHERE position = "guard" AND school = "wisconsin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player is Pick 33 and has a Nationality of USA? ### Context: CREATE TABLE table_name_31 (player VARCHAR, nationality VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT player FROM table_name_31 WHERE nationality = "usa" AND pick = 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt? ### Context: CREATE TABLE table_name_94 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = "vanderbilt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns? ### Context: CREATE TABLE table_name_15 (nationality VARCHAR, nba_team VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_15 WHERE nba_team = "phoenix suns" AND pick = 52 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)? ### Context: CREATE TABLE table_name_61 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR) [/INST] ### Response: SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "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: What day did St Kilda play as the away team? ### Context: CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_53 WHERE away_team = "st kilda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the value for 2007 when 2011 is a and 2009 is q2? ### Context: CREATE TABLE table_name_12 (Id VARCHAR) [/INST] ### Response: SELECT 2007 FROM table_name_12 WHERE 2011 = "a" AND 2009 = "q2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the highest league goals with total goals less than 1 and FA cups more than 0 ### Context: CREATE TABLE table_name_67 (league_goals INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR) [/INST] ### Response: SELECT MAX(league_goals) FROM table_name_67 WHERE total_goals < 1 AND fa_cup_goals > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want to know the sum of fa cup goals for david mirfin and total goals less than 1 ### Context: CREATE TABLE table_name_59 (fa_cup_goals INTEGER, name VARCHAR, total_goals VARCHAR) [/INST] ### Response: SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 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: Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5 ### Context: CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR) [/INST] ### Response: SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = "df" AND fa_cup_apps = "5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the video ratio on channel 14.2? ### Context: CREATE TABLE table_name_75 (video VARCHAR, channel VARCHAR) [/INST] ### Response: SELECT video FROM table_name_75 WHERE channel = 14.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 network has an aspect of 4:3 and a PSIP Short Name of qvc? ### Context: CREATE TABLE table_name_80 (network VARCHAR, aspect VARCHAR, psip_short_name VARCHAR) [/INST] ### Response: SELECT network FROM table_name_80 WHERE aspect = "4:3" AND psip_short_name = "qvc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ion life network's PSIP Short Name? ### Context: CREATE TABLE table_name_58 (psip_short_name VARCHAR, network VARCHAR) [/INST] ### Response: SELECT psip_short_name FROM table_name_58 WHERE network = "ion life" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of channels for qubo network? ### Context: CREATE TABLE table_name_65 (channel INTEGER, network VARCHAR) [/INST] ### Response: SELECT SUM(channel) FROM table_name_65 WHERE network = "qubo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 deaths did eseta cause? ### Context: CREATE TABLE table_name_34 (deaths VARCHAR, name VARCHAR) [/INST] ### Response: SELECT deaths FROM table_name_34 WHERE name = "eseta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the away team was Carlton? ### Context: CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_65 WHERE away_team = "carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the home team was hawthorn, what was the date? ### Context: CREATE TABLE table_name_44 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_44 WHERE home_team = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What did Geelong score as the away team? ### Context: CREATE TABLE table_name_91 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_91 WHERE away_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the home team of footscray play? ### Context: CREATE TABLE table_name_85 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_85 WHERE home_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club team for overall of 188 for canada ### Context: CREATE TABLE table_name_72 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT club_team FROM table_name_72 WHERE nationality = "canada" AND overall = 188 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality of the player with an overall of 74 ### Context: CREATE TABLE table_name_66 (nationality VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_66 WHERE overall = 74 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30? ### Context: CREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR) [/INST] ### Response: SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Apr 2013 with a Jun 2011 less than 14? ### Context: CREATE TABLE table_name_76 (apr_2013 INTEGER, jun_2011 INTEGER) [/INST] ### Response: SELECT AVG(apr_2013) FROM table_name_76 WHERE jun_2011 < 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32? ### Context: CREATE TABLE table_name_31 (feb_2013 INTEGER, feb_2010 VARCHAR, nov_2012 VARCHAR) [/INST] ### Response: SELECT AVG(feb_2013) FROM table_name_31 WHERE feb_2010 = "37" AND nov_2012 < 32 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935? ### Context: CREATE TABLE table_name_19 (nov_2012 VARCHAR, jun_2013 VARCHAR, aug_2011 VARCHAR) [/INST] ### Response: SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44? ### Context: CREATE TABLE table_name_71 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_71 WHERE time_retired = "+1:03.741" AND laps > 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 did the home team at Brunswick Street Oval score? ### Context: CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_89 WHERE venue = "brunswick street oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had the highest rebounds of the game with A. Johnson (6) as the highest assist? ### Context: CREATE TABLE table_name_35 (high_rebounds VARCHAR, high_assists VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_name_35 WHERE high_assists = "a. johnson (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: Who had the highest rebounds of the game with A. Johnson (14) as the highest assists? ### Context: CREATE TABLE table_name_55 (high_rebounds VARCHAR, high_assists VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_name_55 WHERE high_assists = "a. johnson (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: Who was the opponent on August 30? ### Context: CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_16 WHERE date = "august 30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score on August 8? ### Context: CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_82 WHERE date = "august 8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many picks included Kenny Evans? ### Context: CREATE TABLE table_name_52 (pick VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_52 WHERE player = "kenny evans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 picks went to College of Letran? ### Context: CREATE TABLE table_name_95 (pick VARCHAR, college VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_95 WHERE college = "letran" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player has a PBA team of Red Bull Thunder? ### Context: CREATE TABLE table_name_5 (player VARCHAR, pba_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_5 WHERE pba_team = "red bull thunder" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event did he place 6th in 1971? ### Context: CREATE TABLE table_name_98 (event VARCHAR, year VARCHAR, result VARCHAR) [/INST] ### Response: SELECT event FROM table_name_98 WHERE year = 1971 AND result = "6th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first year he placed 2nd in Izmir, Turkey? ### Context: CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_3 WHERE result = "2nd" AND venue = "izmir, turkey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did he place in 1970? ### Context: CREATE TABLE table_name_58 (result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT result FROM table_name_58 WHERE year = 1970 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many were in Attendance on the Date May 29? ### Context: CREATE TABLE table_name_83 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_83 WHERE date = "may 29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Record on the Date May 8? ### Context: CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_15 WHERE date = "may 8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team at the game played on April 14, 2008? ### Context: CREATE TABLE table_name_16 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_16 WHERE date = "april 14, 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 many votes were cast when the notes reported lost to incumbent vic gilliam? ### Context: CREATE TABLE table_name_51 (votes VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT votes FROM table_name_51 WHERE notes = "lost to incumbent vic gilliam" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 candidate in Race for State representative, hd18? ### Context: CREATE TABLE table_name_57 (candidate VARCHAR, race VARCHAR) [/INST] ### Response: SELECT candidate FROM table_name_57 WHERE race = "state representative, hd18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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/province does the prop player with over 45 caps play for? ### Context: CREATE TABLE table_name_27 (club_province VARCHAR, caps VARCHAR, position VARCHAR) [/INST] ### Response: SELECT club_province FROM table_name_27 WHERE caps > 45 AND position = "prop" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at the Staples Center? ### Context: CREATE TABLE table_name_46 (opponent VARCHAR, arena VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_46 WHERE arena = "staples 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: In what arena was the game against the Sharks played? ### Context: CREATE TABLE table_name_33 (arena VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT arena FROM table_name_33 WHERE opponent = "sharks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label with the LP format? ### Context: CREATE TABLE table_name_86 (label VARCHAR, format VARCHAR) [/INST] ### Response: SELECT label FROM table_name_86 WHERE format = "lp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date had a 4ad label and a CD (reissue) format? ### Context: CREATE TABLE table_name_99 (date VARCHAR, label VARCHAR, format VARCHAR) [/INST] ### Response: SELECT date FROM table_name_99 WHERE label = "4ad" AND format = "cd (reissue)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country had a cad 4011 catalogue #? ### Context: CREATE TABLE table_name_66 (country VARCHAR, catalogue__number VARCHAR) [/INST] ### Response: SELECT country FROM table_name_66 WHERE catalogue__number = "cad 4011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was for Japan? ### Context: CREATE TABLE table_name_66 (date VARCHAR, country VARCHAR) [/INST] ### Response: SELECT date FROM table_name_66 WHERE country = "japan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label on the United States? ### Context: CREATE TABLE table_name_88 (label VARCHAR, country VARCHAR) [/INST] ### Response: SELECT label FROM table_name_88 WHERE country = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date with the catalogue # cocy-80093? ### Context: CREATE TABLE table_name_37 (date VARCHAR, catalogue__number VARCHAR) [/INST] ### Response: SELECT date FROM table_name_37 WHERE catalogue__number = "cocy-80093" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What category was danson tang nominated? ### Context: CREATE TABLE table_name_72 (category VARCHAR, nomination VARCHAR) [/INST] ### Response: SELECT category FROM table_name_72 WHERE nomination = "danson tang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the total number of years than had best improved singer (躍進歌手)? ### Context: CREATE TABLE table_name_52 (year INTEGER, category VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_52 WHERE category = "best improved singer (躍進歌手)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructed the car with a grid over 19 that retired due to suspension? ### Context: CREATE TABLE table_name_49 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_49 WHERE grid > 19 AND time_retired = "suspension" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What driver has a 9 grid total? ### Context: CREATE TABLE table_name_79 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_79 WHERE grid = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the winning car's chassis for the 1982 season? ### Context: CREATE TABLE table_name_48 (chassis VARCHAR, season VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_48 WHERE season = "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: Which team, with champion Bastian Kolmsee, used a Dallara f302 for the chassis? ### Context: CREATE TABLE table_name_8 (team VARCHAR, chassis VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT team FROM table_name_8 WHERE chassis = "dallara f302" AND champion = "bastian kolmsee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the car with the Volkswagen engine built on in 2010? ### Context: CREATE TABLE table_name_4 (chassis VARCHAR, engine VARCHAR, season VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_4 WHERE engine = "volkswagen" AND season = "2010" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine did Korten Motorsport use? ### Context: CREATE TABLE table_name_86 (engine VARCHAR, team VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_86 WHERE team = "korten motorsport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 champion that drove the car with the Ford engine in 1971? ### Context: CREATE TABLE table_name_28 (champion VARCHAR, engine VARCHAR, season VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_28 WHERE engine = "ford" AND season = "1971" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season did Jimmy Eriksson win the championship for Team Lotus? ### Context: CREATE TABLE table_name_40 (season VARCHAR, team VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT season FROM table_name_40 WHERE team = "lotus" AND champion = "jimmy eriksson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had 6 goals? ### Context: CREATE TABLE table_name_49 (name VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT name FROM table_name_49 WHERE goals = 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 largest goal number when the transfer fee was £0.8m? ### Context: CREATE TABLE table_name_50 (goals INTEGER, transfer_fee VARCHAR) [/INST] ### Response: SELECT MAX(goals) FROM table_name_50 WHERE transfer_fee = "£0.8m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a1 women's - handball? ### Context: CREATE TABLE table_name_61 (location VARCHAR, leagues VARCHAR) [/INST] ### Response: SELECT location FROM table_name_61 WHERE leagues = "a1 women's - handball" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity at the nop aquatic centre, established after 1929? ### Context: CREATE TABLE table_name_8 (capacity VARCHAR, venue VARCHAR, established VARCHAR) [/INST] ### Response: SELECT COUNT(capacity) FROM table_name_8 WHERE venue = "nop aquatic centre" AND established > 1929 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for b national - basketball? ### Context: CREATE TABLE table_name_93 (capacity VARCHAR, leagues VARCHAR) [/INST] ### Response: SELECT COUNT(capacity) FROM table_name_93 WHERE leagues = "b national - basketball" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What game week did the Buccaneers play against the Minnesota Vikings? ### Context: CREATE TABLE table_name_47 (week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT week FROM table_name_47 WHERE opponent = "minnesota vikings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What game week did the buccaneers have a record of 0-5? ### Context: CREATE TABLE table_name_67 (week VARCHAR, record VARCHAR) [/INST] ### Response: SELECT week FROM table_name_67 WHERE record = "0-5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record of the buccaneers on December 4, 1983? ### Context: CREATE TABLE table_name_9 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_9 WHERE date = "december 4, 1983" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance at the game against Ottawa? ### Context: CREATE TABLE table_name_5 (attendance INTEGER, visitor VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_5 WHERE visitor = "ottawa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the highest attendance at a Detroit home game? ### Context: CREATE TABLE table_name_83 (attendance INTEGER, home VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_83 WHERE home = "detroit" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the Florida vs. Montreal game? ### Context: CREATE TABLE table_name_46 (attendance INTEGER, home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_46 WHERE home = "florida" AND visitor = "montreal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected ### Context: CREATE TABLE table_name_75 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) [/INST] ### Response: SELECT condition FROM table_name_75 WHERE prothrombin_time = "unaffected" AND bleeding_time = "prolonged" AND partial_thromboplastin_time = "unaffected" AND platelet_count = "decreased or unaffected" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected ### Context: CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR) [/INST] ### Response: SELECT condition FROM table_name_41 WHERE bleeding_time = "prolonged" AND platelet_count = "decreased or unaffected" </s>