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 the home team when Hawthorn was the away team? ### Context: CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_61 WHERE away_team = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fitzroy's score when they were the away team? ### Context: CREATE TABLE table_name_18 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_18 WHERE away_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was #7 BMW's speed? ### Context: CREATE TABLE table_name_27 (speed VARCHAR, team VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT speed FROM table_name_27 WHERE team = "bmw" AND rank = 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 was the crowd size in the match South Melbourne played at home? ### Context: CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_28 WHERE home_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the away team's score at Western Oval? ### Context: CREATE TABLE table_name_75 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_75 WHERE venue = "western oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the crowd size when Essendon was the away team? ### Context: CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_79 WHERE away_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the time of 16:24.12 achieved? ### Context: CREATE TABLE table_name_36 (date VARCHAR, time VARCHAR) [/INST] ### Response: SELECT date FROM table_name_36 WHERE time = "16:24.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 year did the Capital City Giants have a game with the final score of 8-0? ### Context: CREATE TABLE table_name_54 (year INTEGER, team VARCHAR, score VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_54 WHERE team = "capital city giants" AND score = "8-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 team lost a game by a score of 6-0? ### Context: CREATE TABLE table_name_37 (runner_up VARCHAR, score VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_37 WHERE score = "6-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 teams played in Capital Bowl IV? ### Context: CREATE TABLE table_name_31 (team VARCHAR, game VARCHAR) [/INST] ### Response: SELECT team FROM table_name_31 WHERE game = "capital bowl iv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 defeated the Capital City Giants? ### Context: CREATE TABLE table_name_11 (team VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT team FROM table_name_11 WHERE runner_up = "capital city giants" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tenure rank of the person with an uninterrupted time of 49 years, 349 days? ### Context: CREATE TABLE table_name_6 (total_tenure_rank VARCHAR, uninterrupted_time VARCHAR) [/INST] ### Response: SELECT total_tenure_rank FROM table_name_6 WHERE uninterrupted_time = "49 years, 349 days" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tenure time of Warren Magnuson, who had an uninterrupted rank larger than 4 and a total tenure rank larger than 9? ### Context: CREATE TABLE table_name_31 (total_tenure_time VARCHAR, name VARCHAR, uninterrupted_rank VARCHAR, total_tenure_rank VARCHAR) [/INST] ### Response: SELECT total_tenure_time FROM table_name_31 WHERE uninterrupted_rank > 4 AND total_tenure_rank > 9 AND name = "warren magnuson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What round was the overall 63 drafted? ### Context: CREATE TABLE table_name_94 (round VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_94 WHERE overall = 63 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Swedish name for South Karelia? ### Context: CREATE TABLE table_name_77 (in_swedish VARCHAR, in_english VARCHAR) [/INST] ### Response: SELECT in_swedish FROM table_name_77 WHERE in_english = "south karelia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What home team plays at Arden Street Oval? ### Context: CREATE TABLE table_name_72 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_72 WHERE venue = "arden street oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has a Jump 2 of 7.06, and what is this person's Jump 3? ### Context: CREATE TABLE table_name_80 (jump_3 VARCHAR, jump_2 VARCHAR) [/INST] ### Response: SELECT jump_3 FROM table_name_80 WHERE jump_2 = "7.06" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump? ### Context: CREATE TABLE table_name_48 (best_jump VARCHAR, jump_1 VARCHAR, jump_2 VARCHAR) [/INST] ### Response: SELECT best_jump FROM table_name_48 WHERE jump_1 = "x" AND jump_2 = "7.28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Jump 2 of the person that has a Jump 3 of 7.77? ### Context: CREATE TABLE table_name_62 (jump_2 VARCHAR, jump_3 VARCHAR) [/INST] ### Response: SELECT jump_2 FROM table_name_62 WHERE jump_3 = "7.77" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Jump 2 of the person that has a Jump 1 of 7.14 ### Context: CREATE TABLE table_name_58 (jump_2 VARCHAR, jump_1 VARCHAR) [/INST] ### Response: SELECT jump_2 FROM table_name_58 WHERE jump_1 = "7.14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player from Tucson, Arizona won the Championship? ### Context: CREATE TABLE table_name_58 (champion VARCHAR, city VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_58 WHERE city = "tucson, arizona" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player from Inglewood, California? ### Context: CREATE TABLE table_name_14 (score VARCHAR, city VARCHAR) [/INST] ### Response: SELECT score FROM table_name_14 WHERE city = "inglewood, 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: What tour was cancelled? ### Context: CREATE TABLE table_name_14 (name VARCHAR, date VARCHAR) [/INST] ### Response: SELECT name FROM table_name_14 WHERE date = "cancelled" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Fedex tour of Calabarzon? ### Context: CREATE TABLE table_name_76 (winner VARCHAR, name VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_76 WHERE name = "fedex tour of calabarzon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has the time of 55:29:20? ### Context: CREATE TABLE table_name_16 (year VARCHAR, time VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_16 WHERE time = "55:29:20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when Mark parterned with lorenzo manta? ### Context: CREATE TABLE table_name_19 (score VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_19 WHERE partner = "lorenzo manta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 his partner when he played on carpet? ### Context: CREATE TABLE table_name_22 (partner VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_22 WHERE surface = "carpet" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 he play with peter nyborg? ### Context: CREATE TABLE table_name_76 (date VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_76 WHERE partner = "peter nyborg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day did he play on hard with tom mercer? ### Context: CREATE TABLE table_name_69 (date VARCHAR, surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_69 WHERE surface = "hard" AND partner = "tom mercer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 2's record? ### Context: CREATE TABLE table_name_92 (record VARCHAR, week VARCHAR) [/INST] ### Response: SELECT record FROM table_name_92 WHERE week = "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 was week 12's record? ### Context: CREATE TABLE table_name_57 (record VARCHAR, week VARCHAR) [/INST] ### Response: SELECT record FROM table_name_57 WHERE week = "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 was the Bye week attendance? ### Context: CREATE TABLE table_name_25 (attendance VARCHAR, record VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_25 WHERE record = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the kickoff time of the SB XXXVI? ### Context: CREATE TABLE table_name_93 (kickoff VARCHAR, week VARCHAR) [/INST] ### Response: SELECT kickoff FROM table_name_93 WHERE week = "sb xxxvi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team score for the game played at Princes Park? ### Context: CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_3 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event had a time of 6:37.73? ### Context: CREATE TABLE table_name_42 (event VARCHAR, time VARCHAR) [/INST] ### Response: SELECT event FROM table_name_42 WHERE time = "6:37.73" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time for the 50m breaststroke? ### Context: CREATE TABLE table_name_34 (time VARCHAR, event VARCHAR) [/INST] ### Response: SELECT time FROM table_name_34 WHERE event = "50m breaststroke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What age group has a time of 6:37.73 at the 200m breaststroke? ### Context: CREATE TABLE table_name_75 (age_group VARCHAR, event VARCHAR, time VARCHAR) [/INST] ### Response: SELECT age_group FROM table_name_75 WHERE event = "200m breaststroke" AND time = "6:37.73" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date did the 90-94 year old have a tie of 1:25.91 at the LC pool? ### Context: CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR, age_group VARCHAR, pool VARCHAR) [/INST] ### Response: SELECT date FROM table_name_25 WHERE age_group = "90-94" AND pool = "lc" AND time = "1:25.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: How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4? ### Context: CREATE TABLE table_name_48 (total_points VARCHAR, rank VARCHAR, ppg_avg VARCHAR) [/INST] ### Response: SELECT COUNT(total_points) FROM table_name_48 WHERE rank > 9 AND ppg_avg > 13.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: How many players played over 125 games and were named david gonzalvez? ### Context: CREATE TABLE table_name_16 (rank VARCHAR, games VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_16 WHERE games > 125 AND player = "david gonzalvez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 host university is based in Missoula? ### Context: CREATE TABLE table_name_40 (host VARCHAR, city VARCHAR) [/INST] ### Response: SELECT host FROM table_name_40 WHERE city = "missoula" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What state is the city of Ruston in? ### Context: CREATE TABLE table_name_13 (state VARCHAR, city VARCHAR) [/INST] ### Response: SELECT state FROM table_name_13 WHERE city = "ruston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mideast regional state contains the city of Seattle? ### Context: CREATE TABLE table_name_53 (state VARCHAR, region VARCHAR, city VARCHAR) [/INST] ### Response: SELECT state FROM table_name_53 WHERE region = "mideast" AND city = "seattle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which region does Old Dominion University represent? ### Context: CREATE TABLE table_name_33 (region VARCHAR, host VARCHAR) [/INST] ### Response: SELECT region FROM table_name_33 WHERE host = "old dominion university" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which state is University of Tennessee based in? ### Context: CREATE TABLE table_name_27 (state VARCHAR, host VARCHAR) [/INST] ### Response: SELECT state FROM table_name_27 WHERE host = "university of 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: What was the grid for Bruno Junqueira for Dale Coyne Racing? ### Context: CREATE TABLE table_name_45 (grid VARCHAR, team VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_45 WHERE team = "dale coyne racing" AND driver = "bruno junqueira" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the highest points for less than 78 laps and on grid 5? ### Context: CREATE TABLE table_name_86 (points INTEGER, grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_86 WHERE grid = 5 AND laps < 78 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in the crowd at the Junction Oval venue? ### Context: CREATE TABLE table_name_15 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_15 WHERE venue = "junction oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the away team score in the game at Arden Street Oval? ### Context: CREATE TABLE table_name_31 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_31 WHERE venue = "arden street oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the Arden Street Oval game? ### Context: CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_59 WHERE venue = "arden street oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What venue saw a crowd larger than 29,840? ### Context: CREATE TABLE table_name_13 (venue VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT venue FROM table_name_13 WHERE crowd > 29 OFFSET 840 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does week 11 start? ### Context: CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_25 WHERE week = "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 week starts on December 28, 1997? ### Context: CREATE TABLE table_name_1 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_1 WHERE date = "december 28, 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: When does week 1 start? ### Context: CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_54 WHERE week = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who one in the Tampa Bay Buccaneers? ### Context: CREATE TABLE table_name_59 (result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_59 WHERE opponent = "tampa bay buccaneers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week starts on November 23, 1997? ### Context: CREATE TABLE table_name_55 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_55 WHERE date = "november 23, 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: Who is the away team when the home team was Fitzroy? ### Context: CREATE TABLE table_name_55 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_55 WHERE home_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Melbourne's score when they were the home team? ### Context: CREATE TABLE table_name_37 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_37 WHERE home_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game where Collingwood was the home team? ### Context: CREATE TABLE table_name_31 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_31 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who watches North Melbourne when they are away? ### Context: CREATE TABLE table_name_14 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_14 WHERE away_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Away team is visiting Carlton? ### Context: CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_27 WHERE home_team = "carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team has Windy Hill as their home venue ### Context: CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_47 WHERE venue = "windy hill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 richmond played away, what was the largest number of people who watched? ### Context: CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_8 WHERE away_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000? ### Context: CREATE TABLE table_name_10 (country VARCHAR, city VARCHAR, rank VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT country FROM table_name_10 WHERE rank > 68 AND capacity = "32,000" AND city = "santa fe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stadium with a rank lower than 31 located in the city of Belém ? ### Context: CREATE TABLE table_name_97 (capacity VARCHAR, rank VARCHAR, city VARCHAR) [/INST] ### Response: SELECT capacity FROM table_name_97 WHERE rank < 31 AND city = "belém" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week(s) with an attendance of 30,751? ### Context: CREATE TABLE table_name_77 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_77 WHERE attendance = 30 OFFSET 751 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the home team Essendon play? ### Context: CREATE TABLE table_name_50 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_50 WHERE home_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was South Melbourne's home team score? ### Context: CREATE TABLE table_name_90 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_90 WHERE home_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the venue of Glenferrie Oval? ### Context: CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_12 WHERE venue = "glenferrie oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score for the away team when they played collingwood? ### Context: CREATE TABLE table_name_57 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_57 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when essendon was the home team? ### Context: CREATE TABLE table_name_75 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_75 WHERE home_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game where Richmond was the away team? ### Context: CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_70 WHERE away_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team when Carlton was the away team? ### Context: CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_97 WHERE away_team = "carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which home team played against Hawthorn? ### Context: CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_49 WHERE away_team = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date did the Geelong team play on as a home team? ### Context: CREATE TABLE table_name_12 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_12 WHERE home_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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/club team did the player who was drafted after round 13 with an overall rank of 384 play for? ### Context: CREATE TABLE table_name_38 (school_club_team VARCHAR, round VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_38 WHERE round > 13 AND overall = 384 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall rank for a center drafted before round 10? ### Context: CREATE TABLE table_name_22 (overall INTEGER, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MAX(overall) FROM table_name_22 WHERE position = "center" AND round < 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 position does the player from Texas State who was drafted before round 11 with an overall rank lower than 306 play? ### Context: CREATE TABLE table_name_70 (position VARCHAR, school_club_team VARCHAR, overall VARCHAR, round VARCHAR) [/INST] ### Response: SELECT position FROM table_name_70 WHERE overall < 306 AND round < 11 AND school_club_team = "texas state" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average overall rank of all players drafted from Duke after round 9? ### Context: CREATE TABLE table_name_49 (overall INTEGER, school_club_team VARCHAR, round VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_49 WHERE school_club_team = "duke" AND round > 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: What is the sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted? ### Context: CREATE TABLE table_name_95 (round VARCHAR, school_club_team VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_95 WHERE school_club_team = "tennessee state" AND overall < 261 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall rank of any Tennessee State player drafted before round 10? ### Context: CREATE TABLE table_name_48 (overall INTEGER, school_club_team VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MIN(overall) FROM table_name_48 WHERE school_club_team = "tennessee state" AND round < 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 rounds did Blane Smith play linebacker? ### Context: CREATE TABLE table_name_12 (round VARCHAR, position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_12 WHERE position = "linebacker" AND player = "blane smith" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times was Arizona the team and the round was bigger than 11? ### Context: CREATE TABLE table_name_86 (overall VARCHAR, school_club_team VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(overall) FROM table_name_86 WHERE school_club_team = "arizona" AND round > 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result of the game after week 5 against the st. louis rams? ### Context: CREATE TABLE table_name_52 (result VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_52 WHERE week > 5 AND opponent = "st. louis rams" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day did they play on week 4? ### Context: CREATE TABLE table_name_56 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_56 WHERE week = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest crowd at princes park? ### Context: CREATE TABLE table_name_88 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_88 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is north melbourne the away side? ### Context: CREATE TABLE table_name_51 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_51 WHERE away_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day is essendon the home team? ### Context: CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_69 WHERE home_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many games had an assist number greater than 54? ### Context: CREATE TABLE table_name_54 (games INTEGER, assist INTEGER) [/INST] ### Response: SELECT SUM(games) FROM table_name_54 WHERE assist > 54 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years did the USA have a rank lower than 6 and an assist number less than 26? ### Context: CREATE TABLE table_name_47 (years VARCHAR, nation VARCHAR, assist VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT years FROM table_name_47 WHERE assist < 26 AND rank < 6 AND nation = "usa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year or years did a team win 174 games and had an assist number less than 17? ### Context: CREATE TABLE table_name_40 (years VARCHAR, assist VARCHAR, games VARCHAR) [/INST] ### Response: SELECT years FROM table_name_40 WHERE assist < 17 AND games = 174 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party does Claudette Tardif belong to? ### Context: CREATE TABLE table_name_85 (party VARCHAR, name VARCHAR) [/INST] ### Response: SELECT party FROM table_name_85 WHERE name = "claudette tardif" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appointed the conservative from Ontario on June 18, 1993? ### Context: CREATE TABLE table_name_61 (appointed_by VARCHAR, date_appointed VARCHAR, party VARCHAR, province__division_ VARCHAR) [/INST] ### Response: SELECT appointed_by FROM table_name_61 WHERE party = "conservative" AND province__division_ = "ontario" AND date_appointed = "june 18, 1993" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition, federation, or league are the Tennessee Titans a member of? ### Context: CREATE TABLE table_name_7 (competition_ VARCHAR, _federation_ VARCHAR, _or_league VARCHAR, team VARCHAR) [/INST] ### Response: SELECT competition_, _federation_, _or_league FROM table_name_7 WHERE 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: What day is south melbourne at home? ### Context: CREATE TABLE table_name_71 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE home_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest crowd at corio oval? ### Context: CREATE TABLE table_name_20 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_20 WHERE venue = "corio oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What venue features carlton as an away team? ### Context: CREATE TABLE table_name_34 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_34 WHERE away_team = "carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day does the team play at western oval? ### Context: CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_59 WHERE venue = "western oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What venue features collingwood as the home side? ### Context: CREATE TABLE table_name_4 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_4 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the attendance of week 1 ### Context: CREATE TABLE table_name_92 (attendance VARCHAR, week VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_92 WHERE week = 1 </s>