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 was the home team when the record was 36–21–8? ### Context: CREATE TABLE table_name_23 (home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT home FROM table_name_23 WHERE record = "36–21–8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0? ### Context: CREATE TABLE table_name_17 (date VARCHAR, visitor VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_17 WHERE visitor = "calgary flames" AND record = "1–2–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: Who was the home team when the record was 27–14–6? ### Context: CREATE TABLE table_name_15 (home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT home FROM table_name_15 WHERE record = "27–14–6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania? ### Context: CREATE TABLE table_name_28 (lifespan VARCHAR, state VARCHAR, representative VARCHAR) [/INST] ### Response: SELECT lifespan FROM table_name_28 WHERE state = "pennsylvania" AND representative = "harry p. o'neill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years did Representative Frank A. Oliver serve? ### Context: CREATE TABLE table_name_70 (years VARCHAR, representative VARCHAR) [/INST] ### Response: SELECT years FROM table_name_70 WHERE representative = "frank a. oliver" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the record for october 11 ### Context: CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_34 WHERE date = "october 11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score with record of 68-66 ### Context: CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_69 WHERE record = "68-66" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the record for august 28 ### Context: CREATE TABLE table_name_24 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_24 WHERE date = "august 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 was the score for Leo Diegel? ### Context: CREATE TABLE table_name_63 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_63 WHERE player = "leo diegel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the player with a To par of –4? ### Context: CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT player FROM table_name_41 WHERE to_par = "–4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the surface for the game that was played with partner Tiya Rolle? ### Context: CREATE TABLE table_name_35 (surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_35 WHERE partner = "tiya rolle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final score for the game played on January 10, 2011 with partner Mashona Washington? ### Context: CREATE TABLE table_name_22 (score VARCHAR, partner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_22 WHERE partner = "mashona washington" AND date = "january 10, 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the outcome for the game that was played on 07-Jun-2010? ### Context: CREATE TABLE table_name_8 (outcome VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_8 WHERE date = "07-jun-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 is the score for the game that was played on 29-Jun-2009? ### Context: CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_93 WHERE date = "29-jun-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 was the surface for the game that was played on 12-Apr-2005? ### Context: CREATE TABLE table_name_50 (surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_50 WHERE date = "12-apr-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 points has james allen as the skipper? ### Context: CREATE TABLE table_name_66 (points VARCHAR, skipper VARCHAR) [/INST] ### Response: SELECT points FROM table_name_66 WHERE skipper = "james allen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 yacht where 12 is the overall place? ### Context: CREATE TABLE table_name_28 (yacht_name VARCHAR, overall_place VARCHAR) [/INST] ### Response: SELECT yacht_name FROM table_name_28 WHERE overall_place = "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: Which skipper has a combine elapsed time of 174d 01h 11m 59s? ### Context: CREATE TABLE table_name_17 (skipper VARCHAR, combined_elapsed_time VARCHAR) [/INST] ### Response: SELECT skipper FROM table_name_17 WHERE combined_elapsed_time = "174d 01h 11m 59s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 skipper has barclays adventurer as the name of the yacht? ### Context: CREATE TABLE table_name_92 (skipper VARCHAR, yacht_name VARCHAR) [/INST] ### Response: SELECT skipper FROM table_name_92 WHERE yacht_name = "barclays adventurer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall place that has 170d 11h 31m 10s as the combined elapsed time? ### Context: CREATE TABLE table_name_47 (overall_place VARCHAR, combined_elapsed_time VARCHAR) [/INST] ### Response: SELECT overall_place FROM table_name_47 WHERE combined_elapsed_time = "170d 11h 31m 10s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 senior status for the judge who was terminated because of death, with a Chief Judge entry of β€”? ### Context: CREATE TABLE table_name_22 (senior_status VARCHAR, reason_for_termination VARCHAR, chief_judge VARCHAR) [/INST] ### Response: SELECT senior_status FROM table_name_22 WHERE reason_for_termination = "death" AND chief_judge = "β€”" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location of Classification of T12? ### Context: CREATE TABLE table_name_96 (location VARCHAR, classification VARCHAR) [/INST] ### Response: SELECT location FROM table_name_96 WHERE classification = "t12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fastest time for athlete Jason Smyth? ### Context: CREATE TABLE table_name_40 (fastest_time__s_ VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT fastest_time__s_ FROM table_name_40 WHERE athlete = "jason smyth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final of play No. 2, Alzira Ricardo B.? ### Context: CREATE TABLE table_name_34 (final VARCHAR, no2 VARCHAR) [/INST] ### Response: SELECT final FROM table_name_34 WHERE no2 = "alzira ricardo 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: What was the No. 10 team that has No. 8 of Diana? ### Context: CREATE TABLE table_name_10 (no10 VARCHAR, no8 VARCHAR) [/INST] ### Response: SELECT no10 FROM table_name_10 WHERE no8 = "diana" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total number of years for chassis of ensign n175 ### Context: CREATE TABLE table_name_2 (year VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_2 WHERE chassis = "ensign n175" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Blue Jays lowest attendance when their record was 52-48? ### Context: CREATE TABLE table_name_52 (attendance INTEGER, record VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_52 WHERE record = "52-48" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result when you play at home against Pride ### Context: CREATE TABLE table_name_73 (result VARCHAR, home_away VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_73 WHERE home_away = "home" AND opponent = "pride" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result of games played at frontier field ### Context: CREATE TABLE table_name_10 (result VARCHAR, field VARCHAR) [/INST] ### Response: SELECT result FROM table_name_10 WHERE field = "frontier field" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 days were games played at Hofstra Stadium? ### Context: CREATE TABLE table_name_20 (date VARCHAR, field VARCHAR) [/INST] ### Response: SELECT date FROM table_name_20 WHERE field = "hofstra stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Field was played at in an away game against the bayhawks? ### Context: CREATE TABLE table_name_99 (field VARCHAR, home_away VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT field FROM table_name_99 WHERE home_away = "away" AND opponent = "bayhawks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the game played on February 18? ### Context: CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_59 WHERE date = "february 18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team that played against the Boston Bruins on January 11? ### Context: CREATE TABLE table_name_91 (home VARCHAR, visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_91 WHERE visitor = "boston bruins" AND date = "january 11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of year for olimpija ljubljana with height less than 2.04 ### Context: CREATE TABLE table_name_14 (year_born INTEGER, current_club VARCHAR, height VARCHAR) [/INST] ### Response: SELECT SUM(year_born) FROM table_name_14 WHERE current_club = "olimpija ljubljana" AND height < 2.04 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position with height of 2.09 ### Context: CREATE TABLE table_name_10 (position VARCHAR, height VARCHAR) [/INST] ### Response: SELECT position FROM table_name_10 WHERE height = 2.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: What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season? ### Context: CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_64 WHERE record = "26-35" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nominated work received a tony award in 2009? ### Context: CREATE TABLE table_name_94 (nominated_work VARCHAR, award VARCHAR, year VARCHAR) [/INST] ### Response: SELECT nominated_work FROM table_name_94 WHERE award = "tony award" AND year = 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 result in the table is from the year 2012? ### Context: CREATE TABLE table_name_38 (result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT result FROM table_name_38 WHERE year = 2012 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2011 with 2010 of 2r ### Context: CREATE TABLE table_name_59 (Id VARCHAR) [/INST] ### Response: SELECT 2011 FROM table_name_59 WHERE 2010 = "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: Name the 2012 when 2011 is qf ### Context: CREATE TABLE table_name_97 (Id VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_97 WHERE 2011 = "qf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2012 for 2011 being 1r ### Context: CREATE TABLE table_name_5 (Id VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_5 WHERE 2011 = "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: Name the 2012 for 2011 being qf ### Context: CREATE TABLE table_name_58 (Id VARCHAR) [/INST] ### Response: SELECT 2012 FROM table_name_58 WHERE 2011 = "qf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2008 for 2012 f ### Context: CREATE TABLE table_name_37 (Id VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_37 WHERE 2012 = "f" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location of the match on February 29, 2012? ### Context: CREATE TABLE table_name_47 (location VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location FROM table_name_47 WHERE date = "february 29, 2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the match on November 15, 2011? ### Context: CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_44 WHERE date = "november 15, 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many races were in the Mallala Motor Sport Park circuit? ### Context: CREATE TABLE table_name_48 (race VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT COUNT(race) FROM table_name_48 WHERE circuit = "mallala motor sport 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: What was the first race in Launceston, Tasmania? ### Context: CREATE TABLE table_name_52 (race INTEGER, location___state VARCHAR) [/INST] ### Response: SELECT MIN(race) FROM table_name_52 WHERE location___state = "launceston, tasmania" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2nd leg for team 1 of hamburg ### Context: CREATE TABLE table_name_90 (team_1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_90 WHERE team_1 = "hamburg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 role for mono studio and title of paradise canyon ### Context: CREATE TABLE table_name_62 (role VARCHAR, studio VARCHAR, title VARCHAR) [/INST] ### Response: SELECT role FROM table_name_62 WHERE studio = "mono" AND title = "paradise canyon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title for marion burns leading lady and role of john mason ### Context: CREATE TABLE table_name_89 (title VARCHAR, leading_lady VARCHAR, role VARCHAR) [/INST] ### Response: SELECT title FROM table_name_89 WHERE leading_lady = "marion burns" AND role = "john mason" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 role for studio of rep with sheila mannors leading lady and title of westward ho ### Context: CREATE TABLE table_name_11 (role VARCHAR, title VARCHAR, studio VARCHAR, leading_lady VARCHAR) [/INST] ### Response: SELECT role FROM table_name_11 WHERE studio = "rep" AND leading_lady = "sheila mannors" AND title = "westward ho" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 studio for john scott ### Context: CREATE TABLE table_name_74 (studio VARCHAR, role VARCHAR) [/INST] ### Response: SELECT studio FROM table_name_74 WHERE role = "john scott" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount of 000s from 1996? ### Context: CREATE TABLE table_name_20 (total__000s_ INTEGER, year VARCHAR) [/INST] ### Response: SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the amount of 000s when Germany had 16.6? ### Context: CREATE TABLE table_name_35 (total__000s_ VARCHAR, germany VARCHAR) [/INST] ### Response: SELECT total__000s_ FROM table_name_35 WHERE germany = 16.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: Name the average concacaf for merconorte larger than 0 and player of jared borgetti ### Context: CREATE TABLE table_name_59 (concacaf INTEGER, superliga VARCHAR, merconorte VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(concacaf) FROM table_name_59 WHERE merconorte > 0 AND player = "jared borgetti" AND superliga > 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: Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7 ### Context: CREATE TABLE table_name_92 (merconorte INTEGER, superliga VARCHAR, interliga VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT MIN(merconorte) FROM table_name_92 WHERE interliga = 2 AND matches > 260 AND superliga > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]? ### Context: CREATE TABLE table_name_84 (outcome VARCHAR, score_in_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_84 WHERE score_in_final = "5–7, 6–4, [10–7]" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]? ### Context: CREATE TABLE table_name_1 (surface VARCHAR, score_in_final VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_1 WHERE score_in_final = "5–7, 6–4, [10–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: Who were the opponents in the match or matches that ended in a score of W/O? ### Context: CREATE TABLE table_name_72 (opponents_in_final VARCHAR, score_in_final VARCHAR) [/INST] ### Response: SELECT opponents_in_final FROM table_name_72 WHERE score_in_final = "w/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: What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955? ### Context: CREATE TABLE table_name_93 (chassis VARCHAR, year VARCHAR, engine VARCHAR, points VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_93 WHERE engine = "maserati straight-6" AND points > 0 AND year = 1955 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of Chassis supports an Equipe Gordini Entrant? ### Context: CREATE TABLE table_name_82 (chassis VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_82 WHERE entrant = "equipe gordini" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4? ### Context: CREATE TABLE table_name_95 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_95 WHERE engine = "maserati straight-6" AND year < 1958 AND chassis = "maserati 250f" AND points < 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 is the average year for Maserati Straight-4 Engines? ### Context: CREATE TABLE table_name_86 (year INTEGER, engine VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_86 WHERE engine = "maserati straight-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: Name the sum of ERP W for class of d and frequency mhz of 98.7 ### Context: CREATE TABLE table_name_56 (erp_w INTEGER, class VARCHAR, frequency_mhz VARCHAR) [/INST] ### Response: SELECT SUM(erp_w) FROM table_name_56 WHERE class = "d" AND frequency_mhz = 98.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: Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia ### Context: CREATE TABLE table_name_19 (erp_w VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT erp_w FROM table_name_19 WHERE frequency_mhz > 93.3 AND city_of_license = "washington, georgia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which record has a result of loss in the Hero's 3 event? ### Context: CREATE TABLE table_name_41 (record VARCHAR, res VARCHAR, event VARCHAR) [/INST] ### Response: SELECT record FROM table_name_41 WHERE res = "loss" AND event = "hero's 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 event led to a 4-0 record? ### Context: CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR) [/INST] ### Response: SELECT event FROM table_name_98 WHERE record = "4-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 location led to a 10-3 record? ### Context: CREATE TABLE table_name_73 (location VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_73 WHERE record = "10-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: In the match against Masahiro Oishi, what was the record? ### Context: CREATE TABLE table_name_90 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_90 WHERE opponent = "masahiro oishi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fewest number of points for clubs with less than 2 draws and more than 8 matches played? ### Context: CREATE TABLE table_name_38 (points INTEGER, drawn VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_38 WHERE drawn < 2 AND played > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fewest drawn matches for teams with 2 points and fewer than 6 losses? ### Context: CREATE TABLE table_name_86 (drawn INTEGER, points VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT MIN(drawn) FROM table_name_86 WHERE points = 2 AND lost < 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 most number of losses for Quetta Zorawar? ### Context: CREATE TABLE table_name_15 (lost INTEGER, team VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_15 WHERE team = "quetta zorawar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the drawn values for teams with 2 losses? ### Context: CREATE TABLE table_name_45 (drawn INTEGER, lost VARCHAR) [/INST] ### Response: SELECT SUM(drawn) FROM table_name_45 WHERE lost = 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 round has a margin of 178? ### Context: CREATE TABLE table_name_24 (round VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT round FROM table_name_24 WHERE margin = "178" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the average total for gold less than 1 and rank less than 5 ### Context: CREATE TABLE table_name_38 (total INTEGER, gold VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_38 WHERE gold < 1 AND rank < 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 sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0 ### Context: CREATE TABLE table_name_92 (silver INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT SUM(silver) FROM table_name_92 WHERE total > 1 AND bronze = 1 AND gold < 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: Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2 ### Context: CREATE TABLE table_name_70 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 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: Name the average bronze with silver more than 0, total of 6 and gold more than 0 ### Context: CREATE TABLE table_name_27 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(bronze) FROM table_name_27 WHERE silver > 0 AND total = 6 AND gold > 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: Name the sum of total with gold more than 1 and bronze more than 0 ### Context: CREATE TABLE table_name_10 (total INTEGER, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_10 WHERE gold > 1 AND bronze > 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 country did Jonas Geirnaert direct a film in? ### Context: CREATE TABLE table_name_30 (country VARCHAR, director_s_ VARCHAR) [/INST] ### Response: SELECT country FROM table_name_30 WHERE director_s_ = "jonas geirnaert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nominating Festival took place in Germany? ### Context: CREATE TABLE table_name_35 (nominating_festival VARCHAR, country VARCHAR) [/INST] ### Response: SELECT nominating_festival FROM table_name_35 WHERE country = "germany" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category of the film made in Switzerland? ### Context: CREATE TABLE table_name_30 (category VARCHAR, country VARCHAR) [/INST] ### Response: SELECT category FROM table_name_30 WHERE country = "switzerland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film was directed by Sandro Aguilar? ### Context: CREATE TABLE table_name_80 (film VARCHAR, director_s_ VARCHAR) [/INST] ### Response: SELECT film FROM table_name_80 WHERE director_s_ = "sandro aguilar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 language that has number of 14 ### Context: CREATE TABLE table_name_69 (language VARCHAR, number VARCHAR) [/INST] ### Response: SELECT language FROM table_name_69 WHERE number = "14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the number which has language of other ### Context: CREATE TABLE table_name_73 (number VARCHAR, language VARCHAR) [/INST] ### Response: SELECT number FROM table_name_73 WHERE language = "other" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals for losses of 19 and goals against more than 59 ### Context: CREATE TABLE table_name_77 (goals_for INTEGER, losses VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT AVG(goals_for) FROM table_name_77 WHERE losses = 19 AND goals_against > 59 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44 ### Context: CREATE TABLE table_name_4 (position INTEGER, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT AVG(position) FROM table_name_4 WHERE goals_against > 42 AND goals_for = 44 AND draws < 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which regular season was 2013 in? ### Context: CREATE TABLE table_name_50 (regular_season VARCHAR, year VARCHAR) [/INST] ### Response: SELECT regular_season FROM table_name_50 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: What year did the team make conference semifinals? ### Context: CREATE TABLE table_name_15 (year VARCHAR, playoffs VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_15 WHERE playoffs = "conference semifinals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smallest area in Russia that is ranked 23 with a population more than 522,800? ### Context: CREATE TABLE table_name_21 (area__kmΒ²_ INTEGER, population VARCHAR, country VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(area__kmΒ²_) FROM table_name_21 WHERE country = "russia" AND rank = 23 AND population > 522 OFFSET 800 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the date of June 8 what was the record? ### Context: CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_32 WHERE date = "june 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: On the date of June 15 what was the score? ### Context: CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_32 WHERE date = "june 15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs? ### Context: CREATE TABLE table_name_12 (college_junior_club_team VARCHAR, nhl_team VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT college_junior_club_team FROM table_name_12 WHERE nhl_team = "toronto maple leafs" AND nationality = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college/junior/club team of the defence player drafted by the New York Rangers? ### Context: CREATE TABLE table_name_43 (college_junior_club_team VARCHAR, nhl_team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT college_junior_club_team FROM table_name_43 WHERE nhl_team = "new york rangers" AND position = "defence" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the cadillac northstar lmp02 chassis? ### Context: CREATE TABLE table_name_78 (rank VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_78 WHERE chassis = "cadillac northstar lmp02" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant for the audi 3.6l turbo v8 engine and ranked 3rd with 163 points? ### Context: CREATE TABLE table_name_1 (entrant VARCHAR, points VARCHAR, engine VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_1 WHERE engine = "audi 3.6l turbo v8" AND rank = "3rd" AND points = 163 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 with more than 123 points, an audi r8 chassis, and a lmp900 class? ### Context: CREATE TABLE table_name_75 (rank VARCHAR, class VARCHAR, points VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_75 WHERE points > 123 AND chassis = "audi r8" AND class = "lmp900" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine for the bmw motorsport entrant with 123 points before 2004? ### Context: CREATE TABLE table_name_57 (engine VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = "bmw motorsport" AND points = 123 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points have a Combined elapsed time of 175d 20h 46m 04s? ### Context: CREATE TABLE table_name_97 (points VARCHAR, combined_elapsed_time VARCHAR) [/INST] ### Response: SELECT points FROM table_name_97 WHERE combined_elapsed_time = "175d 20h 46m 04s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 yacht name has a Combined elapsed time of 179d 11h 58m 14s? ### Context: CREATE TABLE table_name_50 (yacht_name VARCHAR, combined_elapsed_time VARCHAR) [/INST] ### Response: SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = "179d 11h 58m 14s" </s>