text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the colonized year for the chartered year 1958? ### Context: CREATE TABLE table_name_83 (colonized VARCHAR, chartered VARCHAR) [/INST] ### Response: SELECT colonized FROM table_name_83 WHERE chartered = "1958" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shippensburg university Colonized? ### Context: CREATE TABLE table_name_56 (colonized VARCHAR, school VARCHAR) [/INST] ### Response: SELECT colonized FROM table_name_56 WHERE school = "shippensburg 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: What is the colonized date for the n/a charter range for appalachian state? ### Context: CREATE TABLE table_name_61 (colonized VARCHAR, charter_range VARCHAR, school VARCHAR) [/INST] ### Response: SELECT colonized FROM table_name_61 WHERE charter_range = "n/a" AND school = "appalachian 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 state has colony as a status and shippensburg university as the school? ### Context: CREATE TABLE table_name_71 (state VARCHAR, status VARCHAR, school VARCHAR) [/INST] ### Response: SELECT state FROM table_name_71 WHERE status = "colony" AND school = "shippensburg 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: What was the Home Team Score for the Windy Hill Venue? ### Context: CREATE TABLE table_name_63 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_63 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: What is the Essendon Home Team's venue? ### Context: CREATE TABLE table_name_61 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_61 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 large a crowd did the Fitzroy Away team draw? ### Context: CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_15 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 is Van Waiters position? ### Context: CREATE TABLE table_name_84 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_84 WHERE player = "van waiters" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team in tucson, USA? ### Context: CREATE TABLE table_name_95 (capacity VARCHAR, country VARCHAR, city VARCHAR) [/INST] ### Response: SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 podcast episode number 103? ### Context: CREATE TABLE table_name_21 (podcast_date VARCHAR, episode_number VARCHAR) [/INST] ### Response: SELECT podcast_date FROM table_name_21 WHERE episode_number = 103 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 podcast on November 21, 2004? ### Context: CREATE TABLE table_name_87 (title VARCHAR, podcast_date VARCHAR) [/INST] ### Response: SELECT title FROM table_name_87 WHERE podcast_date = "november 21, 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: What was the tonnage of the Great Britain ship Batna? ### Context: CREATE TABLE table_name_26 (tonnage VARCHAR, nationality VARCHAR, ship VARCHAR) [/INST] ### Response: SELECT tonnage FROM table_name_26 WHERE nationality = "great britain" AND ship = "batna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when there were 4 gold and 22 in total? ### Context: CREATE TABLE table_name_26 (silver INTEGER, gold VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MIN(silver) FROM table_name_26 WHERE gold = 4 AND total = 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What car number has 130 points? ### Context: CREATE TABLE table_name_58 (car__number VARCHAR, points VARCHAR) [/INST] ### Response: SELECT car__number FROM table_name_58 WHERE points = 130 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of laps for ryan newman with over 96 points, a cur number under 24, ### Context: CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, points VARCHAR, car__number VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_49 WHERE points > 96 AND car__number < 24 AND driver = "ryan newman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 car numbers with less than 126 points and 147 laps? ### Context: CREATE TABLE table_name_30 (car__number INTEGER, points VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT SUM(car__number) FROM table_name_30 WHERE points < 126 AND laps = 147 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18? ### Context: CREATE TABLE table_name_53 (laps VARCHAR, winnings VARCHAR, car__number VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_53 WHERE winnings = "$116,033" AND car__number < 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team's score at kardinia park? ### Context: CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_7 WHERE venue = "kardinia 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 is the venue when melbourne is the away team? ### Context: CREATE TABLE table_name_25 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_25 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 is the smallest crowd that Footscray had as the away team? ### Context: CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_49 WHERE away_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the Mackey Arena located? ### Context: CREATE TABLE table_name_87 (city VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT city FROM table_name_87 WHERE venue = "mackey arena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has the University of California, Los Angeles? ### Context: CREATE TABLE table_name_67 (state VARCHAR, host VARCHAR) [/INST] ### Response: SELECT state FROM table_name_67 WHERE host = "university of california, los angeles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What region does the University of California, Los Angeles play in? ### Context: CREATE TABLE table_name_37 (region VARCHAR, state VARCHAR, host VARCHAR) [/INST] ### Response: SELECT region FROM table_name_37 WHERE state = "california" AND host = "university of california, los angeles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is in Santa Barbara, California? ### Context: CREATE TABLE table_name_58 (venue VARCHAR, state VARCHAR, city VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_58 WHERE state = "california" AND city = "santa barbara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is in Colorado? ### Context: CREATE TABLE table_name_19 (venue VARCHAR, state VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_19 WHERE state = "colorado" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What city is Mackey Arena in? ### Context: CREATE TABLE table_name_46 (city VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT city FROM table_name_46 WHERE venue = "mackey arena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What lane is David Carry in heat 1? ### Context: CREATE TABLE table_name_80 (lane VARCHAR, heat VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = "david carry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent after week 9 at rich stadium? ### Context: CREATE TABLE table_name_29 (opponent VARCHAR, week VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_29 WHERE week > 9 AND game_site = "rich stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance on 1997-12-14? ### Context: CREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_54 WHERE date = "1997-12-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: For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431? ### Context: CREATE TABLE table_name_93 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_93 WHERE opponent = "minnesota vikings" AND attendance < 68 OFFSET 431 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for a game before 10 weeks on November 12, 1967 ### Context: CREATE TABLE table_name_37 (attendance INTEGER, week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_37 WHERE week < 10 AND date = "november 12, 1967" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed? ### Context: CREATE TABLE table_name_49 (injured INTEGER, place VARCHAR, killed VARCHAR) [/INST] ### Response: SELECT MIN(injured) FROM table_name_49 WHERE place = "mayurbhanj, odisha" AND killed < 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 Away team has Carlton for it's Home team? ### Context: CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_96 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: Which Venue has Footscray as it's Home team? ### Context: CREATE TABLE table_name_3 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_3 WHERE home_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has Richmond listed as their Away team? ### Context: CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_69 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: What is the number of the crowd for the home team of South Melbourne? ### Context: CREATE TABLE table_name_18 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_18 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 away team score for the home team listed as Footscray? ### Context: CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_16 WHERE home_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue exceeded a crowd size of 33,642? ### Context: CREATE TABLE table_name_26 (venue VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT venue FROM table_name_26 WHERE crowd > 33 OFFSET 642 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at the Meadowlands against the New England Patriots? ### Context: CREATE TABLE table_name_63 (attendance VARCHAR, game_site VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_63 WHERE game_site = "the meadowlands" AND opponent = "new england 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: What game did Jets have an attendance of 78,722? ### Context: CREATE TABLE table_name_8 (game_site VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT game_site FROM table_name_8 WHERE attendance = "78,722" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Rams on October 2, 2005? ### Context: CREATE TABLE table_name_22 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_22 WHERE date = "october 2, 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: What was the attendance of the game on December 11, 2005? ### Context: CREATE TABLE table_name_82 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_82 WHERE date = "december 11, 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: What was the result of the game played in front of 65,473? ### Context: CREATE TABLE table_name_19 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_19 WHERE attendance = "65,473" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 large was the crowd at Carlton's home game? ### Context: CREATE TABLE table_name_10 (crowd VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_10 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 was the score when St Kilda played as the home team? ### Context: CREATE TABLE table_name_59 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_59 WHERE home_team = "st kilda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the VFL played Windy Hill? ### Context: CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_49 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: What was Carlton's score when they were the away team? ### Context: CREATE TABLE table_name_86 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_86 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 was the away team that played at Corio Oval? ### Context: CREATE TABLE table_name_9 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_9 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: Which Home team faced the Away team, Hawthorn? ### Context: CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_9 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 the Home team's score when the Venue was mcg? ### Context: CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_95 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: What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup? ### Context: CREATE TABLE table_name_9 (division VARCHAR, fa_cup VARCHAR, season VARCHAR) [/INST] ### Response: SELECT COUNT(division) FROM table_name_9 WHERE fa_cup = "round of 16" AND season > 2012 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the division in the season with 13 tms and pos smaller than 8? ### Context: CREATE TABLE table_name_36 (division VARCHAR, tms VARCHAR, pos VARCHAR) [/INST] ### Response: SELECT COUNT(division) FROM table_name_36 WHERE tms = 13 AND pos < 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: Of the games before week 3 which had attendance great than 65,904? ### Context: CREATE TABLE table_name_88 (date VARCHAR, week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_88 WHERE week < 3 AND attendance > 65 OFFSET 904 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first week to have attendance of 65,866? ### Context: CREATE TABLE table_name_31 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_31 WHERE attendance = 65 OFFSET 866 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the Belhaven College SSAC conference location? ### Context: CREATE TABLE table_name_23 (location VARCHAR, current_conference VARCHAR, institution VARCHAR) [/INST] ### Response: SELECT location FROM table_name_23 WHERE current_conference = "ssac" AND institution = "belhaven college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What American Southwest Conference school was founded in 1883? ### Context: CREATE TABLE table_name_87 (institution VARCHAR, founded VARCHAR, current_conference VARCHAR) [/INST] ### Response: SELECT institution FROM table_name_87 WHERE founded > 1883 AND current_conference = "american southwest" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 League showed 7,975 for an average attendance? ### Context: CREATE TABLE table_name_20 (league VARCHAR, attendance_average VARCHAR) [/INST] ### Response: SELECT league FROM table_name_20 WHERE attendance_average = "7,975" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the team that had a regular season result of 2nd aisa, 24-16? ### Context: CREATE TABLE table_name_68 (attendance_average VARCHAR, reg_season VARCHAR) [/INST] ### Response: SELECT attendance_average FROM table_name_68 WHERE reg_season = "2nd aisa, 24-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: Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia? ### Context: CREATE TABLE table_name_75 (group_vI VARCHAR, group_iII VARCHAR, valencia VARCHAR, group_i VARCHAR, group_iV VARCHAR, sevilla VARCHAR) [/INST] ### Response: SELECT group_vI FROM table_name_75 WHERE group_i = "deportivo" AND group_iV = sevilla AND group_iII = valencia </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 group III when group 1 was of the racing club? ### Context: CREATE TABLE table_name_99 (group_iII VARCHAR, group_i VARCHAR) [/INST] ### Response: SELECT group_iII FROM table_name_99 WHERE group_i = "racing club" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team is John Williams a rider for? ### Context: CREATE TABLE table_name_7 (team VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT team FROM table_name_7 WHERE rider = "john williams" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 big was the crowd when Geelong was the home team? ### Context: CREATE TABLE table_name_96 (crowd VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_96 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: Who was the away team when Hawthorn was the home team? ### Context: CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_23 WHERE home_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 is the total in the case where theere are 6 lecturers and fewer than 48 professors? ### Context: CREATE TABLE table_name_96 (total INTEGER, lecturers VARCHAR, professors VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_96 WHERE lecturers = 6 AND professors < 48 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40? ### Context: CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_33 WHERE associate_professors > 4 AND lecturers = 5 AND professors < 40 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81? ### Context: CREATE TABLE table_name_71 (lecturers VARCHAR, total VARCHAR, associate_professors VARCHAR, assistant_professors VARCHAR, professors VARCHAR) [/INST] ### Response: SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors? ### Context: CREATE TABLE table_name_29 (associate_professors INTEGER, assistant_professors VARCHAR, professors VARCHAR) [/INST] ### Response: SELECT MAX(associate_professors) FROM table_name_29 WHERE assistant_professors > 5 AND professors < 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 country has the banglavision Network? ### Context: CREATE TABLE table_name_85 (origin_of_programming VARCHAR, network VARCHAR) [/INST] ### Response: SELECT origin_of_programming FROM table_name_85 WHERE network = "banglavision" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 general service in India is a part of the zee variasi network? ### Context: CREATE TABLE table_name_96 (service VARCHAR, network VARCHAR, origin_of_programming VARCHAR, genre VARCHAR) [/INST] ### Response: SELECT service FROM table_name_96 WHERE origin_of_programming = "india" AND genre = "general" AND network = "zee variasi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sliding tackle has no dump tackle and a restricted shoulder charge? ### Context: CREATE TABLE table_name_3 (sliding_tackle VARCHAR, dump_tackle VARCHAR, shoulder_charge VARCHAR) [/INST] ### Response: SELECT sliding_tackle FROM table_name_3 WHERE dump_tackle = "no" AND shoulder_charge = "restricted" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bumping/blocking has a yes for both the ankle tap and steal/intercept ball? ### Context: CREATE TABLE table_name_49 (bumping_blocking VARCHAR, ankle_tap VARCHAR, steal_intercept_ball VARCHAR) [/INST] ### Response: SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = "yes" AND steal_intercept_ball = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 body tackle has yes for the diving tackle and the sliding tackle classified as a trip? ### Context: CREATE TABLE table_name_56 (body_tackle VARCHAR, diving_tackle VARCHAR, sliding_tackle VARCHAR) [/INST] ### Response: SELECT body_tackle FROM table_name_56 WHERE diving_tackle = "yes" AND sliding_tackle = "classified as a trip" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Chicken wing has no steal/intercept ball? ### Context: CREATE TABLE table_name_76 (chicken_wing VARCHAR, steal_intercept_ball VARCHAR) [/INST] ### Response: SELECT chicken_wing FROM table_name_76 WHERE steal_intercept_ball = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 steal/intercept ball has no for both the sliding tackle and dump tackle? ### Context: CREATE TABLE table_name_37 (steal_intercept_ball VARCHAR, sliding_tackle VARCHAR, dump_tackle VARCHAR) [/INST] ### Response: SELECT steal_intercept_ball FROM table_name_37 WHERE sliding_tackle = "no" AND dump_tackle = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shoulder charge has restricted as the body tackle? ### Context: CREATE TABLE table_name_45 (shoulder_charge VARCHAR, body_tackle VARCHAR) [/INST] ### Response: SELECT shoulder_charge FROM table_name_45 WHERE body_tackle = "restricted" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has West Virginia listed as their school/country? ### Context: CREATE TABLE table_name_11 (player VARCHAR, school_country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_11 WHERE school_country = "west virginia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size when fitzroy plays at home? ### Context: CREATE TABLE table_name_41 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT AVG(crowd) FROM table_name_41 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 the result of the election with 3,871 total votes? ### Context: CREATE TABLE table_name_89 (results VARCHAR, total_votes INTEGER) [/INST] ### Response: SELECT results FROM table_name_89 WHERE total_votes > 3 OFFSET 871 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of bids in the Missouri Valley conference? ### Context: CREATE TABLE table_name_47 (_number_of_bids INTEGER, conference VARCHAR) [/INST] ### Response: SELECT MIN(_number_of_bids) FROM table_name_47 WHERE conference = "missouri valley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance on the bye week? ### Context: CREATE TABLE table_name_3 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_3 WHERE date = "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: What was the last week when the team had a bye week? ### Context: CREATE TABLE table_name_58 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_58 WHERE result = "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: Where was the game held where North Melbourne was the away team? ### Context: CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_89 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 was the smallest crowd size for a home game for Richmond? ### Context: CREATE TABLE table_name_47 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_47 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: When did the 1966 Cleveland Browns play the Green Bay Packers? ### Context: CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_98 WHERE opponent = "green bay packers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points did South Melbourne score as the home team? ### Context: CREATE TABLE table_name_26 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_26 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 home team Footscray? ### Context: CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_49 WHERE home_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of goals that have a goal difference or 8 and the losses are smaller than 12? ### Context: CREATE TABLE table_name_99 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 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: How many goals have a Lokomotiv Plovdiv club and goals against larger than 58? ### Context: CREATE TABLE table_name_80 (goals_for VARCHAR, club VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT COUNT(goals_for) FROM table_name_80 WHERE club = "lokomotiv plovdiv" AND goals_against > 58 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average goal difference using slavia sofia club? ### Context: CREATE TABLE table_name_8 (goal_difference INTEGER, club VARCHAR) [/INST] ### Response: SELECT AVG(goal_difference) FROM table_name_8 WHERE club = "slavia sofia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played average that has botev plovdiv as the club and wins larger than 11? ### Context: CREATE TABLE table_name_43 (played INTEGER, club VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_43 WHERE club = "botev plovdiv" AND wins > 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where did they play on their bye week? ### Context: CREATE TABLE table_name_83 (game_site VARCHAR, record VARCHAR) [/INST] ### Response: SELECT game_site FROM table_name_83 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: What is the kickoff that has a NFL.com recap, is played before week 17, and is played at arrowhead stadium? ### Context: CREATE TABLE table_name_53 (kickoff VARCHAR, game_site VARCHAR, nflcom_recap VARCHAR, week VARCHAR) [/INST] ### Response: SELECT kickoff FROM table_name_53 WHERE nflcom_recap = "recap" AND week < 17 AND game_site = "arrowhead stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the home team at brunswick street oval? ### Context: CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_17 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: What is the home team's score at brunswick street oval? ### Context: CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_82 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: Which match had the largest crowd size where the away team was North Melbourne? ### Context: CREATE TABLE table_name_43 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_43 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 was North Melbourne's score as an away team? ### Context: CREATE TABLE table_name_66 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_66 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 was the away team's score against Hawthorn? ### Context: CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_9 WHERE home_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 the away team that played the home team of Geelong? ### Context: CREATE TABLE table_name_49 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_49 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: Which week with Green Bay Packers as an opponent is the highest? ### Context: CREATE TABLE table_name_52 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_52 WHERE opponent = "green bay packers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of starts for the player who lost fewer than 22 and has more than 4 tries? ### Context: CREATE TABLE table_name_11 (start INTEGER, lost VARCHAR, tries VARCHAR) [/INST] ### Response: SELECT AVG(start) FROM table_name_11 WHERE lost < 22 AND tries > 4 </s>