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: When playing at the Kardinia Park; what was the home teams score? ### Context: CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_39 WHERE venue = "kardinia park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When Essendon played away; where did they play? ### Context: CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_50 WHERE away_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 is the terminini of the highway with an east west direction and remarks that it was replaced by us 59? ### Context: CREATE TABLE table_name_19 (termini VARCHAR, direction VARCHAR, remarks VARCHAR) [/INST] ### Response: SELECT termini FROM table_name_19 WHERE direction = "east west" AND remarks = "replaced by us 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: What is the length of the highway with the route name sh 2? ### Context: CREATE TABLE table_name_57 (length VARCHAR, route_name VARCHAR) [/INST] ### Response: SELECT length FROM table_name_57 WHERE route_name = "sh 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 length of the highway with remarks that it was replaced by lp 20? ### Context: CREATE TABLE table_name_28 (length VARCHAR, remarks VARCHAR) [/INST] ### Response: SELECT length FROM table_name_28 WHERE remarks = "replaced by lp 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 length of the highway with remarks that it was replaced by bsi-35? ### Context: CREATE TABLE table_name_77 (length VARCHAR, remarks VARCHAR) [/INST] ### Response: SELECT length FROM table_name_77 WHERE remarks = "replaced by bsi-35" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length of the highway with junctions i-35 us 83 and named us 83 bus.? ### Context: CREATE TABLE table_name_25 (length VARCHAR, junctions VARCHAR, route_name VARCHAR) [/INST] ### Response: SELECT length FROM table_name_25 WHERE junctions = "i-35 us 83" AND route_name = "us 83 bus." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college has the Chicago Stags? ### Context: CREATE TABLE table_name_60 (college VARCHAR, team VARCHAR) [/INST] ### Response: SELECT college FROM table_name_60 WHERE team = "chicago stags" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college has the Chicago stags and position is G? ### Context: CREATE TABLE table_name_78 (college VARCHAR, team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT college FROM table_name_78 WHERE team = "chicago stags" AND position = "g" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the player with position of G and the team was the Washington Capitols? ### Context: CREATE TABLE table_name_58 (player VARCHAR, position VARCHAR, team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_58 WHERE position = "g" AND team = "washington capitols" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the inauguration with a Length of retirement of 00,624 days? ### Context: CREATE TABLE table_name_78 (date_of_inauguration VARCHAR, length_of_retirement VARCHAR) [/INST] ### Response: SELECT date_of_inauguration FROM table_name_78 WHERE length_of_retirement = "00,624 days" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What largest bronze number has a gold number that is bigger than 1? ### Context: CREATE TABLE table_name_66 (bronze INTEGER, gold INTEGER) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_66 WHERE gold > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum number of bronzes when the rank is less than 2 and the gold is less than 1? ### Context: CREATE TABLE table_name_86 (bronze VARCHAR, rank VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT COUNT(bronze) FROM table_name_86 WHERE rank < 2 AND gold < 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 of the largest ranks has a bronze number less than 1, a silver of 1, and a total that is more than 1? ### Context: CREATE TABLE table_name_37 (rank INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_37 WHERE bronze < 1 AND silver = 1 AND total > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Average for South Carolina with an Interview less than 9.626? ### Context: CREATE TABLE table_name_21 (average INTEGER, state VARCHAR, interview VARCHAR) [/INST] ### Response: SELECT SUM(average) FROM table_name_21 WHERE state = "south carolina" AND interview < 9.626 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 interview for Louisiana with an average above 9.324? ### Context: CREATE TABLE table_name_77 (interview INTEGER, average VARCHAR, state VARCHAR) [/INST] ### Response: SELECT MAX(interview) FROM table_name_77 WHERE average > 9.324 AND state = "louisiana" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the crowd when Carlton was the away team? ### Context: CREATE TABLE table_name_43 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_43 WHERE away_team = "carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date when the home team was Essendon? ### Context: CREATE TABLE table_name_9 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_9 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 the away score at the game at MCG? ### Context: CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_63 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: Who wrote series number 99? ### Context: CREATE TABLE table_name_68 (written_by VARCHAR, series__number VARCHAR) [/INST] ### Response: SELECT written_by FROM table_name_68 WHERE series__number = 99 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air date of a series number after 78, written by Jenee V. Giles? ### Context: CREATE TABLE table_name_85 (original_air_date VARCHAR, series__number VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_name_85 WHERE series__number > 78 AND written_by = "jenee v. giles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tennis has less than 2 bronze, what is the total number of Gold? ### Context: CREATE TABLE table_name_53 (gold VARCHAR, sport VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT COUNT(gold) FROM table_name_53 WHERE sport = "tennis" 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: When volleyball has 2 bronze, what is the total number of silver? ### Context: CREATE TABLE table_name_28 (silver VARCHAR, bronze VARCHAR, sport VARCHAR) [/INST] ### Response: SELECT COUNT(silver) FROM table_name_28 WHERE bronze = 2 AND sport = "volleyball" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 athletics has a total more than 2 and 0 gold, what is the total number of bronze? ### Context: CREATE TABLE table_name_2 (bronze VARCHAR, sport VARCHAR, total VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT COUNT(bronze) FROM table_name_2 WHERE total > 2 AND gold = 0 AND sport = "athletics" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which is the most recent game with an attendance larger than 65,042? ### Context: CREATE TABLE table_name_44 (game INTEGER, attendance INTEGER) [/INST] ### Response: SELECT MAX(game) FROM table_name_44 WHERE attendance > 65 OFFSET 042 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name has an Order smaller than 997,more than 5 goals, and 215 games? ### Context: CREATE TABLE table_name_43 (name VARCHAR, games VARCHAR, order VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT name FROM table_name_43 WHERE order < 997 AND goals > 5 AND games = 215 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 games have an Order of 1006, and Goals larger than 192? ### Context: CREATE TABLE table_name_94 (games INTEGER, order VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT SUM(games) FROM table_name_94 WHERE order = 1006 AND goals > 192 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an order larger than 975, Seasons of 2005 – 2007, and 46 goals? ### Context: CREATE TABLE table_name_5 (games VARCHAR, goals VARCHAR, order VARCHAR, seasons VARCHAR) [/INST] ### Response: SELECT games FROM table_name_5 WHERE order > 975 AND seasons = "2005 – 2007" AND goals = 46 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest year in Annecy, France? ### Context: CREATE TABLE table_name_66 (year INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_66 WHERE venue = "annecy, france" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the Time/Retired of Ivan Capelli? ### Context: CREATE TABLE table_name_61 (time_retired VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_61 WHERE driver = "ivan capelli" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people attended the game on january 10 with a Score of 3 – 2? ### Context: CREATE TABLE table_name_96 (attendance VARCHAR, score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_96 WHERE score = "3 – 2" AND date = "january 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: How many attended the game with a Record of 21–22–2? ### Context: CREATE TABLE table_name_23 (attendance VARCHAR, record VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_23 WHERE record = "21–22–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 team's record when the NY rangers are at home with atlanta visting and lehtonen getting the decision? ### Context: CREATE TABLE table_name_25 (record VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT record FROM table_name_25 WHERE decision = "lehtonen" AND visitor = "atlanta" AND home = "ny rangers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the time/retired for the driver with fewer than 23 laps and grid larger than 23? ### Context: CREATE TABLE table_name_75 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_75 WHERE laps < 23 AND grid > 23 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps by Jorge Lorenzo on the Aprilia with a grid bigger than 1? ### Context: CREATE TABLE table_name_34 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_34 WHERE manufacturer = "aprilia" AND rider = "jorge lorenzo" AND grid > 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: Where was the game on March 11, 1999 played? ### Context: CREATE TABLE table_name_30 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_30 WHERE date = "march 11, 1999" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the British Grand Prix races? ### Context: CREATE TABLE table_name_95 (date VARCHAR, race VARCHAR) [/INST] ### Response: SELECT date FROM table_name_95 WHERE race = "british 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 Canadian Grand Prix race winner had Didier Pironi in Pole Position? ### Context: CREATE TABLE table_name_11 (race VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT race AS Winner FROM table_name_11 WHERE pole_position = "didier pironi" AND race = "canadian 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 average top 10 for cuts made less than 10, wins less than 1 and top 25 of 5 ### Context: CREATE TABLE table_name_42 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR, top_25 VARCHAR) [/INST] ### Response: SELECT AVG(top_10) FROM table_name_42 WHERE wins < 1 AND top_25 = 5 AND cuts_made < 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 prom with Hewitt class and a Height (m) of 715? ### Context: CREATE TABLE table_name_20 (prom__m_ VARCHAR, class VARCHAR, height__m_ VARCHAR) [/INST] ### Response: SELECT prom__m_ FROM table_name_20 WHERE class = "hewitt" AND height__m_ = 715 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps have a Time/Retired of + 4 laps, and a Driver of graham hill? ### Context: CREATE TABLE table_name_3 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_3 WHERE time_retired = "+ 4 laps" AND driver = "graham 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: Which Time/Retired has less than 77 laps, and a Grid of 16? ### Context: CREATE TABLE table_name_68 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_68 WHERE laps < 77 AND grid = 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 Constructor has a Grid smaller than 24, more than 77 laps, and a Driver of jean-pierre beltoise? ### Context: CREATE TABLE table_name_53 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_53 WHERE grid < 24 AND laps > 77 AND driver = "jean-pierre beltoise" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the team of the player who went to lawrence tech? ### Context: CREATE TABLE table_name_56 (team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT team FROM table_name_56 WHERE college = "lawrence tech" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drove the maserati under 18 laps with an oil leak that had a grid of under 14? ### Context: CREATE TABLE table_name_34 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_34 WHERE constructor = "maserati" AND laps < 18 AND grid < 14 AND time_retired = "oil leak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for jo siffert? ### Context: CREATE TABLE table_name_57 (grid INTEGER, driver VARCHAR) [/INST] ### Response: SELECT AVG(grid) FROM table_name_57 WHERE driver = "jo siffert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nation has 1 bronze and 3 silvers? ### Context: CREATE TABLE table_name_9 (nation VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_9 WHERE bronze = "1" 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: How many total medals for the netherlands? ### Context: CREATE TABLE table_name_9 (total INTEGER, nation VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_9 WHERE nation = "netherlands" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which venue hosted an away team of Footscray? ### Context: CREATE TABLE table_name_22 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_22 WHERE away_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player is from Murray State college? ### Context: CREATE TABLE table_name_9 (player VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player FROM table_name_9 WHERE college = "murray state" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the opponent in the final for year of 1888 ### Context: CREATE TABLE table_name_36 (opponent_in_the_final VARCHAR, year VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_36 WHERE year = 1888 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament for 1889 ### Context: CREATE TABLE table_name_76 (tournament VARCHAR, year VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_76 WHERE year = 1889 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Isabel cueto the opponent in the final? ### Context: CREATE TABLE table_name_78 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT date FROM table_name_78 WHERE opponent_in_the_final = "isabel cueto" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 raffaella reggi listed as the opponent in the final? ### Context: CREATE TABLE table_name_55 (tournament VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_55 WHERE opponent_in_the_final = "raffaella reggi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What type of surface was used where the final score was 6–2, 6–3? ### Context: CREATE TABLE table_name_41 (surface VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_41 WHERE score_in_the_final = "6–2, 6–3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the record on April 22? ### Context: CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_1 WHERE date = "april 22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the game played against Southampton? ### Context: CREATE TABLE table_name_29 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_29 WHERE opponent = "southampton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which venue has 13,634 people in attendance? ### Context: CREATE TABLE table_name_57 (venue VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_57 WHERE attendance = "13,634" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was Leyton Orient an away team? ### Context: CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_68 WHERE opponent = "leyton orient" AND venue = "away" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score on may 16? ### Context: CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_60 WHERE date = "may 16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the constructor for jo bonnier of 6 rounds? ### Context: CREATE TABLE table_name_69 (constructor VARCHAR, entrant VARCHAR, rounds VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_69 WHERE entrant = "jo bonnier" AND rounds = "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 was the driver with chassis of t45 t44 and rounds of 7? ### Context: CREATE TABLE table_name_27 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_27 WHERE chassis = "t45 t44" AND rounds = "7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the biggest crowd when the away team of south melbourne played there? ### Context: CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_40 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 score of the away team at princes park? ### Context: CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_30 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: Who was the winner with a mountain stage type on 22 May? ### Context: CREATE TABLE table_name_81 (winner VARCHAR, type VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_81 WHERE type = "mountain stage" AND date = "22 may" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 course had a mountain stage type on 3 June? ### Context: CREATE TABLE table_name_76 (course VARCHAR, type VARCHAR, date VARCHAR) [/INST] ### Response: SELECT course FROM table_name_76 WHERE type = "mountain stage" AND date = "3 june" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 course type on 22 May? ### Context: CREATE TABLE table_name_13 (type VARCHAR, date VARCHAR) [/INST] ### Response: SELECT type FROM table_name_13 WHERE date = "22 may" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of Jesse Alexander? ### Context: CREATE TABLE table_name_39 (pick__number INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(pick__number) FROM table_name_39 WHERE player = "jesse alexander" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many weeks do they have a bye? ### Context: CREATE TABLE table_name_37 (week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_37 WHERE result = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which title aired on 18 dec 2006- 10 feb 2007? ### Context: CREATE TABLE table_name_67 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR) [/INST] ### Response: SELECT english_title__chinese_title_ FROM table_name_67 WHERE airing_date = "18 dec 2006- 10 feb 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: Which genre aired on 12 feb- 9 mar? ### Context: CREATE TABLE table_name_27 (genre VARCHAR, airing_date VARCHAR) [/INST] ### Response: SELECT genre FROM table_name_27 WHERE airing_date = "12 feb- 9 mar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title had 20 episodes and aired on 11 jun- 6 jul? ### Context: CREATE TABLE table_name_20 (english_title__chinese_title_ VARCHAR, number_of_episodes VARCHAR, airing_date VARCHAR) [/INST] ### Response: SELECT english_title__chinese_title_ FROM table_name_20 WHERE number_of_episodes = 20 AND airing_date = "11 jun- 6 jul" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent on September 17? ### Context: CREATE TABLE table_name_41 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_41 WHERE date = "september 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 Opponent has a Date of september 28, 1951? ### Context: CREATE TABLE table_name_53 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_53 WHERE date = "september 28, 1951" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Date of november 18, 1951? ### Context: CREATE TABLE table_name_22 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_22 WHERE date = "november 18, 1951" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bore x stroke of 1929-32 ### Context: CREATE TABLE table_name_83 (bore_x_stroke VARCHAR, year VARCHAR) [/INST] ### Response: SELECT bore_x_stroke FROM table_name_83 WHERE year = "1929-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: Tell me the displacement for 1935-45 ### Context: CREATE TABLE table_name_63 (displacement VARCHAR, year VARCHAR) [/INST] ### Response: SELECT displacement FROM table_name_63 WHERE year = "1935-45" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 power for 1935-45 ### Context: CREATE TABLE table_name_91 (power VARCHAR, year VARCHAR) [/INST] ### Response: SELECT power FROM table_name_91 WHERE year = "1935-45" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 displacement for version of db ### Context: CREATE TABLE table_name_28 (displacement VARCHAR, version VARCHAR) [/INST] ### Response: SELECT displacement FROM table_name_28 WHERE version = "db" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 version for 1940-45 ### Context: CREATE TABLE table_name_71 (version VARCHAR, year VARCHAR) [/INST] ### Response: SELECT version FROM table_name_71 WHERE year = "1940-45" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the name of the competition in 8th position? ### Context: CREATE TABLE table_name_98 (competition VARCHAR, position VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_98 WHERE position = "8th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: After 1979, where was the European Indoor Championships held? ### Context: CREATE TABLE table_name_27 (venue VARCHAR, competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_27 WHERE competition = "european indoor championships" AND year > 1979 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Before 1979, what position was the European Indoor Championships? ### Context: CREATE TABLE table_name_78 (position VARCHAR, competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT position FROM table_name_78 WHERE competition = "european indoor championships" AND year < 1979 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What player is picked before 2? ### Context: CREATE TABLE table_name_94 (player VARCHAR, pick__number INTEGER) [/INST] ### Response: SELECT player FROM table_name_94 WHERE pick__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 position do the bc lions pick? ### Context: CREATE TABLE table_name_22 (position VARCHAR, cfl_team VARCHAR) [/INST] ### Response: SELECT position FROM table_name_22 WHERE cfl_team = "bc lions" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where has an ICAO of EPWA? ### Context: CREATE TABLE table_name_43 (city VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT city FROM table_name_43 WHERE icao = "epwa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an IATA of BVA? ### Context: CREATE TABLE table_name_69 (city VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT city FROM table_name_69 WHERE iata = "bva" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the record 3-14-6? ### Context: CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_62 WHERE record = "3-14-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 home team had a record of 4-16-7? ### Context: CREATE TABLE table_name_34 (home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT home FROM table_name_34 WHERE record = "4-16-7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which year was the film Rang Barse introduced? ### Context: CREATE TABLE table_name_63 (year VARCHAR, film_name VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_63 WHERE film_name = "rang barse" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest year for the film Gaon Ki Ganga? ### Context: CREATE TABLE table_name_95 (year INTEGER, film_name VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_95 WHERE film_name = "gaon ki ganga" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film was released in the year 2002? ### Context: CREATE TABLE table_name_63 (film_name VARCHAR, year VARCHAR) [/INST] ### Response: SELECT film_name FROM table_name_63 WHERE year = 2002 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name a music director, belonging to a year after 2003? ### Context: CREATE TABLE table_name_86 (music_director VARCHAR, year INTEGER) [/INST] ### Response: SELECT music_director FROM table_name_86 WHERE year > 2003 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average crowd when the team Collingwood was away? ### Context: CREATE TABLE table_name_38 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT AVG(crowd) FROM table_name_38 WHERE away_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the first citicality for electric power of 1,380 mw ### Context: CREATE TABLE table_name_3 (first_criticality VARCHAR, electric_power VARCHAR) [/INST] ### Response: SELECT first_criticality FROM table_name_3 WHERE electric_power = "1,380 mw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What constructor has an engine of cosworth cr-2 and a driver of luciano burti? ### Context: CREATE TABLE table_name_52 (constructor VARCHAR, engine_† VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_52 WHERE engine_† = "cosworth cr-2" AND driver = "luciano burti" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tyre for the peugeot a20 engine? ### Context: CREATE TABLE table_name_40 (tyre VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT tyre FROM table_name_40 WHERE engine_† = "peugeot a20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant had a constructor of benetton - playlife? ### Context: CREATE TABLE table_name_62 (entrant VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_62 WHERE constructor = "benetton - playlife" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant had a mugen-honda mf-301 he engine? ### Context: CREATE TABLE table_name_68 (entrant VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_68 WHERE engine_† = "mugen-honda mf-301 he" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the chassis for alexander wurz's playlife fb02 engine? ### Context: CREATE TABLE table_name_7 (chassis VARCHAR, engine_† VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_7 WHERE engine_† = "playlife fb02" AND driver = "alexander wurz" </s>