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 nation for 6 total? ### Context: CREATE TABLE table_name_13 (nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_13 WHERE total = 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 bronze when silver is 4 and gold is 1 and the total is more than 2 ### Context: CREATE TABLE table_name_50 (bronze VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT bronze FROM table_name_50 WHERE total > 2 AND gold = "1" AND silver = "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: Tell me the gold for netherlands ### Context: CREATE TABLE table_name_20 (gold VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT gold FROM table_name_20 WHERE nation = "netherlands" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Away team score has a Home team of richmond? ### Context: CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home team score has an Away team of carlton? ### Context: CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_72 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: What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191? ### Context: CREATE TABLE table_name_38 (no_in_series INTEGER, director VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT SUM(no_in_series) FROM table_name_38 WHERE director = "jefferson kibbee" AND production_code = "2398191" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Edition for the Episode 4? ### Context: CREATE TABLE table_name_77 (episode VARCHAR) [/INST] ### Response: SELECT 1 AS st_edition FROM table_name_77 WHERE episode = "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 Edition for Episode 11? ### Context: CREATE TABLE table_name_16 (episode VARCHAR) [/INST] ### Response: SELECT 1 AS st_edition FROM table_name_16 WHERE episode = "11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 3rd Edition for Episode 4? ### Context: CREATE TABLE table_name_90 (episode VARCHAR) [/INST] ### Response: SELECT 3 AS rd_edition FROM table_name_90 WHERE episode = "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: Which home teams had crowds larger than 4,000? ### Context: CREATE TABLE table_name_25 (home_team VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT home_team FROM table_name_25 WHERE crowd > 4 OFFSET 000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for western oval venue ### Context: CREATE TABLE table_name_31 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_31 WHERE venue = "western 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: What is the declination with a right ascension of 11h53m41.9s? ### Context: CREATE TABLE table_name_34 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR) [/INST] ### Response: SELECT declination___j2000__ FROM table_name_34 WHERE right_ascension___j2000__ = "11h53m41.9s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leg when team 1 is Chelsea? ### Context: CREATE TABLE table_name_58 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_58 WHERE team_1 = "chelsea" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team score, when the away team was Fitzroy? ### Context: CREATE TABLE table_name_32 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the home team when the away team was Melbourne? ### Context: CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_70 WHERE away_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the home team that has a venue called EMCG? ### Context: CREATE TABLE table_name_50 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_50 WHERE venue = "emcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the venue where the game played had an away team of Melbourne? ### Context: CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_5 WHERE away_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number lost with a difference of -16, 19 points, and more than 24 against? ### Context: CREATE TABLE table_name_33 (lost INTEGER, against VARCHAR, diff VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(lost) FROM table_name_33 WHERE diff > -16 AND points = 19 AND against > 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 highest number of losses with 25 points? ### Context: CREATE TABLE table_name_79 (lost INTEGER, points VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_79 WHERE points = 25 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the difference for 9 draws and over 18 played? ### Context: CREATE TABLE table_name_48 (diff INTEGER, drawn VARCHAR, played VARCHAR) [/INST] ### Response: SELECT SUM(diff) FROM table_name_48 WHERE drawn = 9 AND played > 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest number drawn with less than 2 lost? ### Context: CREATE TABLE table_name_36 (drawn INTEGER, lost INTEGER) [/INST] ### Response: SELECT MIN(drawn) FROM table_name_36 WHERE lost < 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 sum of all points when number played is less than 18? ### Context: CREATE TABLE table_name_40 (points INTEGER, played INTEGER) [/INST] ### Response: SELECT SUM(points) FROM table_name_40 WHERE played < 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which date has a Score of 6–4, 6–3? ### Context: CREATE TABLE table_name_48 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_48 WHERE score = "6–4, 6–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 total PI GP that a Reg GP has larger than 3? ### Context: CREATE TABLE table_name_79 (pl_gp VARCHAR, reg_gp INTEGER) [/INST] ### Response: SELECT COUNT(pl_gp) FROM table_name_79 WHERE reg_gp > 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 average Reg GP has a pick # larger than 210? ### Context: CREATE TABLE table_name_84 (reg_gp INTEGER, pick__number INTEGER) [/INST] ### Response: SELECT AVG(reg_gp) FROM table_name_84 WHERE pick__number > 210 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result has a Goal of deacon 2/5? ### Context: CREATE TABLE table_name_47 (result VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT result FROM table_name_47 WHERE goals = "deacon 2/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: Which date has a Goal of deacon 4/4, withers 1 dg? ### Context: CREATE TABLE table_name_32 (date VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT date FROM table_name_32 WHERE goals = "deacon 4/4, withers 1 dg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the goals for 8/4/04? ### Context: CREATE TABLE table_name_70 (goals VARCHAR, date VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_70 WHERE date = "8/4/04" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which venue has a Result of w, and a Goal of deacon 5/5? ### Context: CREATE TABLE table_name_84 (venue VARCHAR, result VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_84 WHERE result = "w" AND goals = "deacon 5/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: Which result has a Goal of deacon 3/5, bridge 2/2? ### Context: CREATE TABLE table_name_38 (result VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT result FROM table_name_38 WHERE goals = "deacon 3/5, bridge 2/2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which competition has a Goal of deacon 10/10, and a Score of 40–12? ### Context: CREATE TABLE table_name_52 (competition VARCHAR, goals VARCHAR, score VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_52 WHERE goals = "deacon 10/10" AND score = "40–12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131? ### Context: CREATE TABLE table_name_16 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, team__league_ VARCHAR) [/INST] ### Response: SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What player has a number of playoff games played greater than 0? ### Context: CREATE TABLE table_name_51 (player VARCHAR, pl_gp INTEGER) [/INST] ### Response: SELECT player FROM table_name_51 WHERE pl_gp > 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 sum of the number of regular games played by Morgan Clark with the number of road games less than 7? ### Context: CREATE TABLE table_name_17 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR) [/INST] ### Response: SELECT SUM(reg_gp) FROM table_name_17 WHERE player = "morgan clark" AND rd__number < 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 player has a number of playoff games played greater than 0? ### Context: CREATE TABLE table_name_64 (player VARCHAR, pl_gp INTEGER) [/INST] ### Response: SELECT player FROM table_name_64 WHERE pl_gp > 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 pick number for the player from higher than round 3 and a PI GP bigger than 0? ### Context: CREATE TABLE table_name_70 (pick__number VARCHAR, rd__number VARCHAR, pl_gp VARCHAR) [/INST] ### Response: SELECT pick__number FROM table_name_70 WHERE rd__number > 3 AND pl_gp > 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 lowest regular GP Larry Courville, who has a PI GP smaller than 0, has? ### Context: CREATE TABLE table_name_26 (reg_gp INTEGER, player VARCHAR, pl_gp VARCHAR) [/INST] ### Response: SELECT MIN(reg_gp) FROM table_name_26 WHERE player = "larry courville" AND pl_gp < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Essendon's opponents away score? ### Context: CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_40 WHERE home_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Corio Oval? ### Context: CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_9 WHERE venue = "corio 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: When collingwood played as the away team what did they score? ### Context: CREATE TABLE table_name_3 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_3 WHERE away_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 locaction of the Evans test blast? ### Context: CREATE TABLE table_name_64 (location VARCHAR, name VARCHAR) [/INST] ### Response: SELECT location FROM table_name_64 WHERE name = "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: What was the yield for a blast that was in nts area 3s? ### Context: CREATE TABLE table_name_39 (yield VARCHAR, location VARCHAR) [/INST] ### Response: SELECT yield FROM table_name_39 WHERE location = "nts area 3s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 purpose of the Quay test blast? ### Context: CREATE TABLE table_name_54 (purpose VARCHAR, name VARCHAR) [/INST] ### Response: SELECT purpose FROM table_name_54 WHERE name = "quay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 an apparent magnitude greater than 11.8 what Right ascension value is assigned? ### Context: CREATE TABLE table_name_29 (right_ascension___j2000__ VARCHAR, apparent_magnitude INTEGER) [/INST] ### Response: SELECT right_ascension___j2000__ FROM table_name_29 WHERE apparent_magnitude > 11.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 least apparent magnitude for all constellations from hydra? ### Context: CREATE TABLE table_name_31 (apparent_magnitude INTEGER, constellation VARCHAR) [/INST] ### Response: SELECT MIN(apparent_magnitude) FROM table_name_31 WHERE constellation = "hydra" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Car with more than 155 yards? ### Context: CREATE TABLE table_name_56 (car INTEGER, yards INTEGER) [/INST] ### Response: SELECT MAX(car) FROM table_name_56 WHERE yards > 155 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pages were in the book by Stefano D'Arrigo? ### Context: CREATE TABLE table_name_39 (page_count VARCHAR, author VARCHAR) [/INST] ### Response: SELECT page_count FROM table_name_39 WHERE author = "stefano d'arrigo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 author wrote Sironia, Texas in English? ### Context: CREATE TABLE table_name_42 (author VARCHAR, language VARCHAR, book_title VARCHAR) [/INST] ### Response: SELECT author FROM table_name_42 WHERE language = "english" AND book_title = "sironia, texas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 edition/publisher for Xavier Herbert? ### Context: CREATE TABLE table_name_9 (edition_publisher VARCHAR, author VARCHAR) [/INST] ### Response: SELECT edition_publisher FROM table_name_9 WHERE author = "xavier herbert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What language is the book Miss Macintosh, My Darling in? ### Context: CREATE TABLE table_name_17 (language VARCHAR, book_title VARCHAR) [/INST] ### Response: SELECT language FROM table_name_17 WHERE book_title = "miss macintosh, my darling" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)? ### Context: CREATE TABLE table_name_5 (edition_publisher VARCHAR, language VARCHAR, page_size VARCHAR) [/INST] ### Response: SELECT edition_publisher FROM table_name_5 WHERE language = "italian" AND page_size = "8 inches (20cm) x 5.4 inches (14cm)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average for long 10? ### Context: CREATE TABLE table_name_25 (avg VARCHAR, long VARCHAR) [/INST] ### Response: SELECT COUNT(avg) FROM table_name_25 WHERE long = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college that has 7 rounds and boston celtics team ### Context: CREATE TABLE table_name_86 (college VARCHAR, team VARCHAR, round VARCHAR) [/INST] ### Response: SELECT college FROM table_name_86 WHERE team = "boston celtics" AND round = "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: Name the position that has baltimore bullets and college of texas tech ### Context: CREATE TABLE table_name_86 (position VARCHAR, team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT position FROM table_name_86 WHERE team = "baltimore bullets" AND college = "texas tech" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for milwaukee hawks? ### Context: CREATE TABLE table_name_91 (nationality VARCHAR, team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_91 WHERE team = "milwaukee hawks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the superfund that was proposed on 06/24/1988? ### Context: CREATE TABLE table_name_99 (name VARCHAR, proposed VARCHAR) [/INST] ### Response: SELECT name FROM table_name_99 WHERE proposed = "06/24/1988" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was played against in game 4? ### Context: CREATE TABLE table_name_40 (team VARCHAR, game VARCHAR) [/INST] ### Response: SELECT team FROM table_name_40 WHERE game = 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 location attendance of the game with A. Horford (10) as the highest rebounds and J. Johnson (21) as the highest points? ### Context: CREATE TABLE table_name_49 (location_attendance VARCHAR, high_rebounds VARCHAR, high_points VARCHAR) [/INST] ### Response: SELECT location_attendance FROM table_name_49 WHERE high_rebounds = "a. horford (10)" AND high_points = "j. johnson (21)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: During what Championship was the Opponent Jeff Borowiak? ### Context: CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what Date was the Score of 3–6, 6–4, 3–6, 6–1, 6–2 ### Context: CREATE TABLE table_name_76 (date INTEGER, score VARCHAR) [/INST] ### Response: SELECT SUM(date) FROM table_name_76 WHERE score = "3–6, 6–4, 3–6, 6–1, 6–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 Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver? ### Context: CREATE TABLE table_name_80 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_80 WHERE engine = "talbot l6" AND driver = "eugène chaboud" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What entrant has a P tyre and was constructed by Alfa Romeo? ### Context: CREATE TABLE table_name_1 (entrant VARCHAR, tyre VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_1 WHERE tyre = "p" AND constructor = "alfa romeo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country for score of 274 and runner-up of virginie lagoutte-clément ### Context: CREATE TABLE table_name_93 (country VARCHAR, score VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT country FROM table_name_93 WHERE score = "274" AND runner_s__up = "virginie lagoutte-clément" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for 2004 ### Context: CREATE TABLE table_name_35 (date VARCHAR, year VARCHAR) [/INST] ### Response: SELECT date FROM table_name_35 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 is the margin of victory for nikki garrett? ### Context: CREATE TABLE table_name_7 (margin_of_victory VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_7 WHERE winner = "nikki garrett" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 see the result for venue of n and attendance more than 20,664 ### Context: CREATE TABLE table_name_17 (result VARCHAR, venue VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_17 WHERE venue = "n" AND attendance > 20 OFFSET 664 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result for venue of a ### Context: CREATE TABLE table_name_51 (result VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT result FROM table_name_51 WHERE venue = "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: I want to know the average attendance for n venue and f round ### Context: CREATE TABLE table_name_49 (attendance INTEGER, venue VARCHAR, round VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_49 WHERE venue = "n" AND round = "f" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid 15, how many laps were there before ending with a time of exhaust? ### Context: CREATE TABLE table_name_40 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_40 WHERE time_retired = "exhaust" AND grid < 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 year was class of undine? ### Context: CREATE TABLE table_name_67 (year_made VARCHAR, class VARCHAR) [/INST] ### Response: SELECT year_made FROM table_name_67 WHERE class = "undine" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 quantity preserved for quantity made of 15? ### Context: CREATE TABLE table_name_17 (quantity_preserved VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT quantity_preserved FROM table_name_17 WHERE quantity_made = "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: Name the year for hercules ### Context: CREATE TABLE table_name_52 (year_made VARCHAR, class VARCHAR) [/INST] ### Response: SELECT year_made FROM table_name_52 WHERE class = "hercules" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the tom smith built train enter service with a number under 7007? ### Context: CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR) [/INST] ### Response: SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent for the 1985 World Group i edition? ### Context: CREATE TABLE table_name_68 (opponent VARCHAR, edition VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_68 WHERE edition = "1985 world group 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 amount of cash on hand that has an after debt of $327,094 ### Context: CREATE TABLE table_name_60 (cash_on_hand VARCHAR, after_debt VARCHAR) [/INST] ### Response: SELECT cash_on_hand FROM table_name_60 WHERE after_debt = "$327,094" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 receipts does Mike Gravel have? ### Context: CREATE TABLE table_name_83 (total_receipts VARCHAR, candidate VARCHAR) [/INST] ### Response: SELECT total_receipts FROM table_name_83 WHERE candidate = "mike gravel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much money has been raised that has $5,821,587 cash on hand? ### Context: CREATE TABLE table_name_75 (money_raised VARCHAR, _3q VARCHAR, cash_on_hand VARCHAR) [/INST] ### Response: SELECT money_raised, _3q FROM table_name_75 WHERE cash_on_hand = "$5,821,587" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 after debt has receipts of $379,794? ### Context: CREATE TABLE table_name_90 (after_debt VARCHAR, total_receipts VARCHAR) [/INST] ### Response: SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much money has Candidate Dennis Kucinich spent? ### Context: CREATE TABLE table_name_43 (money_spent VARCHAR, _3q VARCHAR, candidate VARCHAR) [/INST] ### Response: SELECT money_spent, _3q FROM table_name_43 WHERE candidate = "dennis kucinich" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size when the away team was South Melbourne? ### Context: CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size at Junction Oval? ### Context: CREATE TABLE table_name_78 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_78 WHERE venue = "junction 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: What was the date of the game at Junction Oval? ### Context: CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_3 WHERE venue = "junction 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: What was the away score for Carlton? ### Context: CREATE TABLE table_name_41 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_41 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: Who was the away team at MCG? ### Context: CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_12 WHERE venue = "mcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 D 48 when the D 50 is d 30? ### Context: CREATE TABLE table_name_14 (d_48 VARCHAR, d_50 VARCHAR) [/INST] ### Response: SELECT d_48 FROM table_name_14 WHERE d_50 = "d 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 D 47 when the D 49 is r 32? ### Context: CREATE TABLE table_name_92 (d_47 VARCHAR, d_49 VARCHAR) [/INST] ### Response: SELECT d_47 FROM table_name_92 WHERE d_49 = "r 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 D 50 when the D 43 is r 43? ### Context: CREATE TABLE table_name_77 (d_50 VARCHAR, d_43 VARCHAR) [/INST] ### Response: SELECT d_50 FROM table_name_77 WHERE d_43 = "r 43" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the D 42 when the D 50 is d 31? ### Context: CREATE TABLE table_name_17 (d_42 VARCHAR, d_50 VARCHAR) [/INST] ### Response: SELECT d_42 FROM table_name_17 WHERE d_50 = "d 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: What is the D 50 when the D 41 is d 41? ### Context: CREATE TABLE table_name_84 (d_50 VARCHAR, d_41 VARCHAR) [/INST] ### Response: SELECT d_50 FROM table_name_84 WHERE d_41 = "d 41" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the D 50 when the D 41 is d 41? ### Context: CREATE TABLE table_name_65 (d_50 VARCHAR, d_41 VARCHAR) [/INST] ### Response: SELECT d_50 FROM table_name_65 WHERE d_41 = "d 41" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc? ### Context: CREATE TABLE table_name_19 (yard_name VARCHAR, ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR) [/INST] ### Response: SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = "n3 type, v4 type" AND total_vessels_built_for_usmc = "13 ships for usmc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)? ### Context: CREATE TABLE table_name_21 (ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR) [/INST] ### Response: SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = "13 ships for usmc (plus 37 more for usn)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the co drivers past 1994 in the WSC class? ### Context: CREATE TABLE table_name_43 (co_drivers VARCHAR, year VARCHAR, class VARCHAR) [/INST] ### Response: SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Footscray play as the home team? ### Context: CREATE TABLE table_name_20 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_20 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: What is the report for 10 october? ### Context: CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR) [/INST] ### Response: SELECT report FROM table_name_13 WHERE date = "10 october" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 race winner with a pole position james hunt, and a Fastest Lap of james hunt, and a Date of 15 august? ### Context: CREATE TABLE table_name_58 (race VARCHAR, date VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT race AS Winner FROM table_name_58 WHERE pole_position = "james hunt" AND fastest_lap = "james hunt" AND date = "15 august" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What race has a Pole Position of Jacques Laffite? ### Context: CREATE TABLE table_name_25 (race VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT race FROM table_name_25 WHERE pole_position = "jacques laffite" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pole Position of the Swedish Grand Prix? ### Context: CREATE TABLE table_name_95 (pole_position VARCHAR, race VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_95 WHERE race = "swedish 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 was the date when the location was Zandvoort? ### Context: CREATE TABLE table_name_72 (date VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_name_72 WHERE location = "zandvoort" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chapters did Elmer Clifton direct? ### Context: CREATE TABLE table_name_86 (chapters VARCHAR, director VARCHAR) [/INST] ### Response: SELECT COUNT(chapters) FROM table_name_86 WHERE director = "elmer clifton" </s>