text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was played against with a result of 3–6, 2–6? ### Context: CREATE TABLE table_name_99 (against VARCHAR, result VARCHAR) [/INST] ### Response: SELECT against FROM table_name_99 WHERE result = "3–6, 2–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: Name the least year for paris, france venue ### Context: CREATE TABLE table_name_92 (year INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_92 WHERE venue = "paris, france" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the total number of picks for mckinney high school? ### Context: CREATE TABLE table_name_72 (pick INTEGER, school VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_72 WHERE school = "mckinney high school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the highest pick for the player Adam Jones? ### Context: CREATE TABLE table_name_31 (pick INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_31 WHERE player = "adam jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the total number of picks for the player Matt Murton? ### Context: CREATE TABLE table_name_25 (pick INTEGER, player VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_25 WHERE player = "matt murton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was pick 32? ### Context: CREATE TABLE table_name_86 (position VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT position FROM table_name_86 WHERE pick = 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: Who won at the Barbagallo Raceway circuit? ### Context: CREATE TABLE table_name_49 (winner VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_49 WHERE circuit = "barbagallo raceway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the race at Oran Park Raceway? ### Context: CREATE TABLE table_name_72 (race_title VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT race_title FROM table_name_72 WHERE circuit = "oran park raceway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at the Oran Park Raceway? ### Context: CREATE TABLE table_name_17 (winner VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_17 WHERE circuit = "oran park raceway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jim Richards won at the Winton Motor Raceway circuit, what was the city and state listed? ### Context: CREATE TABLE table_name_70 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT city___state FROM table_name_70 WHERE winner = "jim richards" AND circuit = "winton motor raceway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the capacity of the mine that is operated by Cyprus Amax minerals? ### Context: CREATE TABLE table_name_83 (capacity__thousands_of_metric_tons_ VARCHAR, operator VARCHAR) [/INST] ### Response: SELECT capacity__thousands_of_metric_tons_ FROM table_name_83 WHERE operator = "cyprus amax minerals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What rank is the Silver Bell mine of Pima county? ### Context: CREATE TABLE table_name_56 (rank VARCHAR, county VARCHAR, mine VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_56 WHERE county = "pima" AND mine = "silver bell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the capacity of the Pinto Valley mine in Gila county? ### Context: CREATE TABLE table_name_67 (capacity__thousands_of_metric_tons_ VARCHAR, county VARCHAR, mine VARCHAR) [/INST] ### Response: SELECT capacity__thousands_of_metric_tons_ FROM table_name_67 WHERE county = "gila" AND mine = "pinto valley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leg with an agg of 10-2? ### Context: CREATE TABLE table_name_31 (agg VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_31 WHERE agg = "10-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 agg of team 2 for Vantour Club Mangoungou? ### Context: CREATE TABLE table_name_38 (agg VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT agg FROM table_name_38 WHERE team_2 = "vantour club mangoungou" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leg of team 1 for Hardware stars? ### Context: CREATE TABLE table_name_19 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_19 WHERE team_1 = "hardware stars" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game played at home against the opponent Siena? ### Context: CREATE TABLE table_name_58 (date VARCHAR, opponent VARCHAR, ground VARCHAR) [/INST] ### Response: SELECT date FROM table_name_58 WHERE opponent = "siena" AND ground = "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: What time was the game played against Cagliari that lasted 16 rounds? ### Context: CREATE TABLE table_name_32 (time VARCHAR, opponent VARCHAR, round VARCHAR) [/INST] ### Response: SELECT time FROM table_name_32 WHERE opponent = "cagliari" AND round = "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: Where was the game played that had a score of 3-2 and a time of 15:00 cet? ### Context: CREATE TABLE table_name_7 (ground VARCHAR, score VARCHAR, time VARCHAR) [/INST] ### Response: SELECT ground FROM table_name_7 WHERE score = "3-2" AND time = "15:00 cet" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score on April 18? ### Context: CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_49 WHERE date = "april 18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance when Nakamura (0-1) lost? ### Context: CREATE TABLE table_name_77 (attendance VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_77 WHERE loss = "nakamura (0-1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was their record when they lost with Lilly (0-1) pitching? ### Context: CREATE TABLE table_name_6 (record VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT record FROM table_name_6 WHERE loss = "lilly (0-1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was their record when the attendance was 26,827? ### Context: CREATE TABLE table_name_51 (record VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT record FROM table_name_51 WHERE attendance = "26,827" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 December playmate with a February playmate Anne-Marie Fox? ### Context: CREATE TABLE table_name_76 (december VARCHAR, february VARCHAR) [/INST] ### Response: SELECT december FROM table_name_76 WHERE february = "anne-marie fox" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 August playmate with the October playmate Shannon Long? ### Context: CREATE TABLE table_name_51 (august VARCHAR, october VARCHAR) [/INST] ### Response: SELECT august FROM table_name_51 WHERE october = "shannon long" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 December playmate with a November playmate Marlene Janssen? ### Context: CREATE TABLE table_name_72 (december VARCHAR, november VARCHAR) [/INST] ### Response: SELECT december FROM table_name_72 WHERE november = "marlene janssen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 November playmate with the July playmate Hope Marie Carlton? ### Context: CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR) [/INST] ### Response: SELECT november FROM table_name_66 WHERE july = "hope marie carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the March playmate with an August playmate Gianna Amore? ### Context: CREATE TABLE table_name_53 (march VARCHAR, august VARCHAR) [/INST] ### Response: SELECT march FROM table_name_53 WHERE august = "gianna amore" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 January playmate with the November playmate Donna Edmondson? ### Context: CREATE TABLE table_name_66 (january VARCHAR, november VARCHAR) [/INST] ### Response: SELECT january FROM table_name_66 WHERE november = "donna edmondson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home stadium of the Tennessee Titans? ### Context: CREATE TABLE table_name_10 (stadium VARCHAR, host_team VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_10 WHERE host_team = "tennessee titans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the Houston Texans the visiting team later in the season? ### Context: CREATE TABLE table_name_29 (week INTEGER, visiting_team VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_29 WHERE visiting_team = "houston texans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The final score was 24-34 on what date? ### Context: CREATE TABLE table_name_18 (date VARCHAR, final_score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_18 WHERE final_score = "24-34" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold medals won by nations that won 2 silver medals but fewer than 7 in total? ### Context: CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_24 WHERE silver = 2 AND total < 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 total number of medals won by nations that had 7 bronze medals and more than 18 gold medals? ### Context: CREATE TABLE table_name_26 (total INTEGER, bronze VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_26 WHERE bronze = 7 AND gold > 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals? ### Context: CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(gold) FROM table_name_47 WHERE silver > 11 AND rank = "1" AND bronze < 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 highest total medals won by a nation that had 7 bronze but more than 12 silver medals? ### Context: CREATE TABLE table_name_43 (total INTEGER, bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_43 WHERE bronze = 7 AND silver > 12 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals? ### Context: CREATE TABLE table_name_4 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(gold) FROM table_name_4 WHERE total = 37 AND rank = "1" AND bronze > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the score for yuliya ustyuzhanina ### Context: CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_84 WHERE opponent = "yuliya ustyuzhanina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for hard surface and tournament of fort walton beach ### Context: CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_84 WHERE surface = "hard" AND tournament = "fort walton beach" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 with score of 1–6, 6–4, 6–4 ### Context: CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_7 WHERE score = "1–6, 6–4, 6–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: Name the score for 10 april 2007 and opponent of selima sfar ### Context: CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runners had placings over 8? ### Context: CREATE TABLE table_name_34 (runners VARCHAR, placing INTEGER) [/INST] ### Response: SELECT COUNT(runners) FROM table_name_34 WHERE placing > 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 course had a jockey of Royston FFrench? ### Context: CREATE TABLE table_name_22 (course VARCHAR, jockey VARCHAR) [/INST] ### Response: SELECT course FROM table_name_22 WHERE jockey = "royston ffrench" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 prize for the Buttercross Limited Stakes? ### Context: CREATE TABLE table_name_33 (prize__ INTEGER, race VARCHAR) [/INST] ### Response: SELECT AVG(prize__) AS Β£k_ FROM table_name_33 WHERE race = "buttercross limited stakes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runners had jockeys of Olivier Peslier with placings under 2? ### Context: CREATE TABLE table_name_81 (runners INTEGER, jockey VARCHAR, placing VARCHAR) [/INST] ### Response: SELECT SUM(runners) FROM table_name_81 WHERE jockey = "olivier peslier" AND placing < 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: Name the games with marks of 21 ### Context: CREATE TABLE table_name_71 (games VARCHAR, marks VARCHAR) [/INST] ### Response: SELECT games FROM table_name_71 WHERE marks = "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: Name the kicks with goals of 1 ### Context: CREATE TABLE table_name_40 (kicks VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT kicks FROM table_name_40 WHERE goals = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the goals with games of 6 ### Context: CREATE TABLE table_name_65 (goals VARCHAR, games VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_65 WHERE games = "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 game had the date was it with the final score of 7-23 ### Context: CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_35 WHERE final_score = "7-23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the final score of the game at the astrodome? ### Context: CREATE TABLE table_name_74 (final_score VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT final_score FROM table_name_74 WHERE stadium = "astrodome" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score for the date of December 30? ### Context: CREATE TABLE table_name_99 (final_score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT final_score FROM table_name_99 WHERE date = "december 30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the name of the Visiting team at Jack Murphy Stadium? ### Context: CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT visiting_team FROM table_name_90 WHERE stadium = "jack murphy stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the host team at Texas stadium? ### Context: CREATE TABLE table_name_1 (host_team VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT host_team FROM table_name_1 WHERE stadium = "texas stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the host team dated December 16? ### Context: CREATE TABLE table_name_39 (host_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT host_team FROM table_name_39 WHERE date = "december 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: Are there any Teams after 1997? ### Context: CREATE TABLE table_name_21 (team VARCHAR, year INTEGER) [/INST] ### Response: SELECT team FROM table_name_21 WHERE year > 1997 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class has laps under 77? ### Context: CREATE TABLE table_name_85 (class VARCHAR, laps INTEGER) [/INST] ### Response: SELECT class FROM table_name_85 WHERE laps < 77 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who boarded first class? ### Context: CREATE TABLE table_name_48 (boarded VARCHAR, class VARCHAR) [/INST] ### Response: SELECT boarded FROM table_name_48 WHERE class = "first" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury? ### Context: CREATE TABLE table_name_80 (attendance INTEGER, away_fans VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_80 WHERE away_fans < 151 AND opponent = "bury" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest number of points with a Year of 1978, and a Chassis of ensign n177? ### Context: CREATE TABLE table_name_15 (points INTEGER, year VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_15 WHERE year = 1978 AND chassis = "ensign n177" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest number of points with an Entrant of warsteiner brewery? ### Context: CREATE TABLE table_name_8 (points INTEGER, entrant VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_8 WHERE entrant = "warsteiner brewery" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the D 43 when D 46 is R 6? ### Context: CREATE TABLE table_name_68 (d_43 VARCHAR, d_46 VARCHAR) [/INST] ### Response: SELECT d_43 FROM table_name_68 WHERE d_46 = "r 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 D44 when D43 is R 14? ### Context: CREATE TABLE table_name_64 (d_44 VARCHAR, d_43 VARCHAR) [/INST] ### Response: SELECT d_44 FROM table_name_64 WHERE d_43 = "r 14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the D48 when D 43 is plurality ↑?? ### Context: CREATE TABLE table_name_27 (d_48 VARCHAR, d_43 VARCHAR) [/INST] ### Response: SELECT d_48 FROM table_name_27 WHERE d_43 = "plurality ↑" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 D44 when D41 is D 16? ### Context: CREATE TABLE table_name_70 (d_44 VARCHAR, d_41 VARCHAR) [/INST] ### Response: SELECT d_44 FROM table_name_70 WHERE d_41 = "d 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: What gender is the team that has a decile of 5 and in the Dalefield area? ### Context: CREATE TABLE table_name_95 (gender VARCHAR, decile VARCHAR, area VARCHAR) [/INST] ### Response: SELECT gender FROM table_name_95 WHERE decile = 5 AND area = "dalefield" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What school in Dalefield has a roll less than 81? ### Context: CREATE TABLE table_name_61 (name VARCHAR, roll VARCHAR, area VARCHAR) [/INST] ### Response: SELECT name FROM table_name_61 WHERE roll < 81 AND area = "dalefield" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height (m) on the island of Burray? ### Context: CREATE TABLE table_name_22 (height__m_ INTEGER, island VARCHAR) [/INST] ### Response: SELECT MIN(height__m_) FROM table_name_22 WHERE island = "burray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What group on the island of Faray has a Height (m) of 32 and a Population of 0? ### Context: CREATE TABLE table_name_99 (group VARCHAR, island VARCHAR, height__m_ VARCHAR, population VARCHAR) [/INST] ### Response: SELECT group FROM table_name_99 WHERE height__m_ = 32 AND population = "0" AND island = "faray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What group has a Population of see hoy? ### Context: CREATE TABLE table_name_23 (group VARCHAR, population VARCHAR) [/INST] ### Response: SELECT group FROM table_name_23 WHERE population = "see hoy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What group on the island of Muckle Green Holm has a population of 0? ### Context: CREATE TABLE table_name_49 (group VARCHAR, population VARCHAR, island VARCHAR) [/INST] ### Response: SELECT group FROM table_name_49 WHERE population = "0" AND island = "muckle green holm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7? ### Context: CREATE TABLE table_name_31 (area___ha__ VARCHAR, height__m_ VARCHAR, island VARCHAR) [/INST] ### Response: SELECT area___ha__ FROM table_name_31 WHERE height__m_ > 7 AND island = "linga holm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17? ### Context: CREATE TABLE table_name_30 (population VARCHAR, height__m_ VARCHAR, area___ha__ VARCHAR) [/INST] ### Response: SELECT population FROM table_name_30 WHERE height__m_ = 15 AND area___ha__ = "00017 17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 roll number of the school in Aramoho with a decile of 1? ### Context: CREATE TABLE table_name_86 (roll VARCHAR, area VARCHAR, decile VARCHAR) [/INST] ### Response: SELECT roll FROM table_name_86 WHERE area = "aramoho" AND decile = 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 area of Mangamahu primary school? ### Context: CREATE TABLE table_name_54 (area VARCHAR, name VARCHAR) [/INST] ### Response: SELECT area FROM table_name_54 WHERE name = "mangamahu primary school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area of the coed school with a state authority and a roll number of 122? ### Context: CREATE TABLE table_name_17 (area VARCHAR, roll VARCHAR, authority VARCHAR, gender VARCHAR) [/INST] ### Response: SELECT area FROM table_name_17 WHERE authority = "state" AND gender = "coed" AND roll = 122 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is older than 2007? ### Context: CREATE TABLE table_name_18 (result___category VARCHAR, year INTEGER) [/INST] ### Response: SELECT result___category FROM table_name_18 WHERE year < 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was the Album/Song Speaking louder than before? ### Context: CREATE TABLE table_name_39 (year INTEGER, album___song VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_39 WHERE album___song = "speaking louder than before" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the most recent year with the Album/Song "the best worst-case scenario"? ### Context: CREATE TABLE table_name_19 (year INTEGER, album___song VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_19 WHERE album___song = "the best worst-case scenario" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final in which Melanie South played with partner Remi Tezuka on a clay surface? ### Context: CREATE TABLE table_name_23 (score VARCHAR, surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_23 WHERE surface = "clay" AND partner = "remi tezuka" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament? ### Context: CREATE TABLE table_name_59 (score VARCHAR, partner VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT score FROM table_name_59 WHERE partner = "ksenia lykina" AND tournament = "kurume" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final in which Melanie South played with partner Katie O'Brien? ### Context: CREATE TABLE table_name_27 (score VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_27 WHERE partner = "katie o'brien" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome of the tournament in Edinburgh? ### Context: CREATE TABLE table_name_82 (outcome VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_82 WHERE tournament = "edinburgh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 decile with an Authority of state, and a Name of newfield park school? ### Context: CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(decile) FROM table_name_66 WHERE authority = "state" AND name = "newfield park school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown? ### Context: CREATE TABLE table_name_47 (decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR) [/INST] ### Response: SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = "coed" AND authority = "state integrated" AND area = "georgetown" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2? ### Context: CREATE TABLE table_name_97 (roll INTEGER, decile VARCHAR, authority VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MIN(roll) FROM table_name_97 WHERE authority = "state" AND name = "newfield park school" AND decile < 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 name has an Area of makarewa? ### Context: CREATE TABLE table_name_65 (name VARCHAR, area VARCHAR) [/INST] ### Response: SELECT name FROM table_name_65 WHERE area = "makarewa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131? ### Context: CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR) [/INST] ### Response: SELECT name FROM table_name_35 WHERE gender = "coed" AND decile > 5 AND roll = 131 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Add up all the Ends columns that have goals smaller than 0. ### Context: CREATE TABLE table_name_65 (ends INTEGER, goals INTEGER) [/INST] ### Response: SELECT SUM(ends) FROM table_name_65 WHERE goals < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the competition in 2003? ### Context: CREATE TABLE table_name_43 (competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_43 WHERE year = 2003 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the competition in 2003? ### Context: CREATE TABLE table_name_76 (competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_76 WHERE year = 2003 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which position has 50+12 points and fewer than 10 draws? ### Context: CREATE TABLE table_name_92 (position INTEGER, points VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT MAX(position) FROM table_name_92 WHERE points = "50+12" AND draws < 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: How many positions have goals of fewer than 40 and more than 38 played? ### Context: CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR) [/INST] ### Response: SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played? ### Context: CREATE TABLE table_name_26 (losses INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) [/INST] ### Response: SELECT SUM(losses) FROM table_name_26 WHERE goal_difference < -2 AND club = "cd sabadell" AND played > 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points? ### Context: CREATE TABLE table_name_64 (played INTEGER, points VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = "30-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 total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126? ### Context: CREATE TABLE table_name_86 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR) [/INST] ### Response: SELECT COUNT(loss) FROM table_name_86 WHERE avg_g < -3.3 AND gain > 126 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had? ### Context: CREATE TABLE table_name_41 (loss VARCHAR, long VARCHAR, name VARCHAR, gain VARCHAR, avg_g VARCHAR) [/INST] ### Response: SELECT COUNT(loss) FROM table_name_41 WHERE gain > 27 AND avg_g < 55.9 AND name = "jackson, t." AND long < 34 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had? ### Context: CREATE TABLE table_name_45 (long VARCHAR, name VARCHAR, avg_g VARCHAR, loss VARCHAR, gain VARCHAR) [/INST] ### Response: SELECT COUNT(long) FROM table_name_45 WHERE loss = 0 AND gain < 17 AND avg_g > 0 AND name = "dubose, e." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the record 20–16? ### Context: CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_38 WHERE record = "20–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: What was the attendance in the gave versus the Brewers with a score of 9–6? ### Context: CREATE TABLE table_name_43 (attendance VARCHAR, opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_43 WHERE opponent = "brewers" AND score = "9–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 attendance on May 26? ### Context: CREATE TABLE table_name_90 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_90 WHERE date = "may 26" </s>