text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When a school has authority of state and a decile greater than 1, what is the roll number? ### Context: CREATE TABLE table_name_66 (roll VARCHAR, authority VARCHAR, decile VARCHAR) [/INST] ### Response: SELECT roll FROM table_name_66 WHERE authority = "state" AND decile > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who did the Jays play on August 30? ### Context: CREATE TABLE table_name_53 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_53 WHERE date = "august 30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which opponent has a record of 5-0-1? ### Context: CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_10 WHERE record = "5-0-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 method does the opponent of Dan New use? ### Context: CREATE TABLE table_name_90 (method VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT method FROM table_name_90 WHERE opponent = "dan new" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record of 3-0? ### Context: CREATE TABLE table_name_27 (method VARCHAR, record VARCHAR) [/INST] ### Response: SELECT method FROM table_name_27 WHERE record = "3-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 event is a win by an opponent of Nicolas Smith, with the round marked n/a? ### Context: CREATE TABLE table_name_24 (event VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR) [/INST] ### Response: SELECT event FROM table_name_24 WHERE res = "win" AND round = "n/a" AND opponent = "nicolas smith" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lasted 1 round and included an opponent of Dan Spychalski? ### Context: CREATE TABLE table_name_36 (event VARCHAR, round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT event FROM table_name_36 WHERE round = "1" AND opponent = "dan spychalski" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jimmy Smith's opponent's record? ### Context: CREATE TABLE table_name_70 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_70 WHERE opponent = "jimmy smith" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequecy with brand of exa fm ### Context: CREATE TABLE table_name_47 (frequency INTEGER, brand VARCHAR) [/INST] ### Response: SELECT SUM(frequency) FROM table_name_47 WHERE brand = "exa fm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 webcast for website of β€’ and frequency of 103.3 ### Context: CREATE TABLE table_name_5 (webcast VARCHAR, website VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT webcast FROM table_name_5 WHERE website = "β€’" AND frequency = 103.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: Name the lowest frequency for brand of radio manantial ### Context: CREATE TABLE table_name_54 (frequency INTEGER, brand VARCHAR) [/INST] ### Response: SELECT MIN(frequency) FROM table_name_54 WHERE brand = "radio manantial" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Score of new york yankees – 2, brooklyn dodgers – 3 involves how many number of games? ### Context: CREATE TABLE table_name_13 (game VARCHAR, score VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_13 WHERE score = "new york yankees – 2, brooklyn dodgers – 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: Date of october 5 had what score? ### Context: CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_15 WHERE date = "october 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: brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what attendance figure? ### Context: CREATE TABLE table_name_47 (attendance INTEGER, score VARCHAR, game VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who won mixed doubles in the 2002 season? ### Context: CREATE TABLE table_name_42 (mixed_doubles VARCHAR, season VARCHAR) [/INST] ### Response: SELECT mixed_doubles FROM table_name_42 WHERE season = 2002 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the lowest Quay cranes for Berths of 1 and operator of mtl with terminal of terminal 5 (ct5) ### Context: CREATE TABLE table_name_72 (quay_cranes INTEGER, terminal VARCHAR, berths VARCHAR, operator VARCHAR) [/INST] ### Response: SELECT MIN(quay_cranes) FROM table_name_72 WHERE berths = 1 AND operator = "mtl" AND terminal = "terminal 5 (ct5)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 operator with berths more than 1 and depth of 12.5-15.5 ### Context: CREATE TABLE table_name_81 (operator VARCHAR, berths VARCHAR, depth__m_ VARCHAR) [/INST] ### Response: SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.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 average points that Centro Asegurador earned with the McLaren M23 chassis? ### Context: CREATE TABLE table_name_3 (points INTEGER, chassis VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_3 WHERE chassis = "mclaren m23" AND entrant = "centro asegurador" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis of Emilio de Villota in 1981? ### Context: CREATE TABLE table_name_94 (chassis VARCHAR, year INTEGER) [/INST] ### Response: SELECT chassis FROM table_name_94 WHERE year > 1981 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directors won an award on 14/6/6? ### Context: CREATE TABLE table_name_98 (director_s_ VARCHAR, date VARCHAR) [/INST] ### Response: SELECT director_s_ FROM table_name_98 WHERE date = "14/6/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 date did Passion Pictures receive an award? ### Context: CREATE TABLE table_name_42 (date VARCHAR, recipient VARCHAR) [/INST] ### Response: SELECT date FROM table_name_42 WHERE recipient = "passion pictures" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 award did Charlie Productions Ltd receive? ### Context: CREATE TABLE table_name_14 (award VARCHAR, recipient VARCHAR) [/INST] ### Response: SELECT award FROM table_name_14 WHERE recipient = "charlie productions ltd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had Bub Ltd as the recipient? ### Context: CREATE TABLE table_name_75 (film VARCHAR, recipient VARCHAR) [/INST] ### Response: SELECT film FROM table_name_75 WHERE recipient = "bub ltd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 awarded on 22/3/06? ### Context: CREATE TABLE table_name_2 (film VARCHAR, date VARCHAR) [/INST] ### Response: SELECT film FROM table_name_2 WHERE date = "22/3/06" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score resulted in a winner after 2008? ### Context: CREATE TABLE table_name_18 (score VARCHAR, outcome VARCHAR, year VARCHAR) [/INST] ### Response: SELECT score FROM table_name_18 WHERE outcome = "winner" 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 score has an opponent gan teik chai lin woon fui? ### Context: CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_6 WHERE opponent = "gan teik chai lin woon fui" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament has an opponent gan teik chai lin woon fui? ### Context: CREATE TABLE table_name_77 (tournament VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_77 WHERE opponent = "gan teik chai lin woon fui" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament has an opponent jung jae-sung lee yong-dae? ### Context: CREATE TABLE table_name_59 (tournament VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_59 WHERE opponent = "jung jae-sung lee yong-dae" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the team that lost to Alexander (5-2)? ### Context: CREATE TABLE table_name_12 (record VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT record FROM table_name_12 WHERE loss = "alexander (5-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 record of 17-11? ### Context: CREATE TABLE table_name_86 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_86 WHERE record = "17-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: What is the score of the game that resulted in a 15-9 record? ### Context: CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_46 WHERE record = "15-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 attendance on May 26? ### Context: CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_86 WHERE date = "may 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of the game that was a loss to Dotson (2-3)? ### Context: CREATE TABLE table_name_34 (score VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT score FROM table_name_34 WHERE loss = "dotson (2-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: On what date was the record 19-11? ### Context: CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_58 WHERE record = "19-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: What were the highest points before the year 1974? ### Context: CREATE TABLE table_name_61 (points INTEGER, year INTEGER) [/INST] ### Response: SELECT MAX(points) FROM table_name_61 WHERE year < 1974 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis when the entrant was Lavazza March, and the points were 0.5? ### Context: CREATE TABLE table_name_75 (chassis VARCHAR, entrant VARCHAR, points VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_75 WHERE entrant = "lavazza march" AND points = 0.5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the chassis when the entrant was Lavazza March, and the year was 1975? ### Context: CREATE TABLE table_name_38 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_38 WHERE entrant = "lavazza march" AND year = 1975 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis when the points were greater than 0 and the entrant was March Engineering? ### Context: CREATE TABLE table_name_74 (chassis VARCHAR, points VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_74 WHERE points > 0 AND entrant = "march engineering" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a time of 56.07? ### Context: CREATE TABLE table_name_21 (name VARCHAR, time VARCHAR) [/INST] ### Response: SELECT name FROM table_name_21 WHERE time = 56.07 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original title of Madame Rosa? ### Context: CREATE TABLE table_name_83 (original_title VARCHAR, english_title VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_83 WHERE english_title = "madame rosa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original title where Paul Verhoeven is the director? ### Context: CREATE TABLE table_name_42 (original_title VARCHAR, director VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_42 WHERE director = "paul verhoeven" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original title has a year of 1978? ### Context: CREATE TABLE table_name_18 (original_title VARCHAR, year VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_18 WHERE year = "1978" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of the best foreign film? ### Context: CREATE TABLE table_name_14 (director VARCHAR, original_title VARCHAR) [/INST] ### Response: SELECT director FROM table_name_14 WHERE original_title = "best foreign film" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 English title for Ansikte Mot Ansikte? ### Context: CREATE TABLE table_name_90 (english_title VARCHAR, original_title VARCHAR) [/INST] ### Response: SELECT english_title FROM table_name_90 WHERE original_title = "ansikte mot ansikte" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 happened on 2009-09-05? ### Context: CREATE TABLE table_name_93 (circumstances VARCHAR, date VARCHAR) [/INST] ### Response: SELECT circumstances FROM table_name_93 WHERE date = "2009-09-05" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the combat of 2009-09-16? ### Context: CREATE TABLE table_name_80 (location VARCHAR, circumstances VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location FROM table_name_80 WHERE circumstances = "combat" AND date = "2009-09-16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What happened on 2009-03-14? ### Context: CREATE TABLE table_name_25 (circumstances VARCHAR, date VARCHAR) [/INST] ### Response: SELECT circumstances FROM table_name_25 WHERE date = "2009-03-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: How many casualties from the combat in the Fayzabad area? ### Context: CREATE TABLE table_name_71 (casualties VARCHAR, circumstances VARCHAR, location VARCHAR) [/INST] ### Response: SELECT casualties FROM table_name_71 WHERE circumstances = "combat" AND location = "fayzabad area" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the incident of 2009-09-05? ### Context: CREATE TABLE table_name_28 (location VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location FROM table_name_28 WHERE date = "2009-09-05" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on January 22? ### Context: CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_67 WHERE date = "january 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 is the score of the game on February 26 with the Chicago black hawks as the home team and the New York Rangers as the visitor team? ### Context: CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_59 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "february 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home team of the game on February 4? ### Context: CREATE TABLE table_name_74 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_74 WHERE date = "february 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 Team had less than 1 point with a Zakspeed 871 chassis? ### Context: CREATE TABLE table_name_44 (team VARCHAR, points VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT team FROM table_name_44 WHERE points < 1 AND chassis = "zakspeed 871" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine? ### Context: CREATE TABLE table_name_35 (points INTEGER, engine VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_35 WHERE engine = "ford cosworth dfr (mader) 3.5 v8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was a Rial Arc2 chassis used? ### Context: CREATE TABLE table_name_55 (year INTEGER, chassis VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_55 WHERE chassis = "rial arc2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bronze when silver is 1 ### Context: CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT bronze FROM table_name_25 WHERE 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: Name the least silver when gold is less than 0 ### Context: CREATE TABLE table_name_41 (silver INTEGER, gold INTEGER) [/INST] ### Response: SELECT MIN(silver) FROM table_name_41 WHERE 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 least silver for nation of total when bronze is more than 24 ### Context: CREATE TABLE table_name_40 (silver INTEGER, nation VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MIN(silver) FROM table_name_40 WHERE nation = "total" AND bronze > 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the year with finish of 12th and record of 23-36 ### Context: CREATE TABLE table_name_14 (year VARCHAR, finish VARCHAR, record VARCHAR) [/INST] ### Response: SELECT year FROM table_name_14 WHERE finish = "12th" AND record = "23-36" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1997 ### Context: CREATE TABLE table_name_78 (record VARCHAR, year VARCHAR) [/INST] ### Response: SELECT record FROM table_name_78 WHERE year = "1997" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the year for jesus alfaro and finish of 6th ### Context: CREATE TABLE table_name_65 (year VARCHAR, manager VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT year FROM table_name_65 WHERE manager = "jesus alfaro" AND finish = "6th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manager for playoffs of missed for 1999 ### Context: CREATE TABLE table_name_45 (manager VARCHAR, playoffs VARCHAR, year VARCHAR) [/INST] ### Response: SELECT manager FROM table_name_45 WHERE playoffs = "missed" AND year = "1999" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the average attendance when the record was 17-18? ### Context: CREATE TABLE table_name_45 (attendance INTEGER, record VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_45 WHERE record = "17-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: What was marlboro brm's lowest points by using brm p160b? ### Context: CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_60 WHERE entrant = "marlboro brm" AND chassis = "brm p160b" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total points in 1974? ### Context: CREATE TABLE table_name_47 (points VARCHAR, year VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_47 WHERE year = 1974 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has 0 points in 1974? ### Context: CREATE TABLE table_name_3 (entrant VARCHAR, points VARCHAR, year VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_3 WHERE points = 0 AND year = 1974 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points of using mclaren m14a as chassis? ### Context: CREATE TABLE table_name_37 (points INTEGER, chassis VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_37 WHERE chassis = "mclaren m14a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year? ### Context: CREATE TABLE table_name_39 (year INTEGER, event VARCHAR, location VARCHAR, final_score VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Competition of u.s championships, and a Event of all around has what average year? ### Context: CREATE TABLE table_name_61 (year INTEGER, competition VARCHAR, event VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_61 WHERE competition = "u.s championships" AND event = "all around" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in 1970? ### Context: CREATE TABLE table_name_55 (film VARCHAR, year VARCHAR) [/INST] ### Response: SELECT film FROM table_name_55 WHERE year = 1970 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who wrote the lyrics for Mukti? ### Context: CREATE TABLE table_name_14 (lyricist VARCHAR, film VARCHAR) [/INST] ### Response: SELECT lyricist FROM table_name_14 WHERE film = "mukti" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song was directed by Shankar Jaikishan? ### Context: CREATE TABLE table_name_13 (song VARCHAR, music_director_s_ VARCHAR) [/INST] ### Response: SELECT song FROM table_name_13 WHERE music_director_s_ = "shankar jaikishan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song was written after 1976 and directed by Rahul Dev Burman? ### Context: CREATE TABLE table_name_23 (song VARCHAR, year VARCHAR, music_director_s_ VARCHAR) [/INST] ### Response: SELECT song FROM table_name_23 WHERE year > 1976 AND music_director_s_ = "rahul dev burman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What car does Scott Deware own that has rounds under 12? ### Context: CREATE TABLE table_name_24 (car_s_ VARCHAR, rounds VARCHAR, owner_s_ VARCHAR) [/INST] ### Response: SELECT car_s_ FROM table_name_24 WHERE rounds < 12 AND owner_s_ = "scott deware" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City or town has a Top division titles of 17 ### Context: CREATE TABLE table_name_92 (city_or_town VARCHAR, top_division_titles VARCHAR) [/INST] ### Response: SELECT city_or_town FROM table_name_92 WHERE top_division_titles = "17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which City or town has top division smaller than 40 and Gaziantepspor Club ? ### Context: CREATE TABLE table_name_70 (city_or_town VARCHAR, number_of_seasons_in_top_division VARCHAR, club VARCHAR) [/INST] ### Response: SELECT city_or_town FROM table_name_70 WHERE number_of_seasons_in_top_division < 40 AND club = "gaziantepspor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2003 value with 2r in 2008 and 1r in 2011? ### Context: CREATE TABLE table_name_59 (Id VARCHAR) [/INST] ### Response: SELECT 2003 FROM table_name_59 WHERE 2008 = "2r" AND 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: What is the 2007 value with 2r in 2011 and 2r in 2008? ### Context: CREATE TABLE table_name_67 (Id VARCHAR) [/INST] ### Response: SELECT 2007 FROM table_name_67 WHERE 2011 = "2r" AND 2008 = "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: What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon? ### Context: CREATE TABLE table_name_36 (tournament VARCHAR) [/INST] ### Response: SELECT 2007 FROM table_name_36 WHERE 2009 = "1r" AND 2011 = "2r" AND tournament = "wimbledon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2003 value with 1r in 2009 at the Australian Open? ### Context: CREATE TABLE table_name_16 (tournament VARCHAR) [/INST] ### Response: SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins did they have at Richmond Cricket Ground Stadium? ### Context: CREATE TABLE table_name_20 (wins VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many games did they play in 1905? ### Context: CREATE TABLE table_name_83 (played INTEGER, years VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_83 WHERE years = "1905" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 term in office has a qld state, a Party of labor, and an Electorate of fisher? ### Context: CREATE TABLE table_name_76 (term_in_office VARCHAR, electorate VARCHAR, state VARCHAR, party VARCHAR) [/INST] ### Response: SELECT term_in_office FROM table_name_76 WHERE state = "qld" AND party = "labor" AND electorate = "fisher" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 member has an Electorate of kennedy? ### Context: CREATE TABLE table_name_50 (member VARCHAR, electorate VARCHAR) [/INST] ### Response: SELECT member FROM table_name_50 WHERE electorate = "kennedy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Member of david jull? ### Context: CREATE TABLE table_name_75 (party VARCHAR, member VARCHAR) [/INST] ### Response: SELECT party FROM table_name_75 WHERE member = "david jull" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 term in office has an Electorate of hinkler? ### Context: CREATE TABLE table_name_65 (term_in_office VARCHAR, electorate VARCHAR) [/INST] ### Response: SELECT term_in_office FROM table_name_65 WHERE electorate = "hinkler" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Electorate has a State of qld, a Party of national, and a Member of hon evan adermann? ### Context: CREATE TABLE table_name_31 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR) [/INST] ### Response: SELECT electorate FROM table_name_31 WHERE state = "qld" AND party = "national" AND member = "hon evan adermann" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner? ### Context: CREATE TABLE table_name_48 (state VARCHAR, member VARCHAR, term_in_office VARCHAR, party VARCHAR) [/INST] ### Response: SELECT state FROM table_name_48 WHERE term_in_office = "1984–1996" AND party = "labor" AND member = "robert tickner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total amount of decile with the authority of state around the Pokuru School and a roll smaller than 109? ### Context: CREATE TABLE table_name_44 (decile INTEGER, roll VARCHAR, authority VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(decile) FROM table_name_44 WHERE authority = "state" AND name = "pokuru school" AND roll < 109 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps for corvette racing in 2004 ### Context: CREATE TABLE table_name_11 (laps INTEGER, team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_11 WHERE team = "corvette racing" AND year = 2004 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the class for 4th position with year before 2006 ### Context: CREATE TABLE table_name_67 (class VARCHAR, pos VARCHAR, year VARCHAR) [/INST] ### Response: SELECT class FROM table_name_67 WHERE pos = "4th" AND year < 2006 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total number of laps for 23rd position ### Context: CREATE TABLE table_name_17 (laps VARCHAR, pos VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_17 WHERE pos = "23rd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team with laps less than 315 and co-drivers of david brabham franck lagorce? ### Context: CREATE TABLE table_name_83 (team VARCHAR, laps VARCHAR, co_drivers VARCHAR) [/INST] ### Response: SELECT team FROM table_name_83 WHERE laps < 315 AND co_drivers = "david brabham franck lagorce" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team for co-drivers of david brabham mario andretti ### Context: CREATE TABLE table_name_15 (team VARCHAR, co_drivers VARCHAR) [/INST] ### Response: SELECT team FROM table_name_15 WHERE co_drivers = "david brabham mario andretti" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest year with points more than 0 ### Context: CREATE TABLE table_name_90 (year INTEGER, points INTEGER) [/INST] ### Response: SELECT MAX(year) FROM table_name_90 WHERE points > 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 highest points when year is more than 1953 ### Context: CREATE TABLE table_name_8 (points INTEGER, year INTEGER) [/INST] ### Response: SELECT MAX(points) FROM table_name_8 WHERE year > 1953 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine when points are 0 and chassis is kuzma indy roadster for 1954 ### Context: CREATE TABLE table_name_38 (engine VARCHAR, year VARCHAR, points VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_38 WHERE points = 0 AND chassis = "kuzma indy roadster" AND year = 1954 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points with chassis of kurtis kraft 3000 and year before 1951 ### Context: CREATE TABLE table_name_92 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_92 WHERE chassis = "kurtis kraft 3000" AND year < 1951 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611? ### Context: CREATE TABLE table_name_31 (pioneer INTEGER, year VARCHAR, sarina VARCHAR) [/INST] ### Response: SELECT MIN(pioneer) FROM table_name_31 WHERE year = 1966 AND sarina > 4 OFFSET 611 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year of the TV series directed by Soroush Sehat? ### Context: CREATE TABLE table_name_1 (year VARCHAR, director VARCHAR) [/INST] ### Response: SELECT year FROM table_name_1 WHERE director = "soroush sehat" </s>