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 is the most unfavorable that is favorable of 34 during 1953 August and has a no opinion score larger than 24? ### Context: CREATE TABLE table_name_34 (unfavorable INTEGER, no_opinion VARCHAR, favorable VARCHAR, date VARCHAR) [/INST] ### Response: SELECT MAX(unfavorable) FROM table_name_34 WHERE favorable = 34 AND date = "1953 august" AND no_opinion > 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 average no opinion score during 1954 November that is more favorable than 35? ### Context: CREATE TABLE table_name_94 (no_opinion INTEGER, date VARCHAR, favorable VARCHAR) [/INST] ### Response: SELECT AVG(no_opinion) FROM table_name_94 WHERE date = "1954 november" AND favorable > 35 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score for the game on December 20? ### Context: CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_49 WHERE date = "december 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: Who was the home team on November 22? ### Context: CREATE TABLE table_name_47 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_47 WHERE date = "november 22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the title of Buena Vista Pictures? ### Context: CREATE TABLE table_name_4 (title VARCHAR, studio VARCHAR) [/INST] ### Response: SELECT title FROM table_name_4 WHERE studio = "buena vista pictures" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What studio has directors John Lasseter and Andrew Stanton? ### Context: CREATE TABLE table_name_95 (studio VARCHAR, director_s_ VARCHAR) [/INST] ### Response: SELECT studio FROM table_name_95 WHERE director_s_ = "john lasseter and andrew stanton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has the title and rank 14, and a worldwide gross of $202,292,902? ### Context: CREATE TABLE table_name_83 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR) [/INST] ### Response: SELECT title FROM table_name_83 WHERE rank > 14 AND worldwide_gross = "$202,292,902" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 AN AWAY TEAM OF BURTON ALBION? ### Context: CREATE TABLE table_name_15 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_15 WHERE away_team = "burton albion" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 AN AWAY TEAM OF WORKINGTON? ### Context: CREATE TABLE table_name_16 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_16 WHERE away_team = "workington" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE HOME TEAM WITH A TIE OF 14? ### Context: CREATE TABLE table_name_21 (home_team VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_21 WHERE tie_no = "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's the average round for the OT position from tulane college with an overall over 38? ### Context: CREATE TABLE table_name_41 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_41 WHERE position = "ot" AND college = "tulane" AND overall > 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: What did the away team score when the crowd was larger than 6,872? ### Context: CREATE TABLE table_name_55 (away_team VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT away_team AS score FROM table_name_55 WHERE crowd > 6 OFFSET 872 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are the Semifinalists, when the Week is May 12? ### Context: CREATE TABLE table_name_52 (semifinalists VARCHAR, week VARCHAR) [/INST] ### Response: SELECT semifinalists FROM table_name_52 WHERE week = "may 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: Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferrero (2)? ### Context: CREATE TABLE table_name_20 (finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR) [/INST] ### Response: SELECT finalist FROM table_name_20 WHERE surface = "clay" AND semifinalists = "yevgeny kafelnikov juan carlos ferrero (2)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Surface, when the Finalist is Andrei Pavel? ### Context: CREATE TABLE table_name_90 (surface VARCHAR, finalist VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_90 WHERE finalist = "andrei pavel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner, when the Surface is Carpet (i)? ### Context: CREATE TABLE table_name_80 (winner VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_80 WHERE surface = "carpet (i)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Week, when the Finalist is Carlos Moyá (5)? ### Context: CREATE TABLE table_name_66 (week VARCHAR, finalist VARCHAR) [/INST] ### Response: SELECT week FROM table_name_66 WHERE finalist = "carlos moyá (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 Tournament, on the Week of May 5? ### Context: CREATE TABLE table_name_4 (tournament VARCHAR, week VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_4 WHERE week = "may 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 silver when the nation is japan and the total is less than 1? ### Context: CREATE TABLE table_name_8 (silver INTEGER, nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(silver) FROM table_name_8 WHERE nation = "japan" AND total < 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 bronze when silver is 1, gold is 0 the rank is 11 and the total is more than 1? ### Context: CREATE TABLE table_name_74 (bronze INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_74 WHERE silver = 1 AND gold = 0 AND rank = "11" AND total > 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 rank when silver is 0, bronze is more than 1 and the total is more than 3? ### Context: CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_32 WHERE silver = 0 AND bronze > 1 AND total > 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the silver for mexico? ### Context: CREATE TABLE table_name_9 (silver VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT silver FROM table_name_9 WHERE nation = "mexico" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the game on February 8? ### Context: CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_69 WHERE date = "february 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: Which athlete had a score of 236.023? ### Context: CREATE TABLE table_name_55 (athlete VARCHAR, score VARCHAR) [/INST] ### Response: SELECT athlete FROM table_name_55 WHERE score = "236.023" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Texas has Johnson from Nort Dakota? ### Context: CREATE TABLE table_name_92 (texas VARCHAR, north_dakota VARCHAR) [/INST] ### Response: SELECT texas FROM table_name_92 WHERE north_dakota = "johnson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 oklahoma has Bush from Nebraska in year 2004? ### Context: CREATE TABLE table_name_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR) [/INST] ### Response: SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "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: Which Nebraska has 2004 year? ### Context: CREATE TABLE table_name_25 (nebraska VARCHAR, year VARCHAR) [/INST] ### Response: SELECT nebraska FROM table_name_25 WHERE year = "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 South Dakota has Bush of Oklahoma? ### Context: CREATE TABLE table_name_17 (south_dakota VARCHAR, oklahoma VARCHAR) [/INST] ### Response: SELECT south_dakota FROM table_name_17 WHERE oklahoma = "bush" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Place of the Player with a Score of 70-75-70-74=289? ### Context: CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_60 WHERE score = 70 - 75 - 70 - 74 = 289 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the To par of the Player with a Score of 71-74-72-72=289? ### Context: CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_25 WHERE score = 71 - 74 - 72 - 72 = 289 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Country is Player Leland Gibson with Money of 400 from? ### Context: CREATE TABLE table_name_89 (country VARCHAR, money__$_ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_89 WHERE money__$_ = "400" AND player = "leland gibson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Country of the Player with a Score of 73-70-71-71=285? ### Context: CREATE TABLE table_name_19 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_19 WHERE score = 73 - 70 - 71 - 71 = 285 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T3 Place Player Bobby Locke's Score? ### Context: CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_40 WHERE place = "t3" AND player = "bobby locke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points were scored in the Detroit Home? ### Context: CREATE TABLE table_name_21 (points VARCHAR, home VARCHAR) [/INST] ### Response: SELECT points FROM table_name_21 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: Who is the visitor from the game with 7,000 in attendance on January 1? ### Context: CREATE TABLE table_name_77 (visitor VARCHAR, attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_77 WHERE attendance = "7,000" AND date = "january 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 record from the 2,500 in attendance? ### Context: CREATE TABLE table_name_12 (record VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT record FROM table_name_12 WHERE attendance = "2,500" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Silver medals for the Nation of Turkey with a Total of less than 2? ### Context: CREATE TABLE table_name_9 (silver INTEGER, nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(silver) FROM table_name_9 WHERE nation = "turkey" AND total < 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: How many Gold for the Nation in Rank 15 with 0 Silver? ### Context: CREATE TABLE table_name_34 (gold INTEGER, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_34 WHERE rank = "15" AND silver > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0? ### Context: CREATE TABLE table_name_80 (total VARCHAR, ward INTEGER) [/INST] ### Response: SELECT COUNT(total) FROM table_name_80 WHERE ward < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS TOTAL NUMBER OF PR TOP-UPS THAT HAVE A PERCENTAGE OF 0.8%, TOTAL LARGER THAN 1? ### Context: CREATE TABLE table_name_92 (pr_top_up VARCHAR, percentage VARCHAR, total VARCHAR) [/INST] ### Response: SELECT COUNT(pr_top_up) FROM table_name_92 WHERE percentage = "0.8%" AND total > 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 TOTAL WITH WARD LARGER THAN 60? ### Context: CREATE TABLE table_name_96 (total INTEGER, ward INTEGER) [/INST] ### Response: SELECT MIN(total) FROM table_name_96 WHERE ward > 60 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of poles and 63 points? ### Context: CREATE TABLE table_name_66 (poles VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(poles) FROM table_name_66 WHERE points = "63" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most recent year with a mk.v type? ### Context: CREATE TABLE table_name_62 (year INTEGER, type VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_62 WHERE type = "mk.v" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mainly For with a displacement of 997 cc in a year before 1962? ### Context: CREATE TABLE table_name_61 (mainly_for VARCHAR, year VARCHAR, displacement VARCHAR) [/INST] ### Response: SELECT mainly_for FROM table_name_61 WHERE year < 1962 AND displacement = "997 cc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What type is the 105/107e Block from a year prior to 1960? ### Context: CREATE TABLE table_name_50 (type VARCHAR, block VARCHAR, year VARCHAR) [/INST] ### Response: SELECT type FROM table_name_50 WHERE block = "105/107e" AND year < 1960 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 March, when Score is "2 - 2", and when Game is greater than 67? ### Context: CREATE TABLE table_name_56 (march INTEGER, score VARCHAR, game VARCHAR) [/INST] ### Response: SELECT SUM(march) FROM table_name_56 WHERE score = "2 - 2" AND game > 67 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game, when Opponent is "Cleveland Barons", and when March is less than 8? ### Context: CREATE TABLE table_name_58 (game INTEGER, opponent VARCHAR, march VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_58 WHERE opponent = "cleveland barons" AND march < 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: What is the lowest Game, when Opponent is "Boston Bruins"? ### Context: CREATE TABLE table_name_35 (game INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MIN(game) FROM table_name_35 WHERE opponent = "boston bruins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For the game ending in a final result of 99-90, who was the Road Team? ### Context: CREATE TABLE table_name_68 (road_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT road_team FROM table_name_68 WHERE result = "99-90" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the game played on May 5? ### Context: CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_5 WHERE date = "may 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: On what day was Game 7 of this season played? ### Context: CREATE TABLE table_name_78 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_78 WHERE game = "game 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 game number was played on April 23, with Boston as the road team? ### Context: CREATE TABLE table_name_73 (game VARCHAR, road_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT game FROM table_name_73 WHERE road_team = "boston" AND date = "april 23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result of Game 3 of this searson? ### Context: CREATE TABLE table_name_95 (result VARCHAR, game VARCHAR) [/INST] ### Response: SELECT result FROM table_name_95 WHERE game = "game 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the Road Team for the game ending with a score of 118-112? ### Context: CREATE TABLE table_name_89 (road_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT road_team FROM table_name_89 WHERE result = "118-112" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008 when 2007 is A, 2011 is A and tournament is san jose? ### Context: CREATE TABLE table_name_5 (tournament VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_5 WHERE 2007 = "a" AND 2011 = "a" AND tournament = "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: what is 2010 when 2011 is 2r and 2008 is 2r? ### Context: CREATE TABLE table_name_46 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_46 WHERE 2011 = "2r" AND 2008 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is 2007 when 2011 is not held and 2012 is not held? ### Context: CREATE TABLE table_name_71 (Id VARCHAR) [/INST] ### Response: SELECT 2007 FROM table_name_71 WHERE 2011 = "not held" AND 2012 = "not held" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the tournament when 2011 is a, 2009 is lq and 2012 is 1r? ### Context: CREATE TABLE table_name_65 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_65 WHERE 2011 = "a" AND 2009 = "lq" AND 2012 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is 2008 when 2007 is a, 2011 is a, 2010 is a and tournament is china? ### Context: CREATE TABLE table_name_53 (tournament VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_53 WHERE 2007 = "a" AND 2011 = "a" AND 2010 = "a" AND tournament = "china" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 weeks where the result was listed at bye? ### Context: CREATE TABLE table_name_12 (week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_12 WHERE result = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for coach Trevor Gleeson? ### Context: CREATE TABLE table_name_64 (capacity INTEGER, coach VARCHAR) [/INST] ### Response: SELECT SUM(capacity) FROM table_name_64 WHERE coach = "trevor gleeson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is home ground for coach Andrej Lemanis? ### Context: CREATE TABLE table_name_68 (home_ground VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT home_ground FROM table_name_68 WHERE coach = "andrej lemanis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region is Coach Trevor Gleeson in? ### Context: CREATE TABLE table_name_5 (region VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT region FROM table_name_5 WHERE coach = "trevor gleeson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home ground in region NZL? ### Context: CREATE TABLE table_name_40 (home_ground VARCHAR, region VARCHAR) [/INST] ### Response: SELECT home_ground FROM table_name_40 WHERE region = "nzl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What song was composed by V. Selvaganesh later than 2010? ### Context: CREATE TABLE table_name_58 (song VARCHAR, composer VARCHAR, year VARCHAR) [/INST] ### Response: SELECT song FROM table_name_58 WHERE composer = "v. selvaganesh" AND year > 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: What year was the composition by Mejo Joseph? ### Context: CREATE TABLE table_name_7 (year VARCHAR, composer VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_7 WHERE composer = "mejo joseph" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick, when Nationality is "United States", when College is "New Mexico State", and when Round is greater than 6? ### Context: CREATE TABLE table_name_35 (pick INTEGER, round VARCHAR, nationality VARCHAR, college VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_35 WHERE nationality = "united states" AND college = "new mexico state" AND round > 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 Player, when Pick is less than 161, and when College is "Auburn University"? ### Context: CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player FROM table_name_58 WHERE pick < 161 AND college = "auburn university" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player, when Round is less than 6, and when Pick is "69"? ### Context: CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT player FROM table_name_78 WHERE round < 6 AND pick = 69 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round, when College is "Norfolk State"? ### Context: CREATE TABLE table_name_32 (round INTEGER, college VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_32 WHERE college = "norfolk state" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country does david gilford play for? ### Context: CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_90 WHERE player = "david gilford" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plays for australia? ### Context: CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_2 WHERE country = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the sum of all phil mickelson's game scores? ### Context: CREATE TABLE table_name_36 (score INTEGER, player VARCHAR) [/INST] ### Response: SELECT SUM(score) FROM table_name_36 WHERE player = "phil mickelson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round was Clyde the opponent? ### Context: CREATE TABLE table_name_28 (round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT round FROM table_name_28 WHERE opponent = "clyde" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the round of R2? ### Context: CREATE TABLE table_name_95 (opponent VARCHAR, round VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_95 WHERE round = "r2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Winning score of –6 (73-68-72-69=282)? ### Context: CREATE TABLE table_name_49 (tournament VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Victory of 1 Stroke with a Winning score of –16 (67-66-70-69=272)? ### Context: CREATE TABLE table_name_71 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_71 WHERE margin_of_victory = "1 stroke" AND winning_score = –16(67 - 66 - 70 - 69 = 272) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opened year of line e, which had their last extension before 2003? ### Context: CREATE TABLE table_name_40 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR) [/INST] ### Response: SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 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 is Round, when Rank is less than 117? ### Context: CREATE TABLE table_name_90 (round VARCHAR, rank INTEGER) [/INST] ### Response: SELECT round FROM table_name_90 WHERE rank < 117 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Average Year, when Round is R128 (First Round)? ### Context: CREATE TABLE table_name_46 (year INTEGER, round VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_46 WHERE round = "r128 (first round)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Championship, when Year is greater than 2002, and when Surface is Hard? ### Context: CREATE TABLE table_name_50 (championship VARCHAR, year VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_50 WHERE year > 2002 AND surface = "hard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average position for a driver with less than 54 points and husaberg-bsu as equipment? ### Context: CREATE TABLE table_name_69 (position INTEGER, points VARCHAR, equipment VARCHAR) [/INST] ### Response: SELECT AVG(position) FROM table_name_69 WHERE points < 54 AND equipment = "husaberg-bsu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins does the driver with 217 points have? ### Context: CREATE TABLE table_name_44 (wins VARCHAR, points VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_44 WHERE points = 217 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team when the driver is viktor jensen? ### Context: CREATE TABLE table_name_64 (team VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT team FROM table_name_64 WHERE driver = "viktor jensen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team when the rounds is all engine is mercedes hwa and driver is sam abay? ### Context: CREATE TABLE table_name_54 (team VARCHAR, driver VARCHAR, rounds VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT team FROM table_name_54 WHERE rounds = "all" AND engine = "mercedes hwa" AND driver = "sam abay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class when the chassis is dallara f308, rounds is all and the driver is sam abay? ### Context: CREATE TABLE table_name_6 (class VARCHAR, driver VARCHAR, chassis VARCHAR, rounds VARCHAR) [/INST] ### Response: SELECT class FROM table_name_6 WHERE chassis = "dallara f308" AND rounds = "all" AND driver = "sam abay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Run 4, when Run 2 is 1:29.00? ### Context: CREATE TABLE table_name_12 (run_4 VARCHAR, run_2 VARCHAR) [/INST] ### Response: SELECT run_4 FROM table_name_12 WHERE run_2 = "1:29.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: What is Team, when Run 3 is 1:24.00? ### Context: CREATE TABLE table_name_70 (team VARCHAR, run_3 VARCHAR) [/INST] ### Response: SELECT team FROM table_name_70 WHERE run_3 = "1:24.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: What is Run 1, when Team is "Italy (ITA) Italy I"? ### Context: CREATE TABLE table_name_15 (run_1 VARCHAR, team VARCHAR) [/INST] ### Response: SELECT run_1 FROM table_name_15 WHERE team = "italy (ita) italy i" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Athletes, when Run 2 is 1:24.77? ### Context: CREATE TABLE table_name_86 (athletes VARCHAR, run_2 VARCHAR) [/INST] ### Response: SELECT athletes FROM table_name_86 WHERE run_2 = "1:24.77" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Run 4, when Run 2 is 1:25.84? ### Context: CREATE TABLE table_name_21 (run_4 VARCHAR, run_2 VARCHAR) [/INST] ### Response: SELECT run_4 FROM table_name_21 WHERE run_2 = "1:25.84" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Run 1, when Athletes is "Theo Kitt & Friedrich Kuhn"? ### Context: CREATE TABLE table_name_89 (run_1 VARCHAR, athletes VARCHAR) [/INST] ### Response: SELECT run_1 FROM table_name_89 WHERE athletes = "theo kitt & friedrich kuhn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Date, when Attendance is less than 521? ### Context: CREATE TABLE table_name_43 (date VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT date FROM table_name_43 WHERE attendance < 521 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away, when Home is "marathon"? ### Context: CREATE TABLE table_name_14 (away VARCHAR, home VARCHAR) [/INST] ### Response: SELECT away FROM table_name_14 WHERE home = "marathon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score, when Home is "marathon"? ### Context: CREATE TABLE table_name_31 (score VARCHAR, home VARCHAR) [/INST] ### Response: SELECT score FROM table_name_31 WHERE home = "marathon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of Attendance(s), when Away is Real Juventud? ### Context: CREATE TABLE table_name_8 (attendance VARCHAR, away VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_8 WHERE away = "real juventud" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record, when H/A/N is "A", and when Date is "February 1"? ### Context: CREATE TABLE table_name_2 (record VARCHAR, h_a_n VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_2 WHERE h_a_n = "a" AND date = "february 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 Date, when Opponent is "Philadelphia 76ers"? ### Context: CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_6 WHERE opponent = "philadelphia 76ers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent, when Record is 17-44? ### Context: CREATE TABLE table_name_98 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_98 WHERE record = "17-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 is Date, when H/A/N is "H", and when Score is 112-118? ### Context: CREATE TABLE table_name_77 (date VARCHAR, h_a_n VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_77 WHERE h_a_n = "h" AND score = "112-118" </s>