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 number of votes for the party which got more than 28 seats? ### Context: CREATE TABLE table_name_67 (votes VARCHAR, seats INTEGER) [/INST] ### Response: SELECT COUNT(votes) FROM table_name_67 WHERE seats > 28 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of votes for the Party of Labour? ### Context: CREATE TABLE table_name_86 (votes INTEGER, party VARCHAR) [/INST] ### Response: SELECT MIN(votes) FROM table_name_86 WHERE party = "labour" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of votes for the party that has Seats of 80? ### Context: CREATE TABLE table_name_15 (percentage VARCHAR, seats VARCHAR) [/INST] ### Response: SELECT percentage FROM table_name_15 WHERE seats = 80 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leader of the party which has Seats less than 28, a percentage of votes 54.03, and more votes than 120,801? ### Context: CREATE TABLE table_name_18 (leader VARCHAR, votes VARCHAR, seats VARCHAR, percentage VARCHAR) [/INST] ### Response: SELECT leader FROM table_name_18 WHERE seats < 28 AND percentage = "54.03" AND votes > 120 OFFSET 801 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest number of Seats has votes of 244,867? ### Context: CREATE TABLE table_name_83 (seats INTEGER, votes VARCHAR) [/INST] ### Response: SELECT MAX(seats) FROM table_name_83 WHERE votes = 244 OFFSET 867 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Date of the game of the Home team of melbourne? ### Context: CREATE TABLE table_name_89 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_89 WHERE home_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the Home team in the game that had the Away team of south melbourne? ### Context: CREATE TABLE table_name_29 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_29 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 away team for the north melbourne home team? ### Context: CREATE TABLE table_name_60 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_60 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 the away team score in a game with north melbourne as home team? ### Context: CREATE TABLE table_name_31 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_31 WHERE home_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what was the away team with st kilda as the away team? ### Context: CREATE TABLE table_name_15 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_15 WHERE away_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: How many yards for the player with 1 solo tackle and over 0 sacks? ### Context: CREATE TABLE table_name_25 (yards INTEGER, solo VARCHAR, sack VARCHAR) [/INST] ### Response: SELECT MAX(yards) FROM table_name_25 WHERE solo = 1 AND sack > 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 does a hand of Theoretical return have as a 3 credit? ### Context: CREATE TABLE table_name_34 (hand VARCHAR) [/INST] ### Response: SELECT 3 AS _credits FROM table_name_34 WHERE hand = "theoretical return" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What does full house have as a 5 credits? ### Context: CREATE TABLE table_name_58 (hand VARCHAR) [/INST] ### Response: SELECT 5 AS _credits FROM table_name_58 WHERE hand = "full house" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What would be the 4 credits result of a straight? ### Context: CREATE TABLE table_name_28 (hand VARCHAR) [/INST] ### Response: SELECT 4 AS _credits FROM table_name_28 WHERE hand = "straight" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team at the game that had a score of 2 – 2? ### Context: CREATE TABLE table_name_96 (home VARCHAR, score VARCHAR) [/INST] ### Response: SELECT home FROM table_name_96 WHERE score = "2 – 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the game when Colorado was the visiting team and Chicago was the home team? ### Context: CREATE TABLE table_name_36 (date VARCHAR, visitor VARCHAR, home VARCHAR) [/INST] ### Response: SELECT date FROM table_name_36 WHERE visitor = "colorado" AND home = "chicago" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the game when the Avalanche had a record of 8–3–1? ### Context: CREATE TABLE table_name_34 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_34 WHERE record = "8–3–1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponents of the 5th Wicket Partnership? ### Context: CREATE TABLE table_name_3 (opponents VARCHAR, wicket_partnership VARCHAR) [/INST] ### Response: SELECT opponents FROM table_name_3 WHERE wicket_partnership = "5th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which season was there a competition in the Champions League? ### Context: CREATE TABLE table_name_70 (season VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT season FROM table_name_70 WHERE competition = "champions league" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What scores did the RSC Anderlecht club have? ### Context: CREATE TABLE table_name_68 (score VARCHAR, club VARCHAR) [/INST] ### Response: SELECT score FROM table_name_68 WHERE club = "rsc anderlecht" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opening week net gross of the movie ranked higher than 5 from Reliance Entertainment? ### Context: CREATE TABLE table_name_42 (opening_week_nett_gross INTEGER, rank VARCHAR, studio_s_ VARCHAR) [/INST] ### Response: SELECT MAX(opening_week_nett_gross) FROM table_name_42 WHERE rank < 5 AND studio_s_ = "reliance entertainment" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the total number of Grid for Bob Evans and Laps less than 68 ### Context: CREATE TABLE table_name_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_86 WHERE driver = "bob evans" AND laps < 68 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me constructor for Laps less than 17 and Grid more than 11 for alan jones ### Context: CREATE TABLE table_name_52 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_52 WHERE laps < 17 AND grid > 11 AND driver = "alan jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the sum of Laps with Grid less than 11 for jean-pierre jarier ### Context: CREATE TABLE table_name_7 (laps INTEGER, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_7 WHERE grid < 11 AND driver = "jean-pierre jarier" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the constructor for brakes and grid less than 14 ### Context: CREATE TABLE table_name_39 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 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: How may episodes did season 1 have? ### Context: CREATE TABLE table_name_22 (episodes VARCHAR, season_no VARCHAR) [/INST] ### Response: SELECT COUNT(episodes) FROM table_name_22 WHERE season_no = 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 chassis did Aguri Suzuki drive with an entrant of Larrousse F1? ### Context: CREATE TABLE table_name_41 (chassis VARCHAR, entrant VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_41 WHERE entrant = "larrousse f1" AND driver = "aguri suzuki" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entrant in round 16 were Ferrari was the constructor? ### Context: CREATE TABLE table_name_70 (entrant VARCHAR, rounds VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_70 WHERE rounds = "16" AND constructor = "ferrari" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the country with ICAO of zgha ### Context: CREATE TABLE table_name_71 (country VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT country FROM table_name_71 WHERE icao = "zgha" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the ICAO for city of xi'an ### Context: CREATE TABLE table_name_51 (icao VARCHAR, city VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_51 WHERE city = "xi'an" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the IATA for ICAO of zgkl ### Context: CREATE TABLE table_name_32 (iata VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_32 WHERE icao = "zgkl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the region for ICAO of vmmc ### Context: CREATE TABLE table_name_28 (region VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT region FROM table_name_28 WHERE icao = "vmmc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57? ### Context: CREATE TABLE table_name_29 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_29 WHERE time_retired = "+ 3 laps" AND laps < 57 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 built the car that has a Time/Retired of 1:36:38.887? ### Context: CREATE TABLE table_name_66 (constructor VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_66 WHERE time_retired = "1:36:38.887" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leading scorer on 9 January 2008? ### Context: CREATE TABLE table_name_99 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_99 WHERE date = "9 january 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 is the number played for the Barcelona B club, with wins under 11? ### Context: CREATE TABLE table_name_2 (played INTEGER, club VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(played) FROM table_name_2 WHERE club = "barcelona b" 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: What was the biggest draws, for wins under 4, and points of 20-18? ### Context: CREATE TABLE table_name_29 (draws INTEGER, points VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MAX(draws) FROM table_name_29 WHERE points = "20-18" AND wins < 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average of goals against, where overall goals are more than 35 and the goal difference is 20? ### Context: CREATE TABLE table_name_68 (goals_against INTEGER, goals_for VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT AVG(goals_against) FROM table_name_68 WHERE goals_for > 35 AND goal_difference = 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 Crowd number for the Away team of Richmond? ### Context: CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_41 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 Home team score for the Venue named Glenferrie Oval? ### Context: CREATE TABLE table_name_31 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_31 WHERE venue = "glenferrie oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest Crowd number for the Venue named Princes Park? ### Context: CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_96 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the notes with method of points and event of adcc 2001 absolute with result of loss ### Context: CREATE TABLE table_name_72 (notes VARCHAR, result VARCHAR, method VARCHAR, event VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_72 WHERE method = "points" AND event = "adcc 2001 absolute" AND result = "loss" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the lowest date for result of win and method of points with notes of opening round ### Context: CREATE TABLE table_name_59 (date INTEGER, notes VARCHAR, result VARCHAR, method VARCHAR) [/INST] ### Response: SELECT MIN(date) FROM table_name_59 WHERE result = "win" AND method = "points" AND notes = "opening round" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the result with notes of quarter-finals and event of adcc 2001 absolute ### Context: CREATE TABLE table_name_65 (result VARCHAR, notes VARCHAR, event VARCHAR) [/INST] ### Response: SELECT result FROM table_name_65 WHERE notes = "quarter-finals" AND event = "adcc 2001 absolute" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the event for method of points with notes of opening round ### Context: CREATE TABLE table_name_16 (event VARCHAR, method VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT event FROM table_name_16 WHERE method = "points" AND notes = "opening round" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 win total which has the rank smaller than 3 and events smaller than 22 ### Context: CREATE TABLE table_name_71 (wins VARCHAR, events VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_71 WHERE events < 22 AND rank < 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 denomination is mt lawley? ### Context: CREATE TABLE table_name_5 (denomination VARCHAR, location VARCHAR) [/INST] ### Response: SELECT denomination FROM table_name_5 WHERE location = "mt lawley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Is mt lawley day or boarding? ### Context: CREATE TABLE table_name_84 (day_boarding VARCHAR, location VARCHAR) [/INST] ### Response: SELECT day_boarding FROM table_name_84 WHERE location = "mt lawley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year founded for schools in claremont? ### Context: CREATE TABLE table_name_6 (founded INTEGER, location VARCHAR) [/INST] ### Response: SELECT AVG(founded) FROM table_name_6 WHERE location = "claremont" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 north melbourne was the home team who was the Away team? ### Context: CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_32 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: When collingwood played as the home team who was the away team? ### Context: CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_88 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the Away team was south melbourne what was the home team? ### Context: CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_52 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 is the lowest attendance for a stadium that has an average smaller than 307? ### Context: CREATE TABLE table_name_24 (lowest INTEGER, average INTEGER) [/INST] ### Response: SELECT AVG(lowest) FROM table_name_24 WHERE average < 307 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the home team was South Melbourne, what did the away team score? ### Context: CREATE TABLE table_name_64 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_64 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 average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold? ### Context: CREATE TABLE table_name_15 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_15 WHERE bronze < 13 AND total = 11 AND gold > 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has? ### Context: CREATE TABLE table_name_58 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MIN(bronze) FROM table_name_58 WHERE silver = 9 AND total > 13 AND gold > 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of silvers a team with more than 95 total medals has? ### Context: CREATE TABLE table_name_6 (silver INTEGER, total INTEGER) [/INST] ### Response: SELECT MAX(silver) FROM table_name_6 WHERE total > 95 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has? ### Context: CREATE TABLE table_name_96 (total INTEGER, rank VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_96 WHERE gold < 15 AND bronze < 5 AND rank > 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the home team who plays at Glenferrie Oval? ### Context: CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_95 WHERE venue = "glenferrie oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What did the away team Carlton score? ### Context: CREATE TABLE table_name_29 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_29 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 position did Lee Gilmour play while having more than 4 Tries and 20 points? ### Context: CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, tries VARCHAR, points VARCHAR) [/INST] ### Response: SELECT position FROM table_name_58 WHERE tries > 4 AND points = 20 AND player = "lee gilmour" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 host that garnered ratings of 9.4/27? ### Context: CREATE TABLE table_name_29 (host VARCHAR, ratings VARCHAR) [/INST] ### Response: SELECT host FROM table_name_29 WHERE ratings = "9.4/27" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21? ### Context: CREATE TABLE table_name_29 (lap_by_lap VARCHAR, year VARCHAR, ratings VARCHAR) [/INST] ### Response: SELECT lap_by_lap FROM table_name_29 WHERE year < 1994 AND ratings = "8.0/21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the host that garnered ratings of 9.6/26? ### Context: CREATE TABLE table_name_30 (host VARCHAR, ratings VARCHAR) [/INST] ### Response: SELECT host FROM table_name_30 WHERE ratings = "9.6/26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the ratings for host Chris Economaki who had 12.3 million viewers? ### Context: CREATE TABLE table_name_83 (ratings VARCHAR, host VARCHAR, viewers VARCHAR) [/INST] ### Response: SELECT ratings FROM table_name_83 WHERE host = "chris economaki" AND viewers = "12.3 million" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 network who had Ken Squier as a host and 13.9 million viewers? ### Context: CREATE TABLE table_name_74 (network VARCHAR, host VARCHAR, viewers VARCHAR) [/INST] ### Response: SELECT network FROM table_name_74 WHERE host = "ken squier" AND viewers = "13.9 million" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest Attendance for Games played on the Date of February 5? ### Context: CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_1 WHERE date = "february 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 was the total Attendance for Games while Chicago was the visiting Team? ### Context: CREATE TABLE table_name_61 (attendance INTEGER, visitor VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_61 WHERE visitor = "chicago" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11? ### Context: CREATE TABLE table_name_30 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9? ### Context: CREATE TABLE table_name_58 (grand_prix VARCHAR, round VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT grand_prix FROM table_name_58 WHERE winning_driver = "david coulthard" AND pole_position = "michael schumacher" AND round < 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver. ### Context: CREATE TABLE table_name_32 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_32 WHERE pole_position = "david coulthard" AND winning_driver = "michael schumacher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had the fastest lap at the Australian Grand Prix? ### Context: CREATE TABLE table_name_36 (fastest_lap VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_36 WHERE grand_prix = "australian 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: Tell me the team 2 for team 1 being la nuova piovese (veneto a) ### Context: CREATE TABLE table_name_46 (team_2 VARCHAR, team_1 VARCHAR) [/INST] ### Response: SELECT team_2 FROM table_name_46 WHERE team_1 = "la nuova piovese (veneto a)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the team 1 for team 2 being civitavecchiese (latium a) ### Context: CREATE TABLE table_name_8 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_8 WHERE team_2 = "civitavecchiese (latium a)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the 1st leg for team being budoni (Sardinia) ### Context: CREATE TABLE table_name_55 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_55 WHERE team_1 = "budoni (sardinia)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attended the game at Busch Stadium (ii) when the time was 3:54? ### Context: CREATE TABLE table_name_88 (attendance VARCHAR, location VARCHAR, time VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_88 WHERE location = "busch stadium (ii)" AND time = "3:54" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What dates were the games after game 6 played? ### Context: CREATE TABLE table_name_56 (date VARCHAR, game INTEGER) [/INST] ### Response: SELECT date FROM table_name_56 WHERE game > 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 1977 value that had Grand Slam Tournaments in 1972? ### Context: CREATE TABLE table_name_9 (Id VARCHAR) [/INST] ### Response: SELECT 1977 FROM table_name_9 WHERE 1972 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament that had Grand Slam Tournaments in 1976? ### Context: CREATE TABLE table_name_13 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_13 WHERE 1976 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1976 value of the Australian Open? ### Context: CREATE TABLE table_name_35 (tournament VARCHAR) [/INST] ### Response: SELECT 1976 FROM table_name_35 WHERE tournament = "australian open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1977 value that has a 1974 a value? ### Context: CREATE TABLE table_name_65 (Id VARCHAR) [/INST] ### Response: SELECT 1977 FROM table_name_65 WHERE 1974 = "a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 led to a record of 4-10? ### Context: CREATE TABLE table_name_87 (week VARCHAR, record VARCHAR) [/INST] ### Response: SELECT week FROM table_name_87 WHERE record = "4-10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which week was the game against the San Diego Chargers? ### Context: CREATE TABLE table_name_91 (week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT week FROM table_name_91 WHERE opponent = "san diego chargers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 height of the player who is from Huntington, WV? ### Context: CREATE TABLE table_name_93 (height VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT height FROM table_name_93 WHERE hometown = "huntington, wv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What school is the player who has a hometown of Chicago, IL from? ### Context: CREATE TABLE table_name_45 (school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT school FROM table_name_45 WHERE hometown = "chicago, il" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college is the player from South Medford High School headed to? ### Context: CREATE TABLE table_name_67 (college VARCHAR, school VARCHAR) [/INST] ### Response: SELECT college FROM table_name_67 WHERE school = "south medford high school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which school is the player who is headed to Duke from? ### Context: CREATE TABLE table_name_68 (school VARCHAR, college VARCHAR) [/INST] ### Response: SELECT school FROM table_name_68 WHERE college = "duke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hometown of the player who is headed to Duke? ### Context: CREATE TABLE table_name_83 (hometown VARCHAR, college VARCHAR) [/INST] ### Response: SELECT hometown FROM table_name_83 WHERE college = "duke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Louise when Tracy Venner was Dainty June? ### Context: CREATE TABLE table_name_83 (louise VARCHAR, dainty_june VARCHAR) [/INST] ### Response: SELECT louise FROM table_name_83 WHERE dainty_june = "tracy venner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Dainty June when Tammy Blanchard was Louise? ### Context: CREATE TABLE table_name_5 (dainty_june VARCHAR, louise VARCHAR) [/INST] ### Response: SELECT dainty_june FROM table_name_5 WHERE louise = "tammy blanchard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Dainty June when Boyd Gaines was Herbie? ### Context: CREATE TABLE table_name_27 (dainty_june VARCHAR, herbie VARCHAR) [/INST] ### Response: SELECT dainty_june FROM table_name_27 WHERE herbie = "boyd gaines" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What production had Angela Lansbury as Rose and Barrie Ingham as Herbie? ### Context: CREATE TABLE table_name_53 (productions VARCHAR, rose VARCHAR, herbie VARCHAR) [/INST] ### Response: SELECT productions FROM table_name_53 WHERE rose = "angela lansbury" AND herbie = "barrie ingham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rose in the 1975 Broadway Revival? ### Context: CREATE TABLE table_name_60 (rose VARCHAR, productions VARCHAR) [/INST] ### Response: SELECT rose FROM table_name_60 WHERE productions = "1975 broadway revival" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 production had Rex Robbins as Herbie? ### Context: CREATE TABLE table_name_96 (productions VARCHAR, herbie VARCHAR) [/INST] ### Response: SELECT productions FROM table_name_96 WHERE herbie = "rex robbins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the venue VFL Park? ### Context: CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_50 WHERE venue = "vfl 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 date did Footscray play at home? ### Context: CREATE TABLE table_name_92 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 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 did the home team score when they played the away team of Geelong? ### Context: CREATE TABLE table_name_10 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_10 WHERE away_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest pick number for the Boston Celtics? ### Context: CREATE TABLE table_name_5 (pick INTEGER, team VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_5 WHERE team = "boston celtics" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitor team on 23 November 2007? ### Context: CREATE TABLE table_name_98 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_98 WHERE date = "23 november 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the leading scorer of the game on 20 November 2007? ### Context: CREATE TABLE table_name_61 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_61 WHERE date = "20 november 2007" </s>