text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Nation has a Gold larger than 0, and a Bronze smaller than 2, and a Total larger than 3, and a Silver larger than 1? ### Context: CREATE TABLE table_name_96 (nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_96 WHERE gold > 0 AND bronze < 2 AND total > 3 AND silver > 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 round number when the record is 15–7–1? ### Context: CREATE TABLE table_name_68 (round VARCHAR, record VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_68 WHERE record = "15–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 method when the time is 5:00, and the record is 14–6–1? ### Context: CREATE TABLE table_name_3 (method VARCHAR, time VARCHAR, record VARCHAR) [/INST] ### Response: SELECT method FROM table_name_3 WHERE time = "5:00" AND record = "14–6–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 home team of the game with a price decision and the new jersey devils as the visitor team? ### Context: CREATE TABLE table_name_51 (home VARCHAR, decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT home FROM table_name_51 WHERE decision = "price" AND visitor = "new jersey devils" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transfer fee did Birmingham City get on 30 June 2010? ### Context: CREATE TABLE table_name_4 (transfer_fee VARCHAR, ends VARCHAR, moving_from VARCHAR) [/INST] ### Response: SELECT transfer_fee FROM table_name_4 WHERE ends = "30 june 2010" AND moving_from = "birmingham city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What type of move was Elding from ENG? ### Context: CREATE TABLE table_name_28 (type VARCHAR, country VARCHAR, name VARCHAR) [/INST] ### Response: SELECT type FROM table_name_28 WHERE country = "eng" AND name = "elding" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does Donaldson's move end? ### Context: CREATE TABLE table_name_34 (ends VARCHAR, name VARCHAR) [/INST] ### Response: SELECT ends FROM table_name_34 WHERE name = "donaldson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Silver has a Total of 7, and a Gold larger than 1? ### Context: CREATE TABLE table_name_10 (silver INTEGER, total VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT AVG(silver) FROM table_name_10 WHERE total = 7 AND gold > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Bronze has a Gold smaller than 16, a Rank of 10, and a Nation of italy? ### Context: CREATE TABLE table_name_97 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(bronze) FROM table_name_97 WHERE gold < 16 AND rank = "10" AND nation = "italy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13? ### Context: CREATE TABLE table_name_27 (total INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_27 WHERE bronze > 2 AND gold < 16 AND silver = 0 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 Gold has a Nation of malaysia, and a Silver smaller than 0? ### Context: CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(gold) FROM table_name_47 WHERE nation = "malaysia" AND silver < 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 Population (2005) has a Literacy (2003) of 90%, and an Infant Mortality (2002) of 18.3‰? ### Context: CREATE TABLE table_name_14 (population__2005_ INTEGER, literacy__2003_ VARCHAR, infant_mortality__2002_ VARCHAR) [/INST] ### Response: SELECT SUM(population__2005_) FROM table_name_14 WHERE literacy__2003_ = "90%" AND infant_mortality__2002_ = "18.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 Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300? ### Context: CREATE TABLE table_name_25 (density__2005_ INTEGER, area__km²_ VARCHAR, population__2005_ VARCHAR) [/INST] ### Response: SELECT SUM(density__2005_) FROM table_name_25 WHERE area__km²_ = 340086.7 AND population__2005_ < 5926300 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6, and a State of roraima? ### Context: CREATE TABLE table_name_37 (gdp_per_capita__us INTEGER, area__km²_ VARCHAR, state VARCHAR) [/INST] ### Response: SELECT MAX(gdp_per_capita__us) AS $___2004_ FROM table_name_37 WHERE area__km²_ > 148825.6 AND state = "roraima" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão? ### Context: CREATE TABLE table_name_8 (literacy__2003_ VARCHAR, state VARCHAR, hdi__2005_ VARCHAR, gdp_per_capita__us$___2004_ VARCHAR) [/INST] ### Response: SELECT literacy__2003_ FROM table_name_8 WHERE hdi__2005_ < 0.718 AND gdp_per_capita__us$___2004_ < 3877 AND state = "maranhão" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5? ### Context: CREATE TABLE table_name_53 (gdp_per_capita__us INTEGER, literacy__2003_ VARCHAR, area__km²_ VARCHAR) [/INST] ### Response: SELECT AVG(gdp_per_capita__us) AS $___2004_ FROM table_name_53 WHERE literacy__2003_ = "90%" AND area__km²_ = 1247689.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 Date and an Opponent which has a f Position and Career Games of 123 games? ### Context: CREATE TABLE table_name_4 (date_and_opponent VARCHAR, position VARCHAR, career_games VARCHAR) [/INST] ### Response: SELECT date_and_opponent FROM table_name_4 WHERE position = "f" AND career_games = "123 games" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Years Played of 2004–2008, and a Date and Opponent of 2/17/07 vs. purdue? ### Context: CREATE TABLE table_name_34 (name VARCHAR, years_played VARCHAR, date_and_opponent VARCHAR) [/INST] ### Response: SELECT name FROM table_name_34 WHERE years_played = "2004–2008" AND date_and_opponent = "2/17/07 vs. purdue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Career Games has a Date and Opponent of 12/15/92 vs. uw–milwaukee? ### Context: CREATE TABLE table_name_58 (career_games VARCHAR, date_and_opponent VARCHAR) [/INST] ### Response: SELECT career_games FROM table_name_58 WHERE date_and_opponent = "12/15/92 vs. uw–milwaukee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Scored 1,500 Points has a Years Played of 2004–2008 and a Name of jolene anderson? ### Context: CREATE TABLE table_name_34 (scored_1 VARCHAR, years_played VARCHAR, name VARCHAR) [/INST] ### Response: SELECT scored_1, 500 AS _points FROM table_name_34 WHERE years_played = "2004–2008" AND name = "jolene anderson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Time has a Round smaller than 3, and an Opponent of bao quach? ### Context: CREATE TABLE table_name_11 (time VARCHAR, round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT time FROM table_name_11 WHERE round < 3 AND opponent = "bao quach" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Record of 10-6? ### Context: CREATE TABLE table_name_20 (round INTEGER, record VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_20 WHERE record = "10-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: Which Opponent has a Round smaller than 3, and a Time of 1:09? ### Context: CREATE TABLE table_name_48 (opponent VARCHAR, round VARCHAR, time VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_48 WHERE round < 3 AND time = "1:09" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Time has an Opponent of josh branham? ### Context: CREATE TABLE table_name_3 (time VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT time FROM table_name_3 WHERE opponent = "josh branham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Time has a Round larger than 2, and an Opponent of jesse brock? ### Context: CREATE TABLE table_name_96 (time VARCHAR, round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT time FROM table_name_96 WHERE round > 2 AND opponent = "jesse brock" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an Event of nle - capital city carnage? ### Context: CREATE TABLE table_name_36 (round VARCHAR, event VARCHAR) [/INST] ### Response: SELECT round FROM table_name_36 WHERE event = "nle - capital city carnage" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an Opponent of ryan bixler? ### Context: CREATE TABLE table_name_6 (round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT round FROM table_name_6 WHERE opponent = "ryan bixler" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Event has a Record of 19-9? ### Context: CREATE TABLE table_name_47 (event VARCHAR, record VARCHAR) [/INST] ### Response: SELECT event FROM table_name_47 WHERE record = "19-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: Which Method has a Round of 1, and a Record of 4–2? ### Context: CREATE TABLE table_name_37 (method VARCHAR, round VARCHAR, record VARCHAR) [/INST] ### Response: SELECT method FROM table_name_37 WHERE round = 1 AND record = "4–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 Opponent has a Time of 4:51? ### Context: CREATE TABLE table_name_84 (opponent VARCHAR, time VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_84 WHERE time = "4: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: Which Round has an Opponent of jorge magalhaes? ### Context: CREATE TABLE table_name_83 (round INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_83 WHERE opponent = "jorge magalhaes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Location of bahia, brazil? ### Context: CREATE TABLE table_name_52 (round INTEGER, location VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_52 WHERE location = "bahia, brazil" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 an Event of jungle fight 5? ### Context: CREATE TABLE table_name_2 (opponent VARCHAR, event VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_2 WHERE event = "jungle fight 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: Tiger Woods with a total less than 293 had what To par? ### Context: CREATE TABLE table_name_73 (to_par VARCHAR, total VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_73 WHERE total < 293 AND player = "tiger woods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Bernhard Langer maximum total was what? ### Context: CREATE TABLE table_name_27 (total INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_27 WHERE player = "bernhard langer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average of the total when t11 is the finish? ### Context: CREATE TABLE table_name_39 (total INTEGER, finish VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_39 WHERE finish = "t11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia? ### Context: CREATE TABLE table_name_89 (rider VARCHAR, manufacturer VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT rider FROM table_name_89 WHERE laps < 24 AND grid < 12 AND manufacturer = "aprilia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid 7's laps? ### Context: CREATE TABLE table_name_72 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_72 WHERE grid = 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 Time/Retired has Laps smaller than 24, and a Manufacturer of aprilia, and a Grid smaller than 12, and a Rider of ángel rodríguez? ### Context: CREATE TABLE table_name_5 (time_retired VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR, manufacturer VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_5 WHERE laps < 24 AND manufacturer = "aprilia" AND grid < 12 AND rider = "ángel rodríguez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Laps have a Time/Retired of +1:42.517, and a Grid larger than 33? ### Context: CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_67 WHERE time_retired = "+1:42.517" AND grid > 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: Which chassis-engine had 77 laps? ### Context: CREATE TABLE table_name_9 (chassis___engine VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT chassis___engine FROM table_name_9 WHERE laps = 77 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class of team liqui moly equipe, which has less than 71 laps? ### Context: CREATE TABLE table_name_85 (class VARCHAR, laps VARCHAR, team VARCHAR) [/INST] ### Response: SELECT class FROM table_name_85 WHERE laps < 71 AND team = "liqui moly equipe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the team of driver klaus ludwig, who is class c1 and has more than 77 laps? ### Context: CREATE TABLE table_name_15 (team VARCHAR, driver VARCHAR, class VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT team FROM table_name_15 WHERE class = "c1" AND laps > 77 AND driver = "klaus ludwig" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the chassis-engine porsche 956 gti? ### Context: CREATE TABLE table_name_14 (driver VARCHAR, chassis___engine VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_14 WHERE chassis___engine = "porsche 956 gti" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team has a porsche 956 b chassis-engine with less than 79 laps? ### Context: CREATE TABLE table_name_17 (team VARCHAR, chassis___engine VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT team FROM table_name_17 WHERE chassis___engine = "porsche 956 b" AND laps < 79 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the worldwide gross for the film directed by joe pytka? ### Context: CREATE TABLE table_name_65 (worldwide_gross VARCHAR, director VARCHAR) [/INST] ### Response: SELECT worldwide_gross FROM table_name_65 WHERE director = "joe pytka" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank for the film directed by roland emmerich under the studio of 20th century fox? ### Context: CREATE TABLE table_name_82 (rank INTEGER, studio VARCHAR, director VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_82 WHERE studio = "20th century fox" AND director = "roland emmerich" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average rank for the film directed by michael bay? ### Context: CREATE TABLE table_name_90 (rank INTEGER, director VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_90 WHERE director = "michael bay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 3rd largest where the largest city is Ardabil? ### Context: CREATE TABLE table_name_35 (largest_city VARCHAR) [/INST] ### Response: SELECT 3 AS rd_largest FROM table_name_35 WHERE largest_city = "ardabil" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 province has the largest city of Birjand? ### Context: CREATE TABLE table_name_73 (province VARCHAR, largest_city VARCHAR) [/INST] ### Response: SELECT province FROM table_name_73 WHERE largest_city = "birjand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on september 28? ### Context: CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_58 WHERE date = "september 28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the score 29-7? ### Context: CREATE TABLE table_name_28 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_28 WHERE score = "29-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: How much January has a Game smaller than 37, and an Opponent of detroit red wings? ### Context: CREATE TABLE table_name_67 (january VARCHAR, game VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(january) FROM table_name_67 WHERE game < 37 AND opponent = "detroit red wings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 January has an Opponent of toronto maple leafs? ### Context: CREATE TABLE table_name_55 (january VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT january FROM table_name_55 WHERE opponent = "toronto maple leafs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 January has an Opponent of @ detroit red wings? ### Context: CREATE TABLE table_name_74 (january INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT AVG(january) FROM table_name_74 WHERE opponent = "@ detroit red wings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the score won 1-2? ### Context: CREATE TABLE table_name_93 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_93 WHERE score = "won 1-2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when Bornor Regis Town was the opponent? ### Context: CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_58 WHERE opponent = "bornor regis town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people in attendance when Tonbridge Angels is the opponent? ### Context: CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_86 WHERE opponent = "tonbridge angels" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score when the attendance shows TBC, and Sidley United was the opponent? ### Context: CREATE TABLE table_name_81 (score VARCHAR, attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_81 WHERE attendance = "tbc" AND opponent = "sidley united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score when the scorers show match report? ### Context: CREATE TABLE table_name_97 (score VARCHAR, scorers VARCHAR) [/INST] ### Response: SELECT score FROM table_name_97 WHERE scorers = "match report" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Album has a Label of msb 801? ### Context: CREATE TABLE table_name_87 (album VARCHAR, label VARCHAR) [/INST] ### Response: SELECT album FROM table_name_87 WHERE label = "msb 801" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Album has a Label of tumbleweed 1014? ### Context: CREATE TABLE table_name_84 (album VARCHAR, label VARCHAR) [/INST] ### Response: SELECT album FROM table_name_84 WHERE label = "tumbleweed 1014" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tie no was 12? ### Context: CREATE TABLE table_name_72 (score VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT score FROM table_name_72 WHERE tie_no = "12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the match against carlisle united? ### Context: CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_65 WHERE away_team = "carlisle united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when millwall was the away team? ### Context: CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_11 WHERE away_team = "millwall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the nominated in after 2008? ### Context: CREATE TABLE table_name_31 (category VARCHAR, outcome VARCHAR, year VARCHAR) [/INST] ### Response: SELECT category FROM table_name_31 WHERE outcome = "nominated" AND year > 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 year had the supernova award? ### Context: CREATE TABLE table_name_46 (year VARCHAR, category VARCHAR) [/INST] ### Response: SELECT year FROM table_name_46 WHERE category = "supernova award" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the winner in? ### Context: CREATE TABLE table_name_45 (category VARCHAR, outcome VARCHAR) [/INST] ### Response: SELECT category FROM table_name_45 WHERE outcome = "winner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country when the iata is gva? ### Context: CREATE TABLE table_name_7 (country VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT country FROM table_name_7 WHERE iata = "gva" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country for the city of cardiff? ### Context: CREATE TABLE table_name_34 (country VARCHAR, city VARCHAR) [/INST] ### Response: SELECT country FROM table_name_34 WHERE city = "cardiff" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 icao when the country is norway? ### Context: CREATE TABLE table_name_28 (icao VARCHAR, country VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_28 WHERE country = "norway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city for the country of netherlands? ### Context: CREATE TABLE table_name_96 (city VARCHAR, country VARCHAR) [/INST] ### Response: SELECT city FROM table_name_96 WHERE country = "netherlands" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the airport when the city is düsseldorf? ### Context: CREATE TABLE table_name_41 (airport VARCHAR, city VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_41 WHERE city = "düsseldorf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 iata when the city is leipzig? ### Context: CREATE TABLE table_name_91 (iata VARCHAR, city VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_91 WHERE city = "leipzig" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record on February 23? ### Context: CREATE TABLE table_name_82 (record VARCHAR, february VARCHAR) [/INST] ### Response: SELECT record FROM table_name_82 WHERE february = 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: What was the rank of the rider whose ascent time was 43:24 before the year 2002? ### Context: CREATE TABLE table_name_87 (rank VARCHAR, year VARCHAR, ascent_time VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_87 WHERE year < 2002 AND ascent_time = "43: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 is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h? ### Context: CREATE TABLE table_name_43 (rider VARCHAR, speed VARCHAR, rank VARCHAR, year VARCHAR) [/INST] ### Response: SELECT rider FROM table_name_43 WHERE rank < 8 AND year = 2000 AND speed = "18.32 km/h" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 completions and attempts taken in 2009? ### Context: CREATE TABLE table_name_83 (comp_att VARCHAR, season VARCHAR) [/INST] ### Response: SELECT comp_att FROM table_name_83 WHERE season = "2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 completion/attempts value for the year with an average per game of 36.5? ### Context: CREATE TABLE table_name_10 (comp_att VARCHAR, avg_g VARCHAR) [/INST] ### Response: SELECT comp_att FROM table_name_10 WHERE avg_g = "36.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 is the long value for the year with an average/game of 160.9? ### Context: CREATE TABLE table_name_17 (long VARCHAR, avg_g VARCHAR) [/INST] ### Response: SELECT long FROM table_name_17 WHERE avg_g = "160.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: What was the highest attendance of February 7, 2009 and more than 49 points? ### Context: CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_17 WHERE date = "february 7, 2009" AND points > 49 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which game has a number lower than 57 and more than 50 points? ### Context: CREATE TABLE table_name_25 (location VARCHAR, game VARCHAR, points VARCHAR) [/INST] ### Response: SELECT location FROM table_name_25 WHERE game < 57 AND points > 50 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game in February 10, 2009 has the most points and a game number larger than 54? ### Context: CREATE TABLE table_name_27 (points INTEGER, date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_27 WHERE date = "february 10, 2009" AND game > 54 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the current streak with a last 10 meetings of lsu, 2-1? ### Context: CREATE TABLE table_name_50 (current_streak VARCHAR, last_10_meetings VARCHAR) [/INST] ### Response: SELECT current_streak FROM table_name_50 WHERE last_10_meetings = "lsu, 2-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 probable future word for the simple present/future word high grade? ### Context: CREATE TABLE table_name_82 (probable_future VARCHAR, simple_present_future VARCHAR) [/INST] ### Response: SELECT probable_future FROM table_name_82 WHERE NOT simple_present_future = "high grade" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 injunctive for the Simple Past of गरुँला garũlā 'I will (probably) do'? ### Context: CREATE TABLE table_name_99 (injunctive VARCHAR, simple_past VARCHAR) [/INST] ### Response: SELECT injunctive FROM table_name_99 WHERE simple_past = "गरुँला garũlā 'i will (probably) do'" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of taking office for Giorgia Meloni? ### Context: CREATE TABLE table_name_28 (took_office VARCHAR, minister VARCHAR) [/INST] ### Response: SELECT took_office FROM table_name_28 WHERE minister = "giorgia meloni" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party was Andrea Ronchi from? ### Context: CREATE TABLE table_name_85 (party VARCHAR, minister VARCHAR) [/INST] ### Response: SELECT party FROM table_name_85 WHERE minister = "andrea ronchi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Division, when Team is "Benfica", and when Apps is 22? ### Context: CREATE TABLE table_name_30 (division INTEGER, team VARCHAR, apps VARCHAR) [/INST] ### Response: SELECT MIN(division) FROM table_name_30 WHERE team = "benfica" AND apps = 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: What Championship had a winning score of 69-71-67-68=275? ### Context: CREATE TABLE table_name_9 (championship VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_9 WHERE winning_score = 69 - 71 - 67 - 68 = 275 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jockey, when Time is 1:15.89? ### Context: CREATE TABLE table_name_55 (jockey VARCHAR, time VARCHAR) [/INST] ### Response: SELECT jockey FROM table_name_55 WHERE time = "1:15.89" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time, when Jockey is John Velazquez, and when Trainer is Todd A. Pletcher? ### Context: CREATE TABLE table_name_16 (time VARCHAR, jockey VARCHAR, trainer VARCHAR) [/INST] ### Response: SELECT time FROM table_name_16 WHERE jockey = "john velazquez" AND trainer = "todd a. pletcher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner, when Year is 2001? ### Context: CREATE TABLE table_name_34 (winner VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_34 WHERE year = 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 is Jockey, when Winner is Alke? ### Context: CREATE TABLE table_name_10 (jockey VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT jockey FROM table_name_10 WHERE winner = "alke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps for the +50.653 time? ### Context: CREATE TABLE table_name_42 (laps INTEGER, time VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_42 WHERE time = "+50.653" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Matches were the points were smaller than 8, the place was larger than 13, and the drawn is less than 1? ### Context: CREATE TABLE table_name_78 (matches INTEGER, drawn VARCHAR, points VARCHAR, place VARCHAR) [/INST] ### Response: SELECT MAX(matches) FROM table_name_78 WHERE points < 8 AND place > 13 AND drawn < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average points when the drawn is less than 0? ### Context: CREATE TABLE table_name_68 (points INTEGER, drawn INTEGER) [/INST] ### Response: SELECT AVG(points) FROM table_name_68 WHERE drawn < 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 was Turkey's lowest gold when there were less than 2 bronze? ### Context: CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MIN(gold) FROM table_name_83 WHERE nation = "turkey" AND bronze < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average area in square miles for the hunan administrative division with a national share less than 2.19%? ### Context: CREATE TABLE table_name_88 (area__sq_mi_ INTEGER, administrative_division VARCHAR, national_share___percentage_ VARCHAR) [/INST] ### Response: SELECT AVG(area__sq_mi_) FROM table_name_88 WHERE administrative_division = "hunan" AND national_share___percentage_ < 2.19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Central Michigan's average overall when the pick was 8? ### Context: CREATE TABLE table_name_83 (overall INTEGER, college VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_83 WHERE college = "central michigan" AND pick = 8 </s>