text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has Yuriy Hruznov as coach? ### Context: CREATE TABLE table_name_49 (team VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT team FROM table_name_49 WHERE coach = "yuriy hruznov" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where is Dynamo-2 located? ### Context: CREATE TABLE table_name_38 (location VARCHAR, team VARCHAR) [/INST] ### Response: SELECT location FROM table_name_38 WHERE team = "dynamo-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: Where is Shakhtar-2 located? ### Context: CREATE TABLE table_name_81 (location VARCHAR, team VARCHAR) [/INST] ### Response: SELECT location FROM table_name_81 WHERE team = "shakhtar-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: For the gte northwest classic with the score of 207 (-9), what is the average 1st prize ($) ### Context: CREATE TABLE table_name_71 (score VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_71 WHERE score = "207 (-9)" AND tournament = "gte northwest classic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sep 18 what is the total number of 1 prize ($) ### Context: CREATE TABLE table_name_56 (date VARCHAR) [/INST] ### Response: SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_56 WHERE date = "sep 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 winner for Virginia? ### Context: CREATE TABLE table_name_99 (winner VARCHAR, location VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_99 WHERE location = "virginia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the gte north classic tournament? ### Context: CREATE TABLE table_name_81 (date VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_81 WHERE tournament = "gte north classic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What home team plays at princes park? ### Context: CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_81 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: Where does the home team fitzroy play? ### Context: CREATE TABLE table_name_78 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_78 WHERE home_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which extra resulted in 2nd before 2005? ### Context: CREATE TABLE table_name_30 (extra VARCHAR, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT extra FROM table_name_30 WHERE result = "2nd" AND year < 2005 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which venue resulted in 2nd before 2005? ### Context: CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance at the Red Sox game that had a loss of Wakefield (7–10)? ### Context: CREATE TABLE table_name_22 (attendance VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_22 WHERE loss = "wakefield (7–10)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the loss of the Red Sox game when they had a record of 77–67? ### Context: CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_74 WHERE record = "77–67" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament has Pat Cash as a runner-up? ### Context: CREATE TABLE table_name_36 (tournament VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_36 WHERE runner_up = "pat cash" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner for the Tournament in Hong Kong with a third place winner named Mikael Pernfors? ### Context: CREATE TABLE table_name_32 (winner VARCHAR, third_place VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_32 WHERE third_place = "mikael pernfors" AND tournament = "hong kong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the athlete that ran the 10000 m event? ### Context: CREATE TABLE table_name_75 (nationality VARCHAR, event VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_75 WHERE event = "10000 m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of points of palamós cf, which has less than 21 wins and less than 40 goals? ### Context: CREATE TABLE table_name_60 (points VARCHAR, goals_for VARCHAR, wins VARCHAR, club VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_60 WHERE wins < 21 AND club = "palamós cf" AND goals_for < 40 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which club has more than 46 goals, 10 wins, and a goal difference of -24? ### Context: CREATE TABLE table_name_25 (club VARCHAR, goal_difference VARCHAR, goals_against VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT club FROM table_name_25 WHERE goals_against > 46 AND wins = 10 AND goal_difference = -24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Richmond score as the away team? ### Context: CREATE TABLE table_name_11 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_11 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: Tell me the pole position with round less than 2 ### Context: CREATE TABLE table_name_97 (pole_position VARCHAR, round INTEGER) [/INST] ### Response: SELECT pole_position FROM table_name_97 WHERE round < 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: I want the fastest lap for round of 16 ### Context: CREATE TABLE table_name_18 (fastest_lap VARCHAR, round VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_18 WHERE round = 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Record has a home of Nashville? ### Context: CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR) [/INST] ### Response: SELECT record FROM table_name_72 WHERE home = "nashville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Visitor played on January 17? ### Context: CREATE TABLE table_name_67 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_67 WHERE date = "january 17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team? ### Context: CREATE TABLE table_name_59 (record VARCHAR, game VARCHAR, visitor VARCHAR, decision VARCHAR) [/INST] ### Response: SELECT record FROM table_name_59 WHERE visitor = "nashville" AND decision = "ellis" AND game > 32 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visiting team in the game sometime after number 29 that had 18,584 atttendees? ### Context: CREATE TABLE table_name_28 (visitor VARCHAR, game VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If there is a VCPC of 75km/h (47mph) what is the VCA? ### Context: CREATE TABLE table_name_7 (vca_155 VARCHAR, vcpc VARCHAR) [/INST] ### Response: SELECT vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP of that? ### Context: CREATE TABLE table_name_86 (vctp VARCHAR, vcrt VARCHAR) [/INST] ### Response: SELECT vctp FROM table_name_86 WHERE vcrt = "7.62mm (0.3in) fn mag 60-20 machine gun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 airing date for a modern drama with more than 21 episodes? ### Context: CREATE TABLE table_name_21 (airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR) [/INST] ### Response: SELECT airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 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: What was the Constructor for the German Grand Prix Race? ### Context: CREATE TABLE table_name_33 (constructor VARCHAR, race VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_33 WHERE race = "german 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: What was the Constructor for the race that had Derek Warwick as its Fastest Lap? ### Context: CREATE TABLE table_name_36 (constructor VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_36 WHERE fastest_lap = "derek warwick" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Brands Hatch race had Niki Lauda as its Fastest Lap? ### Context: CREATE TABLE table_name_78 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR) [/INST] ### Response: SELECT race FROM table_name_78 WHERE fastest_lap = "niki lauda" AND location = "brands hatch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Report for the Monaco race? ### Context: CREATE TABLE table_name_32 (report VARCHAR, location VARCHAR) [/INST] ### Response: SELECT report FROM table_name_32 WHERE location = "monaco" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nation that had 59 totals? ### Context: CREATE TABLE table_name_75 (nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_75 WHERE total = 59 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date did Ayrton Senna win at Imola? ### Context: CREATE TABLE table_name_92 (date VARCHAR, winning_driver VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 WHERE winning_driver = "ayrton senna" AND location = "imola" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the race that Ayrton Senna won on 23 April? ### Context: CREATE TABLE table_name_4 (fastest_lap VARCHAR, winning_driver VARCHAR, date VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_4 WHERE winning_driver = "ayrton senna" AND date = "23 april" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is located in Jerez? ### Context: CREATE TABLE table_name_25 (grand_prix VARCHAR, location VARCHAR) [/INST] ### Response: SELECT grand_prix FROM table_name_25 WHERE location = "jerez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pole position in Jerez? ### Context: CREATE TABLE table_name_82 (pole_position VARCHAR, location VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_82 WHERE location = "jerez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for the race that Ayrton Senna won on 27 August? ### Context: CREATE TABLE table_name_84 (report VARCHAR, winning_driver VARCHAR, date VARCHAR) [/INST] ### Response: SELECT report FROM table_name_84 WHERE winning_driver = "ayrton senna" AND date = "27 august" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold medals for the United States with silver medal count greater than 3? ### Context: CREATE TABLE table_name_26 (gold INTEGER, nation VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_26 WHERE nation = "united states" AND silver > 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10? ### Context: CREATE TABLE table_name_72 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals? ### Context: CREATE TABLE table_name_14 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 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: On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals? ### Context: CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(silver) FROM table_name_38 WHERE rank > 7 AND total = 6 AND bronze < 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: For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals? ### Context: CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player was active in Jazz in 1975-79? ### Context: CREATE TABLE table_name_36 (player VARCHAR, years_for_jazz VARCHAR) [/INST] ### Response: SELECT player FROM table_name_36 WHERE years_for_jazz = "1975-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: What is the nationality for the guard position from Bowling Green? ### Context: CREATE TABLE table_name_47 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player from Auburn? ### Context: CREATE TABLE table_name_86 (player VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_86 WHERE school_club_team = "auburn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player is a shooting guard? ### Context: CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR) [/INST] ### Response: SELECT player FROM table_name_81 WHERE position = "shooting guard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position was active in Jazz in 2002-03? ### Context: CREATE TABLE table_name_59 (position VARCHAR, years_for_jazz VARCHAR) [/INST] ### Response: SELECT position FROM table_name_59 WHERE years_for_jazz = "2002-03" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of swimsuits when evening gown is 8.329 and average is less than 8.497 ### Context: CREATE TABLE table_name_39 (swimsuit VARCHAR, evening_gown VARCHAR, average VARCHAR) [/INST] ### Response: SELECT COUNT(swimsuit) FROM table_name_39 WHERE evening_gown = 8.329 AND average < 8.497 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362 ### Context: CREATE TABLE table_name_67 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR) [/INST] ### Response: SELECT SUM(swimsuit) FROM table_name_67 WHERE average < 7.362 AND evening_gown < 6.983 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most interview for minnesota and average more than 7.901 ### Context: CREATE TABLE table_name_7 (interview INTEGER, state VARCHAR, average VARCHAR) [/INST] ### Response: SELECT MAX(interview) FROM table_name_7 WHERE state = "minnesota" AND average > 7.901 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest Decile for roll more than 325 and area of warkworth ### Context: CREATE TABLE table_name_70 (decile INTEGER, roll VARCHAR, area VARCHAR) [/INST] ### Response: SELECT MAX(decile) FROM table_name_70 WHERE roll > 325 AND area = "warkworth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 authority for roll of 54 ### Context: CREATE TABLE table_name_22 (authority VARCHAR, roll VARCHAR) [/INST] ### Response: SELECT authority FROM table_name_22 WHERE roll = 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 was the score of Match 2? ### Context: CREATE TABLE table_name_69 (score1 VARCHAR, match VARCHAR) [/INST] ### Response: SELECT score1 FROM table_name_69 WHERE match = 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: When did Essendon play at home? ### Context: CREATE TABLE table_name_15 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_15 WHERE home_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Collingwood's score when they played against North Melbourne at home? ### Context: CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_12 WHERE away_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team score at Melbourne's away match? ### Context: CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_77 WHERE away_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people were in attendance at Hawthorn's home match? ### Context: CREATE TABLE table_name_60 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_60 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 capital with the Voivodeship Separate city of białostockie? ### Context: CREATE TABLE table_name_1 (capital VARCHAR, voivodeship_separate_city VARCHAR) [/INST] ### Response: SELECT capital FROM table_name_1 WHERE voivodeship_separate_city = "białostockie" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: between car plates of 80-84 what is the population in 1000 in year 1931? ### Context: CREATE TABLE table_name_14 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR) [/INST] ### Response: SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-84" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population in 1000(1931) that has car plates since 1937 of 35-39. ### Context: CREATE TABLE table_name_62 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR) [/INST] ### Response: SELECT population_in_1000__1931_ FROM table_name_62 WHERE car_plates__since_1937_ = "35-39" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name of the capital with an area of 20,4. ### Context: CREATE TABLE table_name_7 (capital VARCHAR, area_in_1000km²__1930_ VARCHAR) [/INST] ### Response: SELECT capital FROM table_name_7 WHERE area_in_1000km²__1930_ = "20,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: When did they play against Wales? ### Context: CREATE TABLE table_name_41 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_41 WHERE opponent = "wales" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on 29/09/07? ### Context: CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_14 WHERE date = "29/09/07" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition on 25/08/07? ### Context: CREATE TABLE table_name_52 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_52 WHERE date = "25/08/07" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is associated with a Time of 20:39.171? ### Context: CREATE TABLE table_name_42 (pos INTEGER, time VARCHAR) [/INST] ### Response: SELECT AVG(pos) FROM table_name_42 WHERE time = "20:39.171" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points associated with a Best time of 01:46.367? ### Context: CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_76 WHERE best_time = "01:46.367" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223? ### Context: CREATE TABLE table_name_44 (reg_gp VARCHAR, pick__number VARCHAR, rd__number VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(reg_gp) FROM table_name_44 WHERE rd__number = 7 AND player = "ilya krikunov" AND pick__number > 223 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total PI GP of the player with a pick number 49 and a reg gp less than 0? ### Context: CREATE TABLE table_name_69 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR) [/INST] ### Response: SELECT COUNT(pl_gp) FROM table_name_69 WHERE pick__number = 49 AND reg_gp < 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 is the pick # of the player with a PI GP less than 0? ### Context: CREATE TABLE table_name_16 (pick__number INTEGER, pl_gp INTEGER) [/INST] ### Response: SELECT SUM(pick__number) FROM table_name_16 WHERE pl_gp < 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 is the reg gp of the player with a round number less than 2? ### Context: CREATE TABLE table_name_83 (reg_gp INTEGER, rd__number INTEGER) [/INST] ### Response: SELECT SUM(reg_gp) FROM table_name_83 WHERE rd__number < 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 is the average PI GP of the player from round 5 with a pick # larger than 151? ### Context: CREATE TABLE table_name_19 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT AVG(pl_gp) FROM table_name_19 WHERE rd__number = 5 AND pick__number > 151 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What constellation has a Declination ( J2000 ) of °32′39″? ### Context: CREATE TABLE table_name_57 (constellation VARCHAR, declination___j2000__ VARCHAR) [/INST] ### Response: SELECT constellation FROM table_name_57 WHERE declination___j2000__ = "°32′39″" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick from Elitserien (Sweden)? ### Context: CREATE TABLE table_name_15 (pick__number INTEGER, league_from VARCHAR) [/INST] ### Response: SELECT MIN(pick__number) FROM table_name_15 WHERE league_from = "elitserien (sweden)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 spectators were at the game where Richmond was the away team? ### Context: CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_8 WHERE away_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location of the kanyakumari government medical college? ### Context: CREATE TABLE table_name_59 (location VARCHAR, college_name VARCHAR) [/INST] ### Response: SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where is the coimbatore affilation that was established in 1982? ### Context: CREATE TABLE table_name_89 (affiliation VARCHAR, estd VARCHAR, location VARCHAR) [/INST] ### Response: SELECT affiliation FROM table_name_89 WHERE estd = "1982" AND location = "coimbatore" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the salem district? ### Context: CREATE TABLE table_name_16 (location VARCHAR, district VARCHAR) [/INST] ### Response: SELECT location FROM table_name_16 WHERE district = "salem district" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the tiruchirappalli district? ### Context: CREATE TABLE table_name_73 (location VARCHAR, district VARCHAR) [/INST] ### Response: SELECT location FROM table_name_73 WHERE district = "tiruchirappalli district" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district where the thanjavur medical college is located? ### Context: CREATE TABLE table_name_93 (district VARCHAR, college_name VARCHAR) [/INST] ### Response: SELECT district FROM table_name_93 WHERE college_name = "thanjavur medical college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where is the location of the coimbatore medical college? ### Context: CREATE TABLE table_name_42 (location VARCHAR, college_name VARCHAR) [/INST] ### Response: SELECT location FROM table_name_42 WHERE college_name = "coimbatore medical college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Time/Retired when the grid is larger than 9 and Rolf Stommelen is the driver? ### Context: CREATE TABLE table_name_25 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_25 WHERE grid > 9 AND driver = "rolf stommelen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps when the Time/Retired is differential? ### Context: CREATE TABLE table_name_76 (laps INTEGER, time_retired VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_76 WHERE time_retired = "differential" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified? ### Context: CREATE TABLE table_name_82 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid when the laps are smaller than 14 and Reine Wisell is the driver? ### Context: CREATE TABLE table_name_69 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = "reine wisell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant with a driver Damon Hill and a Renault RS8 3.0 V10 engine? ### Context: CREATE TABLE table_name_72 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_72 WHERE engine = "renault rs8 3.0 v10" AND driver = "damon hill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds? ### Context: CREATE TABLE table_name_2 (constructor VARCHAR, rounds VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of engine is in the car for Scuderia Ferrari that went all rounds? ### Context: CREATE TABLE table_name_28 (engine VARCHAR, rounds VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_28 WHERE rounds = "all" AND entrant = "scuderia 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: Who is the constructor of the 196 chassis? ### Context: CREATE TABLE table_name_50 (constructor VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_50 WHERE chassis = "196" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home with visitor of kings ### Context: CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT home FROM table_name_81 WHERE visitor = "kings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of attendance when the cavaliers visited ### Context: CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mixed doubles was featured in 2006? ### Context: CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR) [/INST] ### Response: SELECT mixed_doubles FROM table_name_93 WHERE year = 2006 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the games at corio oval, what was the highest crowd? ### Context: CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In the match as corio oval, who was the away team? ### Context: CREATE TABLE table_name_29 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_29 WHERE venue = "corio oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many communes associated with over 10 cantons and an area (Square km) of 1,589? ### Context: CREATE TABLE table_name_83 (communes INTEGER, cantons VARCHAR, area__square_km_ VARCHAR) [/INST] ### Response: SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team won the game on January 12? ### Context: CREATE TABLE table_name_83 (decision VARCHAR, date VARCHAR) [/INST] ### Response: SELECT decision FROM table_name_83 WHERE date = "january 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: Who was the home team against Geelong? ### Context: CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_70 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 attendance when the VFL played MCG? ### Context: CREATE TABLE table_name_70 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_70 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: Name the security forces with civilians of 67 ### Context: CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR) [/INST] ### Response: SELECT security_forces FROM table_name_15 WHERE civilians = "67" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 insurgents for civilians being 49 ### Context: CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR) [/INST] ### Response: SELECT insurgents FROM table_name_75 WHERE civilians = "49" </s>