text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the catalog number of Alfa records? ### Context: CREATE TABLE table_name_74 (catalog VARCHAR, label VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_74 WHERE label = "alfa records" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player has 68 as the score and canada as the country? ### Context: CREATE TABLE table_name_35 (player VARCHAR, score VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_35 WHERE score = 68 AND country = "canada" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What place has Canada as the country? ### Context: CREATE TABLE table_name_53 (place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT place FROM table_name_53 WHERE country = "canada" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player has 69 as the score? ### Context: CREATE TABLE table_name_52 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_52 WHERE score = 69 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What place has a score greater than 68, and camilo villegas as the player? ### Context: CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_51 WHERE score > 68 AND player = "camilo villegas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score with lee westwood as the player? ### Context: CREATE TABLE table_name_5 (score INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(score) FROM table_name_5 WHERE player = "lee westwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years with authority of state and decile more than 6 with roll less than 33 ### Context: CREATE TABLE table_name_40 (years VARCHAR, roll VARCHAR, authority VARCHAR, decile VARCHAR) [/INST] ### Response: SELECT years FROM table_name_40 WHERE authority = "state" AND decile > 6 AND roll < 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years for marton and decile of 3 for turakina maori girls' college? ### Context: CREATE TABLE table_name_91 (years VARCHAR, name VARCHAR, area VARCHAR, decile VARCHAR) [/INST] ### Response: SELECT years FROM table_name_91 WHERE area = "marton" AND decile = 3 AND name = "turakina maori girls' 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: Name the average gold medals when the bronze medals was less than 1, silver medals being 0 and total medals more than 1 ### Context: CREATE TABLE table_name_82 (gold_medals INTEGER, total_medals VARCHAR, bronze_medals VARCHAR, silver_medals VARCHAR) [/INST] ### Response: SELECT AVG(gold_medals) FROM table_name_82 WHERE bronze_medals < 1 AND silver_medals = 0 AND total_medals > 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: Name the total number of bronze medals when gold medals was 2, total medals more than 4 and silver medals less than 5 ### Context: CREATE TABLE table_name_87 (bronze_medals VARCHAR, silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR) [/INST] ### Response: SELECT COUNT(bronze_medals) FROM table_name_87 WHERE gold_medals = 2 AND total_medals > 4 AND silver_medals < 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the ensemble with silver medals more than 1 ### Context: CREATE TABLE table_name_21 (ensemble VARCHAR, silver_medals INTEGER) [/INST] ### Response: SELECT ensemble FROM table_name_21 WHERE silver_medals > 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: Name the average total medals with ensemble of goshen hs ### Context: CREATE TABLE table_name_2 (total_medals INTEGER, ensemble VARCHAR) [/INST] ### Response: SELECT AVG(total_medals) FROM table_name_2 WHERE ensemble = "goshen hs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which category did Nick Jonas win at the Kids' Choice Awards Mexico? ### Context: CREATE TABLE table_name_9 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR) [/INST] ### Response: SELECT category FROM table_name_9 WHERE recipient_s_ = "nick jonas" AND award = "kids' choice awards mexico" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 award for the Choice TV: Breakout Star Female category? ### Context: CREATE TABLE table_name_36 (award VARCHAR, category VARCHAR) [/INST] ### Response: SELECT award FROM table_name_36 WHERE category = "choice tv: breakout star female" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Joe Jonas' result at the Kids' Choice Awards Mexico? ### Context: CREATE TABLE table_name_32 (result VARCHAR, recipient_s_ VARCHAR, award VARCHAR) [/INST] ### Response: SELECT result FROM table_name_32 WHERE recipient_s_ = "joe jonas" AND award = "kids' choice awards mexico" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What category was Joe Jonas nominated for at the Kids' Choice Awards Mexico in 2010? ### Context: CREATE TABLE table_name_44 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT category FROM table_name_44 WHERE result = "nominated" AND year = 2010 AND award = "kids' choice awards mexico" AND recipient_s_ = "joe jonas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Chassis did Team BMS Scuderia Italia use with G Tyres and a Ferrari 037 3.5 v12 engine? ### Context: CREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR, team VARCHAR, tyres VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_76 WHERE team = "bms scuderia italia" AND tyres = "g" AND engine = "ferrari 037 3.5 v12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rookie of the Year for the Season in 2000? ### Context: CREATE TABLE table_name_72 (rookie_of_the_year VARCHAR, season VARCHAR) [/INST] ### Response: SELECT rookie_of_the_year FROM table_name_72 WHERE season = 2000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the game played in which the record was 46-29? ### Context: CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_86 WHERE record = "46-29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type had the unit greifswald - 7 (kgr 7) ? ### Context: CREATE TABLE table_name_15 (type VARCHAR, unit VARCHAR) [/INST] ### Response: SELECT type FROM table_name_15 WHERE unit = "greifswald - 7 (kgr 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 unite had the type wwer-440/213? ### Context: CREATE TABLE table_name_31 (unit VARCHAR, type VARCHAR) [/INST] ### Response: SELECT unit FROM table_name_31 WHERE type = "wwer-440/213" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that construction was finished when the unit was greifswald - 4 (kgr 4)? ### Context: CREATE TABLE table_name_28 (finish_construction VARCHAR, unit VARCHAR) [/INST] ### Response: SELECT finish_construction FROM table_name_28 WHERE unit = "greifswald - 4 (kgr 4)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the net power, when the type was wwer-440/230, and when construction was finished on 24.10.1977? ### Context: CREATE TABLE table_name_74 (net_power VARCHAR, type VARCHAR, finish_construction VARCHAR) [/INST] ### Response: SELECT net_power FROM table_name_74 WHERE type = "wwer-440/230" AND finish_construction = "24.10.1977" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: During what years was álvaro pérez the number 2 ranked player? ### Context: CREATE TABLE table_name_39 (year_s_ VARCHAR, rank VARCHAR, player VARCHAR) [/INST] ### Response: SELECT year_s_ FROM table_name_39 WHERE rank = 2 AND player = "álvaro pérez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for Top-5, when the value for Top-25 is 0, and the value for Wins is less than 0? ### Context: CREATE TABLE table_name_66 (top_5 INTEGER, top_25 VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(top_5) FROM table_name_66 WHERE top_25 = 0 AND wins < 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 total amount of Top-25 having a Top-5 greater than 1? ### Context: CREATE TABLE table_name_92 (top_25 VARCHAR, top_5 INTEGER) [/INST] ### Response: SELECT COUNT(top_25) FROM table_name_92 WHERE top_5 > 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 of the value Top-10 that has a Cuts value of 2 and a Wins value smaller than 0? ### Context: CREATE TABLE table_name_26 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(top_10) FROM table_name_26 WHERE cuts_made = 2 AND wins < 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 average value for Top-5, when the value Cuts is 5, and when the tournament is the Open Championship, and when the value Events is less than 6? ### Context: CREATE TABLE table_name_89 (top_5 INTEGER, events VARCHAR, cuts_made VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT AVG(top_5) FROM table_name_89 WHERE cuts_made = 5 AND tournament = "the open championship" AND events < 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest value for Events, when the value for Top-5 is greater than 1? ### Context: CREATE TABLE table_name_56 (events INTEGER, top_5 INTEGER) [/INST] ### Response: SELECT MIN(events) FROM table_name_56 WHERE top_5 > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the visiting team on November 10? ### Context: CREATE TABLE table_name_28 (visiting_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visiting_team FROM table_name_28 WHERE date = "november 10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the host team for the game with the final score of 26-24? ### Context: CREATE TABLE table_name_67 (host_team VARCHAR, final_score VARCHAR) [/INST] ### Response: SELECT host_team FROM table_name_67 WHERE final_score = "26-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: Who was the host team on November 17? ### Context: CREATE TABLE table_name_48 (host_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT host_team FROM table_name_48 WHERE date = "november 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: At what stadium was the game with the final score of 9-23 played? ### Context: CREATE TABLE table_name_55 (stadium VARCHAR, final_score VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_55 WHERE final_score = "9-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: At what stadium was the game with the final score of 26-24 played? ### Context: CREATE TABLE table_name_29 (stadium VARCHAR, final_score VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_29 WHERE final_score = "26-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: Which host team played against the New England Patriots? ### Context: CREATE TABLE table_name_29 (host_team VARCHAR, visiting_team VARCHAR) [/INST] ### Response: SELECT host_team FROM table_name_29 WHERE visiting_team = "new england patriots" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the reason the Chief Judge of 1971–1977 was terminated? ### Context: CREATE TABLE table_name_33 (reason_for_termination VARCHAR, chief_judge VARCHAR) [/INST] ### Response: SELECT reason_for_termination FROM table_name_33 WHERE chief_judge = "1971–1977" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state has a Reason for termination of retirement, and an Active service of 1926–1928? ### Context: CREATE TABLE table_name_34 (state VARCHAR, reason_for_termination VARCHAR, active_service VARCHAR) [/INST] ### Response: SELECT state FROM table_name_34 WHERE reason_for_termination = "retirement" AND active_service = "1926–1928" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PI code in the hindhead area? ### Context: CREATE TABLE table_name_54 (pi_code VARCHAR, area VARCHAR) [/INST] ### Response: SELECT pi_code FROM table_name_54 WHERE area = "hindhead" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 frequency with 900w power? ### Context: CREATE TABLE table_name_81 (frequency VARCHAR, power VARCHAR) [/INST] ### Response: SELECT frequency FROM table_name_81 WHERE power = "900w" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event ended in 3:02 of round 1? ### Context: CREATE TABLE table_name_92 (event VARCHAR, round VARCHAR, time VARCHAR) [/INST] ### Response: SELECT event FROM table_name_92 WHERE round = 1 AND time = "3:02" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round reached by an oppo ent of JR schumacher? ### Context: CREATE TABLE table_name_77 (round INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_77 WHERE opponent = "jr schumacher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where did arturo segovia compete? ### Context: CREATE TABLE table_name_24 (location VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT location FROM table_name_24 WHERE opponent = "arturo segovia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 top fastest time, larger than 2, in Enugu? ### Context: CREATE TABLE table_name_76 (fastest_time__s_ INTEGER, location VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MAX(fastest_time__s_) FROM table_name_76 WHERE location = "enugu" AND rank > 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: How many casualties were from the IED circumstance? ### Context: CREATE TABLE table_name_48 (casualties VARCHAR, circumstances VARCHAR) [/INST] ### Response: SELECT casualties FROM table_name_48 WHERE circumstances = "ied" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there any Draws with 45 tries against? ### Context: CREATE TABLE table_name_56 (drawn VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT drawn FROM table_name_56 WHERE tries_against = "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: Which club participated with a record of 45 tries against? ### Context: CREATE TABLE table_name_91 (club VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT club FROM table_name_91 WHERE tries_against = "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 was the amount of draws where a club had 51 tries for? ### Context: CREATE TABLE table_name_19 (drawn VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT drawn FROM table_name_19 WHERE tries_for = "51" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 losses were there with 208 points? ### Context: CREATE TABLE table_name_26 (lost VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_26 WHERE points_for = "208" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 participating clubs had 73 tries for? ### Context: CREATE TABLE table_name_73 (club VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT club FROM table_name_73 WHERE tries_for = "73" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What car has a March 90ca Chassis? ### Context: CREATE TABLE table_name_44 (engine VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_44 WHERE chassis = "march 90ca" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that has an engine of cosworth v8, with a chassis of hesketh 308e? ### Context: CREATE TABLE table_name_81 (year INTEGER, engine VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_81 WHERE engine = "cosworth v8" AND chassis = "hesketh 308e" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has brm v12 as the engine? ### Context: CREATE TABLE table_name_19 (year VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT year FROM table_name_19 WHERE engine = "brm v12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latesr year that has more points than 0? ### Context: CREATE TABLE table_name_22 (year INTEGER, pts INTEGER) [/INST] ### Response: SELECT MAX(year) FROM table_name_22 WHERE pts > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which is the highest Gold that has a total smaller than 4 and a silver of 1, and a bronze smaller than 2, and a rank of 13? ### Context: CREATE TABLE table_name_94 (gold INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_94 WHERE total < 4 AND silver = 1 AND bronze < 2 AND rank = "13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which nation has a Bronze and Silver smaller than 1 and a Gold larger than 1? ### Context: CREATE TABLE table_name_87 (nation VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_87 WHERE bronze < 1 AND silver < 1 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: What was the score of the game that had a round of Rd 26, 2001? ### Context: CREATE TABLE table_name_90 (score VARCHAR, round VARCHAR) [/INST] ### Response: SELECT score FROM table_name_90 WHERE round = "rd 26, 2001" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game attended by 37,119? ### Context: CREATE TABLE table_name_24 (loss VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_24 WHERE attendance = "37,119" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the game that had a loss of lidle (10-8)? ### Context: CREATE TABLE table_name_89 (date VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT date FROM table_name_89 WHERE loss = "lidle (10-8)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the loss of the game against the Yankees that was attended by 27,652? ### Context: CREATE TABLE table_name_45 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_45 WHERE opponent = "yankees" AND attendance = "27,652" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 finish of the Qual of 159.384? ### Context: CREATE TABLE table_name_11 (finish VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_11 WHERE qual = "159.384" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 qual for rank 18 in 1964? ### Context: CREATE TABLE table_name_44 (qual VARCHAR, rank VARCHAR, year VARCHAR) [/INST] ### Response: SELECT qual FROM table_name_44 WHERE rank = "18" AND year = "1964" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 May 13, what was the team's record? ### Context: CREATE TABLE table_name_33 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_33 WHERE date = "may 13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On May 26, what was the team's record? ### Context: CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_92 WHERE date = "may 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who did they lose to on May 20? ### Context: CREATE TABLE table_name_68 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_68 WHERE date = "may 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 was Spring Creek School's area when the decile was 4? ### Context: CREATE TABLE table_name_67 (area VARCHAR, decile VARCHAR, name VARCHAR) [/INST] ### Response: SELECT area FROM table_name_67 WHERE decile = 4 AND name = "spring creek school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Founded for chicopee, massachusetts? ### Context: CREATE TABLE table_name_59 (founded INTEGER, location VARCHAR) [/INST] ### Response: SELECT AVG(founded) FROM table_name_59 WHERE location = "chicopee, massachusetts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Joined with a Nickname of wildcats in longmeadow, massachusetts? ### Context: CREATE TABLE table_name_55 (joined INTEGER, nickname VARCHAR, location VARCHAR) [/INST] ### Response: SELECT AVG(joined) FROM table_name_55 WHERE nickname = "wildcats" AND location = "longmeadow, massachusetts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Current Conference has a Nickname of lynx? ### Context: CREATE TABLE table_name_53 (current_conference VARCHAR, nickname VARCHAR) [/INST] ### Response: SELECT current_conference FROM table_name_53 WHERE nickname = "lynx" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What league played in 2011? ### Context: CREATE TABLE table_name_65 (league VARCHAR, year VARCHAR) [/INST] ### Response: SELECT league FROM table_name_65 WHERE year = 2011 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which date has a Record of 22-22? ### Context: CREATE TABLE table_name_24 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_24 WHERE record = "22-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: Which Opponent has a Date of may 30? ### Context: CREATE TABLE table_name_94 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_94 WHERE date = "may 30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 all played mixed doubles in 2010? ### Context: CREATE TABLE table_name_68 (mixed_doubles VARCHAR, year VARCHAR) [/INST] ### Response: SELECT mixed_doubles FROM table_name_68 WHERE year = 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lanes have a Nationality of united states, and a Name of aaron peirsol? ### Context: CREATE TABLE table_name_28 (lane VARCHAR, nationality VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(lane) FROM table_name_28 WHERE nationality = "united states" AND name = "aaron peirsol" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Lane smaller than 3, a Heat larger than 4, and a Time of 2:00.80? ### Context: CREATE TABLE table_name_12 (name VARCHAR, time VARCHAR, lane VARCHAR, heat VARCHAR) [/INST] ### Response: SELECT name FROM table_name_12 WHERE lane < 3 AND heat > 4 AND time = "2:00.80" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was there a result of 8-1 and a score of 8-1? ### Context: CREATE TABLE table_name_92 (date VARCHAR, result VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 WHERE result = "8-1" AND score = "8-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: When was there a result of 5-1? ### Context: CREATE TABLE table_name_41 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_41 WHERE result = "5-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: When was there a score of 7-1? ### Context: CREATE TABLE table_name_71 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE score = "7-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 result when the score is 8-1? ### Context: CREATE TABLE table_name_75 (result VARCHAR, score VARCHAR) [/INST] ### Response: SELECT result FROM table_name_75 WHERE score = "8-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 competition type when the score is 1-1? ### Context: CREATE TABLE table_name_44 (competition VARCHAR, score VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_44 WHERE score = "1-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 was the date of the game after week 6 with the New York Jets as the opponent? ### Context: CREATE TABLE table_name_38 (date VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_38 WHERE week > 6 AND opponent = "new york jets" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result of the week 1 game? ### Context: CREATE TABLE table_name_91 (result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT result FROM table_name_91 WHERE week = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many goals have Lost larger than 35, and Games smaller than 80? ### Context: CREATE TABLE table_name_33 (goals_for VARCHAR, lost VARCHAR, games VARCHAR) [/INST] ### Response: SELECT COUNT(goals_for) FROM table_name_33 WHERE lost > 35 AND games < 80 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the total Goals against with 72 points and more than 37 losses? ### Context: CREATE TABLE table_name_10 (goals_against INTEGER, points VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT SUM(goals_against) FROM table_name_10 WHERE points = 72 AND lost > 37 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the total number of points with more than 225 goals and a Goals against of 190? ### Context: CREATE TABLE table_name_31 (points INTEGER, goals_for VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_31 WHERE goals_for > 225 AND goals_against = 190 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 broadband subscribers are there where the population is ~3,644,070? ### Context: CREATE TABLE table_name_24 (number_of_broadband_subscribers VARCHAR, population VARCHAR) [/INST] ### Response: SELECT number_of_broadband_subscribers FROM table_name_24 WHERE population = "~3,644,070" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 broadband penetration where there are ~355,100 broadband subscribers? ### Context: CREATE TABLE table_name_31 (Broadband VARCHAR, number_of_broadband_subscribers VARCHAR) [/INST] ### Response: SELECT Broadband AS penetration FROM table_name_31 WHERE number_of_broadband_subscribers = "~355,100" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 broadband subscribers are there where there are ~47,372 users? ### Context: CREATE TABLE table_name_56 (number_of_broadband_subscribers VARCHAR, number_of_users VARCHAR) [/INST] ### Response: SELECT number_of_broadband_subscribers FROM table_name_56 WHERE number_of_users = "~47,372" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a value less than 377 million in Germany with a rank of 17? ### Context: CREATE TABLE table_name_5 (team VARCHAR, rank VARCHAR, value__$m_ VARCHAR, country VARCHAR) [/INST] ### Response: SELECT team FROM table_name_5 WHERE value__$m_ < 377 AND country = "germany" AND rank = 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: What is the average revenue for Bayern Munich with a rank greater than 4? ### Context: CREATE TABLE table_name_28 (revenue__ INTEGER, team VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(revenue__) AS $m_ FROM table_name_28 WHERE team = "bayern munich" AND rank > 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: Which country has more than 5% change in a year with a rank of 10? ### Context: CREATE TABLE table_name_23 (country VARCHAR, _percentage_change_on_year VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT country FROM table_name_23 WHERE _percentage_change_on_year > 5 AND rank = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest revenue for the rank of 14? ### Context: CREATE TABLE table_name_95 (revenue__ INTEGER, rank VARCHAR) [/INST] ### Response: SELECT MIN(revenue__) AS $m_ FROM table_name_95 WHERE rank = 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the opponent for jul 31 and score of w 5-1 ### Context: CREATE TABLE table_name_50 (opponent VARCHAR, date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_50 WHERE date = "jul 31" AND score = "w 5-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: Name the less for opponent of @cle and record of 67-29 ### Context: CREATE TABLE table_name_44 (loss VARCHAR, opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_44 WHERE opponent = "@cle" AND record = "67-29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 loss with record of 71-33 ### Context: CREATE TABLE table_name_4 (loss VARCHAR, record VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_4 WHERE record = "71-33" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date with record of 55-24 ### Context: CREATE TABLE table_name_9 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_9 WHERE record = "55-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: Name the record with opponent of bos and loss of morris ### Context: CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT record FROM table_name_37 WHERE opponent = "bos" AND loss = "morris" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 catalog did Village Records have on February 14, 2002? ### Context: CREATE TABLE table_name_60 (catalog VARCHAR, label VARCHAR, date VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_60 WHERE label = "village records" AND date = "february 14, 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: What was the region for the 38xa-5 catalog? ### Context: CREATE TABLE table_name_6 (region VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT region FROM table_name_6 WHERE catalog = "38xa-5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date for the catalog 32xa-112? ### Context: CREATE TABLE table_name_42 (date VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT date FROM table_name_42 WHERE catalog = "32xa-112" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for a catalog formatted in stereo LP? ### Context: CREATE TABLE table_name_33 (date VARCHAR, format VARCHAR) [/INST] ### Response: SELECT date FROM table_name_33 WHERE format = "stereo lp" </s>