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: who is the driver with the engine era 1.5 l6 s and the chassis is era b? ### Context: CREATE TABLE table_name_17 (driver VARCHAR, engine VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_17 WHERE engine = "era 1.5 l6 s" AND chassis = "era b" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge? ### Context: CREATE TABLE table_name_75 (constructor VARCHAR, entrant VARCHAR, chassis VARCHAR, tyre VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_75 WHERE tyre = "d" AND engine = "talbot 23cv 4.5 l6" AND chassis = "talbot-lago t26c" AND entrant = "ecurie belge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 KK -1 if KK -3 is 1,100? ### Context: CREATE TABLE table_name_79 (kk___1 VARCHAR, kk___3 VARCHAR) [/INST] ### Response: SELECT kk___1 FROM table_name_79 WHERE kk___3 = "1,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: What is KK -5 if KK - 3 is 310? ### Context: CREATE TABLE table_name_38 (kk___5 VARCHAR, kk___3 VARCHAR) [/INST] ### Response: SELECT kk___5 FROM table_name_38 WHERE kk___3 = "310" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 KK - 5 if KK - 1 is 1,067? ### Context: CREATE TABLE table_name_42 (kk___5 VARCHAR, kk___1 VARCHAR) [/INST] ### Response: SELECT kk___5 FROM table_name_42 WHERE kk___1 = "1,067" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the Winner with a Time of 1:12.00 and Melvin A. Holland as the Jockey? ### Context: CREATE TABLE table_name_74 (winner VARCHAR, time VARCHAR, jockey VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_74 WHERE time = "1:12.00" AND jockey = "melvin a. holland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Purse of $83,925? ### Context: CREATE TABLE table_name_71 (year VARCHAR, purse VARCHAR) [/INST] ### Response: SELECT year FROM table_name_71 WHERE purse = "$83,925" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Purse listed for the Year of 1998? ### Context: CREATE TABLE table_name_10 (purse VARCHAR, year VARCHAR) [/INST] ### Response: SELECT purse FROM table_name_10 WHERE year = "1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner in the Year of 2000? ### Context: CREATE TABLE table_name_9 (winner VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_9 WHERE year = "2000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the WInner with a TIme of 1:10.60, and Owner of Leslie Combs II? ### Context: CREATE TABLE table_name_43 (winner VARCHAR, time VARCHAR, owner VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_43 WHERE time = "1:10.60" AND owner = "leslie combs ii" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the Trainer with the Year of 2013? ### Context: CREATE TABLE table_name_33 (trainer VARCHAR, year VARCHAR) [/INST] ### Response: SELECT trainer FROM table_name_33 WHERE year = "2013" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points did the away team of st kilda score? ### Context: CREATE TABLE table_name_84 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_84 WHERE away_team = "st kilda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the date with result of l 13–9 ### Context: CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_94 WHERE result = "l 13–9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the total number of week for w 35–7 ### Context: CREATE TABLE table_name_67 (week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_67 WHERE result = "w 35–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: Tell me the average week for result of l 34–24 ### Context: CREATE TABLE table_name_70 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_70 WHERE result = "l 34–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 President of Czechoslovakia when an ambassador's tenure began in 1950? ### Context: CREATE TABLE table_name_99 (czechoslovak_president VARCHAR, tenure_begin VARCHAR) [/INST] ### Response: SELECT czechoslovak_president FROM table_name_99 WHERE tenure_begin = "1950" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 share for an episode with an air date of November 19, 2007? ### Context: CREATE TABLE table_name_2 (share INTEGER, air_date VARCHAR) [/INST] ### Response: SELECT SUM(share) FROM table_name_2 WHERE air_date = "november 19, 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 manufacturer has a Time/Retired of +15.665? ### Context: CREATE TABLE table_name_35 (manufacturer VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_35 WHERE time_retired = "+15.665" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the laps of aprilia with a grid of 10? ### Context: CREATE TABLE table_name_72 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_72 WHERE manufacturer = "aprilia" AND grid = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the size of the crowd at the game played at Junction Oval? ### Context: CREATE TABLE table_name_66 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT AVG(crowd) FROM table_name_66 WHERE venue = "junction oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the game when North Melbourne was the home team? ### Context: CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_35 WHERE home_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which School/Club Team does Andrew Jones play for? ### Context: CREATE TABLE table_name_64 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_64 WHERE player = "andrew jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which School/Club Team did not make it to round 2? ### Context: CREATE TABLE table_name_5 (school_club_team VARCHAR, round INTEGER) [/INST] ### Response: SELECT school_club_team FROM table_name_5 WHERE round < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player is the 24 pick? ### Context: CREATE TABLE table_name_16 (player VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT player FROM table_name_16 WHERE pick = "24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average round of the number 16 pick? ### Context: CREATE TABLE table_name_72 (round INTEGER, pick VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_72 WHERE pick = "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: How many games were lost where the win percentage is smaller than 16.7 and the played games is 3? ### Context: CREATE TABLE table_name_83 (lost VARCHAR, win__percentage VARCHAR, played VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 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: Where is pine valley? ### Context: CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR) [/INST] ### Response: SELECT location FROM table_name_23 WHERE name = "pine valley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 augusta's low rank? ### Context: CREATE TABLE table_name_58 (rank INTEGER, location VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_58 WHERE location = "augusta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Model has the GCM (kg) Technical Capacity of 42000? ### Context: CREATE TABLE table_name_52 (model VARCHAR, gcm__kg__technical_capacity VARCHAR) [/INST] ### Response: SELECT model FROM table_name_52 WHERE gcm__kg__technical_capacity = "42000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Model has a GCM (kg) Technical Capacity of 35000, a GVM (kg) Technical Capacity of 16000, and Cummins Interact 6.0-euro III (turbo intercooler) for the Engine? ### Context: CREATE TABLE table_name_94 (model VARCHAR, engine_make_capacity VARCHAR, gcm__kg__technical_capacity VARCHAR, gvm__kg__technical_capacity VARCHAR) [/INST] ### Response: SELECT model FROM table_name_94 WHERE gcm__kg__technical_capacity = "35000" AND gvm__kg__technical_capacity = "16000" AND engine_make_capacity = "cummins interact 6.0-euro iii (turbo intercooler)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 character won before 2006? ### Context: CREATE TABLE table_name_44 (character VARCHAR, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT character FROM table_name_44 WHERE result = "won" AND year < 2006 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In 2004 who was favourite maa? ### Context: CREATE TABLE table_name_6 (character VARCHAR, category VARCHAR, year VARCHAR) [/INST] ### Response: SELECT character FROM table_name_6 WHERE category = "favourite maa" AND year = 2004 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the results after 2004? ### Context: CREATE TABLE table_name_33 (result VARCHAR, year INTEGER) [/INST] ### Response: SELECT result FROM table_name_33 WHERE year > 2004 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2007 what category won? ### Context: CREATE TABLE table_name_62 (category VARCHAR, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT category FROM table_name_62 WHERE result = "won" AND year < 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: What's the D 48 √ when the D 40 √ is D 37? ### Context: CREATE TABLE table_name_97 (d_48_√ VARCHAR, d_40_√ VARCHAR) [/INST] ### Response: SELECT d_48_√ FROM table_name_97 WHERE d_40_√ = "d 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's the D 42 √ when D 46 √ is majorityβ†’? ### Context: CREATE TABLE table_name_14 (d_42_√ VARCHAR, d_46_√ VARCHAR) [/INST] ### Response: SELECT d_42_√ FROM table_name_14 WHERE d_46_√ = "majorityβ†’" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 40 √ when D 43 √ is d 14? ### Context: CREATE TABLE table_name_23 (d_40_√ VARCHAR, d_43_√ VARCHAR) [/INST] ### Response: SELECT d_40_√ FROM table_name_23 WHERE d_43_√ = "d 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: What's the D 42 √ when D 44 √ is majorityβ†’? ### Context: CREATE TABLE table_name_59 (d_42_√ VARCHAR, d_44_√ VARCHAR) [/INST] ### Response: SELECT d_42_√ FROM table_name_59 WHERE d_44_√ = "majorityβ†’" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 44 √ when D 46 √ is d 26? ### Context: CREATE TABLE table_name_27 (d_44_√ VARCHAR, d_46_√ VARCHAR) [/INST] ### Response: SELECT d_44_√ FROM table_name_27 WHERE d_46_√ = "d 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the D 42 √ when D 43 √ is r 5? ### Context: CREATE TABLE table_name_13 (d_42_√ VARCHAR, d_43_√ VARCHAR) [/INST] ### Response: SELECT d_42_√ FROM table_name_13 WHERE d_43_√ = "r 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: How many benue houses have been founded? ### Context: CREATE TABLE table_name_67 (founded VARCHAR, house_name VARCHAR) [/INST] ### Response: SELECT COUNT(founded) FROM table_name_67 WHERE house_name = "benue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the earliest year founded for houses named after the river benue? ### Context: CREATE TABLE table_name_56 (founded INTEGER, named_after VARCHAR) [/INST] ### Response: SELECT MIN(founded) FROM table_name_56 WHERE named_after = "river benue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 composition was founded in 1976? ### Context: CREATE TABLE table_name_37 (composition VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT composition FROM table_name_37 WHERE founded = 1976 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 colours have a House Name of ogun? ### Context: CREATE TABLE table_name_93 (colours VARCHAR, house_name VARCHAR) [/INST] ### Response: SELECT colours FROM table_name_93 WHERE house_name = "ogun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average attendance on january 6, 2008? ### Context: CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_34 WHERE date = "january 6, 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when the spurs were the visitors? ### Context: CREATE TABLE table_name_43 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE visitor = "spurs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 GNIS Feature ID with a County of idaho? ### Context: CREATE TABLE table_name_64 (gnis_feature_id INTEGER, county VARCHAR) [/INST] ### Response: SELECT SUM(gnis_feature_id) FROM table_name_64 WHERE county = "idaho" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 GNIS Feature ID from County of sheridan? ### Context: CREATE TABLE table_name_39 (gnis_feature_id INTEGER, county VARCHAR) [/INST] ### Response: SELECT MIN(gnis_feature_id) FROM table_name_39 WHERE county = "sheridan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name of diamond lake, and a GNIS Feature ID of 1579127? ### Context: CREATE TABLE table_name_91 (state VARCHAR, name VARCHAR, gnis_feature_id VARCHAR) [/INST] ### Response: SELECT state FROM table_name_91 WHERE name = "diamond lake" AND gnis_feature_id = 1579127 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed the episode written cyrus nowrasteh? ### Context: CREATE TABLE table_name_85 (directed_by VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_name_85 WHERE written_by = "cyrus nowrasteh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126? ### Context: CREATE TABLE table_name_72 (rank__pakistan_ VARCHAR, world_rank VARCHAR, height__m_ VARCHAR) [/INST] ### Response: SELECT COUNT(rank__pakistan_) FROM table_name_72 WHERE world_rank < 11 AND height__m_ < 8126 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2006 tournament had a 4R performance in 2001? ### Context: CREATE TABLE table_name_96 (Id VARCHAR) [/INST] ### Response: SELECT 2006 FROM table_name_96 WHERE 2001 = "4r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a performance of 1R in 2004 and 2R in 1998? ### Context: CREATE TABLE table_name_79 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_79 WHERE 2004 = "1r" AND 1998 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1998 tournament had a performance of 3R in 2007? ### Context: CREATE TABLE table_name_14 (Id VARCHAR) [/INST] ### Response: SELECT 1998 FROM table_name_14 WHERE 2007 = "3r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2005 tournament that has a 1R in both 2006 and 2002? ### Context: CREATE TABLE table_name_14 (Id VARCHAR) [/INST] ### Response: SELECT 2005 FROM table_name_14 WHERE 2006 = "1r" AND 2002 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years? ### Context: CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR) [/INST] ### Response: SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.? ### Context: CREATE TABLE table_name_11 (gross_debt_in_ VARCHAR, debt_held_by_public__$billions_ VARCHAR, as__percentage_of_gdp_low_high VARCHAR) [/INST] ### Response: SELECT COUNT(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_11 WHERE debt_held_by_public__$billions_ > 236.8 AND as__percentage_of_gdp_low_high = "33.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 player was selected in Round 6? ### Context: CREATE TABLE table_name_96 (player VARCHAR, round VARCHAR) [/INST] ### Response: SELECT player FROM table_name_96 WHERE round = 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 nationality of the player who played for the Peterborough Petes (OHL)? ### Context: CREATE TABLE table_name_6 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_6 WHERE college_junior_club_team__league_ = "peterborough petes (ohl)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round was Mike Peca (C) of Canada selected in? ### Context: CREATE TABLE table_name_84 (round INTEGER, nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_84 WHERE nationality = "canada" AND player = "mike peca (c)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest grid for Ayrton Senna? ### Context: CREATE TABLE table_name_21 (grid INTEGER, driver VARCHAR) [/INST] ### Response: SELECT MIN(grid) FROM table_name_21 WHERE driver = "ayrton senna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Time/Retired for laps higher than 52 on a grid larger than 21? ### Context: CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_47 WHERE laps > 52 AND grid > 21 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of laps for grid 20? ### Context: CREATE TABLE table_name_53 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_53 WHERE grid = 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 most laps for Ayrton Senna? ### Context: CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_6 WHERE driver = "ayrton senna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225? ### Context: CREATE TABLE table_name_87 (parallel_bars INTEGER, vault VARCHAR, floor_exercise VARCHAR, horizontal_bar VARCHAR) [/INST] ### Response: SELECT SUM(parallel_bars) FROM table_name_87 WHERE floor_exercise > 9.137 AND horizontal_bar = 9.225 AND vault > 9.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 floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475? ### Context: CREATE TABLE table_name_81 (floor_exercise INTEGER, pommel_horse VARCHAR, horizontal_bar VARCHAR) [/INST] ### Response: SELECT MAX(floor_exercise) FROM table_name_81 WHERE pommel_horse = 9.65 AND horizontal_bar > 9.475 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had A in 2008, and a 1r in 2010? ### Context: CREATE TABLE table_name_4 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_4 WHERE 2008 = "a" AND 2010 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position for 2008, where 2012 was q1, and 2010 was 1r? ### Context: CREATE TABLE table_name_12 (Id VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_12 WHERE 2012 = "q1" AND 2010 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Goal of 3? ### Context: CREATE TABLE table_name_81 (venue VARCHAR, goal VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_81 WHERE goal = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which venue was used on 10 september 2010? ### Context: CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_28 WHERE date = "10 september 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 carries for the player with under 6 yards and an average of over 5? ### Context: CREATE TABLE table_name_48 (car VARCHAR, yards VARCHAR, avg VARCHAR) [/INST] ### Response: SELECT COUNT(car) FROM table_name_48 WHERE yards < 6 AND avg > 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 longest carry for kevin clemens with under 31 yards total? ### Context: CREATE TABLE table_name_72 (long INTEGER, player VARCHAR, yards VARCHAR) [/INST] ### Response: SELECT MAX(long) FROM table_name_72 WHERE player = "kevin clemens" AND yards < 31 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance at Brunswick Street Oval? ### Context: CREATE TABLE table_name_42 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_42 WHERE venue = "brunswick street oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005? ### Context: CREATE TABLE table_name_4 (first_day_cover_cancellation VARCHAR, date_of_issue VARCHAR) [/INST] ### Response: SELECT first_day_cover_cancellation FROM table_name_4 WHERE date_of_issue = "13 june 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005? ### Context: CREATE TABLE table_name_68 (first_day_cover_cancellation VARCHAR, denomination VARCHAR, date_of_issue VARCHAR) [/INST] ### Response: SELECT first_day_cover_cancellation FROM table_name_68 WHERE denomination = "$0.50" AND date_of_issue = "13 june 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the Denomination listed for the Date of Issue 12 April 2005? ### Context: CREATE TABLE table_name_88 (denomination VARCHAR, date_of_issue VARCHAR) [/INST] ### Response: SELECT denomination FROM table_name_88 WHERE date_of_issue = "12 april 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005? ### Context: CREATE TABLE table_name_30 (paper_type VARCHAR, denomination VARCHAR, date_of_issue VARCHAR) [/INST] ### Response: SELECT paper_type FROM table_name_30 WHERE denomination = "$0.50" AND date_of_issue = "4 february 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the Date of Issue for Design of Katalin Kovats? ### Context: CREATE TABLE table_name_46 (date_of_issue VARCHAR, design VARCHAR) [/INST] ### Response: SELECT date_of_issue FROM table_name_46 WHERE design = "katalin kovats" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest recorded record for a player with an average larger than 13? ### Context: CREATE TABLE table_name_57 (rec INTEGER, avg INTEGER) [/INST] ### Response: SELECT MIN(rec) FROM table_name_57 WHERE avg > 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: How many yards were averaged by the player that had a higher than 13 average with less than 18 long? ### Context: CREATE TABLE table_name_94 (yards INTEGER, long VARCHAR, avg VARCHAR) [/INST] ### Response: SELECT AVG(yards) FROM table_name_94 WHERE long < 18 AND avg > 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: For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet? ### Context: CREATE TABLE table_name_77 (passenger_fleet INTEGER, airline_holding VARCHAR, current_destinations VARCHAR) [/INST] ### Response: SELECT MAX(passenger_fleet) FROM table_name_77 WHERE airline_holding = "wizz air" AND current_destinations < 83 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 alliance has a rank of 40? ### Context: CREATE TABLE table_name_85 (alliance__association VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT alliance__association FROM table_name_85 WHERE rank = 40 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For airlines named Aeroflot Group, what is the alliance? ### Context: CREATE TABLE table_name_11 (alliance__association VARCHAR, airline_holding VARCHAR) [/INST] ### Response: SELECT alliance__association FROM table_name_11 WHERE airline_holding = "aeroflot group" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year was a linebacker pick 17? ### Context: CREATE TABLE table_name_4 (year VARCHAR, position VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT year FROM table_name_4 WHERE position = "linebacker" AND pick = "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 name of the cornerback from 1997? ### Context: CREATE TABLE table_name_42 (player_name VARCHAR, position VARCHAR, year VARCHAR) [/INST] ### Response: SELECT player_name FROM table_name_42 WHERE position = "cornerback" AND year = 1997 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 from after 1989 from Washington State? ### Context: CREATE TABLE table_name_48 (player_name VARCHAR, year VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player_name FROM table_name_48 WHERE year > 1989 AND college = "washington 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: Which race has a Margin of 8? ### Context: CREATE TABLE table_name_5 (race VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT race FROM table_name_5 WHERE margin = "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: How many Runners have a Placing that isn't 1? ### Context: CREATE TABLE table_name_55 (runners VARCHAR, placing INTEGER) [/INST] ### Response: SELECT COUNT(runners) FROM table_name_55 WHERE placing > 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 lowest number of Runners that has a Placing that isn't 1? ### Context: CREATE TABLE table_name_12 (runners INTEGER, placing INTEGER) [/INST] ### Response: SELECT MIN(runners) FROM table_name_12 WHERE placing < 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 lowest Prize amount for the Irish Derby Race? ### Context: CREATE TABLE table_name_87 (prize__ INTEGER, race VARCHAR) [/INST] ### Response: SELECT MIN(prize__) AS Β£k_ FROM table_name_87 WHERE race = "irish derby" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mintage having an issue price of $1,099.99, artist being Pamela Stagg? ### Context: CREATE TABLE table_name_62 (mintage INTEGER, issue_price VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT AVG(mintage) FROM table_name_62 WHERE issue_price = "$1,099.99" AND artist = "pamela stagg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year that had an issue price of $1,295.95? ### Context: CREATE TABLE table_name_31 (year INTEGER, issue_price VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_31 WHERE issue_price = "$1,295.95" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the average mintage for that of artist Celia Godkin, before the year 2010? ### Context: CREATE TABLE table_name_75 (mintage INTEGER, artist VARCHAR, year VARCHAR) [/INST] ### Response: SELECT AVG(mintage) FROM table_name_75 WHERE artist = "celia godkin" AND 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: What was the away team score at Windy Hill? ### Context: CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_15 WHERE venue = "windy hill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team at Lake Oval? ### Context: CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_66 WHERE venue = "lake oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the venue VFL Park? ### Context: CREATE TABLE table_name_5 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_5 WHERE venue = "vfl park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team was the home team at Glenferrie Oval? ### Context: CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_82 WHERE venue = "glenferrie oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6? ### Context: CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–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 surface where the outcome was winner on 12 march 1989? ### Context: CREATE TABLE table_name_19 (surface VARCHAR, outcome VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_19 WHERE outcome = "winner" AND date = "12 march 1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the outcome of the Tournament of lugano , switzerland wta virginia slims, against bonnie gadusek? ### Context: CREATE TABLE table_name_68 (outcome VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_68 WHERE tournament = "lugano , switzerland wta virginia slims" AND opponent_in_the_final = "bonnie gadusek" </s>