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 largest crowd for any game where Footscray is the home team? ### Context: CREATE TABLE table_name_9 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_9 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 maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6? ### Context: CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, diff VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(drawn) FROM table_name_86 WHERE diff < 186 AND points < 12 AND played < 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 average diff when games played are more than 6? ### Context: CREATE TABLE table_name_84 (diff INTEGER, played INTEGER) [/INST] ### Response: SELECT AVG(diff) FROM table_name_84 WHERE played > 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 draws when more than 6 are played and the points against are 54? ### Context: CREATE TABLE table_name_92 (drawn INTEGER, against VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MAX(drawn) FROM table_name_92 WHERE against = 54 AND played > 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 maximum number of points against when the team has more than 0 losses and plays fewer than 6 games? ### Context: CREATE TABLE table_name_18 (against INTEGER, lost VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MAX(against) FROM table_name_18 WHERE lost > 0 AND played < 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 number of games played for the team with 12 points and an against smaller than 52? ### Context: CREATE TABLE table_name_59 (played INTEGER, points VARCHAR, against VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_59 WHERE points = 12 AND against < 52 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest average parish size with 47.2% of adherents and 4,936 regular attendees? ### Context: CREATE TABLE table_name_25 (average_parish_size INTEGER, _percentage_of_adherents VARCHAR, regular_attendees VARCHAR) [/INST] ### Response: SELECT MIN(average_parish_size) FROM table_name_25 WHERE _percentage_of_adherents = "47.2%" AND regular_attendees > 4 OFFSET 936 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regular number of attendees that has 79 parishes? ### Context: CREATE TABLE table_name_36 (regular_attendees INTEGER, parishes VARCHAR) [/INST] ### Response: SELECT AVG(regular_attendees) FROM table_name_36 WHERE parishes = 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: Which Grand Prix has the Circuit of Lille? ### Context: CREATE TABLE table_name_20 (name VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT name FROM table_name_20 WHERE circuit = "lille" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning driver of the Roussillon Grand Prix had an Alfa Romeo? ### Context: CREATE TABLE table_name_53 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_53 WHERE winning_constructor = "alfa romeo" AND name = "roussillon grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Constructor won the Roussillon Grand Prix? ### Context: CREATE TABLE table_name_95 (winning_constructor VARCHAR, name VARCHAR) [/INST] ### Response: SELECT winning_constructor FROM table_name_95 WHERE name = "roussillon grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Driver won the Circuit of Rio de Janeiro? ### Context: CREATE TABLE table_name_13 (winning_driver VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_13 WHERE circuit = "rio de janeiro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day did the VFL pay MCG? ### Context: CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_90 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 was November 4, 1973 attendance? ### Context: CREATE TABLE table_name_64 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_64 WHERE date = "november 4, 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 is the number of laps with a Constructor of renault, and a driver of jacques villeneuve? ### Context: CREATE TABLE table_name_73 (laps VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_73 WHERE constructor = "renault" AND driver = "jacques villeneuve" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time/retired for grid 3? ### Context: CREATE TABLE table_name_19 (time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_19 WHERE grid = 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 time/retired for grid 8? ### Context: CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_95 WHERE grid = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time/retired for a grid larger than 11, laps larger than 41, and nick heidfeld? ### Context: CREATE TABLE table_name_32 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_32 WHERE grid > 11 AND laps > 41 AND driver = "nick heidfeld" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin? ### Context: CREATE TABLE table_name_3 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_3 WHERE laps < 53 AND grid > 17 AND time_retired = "spin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has won $98,860? ### Context: CREATE TABLE table_name_97 (driver VARCHAR, winnings VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_97 WHERE winnings = "$98,860" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team is travelling to play Hawthorn? ### Context: CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_17 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 smallest crowd at the Victoria Park Venue? ### Context: CREATE TABLE table_name_94 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_94 WHERE venue = "victoria 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 score given by the Home team Geelong? ### Context: CREATE TABLE table_name_37 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_37 WHERE home_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest crowd at arden street oval? ### Context: CREATE TABLE table_name_87 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_87 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 is the home side's score at western oval? ### Context: CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_23 WHERE venue = "western oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What venue is in the state of Connecticut? ### Context: CREATE TABLE table_name_90 (venue VARCHAR, state VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_90 WHERE state = "connecticut" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the city of Durham? ### Context: CREATE TABLE table_name_95 (venue VARCHAR, city VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_95 WHERE city = "durham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what state is the Thomas Assembly Center located? ### Context: CREATE TABLE table_name_5 (state VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT state FROM table_name_5 WHERE venue = "thomas assembly center" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 located in Indiana and hosted at Purdue University? ### Context: CREATE TABLE table_name_54 (venue VARCHAR, state VARCHAR, host VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_54 WHERE state = "indiana" AND host = "purdue 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 city is located in Oklahoma? ### Context: CREATE TABLE table_name_67 (city VARCHAR, state VARCHAR) [/INST] ### Response: SELECT city FROM table_name_67 WHERE state = "oklahoma" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what city is the United Spirit Arena located? ### Context: CREATE TABLE table_name_20 (city VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT city FROM table_name_20 WHERE venue = "united spirit 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 was the result when they had their bye week? ### Context: CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_84 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 attendance of the Browns' September 7, 1953 game? ### Context: CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_78 WHERE date = "september 7, 1953" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the Browns' game that over 36,796 attended? ### Context: CREATE TABLE table_name_74 (date VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT date FROM table_name_74 WHERE attendance > 36 OFFSET 796 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Young rider classification has a Stage of 18? ### Context: CREATE TABLE table_name_3 (young_rider_classification VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT young_rider_classification FROM table_name_3 WHERE stage = "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: Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond? ### Context: CREATE TABLE table_name_80 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the classification with a Team classification of la vie claire and a Stage of 12? ### Context: CREATE TABLE table_name_62 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT general_classification FROM table_name_62 WHERE team_classification = "la vie claire" AND stage = "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 is guido bontempi's general classification when he has a stage of 6? ### Context: CREATE TABLE table_name_51 (general_classification VARCHAR, winner VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "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 Ludo Peeters' team classification? ### Context: CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had less than 3 goals and a result of (w) 2-0? ### Context: CREATE TABLE table_name_23 (date VARCHAR, goals VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_23 WHERE goals < 3 AND result = "(w) 2-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was a match held at MCG? ### Context: CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_50 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: When Fitzroy are the away team, what is the average crowd size? ### Context: CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT AVG(crowd) FROM table_name_65 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 footscray's away team score? ### Context: CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_66 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 record of Jeremija Sanders' opponent? ### Context: CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_37 WHERE opponent = "jeremija sanders" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47? ### Context: CREATE TABLE table_name_22 (tries INTEGER, conv VARCHAR, start VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(tries) FROM table_name_22 WHERE start > 32 AND player = "seremaia bai" AND conv > 47 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player fero lasagavibau who has the lowest start? ### Context: CREATE TABLE table_name_71 (start INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(start) FROM table_name_71 WHERE player = "fero lasagavibau" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Raphael was 4-0? ### Context: CREATE TABLE table_name_11 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_11 WHERE record = "4-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the average round when he had a 3-0 record? ### Context: CREATE TABLE table_name_18 (round INTEGER, record VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_18 WHERE record = "3-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the location when he had a 2-0 record? ### Context: CREATE TABLE table_name_41 (location VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_41 WHERE record = "2-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result when he went 1 round against jeremy beck? ### Context: CREATE TABLE table_name_4 (res VARCHAR, round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT res FROM table_name_4 WHERE round = 1 AND opponent = "jeremy beck" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in halifax? ### Context: CREATE TABLE table_name_34 (result VARCHAR, city VARCHAR) [/INST] ### Response: SELECT result FROM table_name_34 WHERE city = "halifax" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What stadium is located in Halifax? ### Context: CREATE TABLE table_name_48 (stadium VARCHAR, city VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_48 WHERE city = "halifax" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day did they play in salford? ### Context: CREATE TABLE table_name_56 (date VARCHAR, city VARCHAR) [/INST] ### Response: SELECT date FROM table_name_56 WHERE city = "salford" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest week the team played the chicago cardinals in front of less than 25,312? ### Context: CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day did they play on week 4? ### Context: CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_25 WHERE week = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance during the week 1 match? ### Context: CREATE TABLE table_name_2 (attendance VARCHAR, week VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_2 WHERE week = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: During what week was the match on November 10, 1963? ### Context: CREATE TABLE table_name_37 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_37 WHERE date = "november 10, 1963" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match on December 1, 1963? ### Context: CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_43 WHERE date = "december 1, 1963" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day is hawthorn the away side? ### Context: CREATE TABLE table_name_23 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_23 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 is the average crowd size for games with north melbourne as the away side? ### Context: CREATE TABLE table_name_22 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT AVG(crowd) FROM table_name_22 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: How many forms have less than 18 pages? ### Context: CREATE TABLE table_name_72 (form VARCHAR, pages INTEGER) [/INST] ### Response: SELECT COUNT(form) FROM table_name_72 WHERE pages < 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 is the sum of forms with greater than 17 pages and a total of $1,801,154? ### Context: CREATE TABLE table_name_70 (form INTEGER, pages VARCHAR, total_assets VARCHAR) [/INST] ### Response: SELECT SUM(form) FROM table_name_70 WHERE pages > 17 AND total_assets = "$1,801,154" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hosted South Melbourne? ### Context: CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_50 WHERE away_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the scored of the Away team that played against Richmond? ### Context: CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_83 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: What is the result week 6? ### Context: CREATE TABLE table_name_44 (result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT result FROM table_name_44 WHERE week = 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: How many goals did sture mårtensson score? ### Context: CREATE TABLE table_name_98 (goals VARCHAR, name VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_98 WHERE name = "sture mårtensson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the player with 2 caps at degerfors if? ### Context: CREATE TABLE table_name_47 (goals VARCHAR, caps VARCHAR, club VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_47 WHERE caps = 2 AND club = "degerfors if" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What catalog came out after 2000? ### Context: CREATE TABLE table_name_23 (catalog VARCHAR, year INTEGER) [/INST] ### Response: SELECT catalog FROM table_name_23 WHERE year > 2000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 7? ### Context: CREATE TABLE table_name_26 (attendance VARCHAR, week VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_26 WHERE week = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What opponent did they have a bye result against before week 14? ### Context: CREATE TABLE table_name_19 (opponent VARCHAR, result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_19 WHERE result = "bye" AND 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 home team has an Away team of fitzroy? ### Context: CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_73 WHERE away_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was North Melbourne's score when they were the home team? ### Context: CREATE TABLE table_name_82 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_82 WHERE home_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 Richmond's score as the home team? ### Context: CREATE TABLE table_name_38 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_38 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 opponent when Richmond played as the home team? ### Context: CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_56 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: What was the attendance at the Kardinia Park game? ### Context: CREATE TABLE table_name_25 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_25 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 was the score of the team North Melbourne played at Arden Street Oval? ### Context: CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_75 WHERE home_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 date did the game at Arden Street Oval take place? ### Context: CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_12 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 is the date of the game with 36,766 fans? ### Context: CREATE TABLE table_name_98 (date VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT date FROM table_name_98 WHERE crowd > 36 OFFSET 766 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 higher secondary school listing has the lowest total and an Aided amount larger than 14? ### Context: CREATE TABLE table_name_41 (total INTEGER, institution VARCHAR, aided VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_41 WHERE institution = "higher secondary school" AND aided > 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 Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0? ### Context: CREATE TABLE table_name_99 (institution VARCHAR, aided VARCHAR, total VARCHAR, government VARCHAR) [/INST] ### Response: SELECT institution FROM table_name_99 WHERE total < 13 AND government = 1 AND aided = 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which IATA is associated with China and an ICAO of ZSPD? ### Context: CREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_59 WHERE country = "china" AND icao = "zspd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport is associated with Macau? ### Context: CREATE TABLE table_name_71 (airport VARCHAR, city VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_71 WHERE city = "macau" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA for Nanjing? ### Context: CREATE TABLE table_name_85 (iata VARCHAR, city VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_85 WHERE city = "nanjing" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport has an ICAO of RCKH? ### Context: CREATE TABLE table_name_81 (airport VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_81 WHERE icao = "rckh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport has an IATA of TYN? ### Context: CREATE TABLE table_name_52 (airport VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_52 WHERE iata = "tyn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 contains the Shanghai Pudong International airport? ### Context: CREATE TABLE table_name_41 (country VARCHAR, airport VARCHAR) [/INST] ### Response: SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Footscray's score when it played as the home team? ### Context: CREATE TABLE table_name_2 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_2 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: hat was Hawthorn's score as the away team? ### Context: CREATE TABLE table_name_83 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_83 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 Outcome against Opponent in the Final Carlos Kirmayr? ### Context: CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = "carlos kirmayr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the Final against Opponent in the Final Manuel Orantes, prior to 1978? ### Context: CREATE TABLE table_name_35 (score_in_the_final VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_name_35 WHERE date < 1978 AND opponent_in_the_final = "manuel orantes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship? ### Context: CREATE TABLE table_name_89 (championship VARCHAR, opponent_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_89 WHERE outcome = "runner-up" AND surface = "clay" AND opponent_in_the_final = "ivan lendl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest Date on a Surface of clay in a Championship in Linz, Austria? ### Context: CREATE TABLE table_name_15 (date INTEGER, surface VARCHAR, championship VARCHAR) [/INST] ### Response: SELECT MIN(date) FROM table_name_15 WHERE surface = "clay" AND championship = "linz, austria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who playes the sport of athletics? ### Context: CREATE TABLE table_name_36 (sportsperson VARCHAR, sport VARCHAR) [/INST] ### Response: SELECT sportsperson FROM table_name_36 WHERE sport = "athletics" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team has a year listed of 2008? ### Context: CREATE TABLE table_name_75 (team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT team FROM table_name_75 WHERE year = 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 venue was the game played in when the away team was fitzroy? ### Context: CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_42 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 the film type for the movie Sanctuary? ### Context: CREATE TABLE table_name_35 (type VARCHAR, name VARCHAR) [/INST] ### Response: SELECT type FROM table_name_35 WHERE name = "sanctuary" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What different types are there with a CC License of by-nc-sa 2.5? ### Context: CREATE TABLE table_name_25 (type VARCHAR, cc_license VARCHAR) [/INST] ### Response: SELECT type FROM table_name_25 WHERE cc_license = "by-nc-sa 2.5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the open source movies with planned releases in 2013? ### Context: CREATE TABLE table_name_67 (open_source_movie VARCHAR, planned_release VARCHAR) [/INST] ### Response: SELECT open_source_movie FROM table_name_67 WHERE planned_release = "2013" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest rank by average of a couple who had an average of 23 and a total of 115? ### Context: CREATE TABLE table_name_99 (rank_by_average INTEGER, average VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MIN(rank_by_average) FROM table_name_99 WHERE average = 23 AND total = 115 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Michigan? ### Context: CREATE TABLE table_name_92 (colonized VARCHAR, state VARCHAR) [/INST] ### Response: SELECT colonized FROM table_name_92 WHERE state = "michigan" </s>