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 run 2 of athlete Maria Orlova from Russia? ### Context: CREATE TABLE table_name_24 (run_2 INTEGER, country VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT SUM(run_2) FROM table_name_24 WHERE country = "russia" AND athlete = "maria orlova" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91? ### Context: CREATE TABLE table_name_5 (run_3 INTEGER, run_1 VARCHAR, run_2 VARCHAR) [/INST] ### Response: SELECT SUM(run_3) FROM table_name_5 WHERE run_1 > 53.75 AND run_2 < 52.91 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 run 3 an athlete with a run 2 less than 53.72 and a run 1 of 53.1 has? ### Context: CREATE TABLE table_name_30 (run_3 INTEGER, run_2 VARCHAR, run_1 VARCHAR) [/INST] ### Response: SELECT MIN(run_3) FROM table_name_30 WHERE run_2 < 53.72 AND run_1 = 53.1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35? ### Context: CREATE TABLE table_name_90 (run_2 INTEGER, run_1 VARCHAR, run_3 VARCHAR) [/INST] ### Response: SELECT MIN(run_2) FROM table_name_90 WHERE run_1 = 52.44 AND run_3 < 52.35 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points are associated with 0 poles? ### Context: CREATE TABLE table_name_39 (points VARCHAR, poles INTEGER) [/INST] ### Response: SELECT COUNT(points) FROM table_name_39 WHERE poles < 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 first game that has a home team of Detroit? ### Context: CREATE TABLE table_name_93 (game__number INTEGER, home VARCHAR) [/INST] ### Response: SELECT MIN(game__number) FROM table_name_93 WHERE home = "detroit" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which home team has higher than 92 points? ### Context: CREATE TABLE table_name_14 (home VARCHAR, points INTEGER) [/INST] ### Response: SELECT home FROM table_name_14 WHERE points > 92 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what team's score is 101? ### Context: CREATE TABLE table_name_42 (team VARCHAR, score VARCHAR) [/INST] ### Response: SELECT team FROM table_name_42 WHERE score = "101" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what team played against zimbabwe in 1999? ### Context: CREATE TABLE table_name_11 (team VARCHAR, year VARCHAR, versus VARCHAR) [/INST] ### Response: SELECT team FROM table_name_11 WHERE year = 1999 AND versus = "zimbabwe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the team that played in 2006? ### Context: CREATE TABLE table_name_70 (team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT team FROM table_name_70 WHERE year = 2006 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver Romain Grosjean, who has an average pre-2010 less than 0, has? ### Context: CREATE TABLE table_name_49 (points INTEGER, driver VARCHAR, average_pre_2010 VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_49 WHERE driver = "romain grosjean" AND average_pre_2010 < 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 average number of entries driver Mark Webber, who has more than 1014.5 points, has? ### Context: CREATE TABLE table_name_27 (entries INTEGER, driver VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(entries) FROM table_name_27 WHERE driver = "mark webber" AND points > 1014.5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0? ### Context: CREATE TABLE table_name_75 (average_points_per_race_entered INTEGER, points VARCHAR, average_pre_2010 VARCHAR) [/INST] ### Response: SELECT MAX(average_points_per_race_entered) FROM table_name_75 WHERE points < 969 AND average_pre_2010 < 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 average points per race entered of driver kimi räikkönen, who has more than 194 entries? ### Context: CREATE TABLE table_name_3 (average_points_per_race_entered INTEGER, driver VARCHAR, entries VARCHAR) [/INST] ### Response: SELECT MIN(average_points_per_race_entered) FROM table_name_3 WHERE driver = "kimi räikkönen" AND entries > 194 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first game played against the Chicago Black Hawks? ### Context: CREATE TABLE table_name_92 (game INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MIN(game) FROM table_name_92 WHERE 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: Name the opponent for 9 november 1991 ### Context: CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_19 WHERE date = "9 november 1991" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Losses is the lowest one that has Wins smaller than 0? ### Context: CREATE TABLE table_name_92 (losses INTEGER, wins INTEGER) [/INST] ### Response: SELECT MIN(losses) FROM table_name_92 WHERE wins < 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 Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0? ### Context: CREATE TABLE table_name_95 (losses VARCHAR, ties VARCHAR, season VARCHAR, team VARCHAR) [/INST] ### Response: SELECT losses FROM table_name_95 WHERE season > 1941 AND team = "hamilton wildcats" AND ties = 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 Season has Ties smaller than 1, and a Team of vancouver grizzlies, and Wins smaller than 1? ### Context: CREATE TABLE table_name_42 (season INTEGER, wins VARCHAR, ties VARCHAR, team VARCHAR) [/INST] ### Response: SELECT SUM(season) FROM table_name_42 WHERE ties < 1 AND team = "vancouver grizzlies" AND wins < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Ties have Wins smaller than 1, and Games of 6, and Losses of 6, and a Season larger than 1941? ### Context: CREATE TABLE table_name_41 (ties VARCHAR, season VARCHAR, losses VARCHAR, wins VARCHAR, games VARCHAR) [/INST] ### Response: SELECT COUNT(ties) FROM table_name_41 WHERE wins < 1 AND games = 6 AND losses = 6 AND season > 1941 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wins have a Team of winnipeg blue bombers, and a Season larger than 1964? ### Context: CREATE TABLE table_name_56 (wins INTEGER, team VARCHAR, season VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_56 WHERE team = "winnipeg blue bombers" AND season > 1964 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What engine class is associated with a year after 1985 and over 0 wins? ### Context: CREATE TABLE table_name_44 (class VARCHAR, year VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT class FROM table_name_44 WHERE year > 1985 AND wins > 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 opponent has a loss of trout (7-4)? ### Context: CREATE TABLE table_name_53 (opponent VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_53 WHERE loss = "trout (7-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 opponent has a save of smith (22)? ### Context: CREATE TABLE table_name_65 (opponent VARCHAR, save VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_65 WHERE save = "smith (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: How much Gold has a Bronze larger than 1, and a Silver larger than 2? ### Context: CREATE TABLE table_name_38 (gold VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT COUNT(gold) FROM table_name_38 WHERE bronze > 1 AND silver > 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 Total has a Nation of japan (jpn), and a Silver smaller than 1? ### Context: CREATE TABLE table_name_85 (total INTEGER, nation VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_85 WHERE nation = "japan (jpn)" AND silver < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the margin of victory in WGC-Accenture Match Play Championship? ### Context: CREATE TABLE table_name_98 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_98 WHERE tournament = "wgc-accenture match play championship" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nick Price the runner-up? ### Context: CREATE TABLE table_name_7 (date VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT date FROM table_name_7 WHERE runner_s__up = "nick price" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nick Price as a runner-up? ### Context: CREATE TABLE table_name_52 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_52 WHERE runner_s__up = "nick price" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PGA Championship? ### Context: CREATE TABLE table_name_25 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_25 WHERE tournament = "pga championship" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning score –20 (68-67-65-64=264)? ### Context: CREATE TABLE table_name_46 (date VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_46 WHERE winning_score = –20(68 - 67 - 65 - 64 = 264) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player was D past Round 3? ### Context: CREATE TABLE table_name_88 (player VARCHAR, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT player FROM table_name_88 WHERE position = "d" AND round > 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: Which Round was F picked? ### Context: CREATE TABLE table_name_5 (round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT round FROM table_name_5 WHERE position = "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: What Position is Ryan Russell? ### Context: CREATE TABLE table_name_6 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_6 WHERE player = "ryan russell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country does Round 4 come from? ### Context: CREATE TABLE table_name_12 (nationality VARCHAR, round VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_12 WHERE round = 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 opponent was present on April 14? ### Context: CREATE TABLE table_name_17 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_17 WHERE date = "april 14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what team lost on april 15 ### Context: CREATE TABLE table_name_60 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_60 WHERE date = "april 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 team played on april 21 ### Context: CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_93 WHERE date = "april 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: what team scored on april 10 ### Context: CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_81 WHERE date = "april 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: Who lost with a time of 0:58? ### Context: CREATE TABLE table_name_44 (loser VARCHAR, time VARCHAR) [/INST] ### Response: SELECT loser FROM table_name_44 WHERE time = "0:58" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of rounds for winner Rafael Cavalcante? ### Context: CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What win method has a time of 2:32? ### Context: CREATE TABLE table_name_71 (method VARCHAR, time VARCHAR) [/INST] ### Response: SELECT method FROM table_name_71 WHERE time = "2: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 sum of points values that are associated with 0 losses and more than 8 games? ### Context: CREATE TABLE table_name_67 (points INTEGER, lost VARCHAR, games VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_67 WHERE lost = 0 AND games > 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 fewest losses associated with more than 13 points and fewer than 8 games? ### Context: CREATE TABLE table_name_25 (lost INTEGER, points VARCHAR, games VARCHAR) [/INST] ### Response: SELECT MIN(lost) FROM table_name_25 WHERE points > 13 AND games < 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 difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw? ### Context: CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fewest number of points associated with more than 8 games? ### Context: CREATE TABLE table_name_95 (points INTEGER, games INTEGER) [/INST] ### Response: SELECT MIN(points) FROM table_name_95 WHERE games > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which title did richard kolner play? ### Context: CREATE TABLE table_name_33 (title VARCHAR, role VARCHAR) [/INST] ### Response: SELECT title FROM table_name_33 WHERE role = "richard kolner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes? ### Context: CREATE TABLE table_name_93 (title VARCHAR, director VARCHAR, dance_partner VARCHAR, lyrics VARCHAR) [/INST] ### Response: SELECT title FROM table_name_93 WHERE dance_partner = "adele astaire" AND lyrics = "ira gershwin" AND director = "felix edwardes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Role has a Theatre of globe, and a Music of jerome kern? ### Context: CREATE TABLE table_name_61 (role VARCHAR, theatre VARCHAR, music VARCHAR) [/INST] ### Response: SELECT role FROM table_name_61 WHERE theatre = "globe" AND music = "jerome kern" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what name was on the year 2012 ### Context: CREATE TABLE table_name_22 (name VARCHAR, year VARCHAR, __est_ VARCHAR) [/INST] ### Response: SELECT name FROM table_name_22 WHERE year * __est_ = "2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which member of house of Habsburg-Lorraine had the spouse Charles II? ### Context: CREATE TABLE table_name_40 (name VARCHAR, spouse VARCHAR) [/INST] ### Response: SELECT name FROM table_name_40 WHERE spouse = "charles ii" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 marriage date for the Habsburg-Lorraine house member who died 29 December 1829? ### Context: CREATE TABLE table_name_67 (marriage VARCHAR, death VARCHAR) [/INST] ### Response: SELECT marriage FROM table_name_67 WHERE death = "29 december 1829" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 duchess who became duchess on 7/8 April 1766 cease to be duchess? ### Context: CREATE TABLE table_name_5 (ceased_to_be_duchess VARCHAR, became_duchess VARCHAR) [/INST] ### Response: SELECT ceased_to_be_duchess FROM table_name_5 WHERE became_duchess = "7/8 april 1766" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 death of the duchess born on 30 October 1797? ### Context: CREATE TABLE table_name_2 (death VARCHAR, birth VARCHAR) [/INST] ### Response: SELECT death FROM table_name_2 WHERE birth = "30 october 1797" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birth date of the duchess who married on 1 May 1844? ### Context: CREATE TABLE table_name_16 (birth VARCHAR, marriage VARCHAR) [/INST] ### Response: SELECT birth FROM table_name_16 WHERE marriage = "1 may 1844" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbered pick from round 7? ### Context: CREATE TABLE table_name_67 (pick INTEGER, round VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_67 WHERE 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: How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2? ### Context: CREATE TABLE table_name_57 (played VARCHAR, position VARCHAR, against VARCHAR, team VARCHAR) [/INST] ### Response: SELECT COUNT(played) FROM table_name_57 WHERE against > 11 AND team = "botafogo" AND position < 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 average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9? ### Context: CREATE TABLE table_name_56 (drawn INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT AVG(drawn) FROM table_name_56 WHERE points < 14 AND lost < 4 AND played > 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11? ### Context: CREATE TABLE table_name_54 (played INTEGER, team VARCHAR, against VARCHAR) [/INST] ### Response: SELECT MIN(played) FROM table_name_54 WHERE team = "vasco da gama" AND against < 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 Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5? ### Context: CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, lost VARCHAR, team VARCHAR) [/INST] ### Response: SELECT SUM(played) FROM table_name_4 WHERE lost > 4 AND team = "américa" AND points < 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 Lost has a Position of 3, and a Drawn larger than 3? ### Context: CREATE TABLE table_name_76 (lost INTEGER, position VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT SUM(lost) FROM table_name_76 WHERE position = 3 AND drawn > 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: How much Lost has a Drawn larger than 1, and Points smaller than 14, and an Against larger than 10? ### Context: CREATE TABLE table_name_61 (lost VARCHAR, against VARCHAR, drawn VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_61 WHERE drawn > 1 AND points < 14 AND against > 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: What tournament has yvonne vermaak as the opponent? ### Context: CREATE TABLE table_name_5 (tournament VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_5 WHERE opponent = "yvonne vermaak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What outcome has yvonne vermaak as the opponent? ### Context: CREATE TABLE table_name_79 (outcome VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_79 WHERE opponent = "yvonne vermaak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome for the Hershey tournament? ### Context: CREATE TABLE table_name_1 (outcome VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_1 WHERE tournament = "hershey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played against Save Of Ni Fu-Deh? ### Context: CREATE TABLE table_name_4 (opponent VARCHAR, save VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_4 WHERE save = "ni fu-deh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss of who has a Save of Miguel Saladin and played against Chinatrust Whales? ### Context: CREATE TABLE table_name_56 (loss VARCHAR, opponent VARCHAR, save VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_56 WHERE opponent = "chinatrust whales" AND save = "miguel saladin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's the opponent when Diegomar Markwell is the loss? ### Context: CREATE TABLE table_name_80 (opponent VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_80 WHERE loss = "diegomar markwell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what game had a score of 86-71 ### Context: CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_8 WHERE record = "86-71" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what game took place on september 14 ### Context: CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_34 WHERE date = "september 14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what game had an attendance of 21,629 ### Context: CREATE TABLE table_name_70 (record VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT record FROM table_name_70 WHERE attendance = "21,629" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the number of people in sri lanka ### Context: CREATE TABLE table_name_10 (s_no INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT AVG(s_no) FROM table_name_10 WHERE opponent = "sri lanka" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position of the Slavia team in 1998? ### Context: CREATE TABLE table_name_10 (position_in_1998 VARCHAR, team VARCHAR) [/INST] ### Response: SELECT position_in_1998 FROM table_name_10 WHERE team = "slavia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is located in Lida? ### Context: CREATE TABLE table_name_91 (team VARCHAR, location VARCHAR) [/INST] ### Response: SELECT team FROM table_name_91 WHERE location = "lida" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode number visited India? ### Context: CREATE TABLE table_name_56 (episode_no VARCHAR, countries_visited VARCHAR) [/INST] ### Response: SELECT episode_no FROM table_name_56 WHERE countries_visited = "india" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode title featured a visit to the country of Cuba? ### Context: CREATE TABLE table_name_26 (episode_title VARCHAR, countries_visited VARCHAR) [/INST] ### Response: SELECT episode_title FROM table_name_26 WHERE countries_visited = "cuba" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position does Jesse Boulerice play? ### Context: CREATE TABLE table_name_83 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_83 WHERE player = "jesse boulerice" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest number of wins in the chart for Ayrton Senna? ### Context: CREATE TABLE table_name_1 (wins INTEGER, driver VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_1 WHERE driver = "ayrton senna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of entries associated with more than 11 wins? ### Context: CREATE TABLE table_name_51 (entries VARCHAR, wins INTEGER) [/INST] ### Response: SELECT entries FROM table_name_51 WHERE wins > 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: Name the most points with lost more than 1 and games less than 5 ### Context: CREATE TABLE table_name_96 (points INTEGER, lost VARCHAR, games VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_96 WHERE lost > 1 AND games < 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of drawn with lost more than 1 and games less than 5 ### Context: CREATE TABLE table_name_13 (drawn INTEGER, lost VARCHAR, games VARCHAR) [/INST] ### Response: SELECT SUM(drawn) FROM table_name_13 WHERE lost > 1 AND games < 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the least lost with points more than 6 and games less than 5 ### Context: CREATE TABLE table_name_4 (lost INTEGER, points VARCHAR, games VARCHAR) [/INST] ### Response: SELECT MIN(lost) FROM table_name_4 WHERE points > 6 AND games < 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of points with games less than 5 ### Context: CREATE TABLE table_name_25 (points INTEGER, games INTEGER) [/INST] ### Response: SELECT SUM(points) FROM table_name_25 WHERE games < 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 location of the bout that lasted 5:00 and led to a 6-2-1 record? ### Context: CREATE TABLE table_name_17 (location VARCHAR, time VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_17 WHERE time = "5:00" AND record = "6-2-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 was the record after the bout with Alexis Vila? ### Context: CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_79 WHERE opponent = "alexis vila" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a defensive end at California? ### Context: CREATE TABLE table_name_93 (player_name VARCHAR, position VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player_name FROM table_name_93 WHERE position = "defensive end" AND college = "california" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 players were selected after 2011? ### Context: CREATE TABLE table_name_53 (player_name VARCHAR, year_ VARCHAR, a_ VARCHAR) [/INST] ### Response: SELECT player_name FROM table_name_53 WHERE year_[a_] > 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was a linebacker at Tennessee? ### Context: CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player_name FROM table_name_64 WHERE position = "linebacker" AND college = "tennessee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wins is the lowest one that has Events larger than 30? ### Context: CREATE TABLE table_name_70 (wins INTEGER, events INTEGER) [/INST] ### Response: SELECT MIN(wins) FROM table_name_70 WHERE events > 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 day were the results 3:0? ### Context: CREATE TABLE table_name_67 (date VARCHAR, results¹ VARCHAR) [/INST] ### Response: SELECT date FROM table_name_67 WHERE results¹ = "3: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 city played on april 29? ### Context: CREATE TABLE table_name_32 (city VARCHAR, date VARCHAR) [/INST] ### Response: SELECT city FROM table_name_32 WHERE date = "april 29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which city has an opponent of England? ### Context: CREATE TABLE table_name_99 (city VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT city FROM table_name_99 WHERE opponent = "england" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the opponent Austria? ### Context: CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_8 WHERE opponent = "austria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the most population for seychelles and rank less than 13 ### Context: CREATE TABLE table_name_8 (population INTEGER, country_territory_entity VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MAX(population) FROM table_name_8 WHERE country_territory_entity = "seychelles" AND rank < 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 frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One? ### Context: CREATE TABLE table_name_49 (frequency VARCHAR, owner VARCHAR, branding VARCHAR) [/INST] ### Response: SELECT frequency FROM table_name_49 WHERE owner = "canadian broadcasting corporation" AND branding = "cbc radio one" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 frequency of the soft adult contemporary stations? ### Context: CREATE TABLE table_name_14 (frequency VARCHAR, format VARCHAR) [/INST] ### Response: SELECT frequency FROM table_name_14 WHERE format = "soft adult contemporary" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 owns the station with the frequency FM 92.1? ### Context: CREATE TABLE table_name_65 (owner VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT owner FROM table_name_65 WHERE frequency = "fm 92.1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation? ### Context: CREATE TABLE table_name_80 (branding VARCHAR, owner VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT branding FROM table_name_80 WHERE owner = "canadian broadcasting corporation" AND frequency = "fm 97.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: Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc? ### Context: CREATE TABLE table_name_98 (f_laps VARCHAR, final_placing VARCHAR, podiums VARCHAR, season VARCHAR) [/INST] ### Response: SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Series has Poles of 0, and Races of 17? ### Context: CREATE TABLE table_name_72 (series VARCHAR, poles VARCHAR, races VARCHAR) [/INST] ### Response: SELECT series FROM table_name_72 WHERE poles = "0" AND races = "17" </s>