text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country has a rand of 2 and a silver less than 6? ### Context: CREATE TABLE table_name_42 (total INTEGER, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_42 WHERE rank = "2" AND silver < 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 lowest total of medals that has a gold of 3 and a silver less than 3? ### Context: CREATE TABLE table_name_46 (total INTEGER, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_46 WHERE gold = 3 AND silver < 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team score for the game played at MCG? ### Context: CREATE TABLE table_name_61 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_61 WHERE venue = "mcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For the game played at Windy Hill, who was the away team? ### Context: CREATE TABLE table_name_4 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_4 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: For the game where the away team was North Melbourne, what was the venue? ### Context: CREATE TABLE table_name_7 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_7 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 is the Weight for the Name Billy Miller Category:Articles with hcards? ### Context: CREATE TABLE table_name_45 (weight VARCHAR, name VARCHAR) [/INST] ### Response: SELECT weight FROM table_name_45 WHERE name = "billy miller category:articles with hcards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 club for the Billy Miller Category:Articles with hcards (Name)? ### Context: CREATE TABLE table_name_55 (name VARCHAR) [/INST] ### Response: SELECT 2012 AS _club FROM table_name_55 WHERE name = "billy miller category:articles with hcards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 medals did China receive? ### Context: CREATE TABLE table_name_87 (total INTEGER, nation VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_87 WHERE nation = "china" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 # of candidates that have a popular vote of 41.37%? ### Context: CREATE TABLE table_name_36 (_number_of_candidates INTEGER, _percentage_of_popular_vote VARCHAR) [/INST] ### Response: SELECT AVG(_number_of_candidates) FROM table_name_36 WHERE _percentage_of_popular_vote = "41.37%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 # of candidates of liberal majority with 51 wins and larger number of 2008 in general elections? ### Context: CREATE TABLE table_name_81 (_number_of_candidates INTEGER, general_election VARCHAR, result VARCHAR, _number_of_seats_won VARCHAR) [/INST] ### Response: SELECT AVG(_number_of_candidates) FROM table_name_81 WHERE result = "liberal majority" AND _number_of_seats_won = 51 AND general_election > 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many general elections that have won smaller than 23 with candidates larger than 108? ### Context: CREATE TABLE table_name_95 (general_election VARCHAR, _number_of_seats_won VARCHAR, _number_of_candidates VARCHAR) [/INST] ### Response: SELECT COUNT(general_election) FROM table_name_95 WHERE _number_of_seats_won < 23 AND _number_of_candidates > 108 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did melbourne play at as the away team? ### Context: CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_52 WHERE away_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the essendon score when they were at home? ### Context: CREATE TABLE table_name_25 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_25 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 venue did melbourne play at as the away team? ### Context: CREATE TABLE table_name_60 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_60 WHERE away_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Years have a Goal of 82? ### Context: CREATE TABLE table_name_24 (years VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT years FROM table_name_24 WHERE goals = 82 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of overall values with a safety position in a round greater than 1? ### Context: CREATE TABLE table_name_26 (overall VARCHAR, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(overall) FROM table_name_26 WHERE position = "safety" AND round > 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 average overall value for a round less than 4 associated with the College of Georgia? ### Context: CREATE TABLE table_name_32 (overall INTEGER, round VARCHAR, college VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_32 WHERE round < 4 AND college = "georgia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average attendance in weeks after 16? ### Context: CREATE TABLE table_name_58 (attendance INTEGER, week INTEGER) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_58 WHERE week > 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 is the highest number killed in incident #14? ### Context: CREATE TABLE table_name_48 (killed INTEGER, incident_no VARCHAR) [/INST] ### Response: SELECT MAX(killed) FROM table_name_48 WHERE incident_no = "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 was the largest crowd at Arden Street Oval? ### Context: CREATE TABLE table_name_85 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_85 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 home teams score at Arden Street Oval? ### Context: CREATE TABLE table_name_50 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_50 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 gold medal total for a total of 44 medals? ### Context: CREATE TABLE table_name_13 (gold INTEGER, total INTEGER) [/INST] ### Response: SELECT MIN(gold) FROM table_name_13 WHERE total > 44 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 silver medals were won with a total medal of 3 and a rank above 9? ### Context: CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(silver) FROM table_name_49 WHERE total < 3 AND rank > 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: How many weeks had an attendance of over 68,000? ### Context: CREATE TABLE table_name_74 (week VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT COUNT(week) FROM table_name_74 WHERE attendance > 68 OFFSET 000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What engine was used by the team the finished 2nd? ### Context: CREATE TABLE table_name_82 (engine VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_82 WHERE finish = "2nd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What chassis was used with the Chevrolet engine in 1991? ### Context: CREATE TABLE table_name_70 (chassis VARCHAR, engine VARCHAR, year VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_70 WHERE engine = "chevrolet" AND year = 1991 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the most recent year when a g-force chassis started in 1st? ### Context: CREATE TABLE table_name_35 (year INTEGER, start VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_35 WHERE start = "1st" AND chassis = "g-force" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 starting position in the year before 1986? ### Context: CREATE TABLE table_name_33 (start VARCHAR, year INTEGER) [/INST] ### Response: SELECT start FROM table_name_33 WHERE year < 1986 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? ### Context: CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR) [/INST] ### Response: SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which year was the vessel Deva built as a Panamax DNV class ship? ### Context: CREATE TABLE table_name_54 (built INTEGER, vessel_name VARCHAR, class VARCHAR, type VARCHAR) [/INST] ### Response: SELECT SUM(built) FROM table_name_54 WHERE class = "dnv" AND type = "panamax" AND vessel_name = "deva" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class of vessel of the ship Hyundai Smart? ### Context: CREATE TABLE table_name_85 (class VARCHAR, vessel_name VARCHAR) [/INST] ### Response: SELECT class FROM table_name_85 WHERE vessel_name = "hyundai smart" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which class would the vessel Hyundai Tenacity be placed? ### Context: CREATE TABLE table_name_77 (class VARCHAR, vessel_name VARCHAR) [/INST] ### Response: SELECT class FROM table_name_77 WHERE vessel_name = "hyundai tenacity" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result for week 14? ### Context: CREATE TABLE table_name_29 (result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT result FROM table_name_29 WHERE week = 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 lowest rank(player) has a rebound average larger than 9, out of 920 rebounds, and who played more than 79 games? ### Context: CREATE TABLE table_name_10 (rank INTEGER, games VARCHAR, reb_avg VARCHAR, total_rebounds VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_10 WHERE reb_avg > 9 AND total_rebounds = 920 AND games > 79 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ranks have a rebound average smaller than 6.1? ### Context: CREATE TABLE table_name_27 (rank VARCHAR, reb_avg INTEGER) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_27 WHERE reb_avg < 6.1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player was drafted higher than 374 and went to the school Stephen F. Austin? ### Context: CREATE TABLE table_name_15 (player VARCHAR, overall VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_15 WHERE overall < 374 AND school_club_team = "stephen f. austin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round Trinity school was drafted with an overall higher than 21? ### Context: CREATE TABLE table_name_89 (round INTEGER, school_club_team VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_89 WHERE school_club_team = "trinity" AND overall < 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: Who got the time of 7:52.04? ### Context: CREATE TABLE table_name_41 (swimmer VARCHAR, time VARCHAR) [/INST] ### Response: SELECT swimmer FROM table_name_41 WHERE time = "7:52.04" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which of the opponents has bye as their box score? ### Context: CREATE TABLE table_name_32 (opponent VARCHAR, box_scores VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_32 WHERE box_scores = "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: How many people attended the game against the pittsburgh steelers? ### Context: CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_21 WHERE opponent = "pittsburgh steelers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result of the game on September 25 with a box score of box? ### Context: CREATE TABLE table_name_51 (result VARCHAR, box_scores VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_51 WHERE box_scores = "box" AND date = "september 25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game later than week 13 and 41,862 people attended? ### Context: CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_62 WHERE week > 13 AND attendance = "41,862" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 caps for players with less than 9 goals ranked below 8? ### Context: CREATE TABLE table_name_83 (caps INTEGER, goals VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 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 were the years of senior status for active service in 1972–1995? ### Context: CREATE TABLE table_name_53 (senior_status VARCHAR, active_service VARCHAR) [/INST] ### Response: SELECT senior_status FROM table_name_53 WHERE active_service = "1972–1995" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birth and death years when active service was 1972–1995? ### Context: CREATE TABLE table_name_54 (born_died VARCHAR, active_service VARCHAR) [/INST] ### Response: SELECT born_died FROM table_name_54 WHERE active_service = "1972–1995" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 active services years ended in death and had senior status in 1972–2005? ### Context: CREATE TABLE table_name_72 (active_service VARCHAR, reason_for_termination VARCHAR, senior_status VARCHAR) [/INST] ### Response: SELECT active_service FROM table_name_72 WHERE reason_for_termination = "death" AND senior_status = "1972–2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which date featured the Boston Patriots as the opponent? ### Context: CREATE TABLE table_name_96 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_96 WHERE opponent = "boston patriots" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent during week 8? ### Context: CREATE TABLE table_name_67 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_67 WHERE week = 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 opponent had an attendance of 12,508 during weeks 1 through 8? ### Context: CREATE TABLE table_name_76 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_76 WHERE week < 8 AND attendance = "12,508" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What week had an attendance of 14,381? ### Context: CREATE TABLE table_name_25 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_25 WHERE attendance = "14,381" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which round was Dave Yovanovits picked? ### Context: CREATE TABLE table_name_43 (round INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_43 WHERE player = "dave yovanovits" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the player picked for the linebacker position play in college? ### Context: CREATE TABLE table_name_6 (college VARCHAR, position VARCHAR) [/INST] ### Response: SELECT college FROM table_name_6 WHERE position = "linebacker" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Browns play week 12? ### Context: CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_91 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 attendance in the game against the Detroit Lions? ### Context: CREATE TABLE table_name_15 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_15 WHERE opponent = "detroit lions" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who played as the away team when they played at Brunswick Street Oval? ### Context: CREATE TABLE table_name_73 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_73 WHERE venue = "brunswick 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 was the home team when the VFL played Arden Street Oval? ### Context: CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_6 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 is the away side at junction oval? ### Context: CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_1 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: Who was the winning driver of the Kraco Car Stereo 150? ### Context: CREATE TABLE table_name_78 (winning_driver VARCHAR, name VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_78 WHERE name = "kraco car stereo 150" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fastest lap during Stoh's 200 in 1982? ### Context: CREATE TABLE table_name_74 (fastest_lap VARCHAR, name VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_74 WHERE name = "stoh's 200" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the player who debuted later than 1972 against Limerick? ### Context: CREATE TABLE table_name_32 (date VARCHAR, début VARCHAR, opposition VARCHAR) [/INST] ### Response: SELECT date FROM table_name_32 WHERE début > 1972 AND opposition = "limerick" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 debuted in 1973 against Limerick and played his last game at the Munster semi-final? ### Context: CREATE TABLE table_name_18 (player VARCHAR, début VARCHAR, opposition VARCHAR, last_game VARCHAR) [/INST] ### Response: SELECT player FROM table_name_18 WHERE opposition = "limerick" AND last_game = "munster semi-final" AND début = 1973 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Result of l 23–17 in a week later than 7? ### Context: CREATE TABLE table_name_78 (date VARCHAR, week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_78 WHERE week > 7 AND result = "l 23–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: How many people attended the game against the cincinnati bengals? ### Context: CREATE TABLE table_name_15 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_15 WHERE opponent = "cincinnati bengals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game played at 3:31? ### Context: CREATE TABLE table_name_76 (attendance VARCHAR, time VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_76 WHERE time = "3:31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the time for game 4? ### Context: CREATE TABLE table_name_56 (time VARCHAR, game VARCHAR) [/INST] ### Response: SELECT time FROM table_name_56 WHERE game = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the away team's score at western oval? ### Context: CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_14 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: Before 2007, how many wins were there when the point total was 48? ### Context: CREATE TABLE table_name_10 (wins INTEGER, points VARCHAR, year VARCHAR) [/INST] ### Response: SELECT SUM(wins) FROM table_name_10 WHERE points = "48" AND 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: In 2011, how many wins did Michael Meadows have? ### Context: CREATE TABLE table_name_2 (wins INTEGER, year VARCHAR, drivers VARCHAR) [/INST] ### Response: SELECT SUM(wins) FROM table_name_2 WHERE year = 2011 AND drivers = "michael meadows" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 service of the network Set Max from India? ### Context: CREATE TABLE table_name_22 (service VARCHAR, origin_of_programming VARCHAR, network VARCHAR) [/INST] ### Response: SELECT service FROM table_name_22 WHERE origin_of_programming = "india" AND network = "set max" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 network's genre is music? ### Context: CREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR) [/INST] ### Response: SELECT network FROM table_name_8 WHERE genre = "music" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What genre is Star Plus from India? ### Context: CREATE TABLE table_name_50 (genre VARCHAR, origin_of_programming VARCHAR, network VARCHAR) [/INST] ### Response: SELECT genre FROM table_name_50 WHERE origin_of_programming = "india" AND network = "star plus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does the network Star Cricket originate? ### Context: CREATE TABLE table_name_25 (origin_of_programming VARCHAR, genre VARCHAR, network VARCHAR) [/INST] ### Response: SELECT origin_of_programming FROM table_name_25 WHERE genre = "cricket" AND network = "star cricket" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What genre is Set Max's Hindi programming? ### Context: CREATE TABLE table_name_85 (genre VARCHAR, language VARCHAR, network VARCHAR) [/INST] ### Response: SELECT genre FROM table_name_85 WHERE language = "hindi" AND network = "set max" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fitzroy's score as the home team? ### Context: CREATE TABLE table_name_49 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_49 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 is richmond's score as the home team? ### Context: CREATE TABLE table_name_93 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_93 WHERE home_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the color commentator for Eric Dickerson and Melissa Stark in 2001? ### Context: CREATE TABLE table_name_42 (color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT color_commentator_s_ FROM table_name_42 WHERE sideline_reporter_s_ = "eric dickerson and melissa stark" AND year = 2001 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What network hosted Al Michaels, Dan Fouts and Dennis Miller in 2002? ### Context: CREATE TABLE table_name_71 (network VARCHAR, year VARCHAR, play_by_play VARCHAR, color_commentator_s_ VARCHAR) [/INST] ### Response: SELECT network FROM table_name_71 WHERE play_by_play = "al michaels" AND color_commentator_s_ = "dan fouts and dennis miller" AND year < 2002 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2004 color commentator? ### Context: CREATE TABLE table_name_82 (color_commentator_s_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT color_commentator_s_ FROM table_name_82 WHERE year = 2004 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the color commentator for Andrea Kremer and Tiki Barber? ### Context: CREATE TABLE table_name_22 (color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR) [/INST] ### Response: SELECT color_commentator_s_ FROM table_name_22 WHERE sideline_reporter_s_ = "andrea kremer and tiki barber" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Al Michaels' color commentator in 2003? ### Context: CREATE TABLE table_name_69 (color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR) [/INST] ### Response: SELECT color_commentator_s_ FROM table_name_69 WHERE play_by_play = "al michaels" AND 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: Who was the home team when Geelong was the away team? ### Context: CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_76 WHERE away_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 is the highest overall pick from the College of Southern Mississippi that was selected before round 6? ### Context: CREATE TABLE table_name_8 (overall INTEGER, college VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MAX(overall) FROM table_name_8 WHERE college = "southern mississippi" AND round < 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: Who, was the coach with an actual adjusted record of 0–19? ### Context: CREATE TABLE table_name_2 (coach VARCHAR, actual_adjusted_record VARCHAR) [/INST] ### Response: SELECT coach FROM table_name_2 WHERE actual_adjusted_record = "0–19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Season for coach Fisher, and an actual adjusted record of 0–11? ### Context: CREATE TABLE table_name_45 (season INTEGER, coach VARCHAR, actual_adjusted_record VARCHAR) [/INST] ### Response: SELECT AVG(season) FROM table_name_45 WHERE coach = "fisher" AND actual_adjusted_record = "0–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 regular season vacated for the Record as played of 12–19? ### Context: CREATE TABLE table_name_14 (regular_season_vacated VARCHAR, record_as_played VARCHAR) [/INST] ### Response: SELECT regular_season_vacated FROM table_name_14 WHERE record_as_played = "12–19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 seasons did coach steve fisher have? ### Context: CREATE TABLE table_name_5 (season VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_name_5 WHERE coach = "steve fisher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shown for Record as played with a Regular season Vacated of 24–0 later than 1997? ### Context: CREATE TABLE table_name_19 (record_as_played VARCHAR, regular_season_vacated VARCHAR, season VARCHAR) [/INST] ### Response: SELECT record_as_played FROM table_name_19 WHERE regular_season_vacated = "24–0" AND season > 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: How many seasons have an Actual adjusted record of 0–19? ### Context: CREATE TABLE table_name_13 (season VARCHAR, actual_adjusted_record VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_name_13 WHERE actual_adjusted_record = "0–19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold(s) for teams with a total of 14, and over 6 bronze medals? ### Context: CREATE TABLE table_name_26 (gold INTEGER, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_26 WHERE total = 14 AND bronze > 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 highest number of gold medals for the team ranked 7 with less than 3 bronze? ### Context: CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_19 WHERE rank = "7" AND bronze < 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze? ### Context: CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_51 WHERE silver < 2 AND nation = "uzbekistan" AND bronze < 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 was the away team for the match at Punt Road Oval? ### Context: CREATE TABLE table_name_39 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_39 WHERE venue = "punt road 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 smallest crowd size for the match played at Junction Oval? ### Context: CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_84 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 home team that played Collingwood? ### Context: CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_73 WHERE away_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which province has Michael Kirby? ### Context: CREATE TABLE table_name_39 (province VARCHAR, name VARCHAR) [/INST] ### Response: SELECT province FROM table_name_39 WHERE name = "michael kirby" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Madeleine Plamondon a member of? ### Context: CREATE TABLE table_name_94 (party VARCHAR, name VARCHAR) [/INST] ### Response: SELECT party FROM table_name_94 WHERE name = "madeleine plamondon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 details for Marisa Ferretti Barth? ### Context: CREATE TABLE table_name_55 (details VARCHAR, name VARCHAR) [/INST] ### Response: SELECT details FROM table_name_55 WHERE name = "marisa ferretti barth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a member on August 26, 2008? ### Context: CREATE TABLE table_name_95 (party VARCHAR, date VARCHAR) [/INST] ### Response: SELECT party FROM table_name_95 WHERE date = "august 26, 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the details for John Buchanan? ### Context: CREATE TABLE table_name_71 (details VARCHAR, name VARCHAR) [/INST] ### Response: SELECT details FROM table_name_71 WHERE name = "john buchanan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 province had a liberal party member on December 31, 2006? ### Context: CREATE TABLE table_name_38 (province VARCHAR, party VARCHAR, date VARCHAR) [/INST] ### Response: SELECT province FROM table_name_38 WHERE party = "liberal" AND date = "december 31, 2006" </s>