instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
What is the sum of Silver with a Bronze that is larger than 0 with a Gold smaller than 0?
CREATE TABLE table_name_26 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_26 WHERE bronze > 0 AND gold < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (silver INTEGER, bronze VARCHAR, gold VARCHAR) Question: What is the sum of Silver with a Bronze that is larger than 0 with a Gold smaller than 0? [/INST] SELECT SUM(silver) FROM table_name_26 WHERE bronze > 0 AND gold < 0 </s>
What is the average Silver with a Total that is smaller than 1?
CREATE TABLE table_name_97 (silver INTEGER, total INTEGER)
SELECT AVG(silver) FROM table_name_97 WHERE total < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (silver INTEGER, total INTEGER) Question: What is the average Silver with a Total that is smaller than 1? [/INST] SELECT AVG(silver) FROM table_name_97 WHERE total < 1 </s>
What is the lowest Rank with a Nation that is east germany?
CREATE TABLE table_name_43 (rank INTEGER, nation VARCHAR)
SELECT MIN(rank) FROM table_name_43 WHERE nation = "east germany"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (rank INTEGER, nation VARCHAR) Question: What is the lowest Rank with a Nation that is east germany? [/INST] SELECT MIN(rank) FROM table_name_43 WHERE nation = "east germany" </s>
What is the total number of Established for soccer plated in kuntz stadium?
CREATE TABLE table_name_65 (established VARCHAR, sport VARCHAR, venue VARCHAR)
SELECT COUNT(established) FROM table_name_65 WHERE sport = "soccer" AND venue = "kuntz stadium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (established VARCHAR, sport VARCHAR, venue VARCHAR) Question: What is the total number of Established for soccer plated in kuntz stadium? [/INST] SELECT COUNT(established) FROM table_name_65 WHERE sport = "soccer" AND venue = "kuntz stadium" </s>
What is the Club that has an Established more than 2000 for soccer plated in kuntz stadium?
CREATE TABLE table_name_90 (club VARCHAR, venue VARCHAR, established VARCHAR, sport VARCHAR)
SELECT club FROM table_name_90 WHERE established > 2000 AND sport = "soccer" AND venue = "kuntz stadium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (club VARCHAR, venue VARCHAR, established VARCHAR, sport VARCHAR) Question: What is the Club that has an Established more than 2000 for soccer plated in kuntz stadium? [/INST] SELECT club FROM table_name_90 WHERE established > 2000 AND sport = "soccer" AND venue = "kuntz stadium" </s>
What is the highest Established for the kuntz stadium?
CREATE TABLE table_name_79 (established INTEGER, venue VARCHAR)
SELECT MAX(established) FROM table_name_79 WHERE venue = "kuntz stadium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (established INTEGER, venue VARCHAR) Question: What is the highest Established for the kuntz stadium? [/INST] SELECT MAX(established) FROM table_name_79 WHERE venue = "kuntz stadium" </s>
What is the highest number of titles won by the Järve club before 2013?
CREATE TABLE table_name_9 (titles INTEGER, current_run_since VARCHAR, club VARCHAR)
SELECT MAX(titles) FROM table_name_9 WHERE current_run_since < 2013 AND club = "järve"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (titles INTEGER, current_run_since VARCHAR, club VARCHAR) Question: What is the highest number of titles won by the Järve club before 2013? [/INST] SELECT MAX(titles) FROM table_name_9 WHERE current_run_since < 2013 AND club = "järve" </s>
What is the total number of losses against the Rajasthan Royals with more than 0 ties?
CREATE TABLE table_name_57 (lost VARCHAR, opposition VARCHAR, tied VARCHAR)
SELECT COUNT(lost) FROM table_name_57 WHERE opposition = "rajasthan royals" AND tied > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (lost VARCHAR, opposition VARCHAR, tied VARCHAR) Question: What is the total number of losses against the Rajasthan Royals with more than 0 ties? [/INST] SELECT COUNT(lost) FROM table_name_57 WHERE opposition = "rajasthan royals" AND tied > 0 </s>
What is the average number of losses when there are more than 0 ties?
CREATE TABLE table_name_49 (lost INTEGER, tied INTEGER)
SELECT AVG(lost) FROM table_name_49 WHERE tied > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (lost INTEGER, tied INTEGER) Question: What is the average number of losses when there are more than 0 ties? [/INST] SELECT AVG(lost) FROM table_name_49 WHERE tied > 0 </s>
Which Location has a result of L 31-52?
CREATE TABLE table_name_67 (location VARCHAR, result VARCHAR)
SELECT location FROM table_name_67 WHERE result = "l 31-52"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (location VARCHAR, result VARCHAR) Question: Which Location has a result of L 31-52? [/INST] SELECT location FROM table_name_67 WHERE result = "l 31-52" </s>
What is the mean number of goals when the rank's less than 8 and there are 261 matches?
CREATE TABLE table_name_88 (goals INTEGER, rank VARCHAR, matches VARCHAR)
SELECT AVG(goals) FROM table_name_88 WHERE rank < 8 AND matches = 261
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (goals INTEGER, rank VARCHAR, matches VARCHAR) Question: What is the mean number of goals when the rank's less than 8 and there are 261 matches? [/INST] SELECT AVG(goals) FROM table_name_88 WHERE rank < 8 AND matches = 261 </s>
Which years had a rank of more than 6 and involved Oleksandr Kosyrin?
CREATE TABLE table_name_7 (years VARCHAR, rank VARCHAR, name VARCHAR)
SELECT years FROM table_name_7 WHERE rank > 6 AND name = "oleksandr kosyrin"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (years VARCHAR, rank VARCHAR, name VARCHAR) Question: Which years had a rank of more than 6 and involved Oleksandr Kosyrin? [/INST] SELECT years FROM table_name_7 WHERE rank > 6 AND name = "oleksandr kosyrin" </s>
What is the Date when the label was alfa records, and a Catalog of alca-487?
CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_61 WHERE label = "alfa records" AND catalog = "alca-487"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR) Question: What is the Date when the label was alfa records, and a Catalog of alca-487? [/INST] SELECT date FROM table_name_61 WHERE label = "alfa records" AND catalog = "alca-487" </s>
What is the Format when Alfa records is the label, and there is a Catalog of alca-9016?
CREATE TABLE table_name_3 (format VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_3 WHERE label = "alfa records" AND catalog = "alca-9016"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (format VARCHAR, label VARCHAR, catalog VARCHAR) Question: What is the Format when Alfa records is the label, and there is a Catalog of alca-9016? [/INST] SELECT format FROM table_name_3 WHERE label = "alfa records" AND catalog = "alca-9016" </s>
What is the Region with a Catalog of alca-487?
CREATE TABLE table_name_89 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_89 WHERE catalog = "alca-487"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (region VARCHAR, catalog VARCHAR) Question: What is the Region with a Catalog of alca-487? [/INST] SELECT region FROM table_name_89 WHERE catalog = "alca-487" </s>
What is the Catalog when the format is ed remaster cd, and a Label of village records, and a Date of march 13, 2002?
CREATE TABLE table_name_1 (catalog VARCHAR, date VARCHAR, format VARCHAR, label VARCHAR)
SELECT catalog FROM table_name_1 WHERE format = "ed remaster cd" AND label = "village records" AND date = "march 13, 2002"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (catalog VARCHAR, date VARCHAR, format VARCHAR, label VARCHAR) Question: What is the Catalog when the format is ed remaster cd, and a Label of village records, and a Date of march 13, 2002? [/INST] SELECT catalog FROM table_name_1 WHERE format = "ed remaster cd" AND label = "village records" AND date = "march 13, 2002" </s>
What is the Format for the alca-487 catalog?
CREATE TABLE table_name_12 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_12 WHERE catalog = "alca-487"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (format VARCHAR, catalog VARCHAR) Question: What is the Format for the alca-487 catalog? [/INST] SELECT format FROM table_name_12 WHERE catalog = "alca-487" </s>
What is the Format for the alfa records Label, and a Catalog of alca-9016?
CREATE TABLE table_name_81 (format VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_81 WHERE label = "alfa records" AND catalog = "alca-9016"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (format VARCHAR, label VARCHAR, catalog VARCHAR) Question: What is the Format for the alfa records Label, and a Catalog of alca-9016? [/INST] SELECT format FROM table_name_81 WHERE label = "alfa records" AND catalog = "alca-9016" </s>
Which Rank has a Total of 1 and a Bronze larger than 0?
CREATE TABLE table_name_33 (rank INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MAX(rank) FROM table_name_33 WHERE total = 1 AND bronze > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (rank INTEGER, total VARCHAR, bronze VARCHAR) Question: Which Rank has a Total of 1 and a Bronze larger than 0? [/INST] SELECT MAX(rank) FROM table_name_33 WHERE total = 1 AND bronze > 0 </s>
What kind of Silver has a Nation of norway and a Gold smaller than 3?
CREATE TABLE table_name_27 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_27 WHERE nation = "norway" AND gold < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (silver INTEGER, nation VARCHAR, gold VARCHAR) Question: What kind of Silver has a Nation of norway and a Gold smaller than 3? [/INST] SELECT SUM(silver) FROM table_name_27 WHERE nation = "norway" AND gold < 3 </s>
Which Silver has a Total smaller than 2 and a Rank larger than 8
CREATE TABLE table_name_58 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT MIN(silver) FROM table_name_58 WHERE total < 2 AND rank > 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (silver INTEGER, total VARCHAR, rank VARCHAR) Question: Which Silver has a Total smaller than 2 and a Rank larger than 8 [/INST] SELECT MIN(silver) FROM table_name_58 WHERE total < 2 AND rank > 8 </s>
What kind of Rank has a Bronze of 0 and a Total smaller than 3 and a Nation of austria?
CREATE TABLE table_name_6 (rank INTEGER, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MAX(rank) FROM table_name_6 WHERE bronze = 0 AND total < 3 AND nation = "austria"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (rank INTEGER, nation VARCHAR, bronze VARCHAR, total VARCHAR) Question: What kind of Rank has a Bronze of 0 and a Total smaller than 3 and a Nation of austria? [/INST] SELECT MAX(rank) FROM table_name_6 WHERE bronze = 0 AND total < 3 AND nation = "austria" </s>
What final score was there on October 8, 2006?
CREATE TABLE table_name_96 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_96 WHERE date = "october 8, 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (score_in_the_final VARCHAR, date VARCHAR) Question: What final score was there on October 8, 2006? [/INST] SELECT score_in_the_final FROM table_name_96 WHERE date = "october 8, 2006" </s>
Which final opponent's surface was hard (i) and participated on October 9, 2005?
CREATE TABLE table_name_26 (opponent_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_26 WHERE surface = "hard (i)" AND date = "october 9, 2005"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (opponent_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) Question: Which final opponent's surface was hard (i) and participated on October 9, 2005? [/INST] SELECT opponent_in_the_final FROM table_name_26 WHERE surface = "hard (i)" AND date = "october 9, 2005" </s>
Who was the opponent at the game with a result of W 13–12?
CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_83 WHERE result = "w 13–12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR) Question: Who was the opponent at the game with a result of W 13–12? [/INST] SELECT opponent FROM table_name_83 WHERE result = "w 13–12" </s>
What was the date of the game against the Chicago Bears?
CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_90 WHERE opponent = "chicago bears"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR) Question: What was the date of the game against the Chicago Bears? [/INST] SELECT date FROM table_name_90 WHERE opponent = "chicago bears" </s>
Which Entrant had the Bugatti T35B Chassis and the Driver, Heinrich-Joachim Von Morgen?
CREATE TABLE table_name_66 (entrant VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT entrant FROM table_name_66 WHERE chassis = "bugatti t35b" AND driver = "heinrich-joachim von morgen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (entrant VARCHAR, chassis VARCHAR, driver VARCHAR) Question: Which Entrant had the Bugatti T35B Chassis and the Driver, Heinrich-Joachim Von Morgen? [/INST] SELECT entrant FROM table_name_66 WHERE chassis = "bugatti t35b" AND driver = "heinrich-joachim von morgen" </s>
What was the Engine, when the Chassis was Bugatti T51, and when the Entrant was a Private Entry?
CREATE TABLE table_name_1 (engine VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_1 WHERE chassis = "bugatti t51" AND entrant = "private entry"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (engine VARCHAR, chassis VARCHAR, entrant VARCHAR) Question: What was the Engine, when the Chassis was Bugatti T51, and when the Entrant was a Private Entry? [/INST] SELECT engine FROM table_name_1 WHERE chassis = "bugatti t51" AND entrant = "private entry" </s>
Who was the Driver, when the Chassis was Bugatti T51, and when the Entrant was Automobiles Ettore Bugatti?
CREATE TABLE table_name_87 (driver VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_87 WHERE chassis = "bugatti t51" AND entrant = "automobiles ettore bugatti"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (driver VARCHAR, chassis VARCHAR, entrant VARCHAR) Question: Who was the Driver, when the Chassis was Bugatti T51, and when the Entrant was Automobiles Ettore Bugatti? [/INST] SELECT driver FROM table_name_87 WHERE chassis = "bugatti t51" AND entrant = "automobiles ettore bugatti" </s>
Who was the Driver, when the Engine was 7.1 l6, and when the Chassis was Mercedes-Benz SSK l?
CREATE TABLE table_name_3 (driver VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT driver FROM table_name_3 WHERE engine = "7.1 l6" AND chassis = "mercedes-benz ssk l"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (driver VARCHAR, engine VARCHAR, chassis VARCHAR) Question: Who was the Driver, when the Engine was 7.1 l6, and when the Chassis was Mercedes-Benz SSK l? [/INST] SELECT driver FROM table_name_3 WHERE engine = "7.1 l6" AND chassis = "mercedes-benz ssk l" </s>
Can you tell me the sum of Draws that has the Against larger than 1106, and the Wins larger than 13?
CREATE TABLE table_name_44 (draws INTEGER, against VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_44 WHERE against > 1106 AND wins > 13
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (draws INTEGER, against VARCHAR, wins VARCHAR) Question: Can you tell me the sum of Draws that has the Against larger than 1106, and the Wins larger than 13? [/INST] SELECT SUM(draws) FROM table_name_44 WHERE against > 1106 AND wins > 13 </s>
Can you tell me the lowest Wins that has the Ballarat FL of daylesford, and the Byes smaller than 1?
CREATE TABLE table_name_71 (wins INTEGER, ballarat_fl VARCHAR, byes VARCHAR)
SELECT MIN(wins) FROM table_name_71 WHERE ballarat_fl = "daylesford" AND byes < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (wins INTEGER, ballarat_fl VARCHAR, byes VARCHAR) Question: Can you tell me the lowest Wins that has the Ballarat FL of daylesford, and the Byes smaller than 1? [/INST] SELECT MIN(wins) FROM table_name_71 WHERE ballarat_fl = "daylesford" AND byes < 1 </s>
Can you tell me the highest Against that has the Losses larger than 9, and the Byes of 2, and the Draws larger than 0?
CREATE TABLE table_name_56 (against INTEGER, draws VARCHAR, losses VARCHAR, byes VARCHAR)
SELECT MAX(against) FROM table_name_56 WHERE losses > 9 AND byes = 2 AND draws > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (against INTEGER, draws VARCHAR, losses VARCHAR, byes VARCHAR) Question: Can you tell me the highest Against that has the Losses larger than 9, and the Byes of 2, and the Draws larger than 0? [/INST] SELECT MAX(against) FROM table_name_56 WHERE losses > 9 AND byes = 2 AND draws > 0 </s>
Can you tell me the sum of Draws that had the Wins smaller than 3, and the Byes larger than 2?
CREATE TABLE table_name_15 (draws INTEGER, wins VARCHAR, byes VARCHAR)
SELECT SUM(draws) FROM table_name_15 WHERE wins < 3 AND byes > 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (draws INTEGER, wins VARCHAR, byes VARCHAR) Question: Can you tell me the sum of Draws that had the Wins smaller than 3, and the Byes larger than 2? [/INST] SELECT SUM(draws) FROM table_name_15 WHERE wins < 3 AND byes > 2 </s>
Which Yards has a Long smaller than 3?
CREATE TABLE table_name_2 (yards INTEGER, long INTEGER)
SELECT AVG(yards) FROM table_name_2 WHERE long < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (yards INTEGER, long INTEGER) Question: Which Yards has a Long smaller than 3? [/INST] SELECT AVG(yards) FROM table_name_2 WHERE long < 3 </s>
What is Regulator, when Conduct of Litigation is Yes, and when Probate Activities is Yes?
CREATE TABLE table_name_13 (regulator VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR)
SELECT regulator FROM table_name_13 WHERE conduct_of_litigation = "yes" AND probate_activities = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (regulator VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR) Question: What is Regulator, when Conduct of Litigation is Yes, and when Probate Activities is Yes? [/INST] SELECT regulator FROM table_name_13 WHERE conduct_of_litigation = "yes" AND probate_activities = "yes" </s>
What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is No?
CREATE TABLE table_name_95 (reserved_instruments VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR)
SELECT reserved_instruments FROM table_name_95 WHERE conduct_of_litigation = "yes" AND probate_activities = "no"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (reserved_instruments VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR) Question: What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is No? [/INST] SELECT reserved_instruments FROM table_name_95 WHERE conduct_of_litigation = "yes" AND probate_activities = "no" </s>
What is Administration of Oaths, when Rights of Audience is Yes, and when Reserved Instruments is Yes?
CREATE TABLE table_name_43 (administration_of_oaths VARCHAR, rights_of_audience VARCHAR, reserved_instruments VARCHAR)
SELECT administration_of_oaths FROM table_name_43 WHERE rights_of_audience = "yes" AND reserved_instruments = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (administration_of_oaths VARCHAR, rights_of_audience VARCHAR, reserved_instruments VARCHAR) Question: What is Administration of Oaths, when Rights of Audience is Yes, and when Reserved Instruments is Yes? [/INST] SELECT administration_of_oaths FROM table_name_43 WHERE rights_of_audience = "yes" AND reserved_instruments = "yes" </s>
What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is Yes?
CREATE TABLE table_name_19 (reserved_instruments VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR)
SELECT reserved_instruments FROM table_name_19 WHERE conduct_of_litigation = "yes" AND probate_activities = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (reserved_instruments VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR) Question: What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is Yes? [/INST] SELECT reserved_instruments FROM table_name_19 WHERE conduct_of_litigation = "yes" AND probate_activities = "yes" </s>
What is Probate Activities, when Reserved Instruments is No, and when Regulator is Chartered Institute of Legal Executives?
CREATE TABLE table_name_6 (probate_activities VARCHAR, reserved_instruments VARCHAR, regulator VARCHAR)
SELECT probate_activities FROM table_name_6 WHERE reserved_instruments = "no" AND regulator = "chartered institute of legal executives"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (probate_activities VARCHAR, reserved_instruments VARCHAR, regulator VARCHAR) Question: What is Probate Activities, when Reserved Instruments is No, and when Regulator is Chartered Institute of Legal Executives? [/INST] SELECT probate_activities FROM table_name_6 WHERE reserved_instruments = "no" AND regulator = "chartered institute of legal executives" </s>
What is Probate Activities, when Notarial Activities is No, when Conduct of Litigation is Yes, and when Regulator is Association of Law Costs Draftsmen?
CREATE TABLE table_name_16 (probate_activities VARCHAR, regulator VARCHAR, notarial_activities VARCHAR, conduct_of_litigation VARCHAR)
SELECT probate_activities FROM table_name_16 WHERE notarial_activities = "no" AND conduct_of_litigation = "yes" AND regulator = "association of law costs draftsmen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (probate_activities VARCHAR, regulator VARCHAR, notarial_activities VARCHAR, conduct_of_litigation VARCHAR) Question: What is Probate Activities, when Notarial Activities is No, when Conduct of Litigation is Yes, and when Regulator is Association of Law Costs Draftsmen? [/INST] SELECT probate_activities FROM table_name_16 WHERE notarial_activities = "no" AND conduct_of_litigation = "yes" AND regulator = "association of law costs draftsmen" </s>
What is the highest attendance for the game after week 1 against the New York Jets?
CREATE TABLE table_name_87 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = "new york jets"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (attendance INTEGER, week VARCHAR, opponent VARCHAR) Question: What is the highest attendance for the game after week 1 against the New York Jets? [/INST] SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = "new york jets" </s>
What is the average of player Matthew Elliott (vic)?
CREATE TABLE table_name_63 (average VARCHAR, player VARCHAR)
SELECT average FROM table_name_63 WHERE player = "matthew elliott (vic)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (average VARCHAR, player VARCHAR) Question: What is the average of player Matthew Elliott (vic)? [/INST] SELECT average FROM table_name_63 WHERE player = "matthew elliott (vic)" </s>
How many runs were ranked 4?
CREATE TABLE table_name_84 (runs VARCHAR, rank VARCHAR)
SELECT runs FROM table_name_84 WHERE rank = "4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (runs VARCHAR, rank VARCHAR) Question: How many runs were ranked 4? [/INST] SELECT runs FROM table_name_84 WHERE rank = "4" </s>
Which formula has a refractive index 589.3 at 1.97?
CREATE TABLE table_name_63 (formula VARCHAR, refractive_index_es__5893nm VARCHAR)
SELECT formula FROM table_name_63 WHERE refractive_index_es__5893nm = "1.97"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (formula VARCHAR, refractive_index_es__5893nm VARCHAR) Question: Which formula has a refractive index 589.3 at 1.97? [/INST] SELECT formula FROM table_name_63 WHERE refractive_index_es__5893nm = "1.97" </s>
What is Country of Origin, when Type is Disposable, when Primary Cartridge is 105mm, and when Year of Intro is less than 2008?
CREATE TABLE table_name_74 (country_of_origin VARCHAR, year_of_intro VARCHAR, type VARCHAR, primary_cartridge VARCHAR)
SELECT country_of_origin FROM table_name_74 WHERE type = "disposable" AND primary_cartridge = "105mm" AND year_of_intro < 2008
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (country_of_origin VARCHAR, year_of_intro VARCHAR, type VARCHAR, primary_cartridge VARCHAR) Question: What is Country of Origin, when Type is Disposable, when Primary Cartridge is 105mm, and when Year of Intro is less than 2008? [/INST] SELECT country_of_origin FROM table_name_74 WHERE type = "disposable" AND primary_cartridge = "105mm" AND year_of_intro < 2008 </s>
What is Country of Origin, when Year of Intro is 1977?
CREATE TABLE table_name_10 (country_of_origin VARCHAR, year_of_intro VARCHAR)
SELECT country_of_origin FROM table_name_10 WHERE year_of_intro = 1977
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (country_of_origin VARCHAR, year_of_intro VARCHAR) Question: What is Country of Origin, when Year of Intro is 1977? [/INST] SELECT country_of_origin FROM table_name_10 WHERE year_of_intro = 1977 </s>
What is Country of Origin, when Year of Intro is greater than 1985, and when Primary Cartridge is 125mm?
CREATE TABLE table_name_27 (country_of_origin VARCHAR, year_of_intro VARCHAR, primary_cartridge VARCHAR)
SELECT country_of_origin FROM table_name_27 WHERE year_of_intro > 1985 AND primary_cartridge = "125mm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (country_of_origin VARCHAR, year_of_intro VARCHAR, primary_cartridge VARCHAR) Question: What is Country of Origin, when Year of Intro is greater than 1985, and when Primary Cartridge is 125mm? [/INST] SELECT country_of_origin FROM table_name_27 WHERE year_of_intro > 1985 AND primary_cartridge = "125mm" </s>
What is the total number of Year of Intro(s), when Country of Origin is Soviet Union, when Type is Reusable, when Primary Cartridge is 40mm, and when Name/ Designation is RPG-29?
CREATE TABLE table_name_87 (year_of_intro VARCHAR, name__designation VARCHAR, primary_cartridge VARCHAR, country_of_origin VARCHAR, type VARCHAR)
SELECT COUNT(year_of_intro) FROM table_name_87 WHERE country_of_origin = "soviet union" AND type = "reusable" AND primary_cartridge = "40mm" AND name__designation = "rpg-29"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (year_of_intro VARCHAR, name__designation VARCHAR, primary_cartridge VARCHAR, country_of_origin VARCHAR, type VARCHAR) Question: What is the total number of Year of Intro(s), when Country of Origin is Soviet Union, when Type is Reusable, when Primary Cartridge is 40mm, and when Name/ Designation is RPG-29? [/INST] SELECT COUNT(year_of_intro) FROM table_name_87 WHERE country_of_origin = "soviet union" AND type = "reusable" AND primary_cartridge = "40mm" AND name__designation = "rpg-29" </s>
Who was at Home at the Bucharest Venue with a Score of 9-9?
CREATE TABLE table_name_20 (home VARCHAR, venue VARCHAR, score VARCHAR)
SELECT home FROM table_name_20 WHERE venue = "bucharest" AND score = "9-9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (home VARCHAR, venue VARCHAR, score VARCHAR) Question: Who was at Home at the Bucharest Venue with a Score of 9-9? [/INST] SELECT home FROM table_name_20 WHERE venue = "bucharest" AND score = "9-9" </s>
What date were Romania at Home at the Bucharest Venue with a Score of 13-19?
CREATE TABLE table_name_80 (date VARCHAR, score VARCHAR, home VARCHAR, venue VARCHAR)
SELECT date FROM table_name_80 WHERE home = "romania" AND venue = "bucharest" AND score = "13-19"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (date VARCHAR, score VARCHAR, home VARCHAR, venue VARCHAR) Question: What date were Romania at Home at the Bucharest Venue with a Score of 13-19? [/INST] SELECT date FROM table_name_80 WHERE home = "romania" AND venue = "bucharest" AND score = "13-19" </s>
Who was at Home when the Score was 13-19?
CREATE TABLE table_name_83 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_83 WHERE score = "13-19"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (home VARCHAR, score VARCHAR) Question: Who was at Home when the Score was 13-19? [/INST] SELECT home FROM table_name_83 WHERE score = "13-19" </s>
What draw average has a televote less than 633 and Vilma Voroblevaitė as artist and the place is greater than 14?
CREATE TABLE table_name_68 (draw INTEGER, place VARCHAR, televote VARCHAR, artist VARCHAR)
SELECT AVG(draw) FROM table_name_68 WHERE televote < 633 AND artist = "vilma voroblevaitė" AND place > 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (draw INTEGER, place VARCHAR, televote VARCHAR, artist VARCHAR) Question: What draw average has a televote less than 633 and Vilma Voroblevaitė as artist and the place is greater than 14? [/INST] SELECT AVG(draw) FROM table_name_68 WHERE televote < 633 AND artist = "vilma voroblevaitė" AND place > 14 </s>
Artist Justinas Lapatinskas with a draw of greater than 9 got what as the highest televote?
CREATE TABLE table_name_64 (televote INTEGER, artist VARCHAR, draw VARCHAR)
SELECT MAX(televote) FROM table_name_64 WHERE artist = "justinas lapatinskas" AND draw > 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (televote INTEGER, artist VARCHAR, draw VARCHAR) Question: Artist Justinas Lapatinskas with a draw of greater than 9 got what as the highest televote? [/INST] SELECT MAX(televote) FROM table_name_64 WHERE artist = "justinas lapatinskas" AND draw > 9 </s>
What is the total of televote for the artist Pokeris when the place was less than 10?
CREATE TABLE table_name_44 (televote INTEGER, artist VARCHAR, place VARCHAR)
SELECT SUM(televote) FROM table_name_44 WHERE artist = "pokeris" AND place < 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (televote INTEGER, artist VARCHAR, place VARCHAR) Question: What is the total of televote for the artist Pokeris when the place was less than 10? [/INST] SELECT SUM(televote) FROM table_name_44 WHERE artist = "pokeris" AND place < 10 </s>
With a draw greater than 11 and the place smaller than 4 what was the televote?
CREATE TABLE table_name_96 (televote VARCHAR, draw VARCHAR, place VARCHAR)
SELECT televote FROM table_name_96 WHERE draw > 11 AND place < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (televote VARCHAR, draw VARCHAR, place VARCHAR) Question: With a draw greater than 11 and the place smaller than 4 what was the televote? [/INST] SELECT televote FROM table_name_96 WHERE draw > 11 AND place < 4 </s>
What was the aggregate total for the match against Koper?
CREATE TABLE table_name_49 (agg VARCHAR, opponent VARCHAR)
SELECT agg FROM table_name_49 WHERE opponent = "koper"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (agg VARCHAR, opponent VARCHAR) Question: What was the aggregate total for the match against Koper? [/INST] SELECT agg FROM table_name_49 WHERE opponent = "koper" </s>
What Canadian Championship had CONCACAF Champions League of semifinals?
CREATE TABLE table_name_6 (canadian_championship VARCHAR, concacaf_champions_league VARCHAR)
SELECT canadian_championship FROM table_name_6 WHERE concacaf_champions_league = "semifinals"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (canadian_championship VARCHAR, concacaf_champions_league VARCHAR) Question: What Canadian Championship had CONCACAF Champions League of semifinals? [/INST] SELECT canadian_championship FROM table_name_6 WHERE concacaf_champions_league = "semifinals" </s>
Which regular season had the playoffs of 0 mls cups?
CREATE TABLE table_name_87 (regular_season VARCHAR, playoffs VARCHAR)
SELECT regular_season FROM table_name_87 WHERE playoffs = "0 mls cups"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (regular_season VARCHAR, playoffs VARCHAR) Question: Which regular season had the playoffs of 0 mls cups? [/INST] SELECT regular_season FROM table_name_87 WHERE playoffs = "0 mls cups" </s>
What was the score with a goal of 16?
CREATE TABLE table_name_93 (score VARCHAR, goal VARCHAR)
SELECT score FROM table_name_93 WHERE goal = 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (score VARCHAR, goal VARCHAR) Question: What was the score with a goal of 16? [/INST] SELECT score FROM table_name_93 WHERE goal = 16 </s>
What is the highest Super G, when Season is later than 1996?
CREATE TABLE table_name_46 (super_g INTEGER, season INTEGER)
SELECT MAX(super_g) FROM table_name_46 WHERE season > 1996
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (super_g INTEGER, season INTEGER) Question: What is the highest Super G, when Season is later than 1996? [/INST] SELECT MAX(super_g) FROM table_name_46 WHERE season > 1996 </s>
What is Combined, when Super G is less than 10, and when Overall is less than 4?
CREATE TABLE table_name_46 (combined VARCHAR, super_g VARCHAR, overall VARCHAR)
SELECT combined FROM table_name_46 WHERE super_g < 10 AND overall < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (combined VARCHAR, super_g VARCHAR, overall VARCHAR) Question: What is Combined, when Super G is less than 10, and when Overall is less than 4? [/INST] SELECT combined FROM table_name_46 WHERE super_g < 10 AND overall < 4 </s>
What is the highest Season, when Super G is 19?
CREATE TABLE table_name_63 (season INTEGER, super_g VARCHAR)
SELECT MAX(season) FROM table_name_63 WHERE super_g = 19
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (season INTEGER, super_g VARCHAR) Question: What is the highest Season, when Super G is 19? [/INST] SELECT MAX(season) FROM table_name_63 WHERE super_g = 19 </s>
What outlet has and in-state area of 055 1,497km 2 578mi 2?
CREATE TABLE table_name_68 (outlet VARCHAR, in_state_area VARCHAR)
SELECT outlet FROM table_name_68 WHERE in_state_area = "055 1,497km 2 578mi 2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (outlet VARCHAR, in_state_area VARCHAR) Question: What outlet has and in-state area of 055 1,497km 2 578mi 2? [/INST] SELECT outlet FROM table_name_68 WHERE in_state_area = "055 1,497km 2 578mi 2" </s>
What is the total area of the Arkansas River outlet with a % in-state of a021 100%?
CREATE TABLE table_name_61 (total_area VARCHAR, outlet VARCHAR, _percentage_in_state VARCHAR)
SELECT total_area FROM table_name_61 WHERE outlet = "arkansas river" AND _percentage_in_state = "a021 100%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (total_area VARCHAR, outlet VARCHAR, _percentage_in_state VARCHAR) Question: What is the total area of the Arkansas River outlet with a % in-state of a021 100%? [/INST] SELECT total_area FROM table_name_61 WHERE outlet = "arkansas river" AND _percentage_in_state = "a021 100%" </s>
With an outlet of Colorado River and a % instate of a038 84.8% what is in-state area?
CREATE TABLE table_name_30 (in_state_area VARCHAR, outlet VARCHAR, _percentage_in_state VARCHAR)
SELECT in_state_area FROM table_name_30 WHERE outlet = "colorado river" AND _percentage_in_state = "a038 84.8%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (in_state_area VARCHAR, outlet VARCHAR, _percentage_in_state VARCHAR) Question: With an outlet of Colorado River and a % instate of a038 84.8% what is in-state area? [/INST] SELECT in_state_area FROM table_name_30 WHERE outlet = "colorado river" AND _percentage_in_state = "a038 84.8%" </s>
What is the in-state area with an outlet of South Platte River and Big Thompson river as the basin?
CREATE TABLE table_name_81 (in_state_area VARCHAR, outlet VARCHAR, basin VARCHAR)
SELECT in_state_area FROM table_name_81 WHERE outlet = "south platte river" AND basin = "big thompson river"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (in_state_area VARCHAR, outlet VARCHAR, basin VARCHAR) Question: What is the in-state area with an outlet of South Platte River and Big Thompson river as the basin? [/INST] SELECT in_state_area FROM table_name_81 WHERE outlet = "south platte river" AND basin = "big thompson river" </s>
With an in-state area of 053 1,654km 2 639mi 2, what is the total area?
CREATE TABLE table_name_7 (total_area VARCHAR, in_state_area VARCHAR)
SELECT total_area FROM table_name_7 WHERE in_state_area = "053 1,654km 2 639mi 2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (total_area VARCHAR, in_state_area VARCHAR) Question: With an in-state area of 053 1,654km 2 639mi 2, what is the total area? [/INST] SELECT total_area FROM table_name_7 WHERE in_state_area = "053 1,654km 2 639mi 2" </s>
What is the name of the basin with an in-state area of 071 238km 2 92mi 2?
CREATE TABLE table_name_66 (basin VARCHAR, in_state_area VARCHAR)
SELECT basin FROM table_name_66 WHERE in_state_area = "071 238km 2 92mi 2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (basin VARCHAR, in_state_area VARCHAR) Question: What is the name of the basin with an in-state area of 071 238km 2 92mi 2? [/INST] SELECT basin FROM table_name_66 WHERE in_state_area = "071 238km 2 92mi 2" </s>
What was the transfer fee for the player ending in 2011 and moving from Thrasyvoulos?
CREATE TABLE table_name_97 (transfer_fee VARCHAR, ends VARCHAR, moving_from VARCHAR)
SELECT transfer_fee FROM table_name_97 WHERE ends = 2011 AND moving_from = "thrasyvoulos"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (transfer_fee VARCHAR, ends VARCHAR, moving_from VARCHAR) Question: What was the transfer fee for the player ending in 2011 and moving from Thrasyvoulos? [/INST] SELECT transfer_fee FROM table_name_97 WHERE ends = 2011 AND moving_from = "thrasyvoulos" </s>
What was the transfer fee for the player moving in the winter window and ending in a year after 2010?
CREATE TABLE table_name_33 (transfer_fee VARCHAR, ends VARCHAR, transfer_window VARCHAR)
SELECT transfer_fee FROM table_name_33 WHERE ends > 2010 AND transfer_window = "winter"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (transfer_fee VARCHAR, ends VARCHAR, transfer_window VARCHAR) Question: What was the transfer fee for the player moving in the winter window and ending in a year after 2010? [/INST] SELECT transfer_fee FROM table_name_33 WHERE ends > 2010 AND transfer_window = "winter" </s>
Can you tell me the lowest Week that has the Attendance smaller than 34,336?
CREATE TABLE table_name_60 (week INTEGER, attendance INTEGER)
SELECT MIN(week) FROM table_name_60 WHERE attendance < 34 OFFSET 336 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (week INTEGER, attendance INTEGER) Question: Can you tell me the lowest Week that has the Attendance smaller than 34,336? [/INST] SELECT MIN(week) FROM table_name_60 WHERE attendance < 34 OFFSET 336 ROWS </s>
Who was the opponents in the final that was played on April 16, 2006 and the outcome was runner-up?
CREATE TABLE table_name_9 (opponents_in_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT opponents_in_final FROM table_name_9 WHERE outcome = "runner-up" AND date = "april 16, 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (opponents_in_final VARCHAR, outcome VARCHAR, date VARCHAR) Question: Who was the opponents in the final that was played on April 16, 2006 and the outcome was runner-up? [/INST] SELECT opponents_in_final FROM table_name_9 WHERE outcome = "runner-up" AND date = "april 16, 2006" </s>
Who were the opponents in the final when the game was played on hard surface and the score of the final was 6–1, 1–6, 7–6(4)?
CREATE TABLE table_name_22 (opponents_in_final VARCHAR, surface VARCHAR, score_in_final VARCHAR)
SELECT opponents_in_final FROM table_name_22 WHERE surface = "hard" AND score_in_final = "6–1, 1–6, 7–6(4)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (opponents_in_final VARCHAR, surface VARCHAR, score_in_final VARCHAR) Question: Who were the opponents in the final when the game was played on hard surface and the score of the final was 6–1, 1–6, 7–6(4)? [/INST] SELECT opponents_in_final FROM table_name_22 WHERE surface = "hard" AND score_in_final = "6–1, 1–6, 7–6(4)" </s>
Which date's margin of victory was 3 and 2?
CREATE TABLE table_name_45 (date VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_45 WHERE margin_of_victory = "3 and 2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (date VARCHAR, margin_of_victory VARCHAR) Question: Which date's margin of victory was 3 and 2? [/INST] SELECT date FROM table_name_45 WHERE margin_of_victory = "3 and 2" </s>
What is the to par when the winning score was 67-68-70-66=271?
CREATE TABLE table_name_76 (to_par VARCHAR, winning_score VARCHAR)
SELECT to_par FROM table_name_76 WHERE winning_score = 67 - 68 - 70 - 66 = 271
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (to_par VARCHAR, winning_score VARCHAR) Question: What is the to par when the winning score was 67-68-70-66=271? [/INST] SELECT to_par FROM table_name_76 WHERE winning_score = 67 - 68 - 70 - 66 = 271 </s>
What is the to par when the tournament involved was the Transitions Championship?
CREATE TABLE table_name_45 (to_par VARCHAR, tournament VARCHAR)
SELECT to_par FROM table_name_45 WHERE tournament = "transitions championship"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (to_par VARCHAR, tournament VARCHAR) Question: What is the to par when the tournament involved was the Transitions Championship? [/INST] SELECT to_par FROM table_name_45 WHERE tournament = "transitions championship" </s>
On what date was the Transitions Championship?
CREATE TABLE table_name_46 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_46 WHERE tournament = "transitions championship"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (date VARCHAR, tournament VARCHAR) Question: On what date was the Transitions Championship? [/INST] SELECT date FROM table_name_46 WHERE tournament = "transitions championship" </s>
Who was the runner-up on Jul 14, 1968?
CREATE TABLE table_name_64 (runner_s__up VARCHAR, date VARCHAR)
SELECT runner_s__up FROM table_name_64 WHERE date = "jul 14, 1968"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (runner_s__up VARCHAR, date VARCHAR) Question: Who was the runner-up on Jul 14, 1968? [/INST] SELECT runner_s__up FROM table_name_64 WHERE date = "jul 14, 1968" </s>
What is the winning score of the tournament with Charles Coody as the runner-up?
CREATE TABLE table_name_91 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_91 WHERE runner_s__up = "charles coody"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (winning_score VARCHAR, runner_s__up VARCHAR) Question: What is the winning score of the tournament with Charles Coody as the runner-up? [/INST] SELECT winning_score FROM table_name_91 WHERE runner_s__up = "charles coody" </s>
What is the 2011 value of the French Open, which has a 2006 value of A?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT 2011 FROM table_name_2 WHERE 2006 = "a" AND tournament = "french open"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (tournament VARCHAR) Question: What is the 2011 value of the French Open, which has a 2006 value of A? [/INST] SELECT 2011 FROM table_name_2 WHERE 2006 = "a" AND tournament = "french open" </s>
What is the tournament with a 2006 value of A and a 2011 value of 1r?
CREATE TABLE table_name_13 (tournament VARCHAR)
SELECT tournament FROM table_name_13 WHERE 2006 = "a" AND 2011 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (tournament VARCHAR) Question: What is the tournament with a 2006 value of A and a 2011 value of 1r? [/INST] SELECT tournament FROM table_name_13 WHERE 2006 = "a" AND 2011 = "1r" </s>
What is the 2007 value of the US Open?
CREATE TABLE table_name_16 (tournament VARCHAR)
SELECT 2007 FROM table_name_16 WHERE tournament = "us open"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (tournament VARCHAR) Question: What is the 2007 value of the US Open? [/INST] SELECT 2007 FROM table_name_16 WHERE tournament = "us open" </s>
What is the tournament with a 2006 value of A and a 2011 value of 3r?
CREATE TABLE table_name_59 (tournament VARCHAR)
SELECT tournament FROM table_name_59 WHERE 2006 = "a" AND 2011 = "3r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (tournament VARCHAR) Question: What is the tournament with a 2006 value of A and a 2011 value of 3r? [/INST] SELECT tournament FROM table_name_59 WHERE 2006 = "a" AND 2011 = "3r" </s>
What Catalog was released in Germany?
CREATE TABLE table_name_47 (catalog VARCHAR, region VARCHAR)
SELECT catalog FROM table_name_47 WHERE region = "germany"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (catalog VARCHAR, region VARCHAR) Question: What Catalog was released in Germany? [/INST] SELECT catalog FROM table_name_47 WHERE region = "germany" </s>
What Region was the Catalog magik muzik 805-5 released in?
CREATE TABLE table_name_5 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_5 WHERE catalog = "magik muzik 805-5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (region VARCHAR, catalog VARCHAR) Question: What Region was the Catalog magik muzik 805-5 released in? [/INST] SELECT region FROM table_name_5 WHERE catalog = "magik muzik 805-5" </s>
What is the total number of Dates during which the Catalog nebbc003 was given?
CREATE TABLE table_name_71 (date INTEGER, catalog VARCHAR)
SELECT SUM(date) FROM table_name_71 WHERE catalog = "nebbc003"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (date INTEGER, catalog VARCHAR) Question: What is the total number of Dates during which the Catalog nebbc003 was given? [/INST] SELECT SUM(date) FROM table_name_71 WHERE catalog = "nebbc003" </s>
What is the highest Population per km² (2009) that is in western province, with an Area (km²) larger than 5,475?
CREATE TABLE table_name_33 (population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR)
SELECT MAX(population_per_km²__2009_) FROM table_name_33 WHERE province = "western province" AND area__km²_ > 5 OFFSET 475 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR) Question: What is the highest Population per km² (2009) that is in western province, with an Area (km²) larger than 5,475? [/INST] SELECT MAX(population_per_km²__2009_) FROM table_name_33 WHERE province = "western province" AND area__km²_ > 5 OFFSET 475 ROWS </s>
What is the lowest Population per km² (2009) that has a Solomon Islands province, with an Area (km²) smaller than 28,400?
CREATE TABLE table_name_21 (population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR)
SELECT MIN(population_per_km²__2009_) FROM table_name_21 WHERE province = "solomon islands" AND area__km²_ < 28 OFFSET 400 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR) Question: What is the lowest Population per km² (2009) that has a Solomon Islands province, with an Area (km²) smaller than 28,400? [/INST] SELECT MIN(population_per_km²__2009_) FROM table_name_21 WHERE province = "solomon islands" AND area__km²_ < 28 OFFSET 400 ROWS </s>
What Team was in 2005?
CREATE TABLE table_name_92 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_92 WHERE year = 2005
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (team VARCHAR, year VARCHAR) Question: What Team was in 2005? [/INST] SELECT team FROM table_name_92 WHERE year = 2005 </s>
Before 2008, if the Manufacturer is dodge and the start is under 9, what's the highest finish time?
CREATE TABLE table_name_17 (finish INTEGER, year VARCHAR, manufacturer VARCHAR, start VARCHAR)
SELECT MAX(finish) FROM table_name_17 WHERE manufacturer = "dodge" AND start < 9 AND year < 2008
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (finish INTEGER, year VARCHAR, manufacturer VARCHAR, start VARCHAR) Question: Before 2008, if the Manufacturer is dodge and the start is under 9, what's the highest finish time? [/INST] SELECT MAX(finish) FROM table_name_17 WHERE manufacturer = "dodge" AND start < 9 AND year < 2008 </s>
When the team is penske and they start under 9, what's the average finish time?
CREATE TABLE table_name_80 (finish INTEGER, team VARCHAR, start VARCHAR)
SELECT AVG(finish) FROM table_name_80 WHERE team = "penske" AND start < 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (finish INTEGER, team VARCHAR, start VARCHAR) Question: When the team is penske and they start under 9, what's the average finish time? [/INST] SELECT AVG(finish) FROM table_name_80 WHERE team = "penske" AND start < 9 </s>
What is the sum of Gold, when Total is greater than 2, when Bronze is greater than 1, and when Silver is less than 1?
CREATE TABLE table_name_70 (gold INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_70 WHERE total > 2 AND bronze > 1 AND silver < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (gold INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR) Question: What is the sum of Gold, when Total is greater than 2, when Bronze is greater than 1, and when Silver is less than 1? [/INST] SELECT SUM(gold) FROM table_name_70 WHERE total > 2 AND bronze > 1 AND silver < 1 </s>
What is the sum of Gold, when Total is less than 1?
CREATE TABLE table_name_14 (gold INTEGER, total INTEGER)
SELECT SUM(gold) FROM table_name_14 WHERE total < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (gold INTEGER, total INTEGER) Question: What is the sum of Gold, when Total is less than 1? [/INST] SELECT SUM(gold) FROM table_name_14 WHERE total < 1 </s>
What is the average Total, when Gold is 0, and when Nation is Iran?
CREATE TABLE table_name_71 (total INTEGER, gold VARCHAR, nation VARCHAR)
SELECT AVG(total) FROM table_name_71 WHERE gold = 0 AND nation = "iran"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (total INTEGER, gold VARCHAR, nation VARCHAR) Question: What is the average Total, when Gold is 0, and when Nation is Iran? [/INST] SELECT AVG(total) FROM table_name_71 WHERE gold = 0 AND nation = "iran" </s>
What is the sum of Total, when Nation is West Germany, and when Gold is greater than 2?
CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_45 WHERE nation = "west germany" AND gold > 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR) Question: What is the sum of Total, when Nation is West Germany, and when Gold is greater than 2? [/INST] SELECT SUM(total) FROM table_name_45 WHERE nation = "west germany" AND gold > 2 </s>
What is the average Total, when Gold is less than 0?
CREATE TABLE table_name_12 (total INTEGER, gold INTEGER)
SELECT AVG(total) FROM table_name_12 WHERE gold < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (total INTEGER, gold INTEGER) Question: What is the average Total, when Gold is less than 0? [/INST] SELECT AVG(total) FROM table_name_12 WHERE gold < 0 </s>
What is the content of the Television service of Vesti?
CREATE TABLE table_name_58 (content VARCHAR, television_service VARCHAR)
SELECT content FROM table_name_58 WHERE television_service = "vesti"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (content VARCHAR, television_service VARCHAR) Question: What is the content of the Television service of Vesti? [/INST] SELECT content FROM table_name_58 WHERE television_service = "vesti" </s>
Which Television service has a Content of general television?
CREATE TABLE table_name_49 (television_service VARCHAR, content VARCHAR)
SELECT television_service FROM table_name_49 WHERE content = "general television"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (television_service VARCHAR, content VARCHAR) Question: Which Television service has a Content of general television? [/INST] SELECT television_service FROM table_name_49 WHERE content = "general television" </s>
Which Administrative district has a Pre-1009 province of gwannae -do and a Post-1009 province of seohae -do?
CREATE TABLE table_name_76 (administrative_district VARCHAR, pre_1009_province VARCHAR, post_1009_province VARCHAR)
SELECT administrative_district FROM table_name_76 WHERE pre_1009_province = "gwannae -do" AND post_1009_province = "seohae -do"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (administrative_district VARCHAR, pre_1009_province VARCHAR, post_1009_province VARCHAR) Question: Which Administrative district has a Pre-1009 province of gwannae -do and a Post-1009 province of seohae -do? [/INST] SELECT administrative_district FROM table_name_76 WHERE pre_1009_province = "gwannae -do" AND post_1009_province = "seohae -do" </s>