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: Which Winners is the highest one that has a Rank larger than 7, and a Third smaller than 1? ### Context: CREATE TABLE table_name_44 (winners INTEGER, rank VARCHAR, third VARCHAR) [/INST] ### Response: SELECT MAX(winners) FROM table_name_44 WHERE rank > 7 AND third < 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: Which Leading Scorer has an Opponent of @ seattle, and a Record of 14-16? ### Context: CREATE TABLE table_name_59 (Leading VARCHAR, opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT Leading AS scorer FROM table_name_59 WHERE opponent = "@ seattle" AND record = "14-16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score has an Opponent of @ houston, and a Record of 2-0? ### Context: CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_46 WHERE opponent = "@ houston" AND record = "2-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Attendance has a Date of september 7? ### Context: CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_84 WHERE date = "september 7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the venue of game 3? ### Context: CREATE TABLE table_name_88 (venue VARCHAR, game VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_88 WHERE 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: What is the lowest game number on 20 July 2008? ### Context: CREATE TABLE table_name_33 (game INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(game) FROM table_name_33 WHERE date = "20 july 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result on 20 July 2008? ### Context: CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_52 WHERE date = "20 july 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total game number with athlone town as the opponent? ### Context: CREATE TABLE table_name_95 (game VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_95 WHERE opponent = "athlone town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result of the game with a game number greater than 6 and an away venue? ### Context: CREATE TABLE table_name_7 (result VARCHAR, venue VARCHAR, game VARCHAR) [/INST] ### Response: SELECT result FROM table_name_7 WHERE venue = "away" AND game > 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the end date when Alex Bodry was the minister? ### Context: CREATE TABLE table_name_11 (end_date VARCHAR, minister VARCHAR) [/INST] ### Response: SELECT end_date FROM table_name_11 WHERE minister = "alex bodry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 minister for the CSV party with a present day end date? ### Context: CREATE TABLE table_name_43 (minister VARCHAR, party VARCHAR, end_date VARCHAR) [/INST] ### Response: SELECT minister FROM table_name_43 WHERE party = "csv" AND end_date = "present day" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points of the game with philadelphia as the visitor and an attendance greater than 7,284? ### Context: CREATE TABLE table_name_26 (points INTEGER, visitor VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_26 WHERE visitor = "philadelphia" AND attendance > 7 OFFSET 284 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of points of the game with toronto as the home team? ### Context: CREATE TABLE table_name_99 (points INTEGER, home VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_99 WHERE home = "toronto" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many laps did pere riba ride? ### Context: CREATE TABLE table_name_52 (laps INTEGER, rider VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_52 WHERE rider = "pere riba" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many laps were in grid 4? ### Context: CREATE TABLE table_name_97 (laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_97 WHERE grid = 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: Who manufactured grid 11? ### Context: CREATE TABLE table_name_91 (manufacturer VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_91 WHERE grid = 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Grid has Laps larger than 26, and a Time/Retired of 44:39.467? ### Context: CREATE TABLE table_name_16 (grid INTEGER, laps VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT MIN(grid) FROM table_name_16 WHERE laps > 26 AND time_retired = "44:39.467" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Horse finished in 8? ### Context: CREATE TABLE table_name_54 (horse VARCHAR, finished VARCHAR) [/INST] ### Response: SELECT horse FROM table_name_54 WHERE finished = "8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the Jockey that has Nick Zito as Trainer and Odds of 34-1? ### Context: CREATE TABLE table_name_39 (jockey VARCHAR, trainer VARCHAR, odds VARCHAR) [/INST] ### Response: SELECT jockey FROM table_name_39 WHERE trainer = "nick zito" AND odds = "34-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 are the Odds for the Horse called Ready's Echo? ### Context: CREATE TABLE table_name_72 (odds VARCHAR, horse VARCHAR) [/INST] ### Response: SELECT odds FROM table_name_72 WHERE horse = "ready's echo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Odds for Trainer Barclay Tagg? ### Context: CREATE TABLE table_name_87 (odds VARCHAR, trainer VARCHAR) [/INST] ### Response: SELECT odds FROM table_name_87 WHERE trainer = "barclay tagg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Finished place for da'tara trained by Nick zito? ### Context: CREATE TABLE table_name_3 (finished VARCHAR, trainer VARCHAR, horse VARCHAR) [/INST] ### Response: SELECT finished FROM table_name_3 WHERE trainer = "nick zito" AND horse = "da'tara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jockey for guadalcanal? ### Context: CREATE TABLE table_name_52 (jockey VARCHAR, horse VARCHAR) [/INST] ### Response: SELECT jockey FROM table_name_52 WHERE horse = "guadalcanal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Manufacturer has a Time of accident and a Grid greater than 15? ### Context: CREATE TABLE table_name_61 (manufacturer VARCHAR, time VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_61 WHERE time = "accident" 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 is the verb for Khola? ### Context: CREATE TABLE table_name_1 (verb VARCHAR) [/INST] ### Response: SELECT 3 AS __f_ FROM table_name_1 WHERE verb = "khola" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd verb for Khola? ### Context: CREATE TABLE table_name_34 (verb VARCHAR) [/INST] ### Response: SELECT 2 AS __f_ FROM table_name_34 WHERE verb = "khola" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd verb for chena? ### Context: CREATE TABLE table_name_7 (verb VARCHAR) [/INST] ### Response: SELECT 2 AS __f_ FROM table_name_7 WHERE verb = "chena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lead has a Third of randy ferbey (skip), a Second of scott pfeifer, and a Season of 2009–10? ### Context: CREATE TABLE table_name_21 (lead VARCHAR, season VARCHAR, third VARCHAR, second VARCHAR) [/INST] ### Response: SELECT lead FROM table_name_21 WHERE third = "randy ferbey (skip)" AND second = "scott pfeifer" AND season = "2009–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: Which Season has a Third of colin hodgson? ### Context: CREATE TABLE table_name_47 (season VARCHAR, third VARCHAR) [/INST] ### Response: SELECT season FROM table_name_47 WHERE third = "colin hodgson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Second has a Lead of ben hebert? ### Context: CREATE TABLE table_name_6 (second VARCHAR, lead VARCHAR) [/INST] ### Response: SELECT second FROM table_name_6 WHERE lead = "ben hebert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Third has a Second of scott pfeifer? ### Context: CREATE TABLE table_name_29 (third VARCHAR, second VARCHAR) [/INST] ### Response: SELECT third FROM table_name_29 WHERE second = "scott pfeifer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Second has a Third of david nedohin, and a Lead of ben hebert? ### Context: CREATE TABLE table_name_76 (second VARCHAR, third VARCHAR, lead VARCHAR) [/INST] ### Response: SELECT second FROM table_name_76 WHERE third = "david nedohin" AND lead = "ben hebert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Skip has a Season of 2002–03? ### Context: CREATE TABLE table_name_77 (skip VARCHAR, season VARCHAR) [/INST] ### Response: SELECT skip FROM table_name_77 WHERE season = "2002–03" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 poll with a sample size of 496 where Republican Mike Huckabee was chosen? ### Context: CREATE TABLE table_name_29 (date VARCHAR, republican VARCHAR, sample_size VARCHAR) [/INST] ### Response: SELECT date FROM table_name_29 WHERE republican = "mike huckabee" AND sample_size = 496 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sample size of the poll taken on Dec 13-15, 2007 that had a margin of error of more than 4 and resulted with Republican Mike Huckabee? ### Context: CREATE TABLE table_name_5 (sample_size INTEGER, date VARCHAR, republican VARCHAR, margin_of_error VARCHAR) [/INST] ### Response: SELECT AVG(sample_size) FROM table_name_5 WHERE republican = "mike huckabee" AND margin_of_error > 4 AND date = "dec 13-15, 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Democrat was selected in the poll with a sample size smaller than 516 where the Republican chosen was Ron Paul? ### Context: CREATE TABLE table_name_16 (democrat VARCHAR, sample_size VARCHAR, republican VARCHAR) [/INST] ### Response: SELECT democrat FROM table_name_16 WHERE sample_size < 516 AND republican = "ron paul" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the show 9 to 5 returning? ### Context: CREATE TABLE table_name_7 (returning VARCHAR, show VARCHAR) [/INST] ### Response: SELECT returning FROM table_name_7 WHERE show = "9 to 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 was the earliest aired show that's returning on September 13? ### Context: CREATE TABLE table_name_1 (last_aired INTEGER, returning VARCHAR) [/INST] ### Response: SELECT MIN(last_aired) FROM table_name_1 WHERE returning = "september 13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Opponent of the game with a Score of 74-66? ### Context: CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_82 WHERE score = "74-66" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Score of the game @ San Antonio on June 20? ### Context: CREATE TABLE table_name_81 (score VARCHAR, opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_81 WHERE opponent = "@ san antonio" AND date = "june 20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Record of the game on September 6? ### Context: CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_49 WHERE date = "september 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 Record of the game with a Score of 65-48? ### Context: CREATE TABLE table_name_38 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_38 WHERE score = "65-48" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest League Cup Goals, when Scorer is Denis Law? ### Context: CREATE TABLE table_name_59 (league_cup_goals INTEGER, scorer VARCHAR) [/INST] ### Response: SELECT MIN(league_cup_goals) FROM table_name_59 WHERE scorer = "denis law" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total, when FA Cup Goals is 1, when League Goals is 10, and when Club is Crystal Palace? ### Context: CREATE TABLE table_name_20 (total INTEGER, club VARCHAR, fa_cup_goals VARCHAR, league_goals VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_20 WHERE fa_cup_goals = "1" AND league_goals = "10" AND club = "crystal palace" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total, when Club is Leeds United, and when League Goals is 13? ### Context: CREATE TABLE table_name_77 (total VARCHAR, club VARCHAR, league_goals VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_77 WHERE club = "leeds united" AND league_goals = "13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is FA Cup Goals, when Euro Competitions is 1, and when League Goals is 11? ### Context: CREATE TABLE table_name_75 (fa_cup_goals VARCHAR, euro_competitions VARCHAR, league_goals VARCHAR) [/INST] ### Response: SELECT fa_cup_goals FROM table_name_75 WHERE euro_competitions = "1" AND league_goals = "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 tournament had finalist Monica Seles? ### Context: CREATE TABLE table_name_49 (tournament VARCHAR, finalist VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_49 WHERE finalist = "monica seles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What week was the finalist Martina Hingis? ### Context: CREATE TABLE table_name_6 (week VARCHAR, finalist VARCHAR) [/INST] ### Response: SELECT week FROM table_name_6 WHERE finalist = "martina hingis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the surface for finalist Justine Henin? ### Context: CREATE TABLE table_name_56 (surface VARCHAR, finalist VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_56 WHERE finalist = "justine henin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner in the Indian Wells? ### Context: CREATE TABLE table_name_67 (winner VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_67 WHERE tournament = "indian wells" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 race did Bill Holland win in 1946? ### Context: CREATE TABLE table_name_40 (race_name VARCHAR, year VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_40 WHERE year = 1946 AND winner = "bill holland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date did Ted Horn win Lakewood Race 2? ### Context: CREATE TABLE table_name_46 (date VARCHAR, winner VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT date FROM table_name_46 WHERE winner = "ted horn" AND race_name = "lakewood race 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: Who won on September 6? ### Context: CREATE TABLE table_name_2 (winner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_2 WHERE date = "september 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: Jud Larson who which race after 1956? ### Context: CREATE TABLE table_name_70 (race_name VARCHAR, year VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_70 WHERE year > 1956 AND winner = "jud larson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 medals for the Nation ranking 33 with more than 1 Bronze? ### Context: CREATE TABLE table_name_5 (total INTEGER, rank VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_5 WHERE rank = "33" AND bronze > 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: How many games have an Attendance of 19,190? ### Context: CREATE TABLE table_name_52 (game VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_52 WHERE attendance = 19 OFFSET 190 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 games had a Time of 2:14? ### Context: CREATE TABLE table_name_45 (game INTEGER, time VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_45 WHERE time = "2: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: Which Score has a Time of 2:28? ### Context: CREATE TABLE table_name_41 (score VARCHAR, time VARCHAR) [/INST] ### Response: SELECT score FROM table_name_41 WHERE time = "2:28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Captain 1 of louis burger, and a Date of 30 october–2 november? ### Context: CREATE TABLE table_name_53 (result VARCHAR, captain_1 VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_53 WHERE captain_1 = "louis burger" AND date = "30 october–2 november" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2 has a Captain 1 of final? ### Context: CREATE TABLE table_name_87 (team_2 VARCHAR, captain_1 VARCHAR) [/INST] ### Response: SELECT team_2 FROM table_name_87 WHERE captain_1 = "final" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Captain 2 has a Result of ireland by 8 runs? ### Context: CREATE TABLE table_name_87 (captain_2 VARCHAR, result VARCHAR) [/INST] ### Response: SELECT captain_2 FROM table_name_87 WHERE result = "ireland by 8 runs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Captain 2 of louis burger? ### Context: CREATE TABLE table_name_81 (result VARCHAR, captain_2 VARCHAR) [/INST] ### Response: SELECT result FROM table_name_81 WHERE captain_2 = "louis burger" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Captain 2 has a Result of final? ### Context: CREATE TABLE table_name_50 (captain_2 VARCHAR, result VARCHAR) [/INST] ### Response: SELECT captain_2 FROM table_name_50 WHERE result = "final" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Kosal with a balangir town sitalsasthi carnival? ### Context: CREATE TABLE table_name_97 (kosal VARCHAR, sitalsasthi_carnival VARCHAR) [/INST] ### Response: SELECT kosal FROM table_name_97 WHERE sitalsasthi_carnival = "balangir town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kosal with hatibandha as the sambalpuri cinema? ### Context: CREATE TABLE table_name_94 (kosal VARCHAR, sambalpuri_cinema VARCHAR) [/INST] ### Response: SELECT kosal FROM table_name_94 WHERE sambalpuri_cinema = "hatibandha" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sambalpuri saree with a samaleswari temple as sambalpuri language? ### Context: CREATE TABLE table_name_22 (sambalpuri_saree VARCHAR, sambalpuri_language VARCHAR) [/INST] ### Response: SELECT sambalpuri_saree FROM table_name_22 WHERE sambalpuri_language = "samaleswari temple" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sitalsasthi carnival with sonepur as kosal? ### Context: CREATE TABLE table_name_97 (sitalsasthi_carnival VARCHAR, kosal VARCHAR) [/INST] ### Response: SELECT sitalsasthi_carnival FROM table_name_97 WHERE kosal = "sonepur" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sitalsasthi carnival with hirakud as sambalpuri saree? ### Context: CREATE TABLE table_name_92 (sitalsasthi_carnival VARCHAR, sambalpuri_saree VARCHAR) [/INST] ### Response: SELECT sitalsasthi_carnival FROM table_name_92 WHERE sambalpuri_saree = "hirakud" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when their record stood at 0-2-2? ### Context: CREATE TABLE table_name_5 (attendance INTEGER, record VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_5 WHERE record = "0-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: On what date was the venue Away and the result was lost 6-4 (lost 9-7 on agg)? ### Context: CREATE TABLE table_name_5 (date VARCHAR, venue VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_5 WHERE venue = "away" AND result = "lost 6-4 (lost 9-7 on agg)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on the 26th? ### Context: CREATE TABLE table_name_31 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_31 WHERE date = "26th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent was Sheffield Scimitars and the venue was Home? ### Context: CREATE TABLE table_name_4 (date VARCHAR, opponent VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_4 WHERE opponent = "sheffield scimitars" AND venue = "home" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Man of the Match when the opponent was Milton Keynes Lightning and the venue was Away? ### Context: CREATE TABLE table_name_19 (man_of_the_match VARCHAR, opponent VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT man_of_the_match FROM table_name_19 WHERE opponent = "milton keynes lightning" AND venue = "away" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition was held on the 26th? ### Context: CREATE TABLE table_name_50 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_50 WHERE date = "26th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance was n/a and the Man of the Match was unknown? ### Context: CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR, man_of_the_match VARCHAR) [/INST] ### Response: SELECT date FROM table_name_32 WHERE attendance = "n/a" AND man_of_the_match = "unknown" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Edition had a Result of 6-3, 6-0, 6-2? ### Context: CREATE TABLE table_name_45 (edition VARCHAR, result VARCHAR) [/INST] ### Response: SELECT edition FROM table_name_45 WHERE result = "6-3, 6-0, 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 date of Super G in the 2010 season? ### Context: CREATE TABLE table_name_50 (date VARCHAR, discipline VARCHAR, season VARCHAR) [/INST] ### Response: SELECT date FROM table_name_50 WHERE discipline = "super g" AND season = 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the communities name is Balmoral and the area is over 43.51 kilometers squared, what's the total population amount? ### Context: CREATE TABLE table_name_56 (population VARCHAR, official_name VARCHAR, area_km_2 VARCHAR) [/INST] ### Response: SELECT COUNT(population) FROM table_name_56 WHERE official_name = "balmoral" AND area_km_2 > 43.51 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the status is rural community what's the lowest area in kilometers squared? ### Context: CREATE TABLE table_name_47 (area_km_2 INTEGER, status VARCHAR) [/INST] ### Response: SELECT MIN(area_km_2) FROM table_name_47 WHERE status = "rural community" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total golds do teams have when the total medals is less than 1? ### Context: CREATE TABLE table_name_79 (gold INTEGER, total INTEGER) [/INST] ### Response: SELECT SUM(gold) FROM table_name_79 WHERE 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: who was the semifinalist for the Key Biscane tournament? ### Context: CREATE TABLE table_name_12 (semifinalists VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT semifinalists FROM table_name_12 WHERE tournament = "key biscane" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of the game before 56 held after February 18 against the Chicago Black Hawks. ### Context: CREATE TABLE table_name_52 (score VARCHAR, opponent VARCHAR, game VARCHAR, february VARCHAR) [/INST] ### Response: SELECT score FROM table_name_52 WHERE game < 56 AND february > 18 AND opponent = "chicago black 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 was the score of the game 57 after February 23? ### Context: CREATE TABLE table_name_19 (score VARCHAR, february VARCHAR, game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_19 WHERE february > 23 AND game = 57 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had the lowest laps on a grid smaller than 16 with a time of +21.689? ### Context: CREATE TABLE table_name_27 (laps INTEGER, grid VARCHAR, time VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_27 WHERE grid < 16 AND time = "+21.689" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What laps did Honda do with a time of +1:38.407? ### Context: CREATE TABLE table_name_39 (laps VARCHAR, manufacturer VARCHAR, time VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_39 WHERE manufacturer = "honda" AND time = "+1:38.407" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What grid is Ducati with fewer than 22 laps? ### Context: CREATE TABLE table_name_96 (grid VARCHAR, manufacturer VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_96 WHERE manufacturer = "ducati" AND laps < 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 Honda's highest grid with a time of +1:38.407? ### Context: CREATE TABLE table_name_61 (grid INTEGER, manufacturer VARCHAR, time VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_61 WHERE manufacturer = "honda" AND time = "+1:38.407" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player bunky henry? ### Context: CREATE TABLE table_name_5 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_5 WHERE player = "bunky henry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of player bob rosburg? ### Context: CREATE TABLE table_name_90 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_90 WHERE player = "bob rosburg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player with a t6 place and a 72-68-72=212 score? ### Context: CREATE TABLE table_name_7 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_7 WHERE place = "t6" AND score = 72 - 68 - 72 = 212 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of player bob rosburg? ### Context: CREATE TABLE table_name_46 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_46 WHERE player = "bob rosburg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 68-69-73=210? ### Context: CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_51 WHERE score = 68 - 69 - 73 = 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: What is Record, when High Rebounds is "Tyson Chandler (6)"? ### Context: CREATE TABLE table_name_68 (record VARCHAR, high_rebounds VARCHAR) [/INST] ### Response: SELECT record FROM table_name_68 WHERE high_rebounds = "tyson chandler (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 Date, when Location Attendance is "TD Banknorth Garden 18,624"? ### Context: CREATE TABLE table_name_29 (date VARCHAR, location_attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_29 WHERE location_attendance = "td banknorth garden 18,624" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game, when Date is "December 23"? ### Context: CREATE TABLE table_name_58 (game INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(game) FROM table_name_58 WHERE date = "december 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 is Score, when Team is "@ Memphis"? ### Context: CREATE TABLE table_name_29 (score VARCHAR, team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_29 WHERE team = "@ memphis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 post position when the lengths behind is 0? ### Context: CREATE TABLE table_name_74 (post_position INTEGER, lengths_behind VARCHAR) [/INST] ### Response: SELECT AVG(post_position) FROM table_name_74 WHERE lengths_behind = "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's the lengths behind of Jockey Ramon A. Dominguez? ### Context: CREATE TABLE table_name_63 (lengths_behind VARCHAR, jockey VARCHAR) [/INST] ### Response: SELECT lengths_behind FROM table_name_63 WHERE jockey = "ramon a. dominguez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jockey that had post time odds of 34-1? ### Context: CREATE TABLE table_name_59 (jockey VARCHAR, post_time_odds VARCHAR) [/INST] ### Response: SELECT jockey FROM table_name_59 WHERE post_time_odds = "34-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: Who is the owner of Icabad Crane? ### Context: CREATE TABLE table_name_53 (owner VARCHAR, horse_name VARCHAR) [/INST] ### Response: SELECT owner FROM table_name_53 WHERE horse_name = "icabad crane" </s>