instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Which Video has a Channel smaller than 35.66, and a Programming of nhk world?
CREATE TABLE table_name_1 (video VARCHAR, channel VARCHAR, programming VARCHAR)
SELECT video FROM table_name_1 WHERE channel < 35.66 AND programming = "nhk world"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (video VARCHAR, channel VARCHAR, programming VARCHAR) Question: Which Video has a Channel smaller than 35.66, and a Programming of nhk world? [/INST] SELECT video FROM table_name_1 WHERE channel < 3...
Which Video has a PSIP Short Name of rt?
CREATE TABLE table_name_53 (video VARCHAR, psip_short_name VARCHAR)
SELECT video FROM table_name_53 WHERE psip_short_name = "rt"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (video VARCHAR, psip_short_name VARCHAR) Question: Which Video has a PSIP Short Name of rt? [/INST] SELECT video FROM table_name_53 WHERE psip_short_name = "rt" </s>
Which Programming has a Channel of 35.4?
CREATE TABLE table_name_14 (programming VARCHAR, channel VARCHAR)
SELECT programming FROM table_name_14 WHERE channel = 35.4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (programming VARCHAR, channel VARCHAR) Question: Which Programming has a Channel of 35.4? [/INST] SELECT programming FROM table_name_14 WHERE channel = 35.4 </s>
How many times is the country ireland and points more than 4?
CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)
SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR) Question: How many times is the country ireland and points more than 4? [/INST] SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "...
What is the format for the MHCP-66 Catalog?
CREATE TABLE table_name_24 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_24 WHERE catalog = "mhcp-66"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (format VARCHAR, catalog VARCHAR) Question: What is the format for the MHCP-66 Catalog? [/INST] SELECT format FROM table_name_24 WHERE catalog = "mhcp-66" </s>
What Catalog came out on August 20, 1965?
CREATE TABLE table_name_21 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_21 WHERE date = "august 20, 1965"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (catalog VARCHAR, date VARCHAR) Question: What Catalog came out on August 20, 1965? [/INST] SELECT catalog FROM table_name_21 WHERE date = "august 20, 1965" </s>
What is the catalog with an LP Format and under the Simply Vinyl label?
CREATE TABLE table_name_62 (catalog VARCHAR, format VARCHAR, label VARCHAR)
SELECT catalog FROM table_name_62 WHERE format = "lp" AND label = "simply vinyl"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (catalog VARCHAR, format VARCHAR, label VARCHAR) Question: What is the catalog with an LP Format and under the Simply Vinyl label? [/INST] SELECT catalog FROM table_name_62 WHERE format = "lp" AND ...
What date had a CD format, under Columbia/Legacy from the UK?
CREATE TABLE table_name_77 (date VARCHAR, country VARCHAR, format VARCHAR, label VARCHAR)
SELECT date FROM table_name_77 WHERE format = "cd" AND label = "columbia/legacy" AND country = "uk"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (date VARCHAR, country VARCHAR, format VARCHAR, label VARCHAR) Question: What date had a CD format, under Columbia/Legacy from the UK? [/INST] SELECT date FROM table_name_77 WHERE format = "cd" AND...
What country has an LP format, catalog s 31503?
CREATE TABLE table_name_20 (country VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT country FROM table_name_20 WHERE format = "lp" AND catalog = "s 31503"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (country VARCHAR, format VARCHAR, catalog VARCHAR) Question: What country has an LP format, catalog s 31503? [/INST] SELECT country FROM table_name_20 WHERE format = "lp" AND catalog = "s 31503" </...
What is the format for Catalog CL 2372?
CREATE TABLE table_name_96 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_96 WHERE catalog = "cl 2372"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (format VARCHAR, catalog VARCHAR) Question: What is the format for Catalog CL 2372? [/INST] SELECT format FROM table_name_96 WHERE catalog = "cl 2372" </s>
What event has european championships as the tournament, with 2006 as the year?
CREATE TABLE table_name_61 (event VARCHAR, tournament VARCHAR, year VARCHAR)
SELECT event FROM table_name_61 WHERE tournament = "european championships" AND year = 2006
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (event VARCHAR, tournament VARCHAR, year VARCHAR) Question: What event has european championships as the tournament, with 2006 as the year? [/INST] SELECT event FROM table_name_61 WHERE tournament ...
What average year has international meeting & national championships as the tournament?
CREATE TABLE table_name_64 (year INTEGER, tournament VARCHAR)
SELECT AVG(year) FROM table_name_64 WHERE tournament = "international meeting & national championships"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (year INTEGER, tournament VARCHAR) Question: What average year has international meeting & national championships as the tournament? [/INST] SELECT AVG(year) FROM table_name_64 WHERE tournament = "...
What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points?
CREATE TABLE table_name_52 (year INTEGER, tournament VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_52 WHERE tournament = "hypo-meeting" AND points = "8002"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (year INTEGER, tournament VARCHAR, points VARCHAR) Question: What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points? [/INST] SELECT MIN(year) FROM table_name_52 WH...
Who was the opponent in the match that lasted 4:17?
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_58 WHERE time = "4:17"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR) Question: Who was the opponent in the match that lasted 4:17? [/INST] SELECT opponent FROM table_name_58 WHERE time = "4:17" </s>
Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)?
CREATE TABLE table_name_21 (location VARCHAR, round VARCHAR, method VARCHAR)
SELECT location FROM table_name_21 WHERE round < 3 AND method = "submission (triangle choke)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (location VARCHAR, round VARCHAR, method VARCHAR) Question: Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)? [/INST] SELECT location FROM table_name_21...
Which event had Carlos Alexandre Pereira as opponent?
CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_55 WHERE opponent = "carlos alexandre pereira"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR) Question: Which event had Carlos Alexandre Pereira as opponent? [/INST] SELECT event FROM table_name_55 WHERE opponent = "carlos alexandre pereira" </s>
Where was the match that resulted in a win in 4:16 held?
CREATE TABLE table_name_44 (location VARCHAR, res VARCHAR, time VARCHAR)
SELECT location FROM table_name_44 WHERE res = "win" AND time = "4:16"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (location VARCHAR, res VARCHAR, time VARCHAR) Question: Where was the match that resulted in a win in 4:16 held? [/INST] SELECT location FROM table_name_44 WHERE res = "win" AND time = "4:16" </s>
What's the population that has a median family income of $50,553?
CREATE TABLE table_name_1 (population VARCHAR, median_family_income VARCHAR)
SELECT COUNT(population) FROM table_name_1 WHERE median_family_income = "$50,553"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (population VARCHAR, median_family_income VARCHAR) Question: What's the population that has a median family income of $50,553? [/INST] SELECT COUNT(population) FROM table_name_1 WHERE median_family_...
What is the highest rank for the team of egypt?
CREATE TABLE table_name_58 (rank INTEGER, country VARCHAR)
SELECT MAX(rank) FROM table_name_58 WHERE country = "egypt"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (rank INTEGER, country VARCHAR) Question: What is the highest rank for the team of egypt? [/INST] SELECT MAX(rank) FROM table_name_58 WHERE country = "egypt" </s>
Who was the athlete from egypt with q in the notes?
CREATE TABLE table_name_50 (athlete VARCHAR, notes VARCHAR, country VARCHAR)
SELECT athlete FROM table_name_50 WHERE notes = "q" AND country = "egypt"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (athlete VARCHAR, notes VARCHAR, country VARCHAR) Question: Who was the athlete from egypt with q in the notes? [/INST] SELECT athlete FROM table_name_50 WHERE notes = "q" AND country = "egypt" </s...
What is the 2FM for SW Ireland?
CREATE TABLE table_name_91 (service_area VARCHAR)
SELECT 2 AS fm__mhz_ FROM table_name_91 WHERE service_area = "sw ireland"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (service_area VARCHAR) Question: What is the 2FM for SW Ireland? [/INST] SELECT 2 AS fm__mhz_ FROM table_name_91 WHERE service_area = "sw ireland" </s>
Name Event of Medal of gold and a Name of duncan white?
CREATE TABLE table_name_18 (event VARCHAR, medal VARCHAR, name VARCHAR)
SELECT event FROM table_name_18 WHERE medal = "gold" AND name = "duncan white"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (event VARCHAR, medal VARCHAR, name VARCHAR) Question: Name Event of Medal of gold and a Name of duncan white? [/INST] SELECT event FROM table_name_18 WHERE medal = "gold" AND name = "duncan white"...
Name the Event of the Games of 1950 auckland and a Medal of bronze?
CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR, medal VARCHAR)
SELECT event FROM table_name_60 WHERE games = "1950 auckland" AND medal = "bronze"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR, medal VARCHAR) Question: Name the Event of the Games of 1950 auckland and a Medal of bronze? [/INST] SELECT event FROM table_name_60 WHERE games = "1950 auckland" AND...
Which Medal has a Name of alex obeyesekera?
CREATE TABLE table_name_14 (medal VARCHAR, name VARCHAR)
SELECT medal FROM table_name_14 WHERE name = "alex obeyesekera"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (medal VARCHAR, name VARCHAR) Question: Which Medal has a Name of alex obeyesekera? [/INST] SELECT medal FROM table_name_14 WHERE name = "alex obeyesekera" </s>
Which Event has a Medal of gold and a Name of barney henricus?
CREATE TABLE table_name_69 (event VARCHAR, medal VARCHAR, name VARCHAR)
SELECT event FROM table_name_69 WHERE medal = "gold" AND name = "barney henricus"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (event VARCHAR, medal VARCHAR, name VARCHAR) Question: Which Event has a Medal of gold and a Name of barney henricus? [/INST] SELECT event FROM table_name_69 WHERE medal = "gold" AND name = "barney...
Name the Event of sudesh peiris?
CREATE TABLE table_name_93 (event VARCHAR, name VARCHAR)
SELECT event FROM table_name_93 WHERE name = "sudesh peiris"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (event VARCHAR, name VARCHAR) Question: Name the Event of sudesh peiris? [/INST] SELECT event FROM table_name_93 WHERE name = "sudesh peiris" </s>
What year was the developer(s) Bioware?
CREATE TABLE table_name_59 (year INTEGER, developer_s_ VARCHAR)
SELECT AVG(year) FROM table_name_59 WHERE developer_s_ = "bioware"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (year INTEGER, developer_s_ VARCHAR) Question: What year was the developer(s) Bioware? [/INST] SELECT AVG(year) FROM table_name_59 WHERE developer_s_ = "bioware" </s>
What is the genre for 2009 on Playstation 3?
CREATE TABLE table_name_9 (genre VARCHAR, year VARCHAR, platform_s_ VARCHAR)
SELECT genre FROM table_name_9 WHERE year > 2009 AND platform_s_ = "playstation 3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (genre VARCHAR, year VARCHAR, platform_s_ VARCHAR) Question: What is the genre for 2009 on Playstation 3? [/INST] SELECT genre FROM table_name_9 WHERE year > 2009 AND platform_s_ = "playstation 3" <...
Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?
CREATE TABLE table_name_87 (result VARCHAR, recipients_and_nominees VARCHAR, year VARCHAR)
SELECT result FROM table_name_87 WHERE recipients_and_nominees = "outstanding achievement in drama" AND year = 1995
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (result VARCHAR, recipients_and_nominees VARCHAR, year VARCHAR) Question: Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year? [/INST] SELECT result...
What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?
CREATE TABLE table_name_93 (recipients_and_nominees VARCHAR, category VARCHAR, year VARCHAR)
SELECT recipients_and_nominees FROM table_name_93 WHERE category = "outstanding achievement in drama" AND year = 1994
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (recipients_and_nominees VARCHAR, category VARCHAR, year VARCHAR) Question: What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year? [/INST] SELECT ...
What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?
CREATE TABLE table_name_48 (result VARCHAR, role_episode VARCHAR, year VARCHAR)
SELECT result FROM table_name_48 WHERE role_episode = "outstanding achievement in drama" AND year < 1995
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (result VARCHAR, role_episode VARCHAR, year VARCHAR) Question: What result has outstanding achievement in drama, as the role/episode with a year prior to 1995? [/INST] SELECT result FROM table_name...
What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?
CREATE TABLE table_name_37 (total INTEGER, gymnast VARCHAR, position VARCHAR)
SELECT AVG(total) FROM table_name_37 WHERE gymnast = "danny pinheiro rodrigues ( fra )" AND position < 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (total INTEGER, gymnast VARCHAR, position VARCHAR) Question: What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7? [/INST] SELECT AVG(total) FROM table_name_37 WHERE...
What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?
CREATE TABLE table_name_87 (total VARCHAR, gymnast VARCHAR, b_score VARCHAR)
SELECT COUNT(total) FROM table_name_87 WHERE gymnast = "chen yibing ( chn )" AND b_score < 9.225
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (total VARCHAR, gymnast VARCHAR, b_score VARCHAR) Question: What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225? [/INST] SELECT COUNT(total) FROM table_name_87 WHERE ...
What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?
CREATE TABLE table_name_54 (a_score VARCHAR, b_score VARCHAR, total VARCHAR)
SELECT COUNT(a_score) FROM table_name_54 WHERE b_score > 9.05 AND total < 16.525
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (a_score VARCHAR, b_score VARCHAR, total VARCHAR) Question: What is the A Score when the B Score is more than 9.05, and the total is less than 16.525? [/INST] SELECT COUNT(a_score) FROM table_name_...
What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?
CREATE TABLE table_name_58 (position VARCHAR, gymnast VARCHAR, total VARCHAR)
SELECT COUNT(position) FROM table_name_58 WHERE gymnast = "oleksandr vorobiov ( ukr )" AND total > 16.25
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (position VARCHAR, gymnast VARCHAR, total VARCHAR) Question: What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25? [/INST] SELECT COUNT(position) FROM table_nam...
What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?
CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR)
SELECT SUM(total) FROM table_name_40 WHERE gymnast = "robert stanescu ( rou )" AND b_score > 8.75
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (total INTEGER, gymnast VARCHAR, b_score VARCHAR) Question: What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75? [/INST] SELECT SUM(total) FROM table_name_40 WHERE g...
Poland has what notes?
CREATE TABLE table_name_75 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_75 WHERE country = "poland"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (notes VARCHAR, country VARCHAR) Question: Poland has what notes? [/INST] SELECT notes FROM table_name_75 WHERE country = "poland" </s>
What is Croatia's rank?
CREATE TABLE table_name_85 (rank VARCHAR, country VARCHAR)
SELECT rank FROM table_name_85 WHERE country = "croatia"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (rank VARCHAR, country VARCHAR) Question: What is Croatia's rank? [/INST] SELECT rank FROM table_name_85 WHERE country = "croatia" </s>
When rank is 5, what is the rowers?
CREATE TABLE table_name_32 (rowers VARCHAR, rank VARCHAR)
SELECT rowers FROM table_name_32 WHERE rank = 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (rowers VARCHAR, rank VARCHAR) Question: When rank is 5, what is the rowers? [/INST] SELECT rowers FROM table_name_32 WHERE rank = 5 </s>
What is the average rank for Denmark?
CREATE TABLE table_name_33 (rank INTEGER, country VARCHAR)
SELECT AVG(rank) FROM table_name_33 WHERE country = "denmark"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (rank INTEGER, country VARCHAR) Question: What is the average rank for Denmark? [/INST] SELECT AVG(rank) FROM table_name_33 WHERE country = "denmark" </s>
What is the end of the term for Kadima that started on 18 January 2006?
CREATE TABLE table_name_6 (term_end VARCHAR, party VARCHAR, term_start VARCHAR)
SELECT term_end FROM table_name_6 WHERE party = "kadima" AND term_start = "18 january 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (term_end VARCHAR, party VARCHAR, term_start VARCHAR) Question: What is the end of the term for Kadima that started on 18 January 2006? [/INST] SELECT term_end FROM table_name_6 WHERE party = "kadim...
Whose term started on 4 May 2006?
CREATE TABLE table_name_35 (minister VARCHAR, term_start VARCHAR)
SELECT minister FROM table_name_35 WHERE term_start = "4 may 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (minister VARCHAR, term_start VARCHAR) Question: Whose term started on 4 May 2006? [/INST] SELECT minister FROM table_name_35 WHERE term_start = "4 may 2006" </s>
What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?
CREATE TABLE table_name_71 (bronze INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MIN(bronze) FROM table_name_71 WHERE gold < 2 AND rank = "29" AND total > 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (bronze INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR) Question: What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds? [/INST] SELECT MIN(bronze) ...
What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?
CREATE TABLE table_name_51 (bronze INTEGER, rank VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_51 WHERE silver < 2 AND total > 4 AND rank = "33"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (bronze INTEGER, rank VARCHAR, silver VARCHAR, total VARCHAR) Question: What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4? [/INST] SELECT...
How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?
CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_45 WHERE bronze < 5 AND gold > 0 AND rank = "22"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, bronze VARCHAR, gold VARCHAR) Question: How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5? [/INST] SELECT SUM(silver) FROM ...
What's the bronze count for South Africa (RSA) with a total more than 16?
CREATE TABLE table_name_64 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_64 WHERE nation = "south africa (rsa)" AND total > 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (bronze INTEGER, nation VARCHAR, total VARCHAR) Question: What's the bronze count for South Africa (RSA) with a total more than 16? [/INST] SELECT MAX(bronze) FROM table_name_64 WHERE nation = "sou...
What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?
CREATE TABLE table_name_29 (election INTEGER, president VARCHAR, inhabitants VARCHAR)
SELECT MIN(election) FROM table_name_29 WHERE president = "leonardo marras" AND inhabitants < 227 OFFSET 063 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (election INTEGER, president VARCHAR, inhabitants VARCHAR) Question: What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people? [/INST] SELECT MIN(e...
What is the party affiliation for President Stefano Baccelli?
CREATE TABLE table_name_33 (party VARCHAR, president VARCHAR)
SELECT party FROM table_name_33 WHERE president = "stefano baccelli"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (party VARCHAR, president VARCHAR) Question: What is the party affiliation for President Stefano Baccelli? [/INST] SELECT party FROM table_name_33 WHERE president = "stefano baccelli" </s>
What is the average election result for the province of Grosseto from 1766 and prior?
CREATE TABLE table_name_50 (election INTEGER, province VARCHAR, established VARCHAR)
SELECT AVG(election) FROM table_name_50 WHERE province = "grosseto" AND established < 1766
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (election INTEGER, province VARCHAR, established VARCHAR) Question: What is the average election result for the province of Grosseto from 1766 and prior? [/INST] SELECT AVG(election) FROM table_nam...
What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?
CREATE TABLE table_name_80 (all_bills_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR, all_amendments_sponsored VARCHAR, all_bills_sponsored VARCHAR)
SELECT COUNT(all_bills_cosponsored) FROM table_name_80 WHERE all_amendments_sponsored < 15 AND all_bills_sponsored = 6 AND all_amendments_cosponsored < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (all_bills_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR, all_amendments_sponsored VARCHAR, all_bills_sponsored VARCHAR) Question: What is the total number of all bills co-sponsored assoc...
What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?
CREATE TABLE table_name_52 (all_amendments_sponsored INTEGER, bills_originally_cosponsored VARCHAR, all_bills_cosponsored VARCHAR)
SELECT MIN(all_amendments_sponsored) FROM table_name_52 WHERE bills_originally_cosponsored = 150 AND all_bills_cosponsored > 247
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (all_amendments_sponsored INTEGER, bills_originally_cosponsored VARCHAR, all_bills_cosponsored VARCHAR) Question: What is the fewest amendments sponsored associated with 150 bills originally cospon...
What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?
CREATE TABLE table_name_22 (all_bills_cosponsored INTEGER, all_bills_sponsored VARCHAR, all_amendments_sponsored VARCHAR)
SELECT MAX(all_bills_cosponsored) FROM table_name_22 WHERE all_bills_sponsored < 24 AND all_amendments_sponsored < 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (all_bills_cosponsored INTEGER, all_bills_sponsored VARCHAR, all_amendments_sponsored VARCHAR) Question: What is the highest number of bills cosponsored associated with under 24 bills sponsored and...
What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?
CREATE TABLE table_name_25 (all_amendments_cosponsored INTEGER, amendments_originally_cosponsored VARCHAR, all_bills_sponsored VARCHAR)
SELECT MAX(all_amendments_cosponsored) FROM table_name_25 WHERE amendments_originally_cosponsored = 53 AND all_bills_sponsored > 54
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (all_amendments_cosponsored INTEGER, amendments_originally_cosponsored VARCHAR, all_bills_sponsored VARCHAR) Question: What is the highest number of amendments cosponsored associated with 53 amendm...
What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?
CREATE TABLE table_name_57 (all_bills_sponsored VARCHAR, bills_originally_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR)
SELECT all_bills_sponsored FROM table_name_57 WHERE bills_originally_cosponsored > 113 AND all_amendments_cosponsored < 47
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (all_bills_sponsored VARCHAR, bills_originally_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR) Question: What is the number of bills sponsored associated with over 113 bills originally cos...
What is the Lane of the swimmer from Uzbekistan in Heat 1?
CREATE TABLE table_name_88 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT COUNT(lane) FROM table_name_88 WHERE heat = 1 AND nationality = "uzbekistan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (lane VARCHAR, heat VARCHAR, nationality VARCHAR) Question: What is the Lane of the swimmer from Uzbekistan in Heat 1? [/INST] SELECT COUNT(lane) FROM table_name_88 WHERE heat = 1 AND nationality =...
Which station has a frequency of 873khz?
CREATE TABLE table_name_18 (station VARCHAR, frequency VARCHAR)
SELECT station FROM table_name_18 WHERE frequency = "873khz"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (station VARCHAR, frequency VARCHAR) Question: Which station has a frequency of 873khz? [/INST] SELECT station FROM table_name_18 WHERE frequency = "873khz" </s>
Where is the transmitter located for the station voice of vietnam
CREATE TABLE table_name_87 (transmitter_location VARCHAR, station VARCHAR)
SELECT transmitter_location FROM table_name_87 WHERE station = "voice of vietnam"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (transmitter_location VARCHAR, station VARCHAR) Question: Where is the transmitter located for the station voice of vietnam [/INST] SELECT transmitter_location FROM table_name_87 WHERE station = "v...
Which station is from China and has a frequency of 684khz?
CREATE TABLE table_name_79 (station VARCHAR, country_of_origin VARCHAR, frequency VARCHAR)
SELECT station FROM table_name_79 WHERE country_of_origin = "china" AND frequency = "684khz"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (station VARCHAR, country_of_origin VARCHAR, frequency VARCHAR) Question: Which station is from China and has a frequency of 684khz? [/INST] SELECT station FROM table_name_79 WHERE country_of_origi...
Name the Tally of an Opposition of westmeath?
CREATE TABLE table_name_76 (tally VARCHAR, opposition VARCHAR)
SELECT tally FROM table_name_76 WHERE opposition = "westmeath"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (tally VARCHAR, opposition VARCHAR) Question: Name the Tally of an Opposition of westmeath? [/INST] SELECT tally FROM table_name_76 WHERE opposition = "westmeath" </s>
What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and the parallel bars score is 15.800?
CREATE TABLE table_name_18 (horizontal_bar VARCHAR, parallel_bars VARCHAR, pommel_horse VARCHAR, position VARCHAR)
SELECT horizontal_bar FROM table_name_18 WHERE pommel_horse = "n/a" AND position < 27 AND parallel_bars = "15.800"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (horizontal_bar VARCHAR, parallel_bars VARCHAR, pommel_horse VARCHAR, position VARCHAR) Question: What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and ...
What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?
CREATE TABLE table_name_1 (floor VARCHAR, pommel_horse VARCHAR, position VARCHAR, total VARCHAR)
SELECT floor FROM table_name_1 WHERE position < 21 AND total < 81.2 AND pommel_horse = "13.925"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (floor VARCHAR, pommel_horse VARCHAR, position VARCHAR, total VARCHAR) Question: What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse scor...
Who is the gymnast with a floor score of 14.800?
CREATE TABLE table_name_83 (gymnast VARCHAR, floor VARCHAR)
SELECT gymnast FROM table_name_83 WHERE floor = "14.800"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (gymnast VARCHAR, floor VARCHAR) Question: Who is the gymnast with a floor score of 14.800? [/INST] SELECT gymnast FROM table_name_83 WHERE floor = "14.800" </s>
What horizontal bar score also has a pommel horse score of 15.250?
CREATE TABLE table_name_60 (horizontal_bar VARCHAR, pommel_horse VARCHAR)
SELECT horizontal_bar FROM table_name_60 WHERE pommel_horse = "15.250"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (horizontal_bar VARCHAR, pommel_horse VARCHAR) Question: What horizontal bar score also has a pommel horse score of 15.250? [/INST] SELECT horizontal_bar FROM table_name_60 WHERE pommel_horse = "15...
With a parallel bars score of 14.625 what is the average total?
CREATE TABLE table_name_8 (total INTEGER, parallel_bars VARCHAR)
SELECT AVG(total) FROM table_name_8 WHERE parallel_bars = "14.625"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (total INTEGER, parallel_bars VARCHAR) Question: With a parallel bars score of 14.625 what is the average total? [/INST] SELECT AVG(total) FROM table_name_8 WHERE parallel_bars = "14.625" </s>
What is the Rank of the Athletes with a Time of 3:43.491?
CREATE TABLE table_name_21 (rank VARCHAR, time VARCHAR)
SELECT COUNT(rank) FROM table_name_21 WHERE time = "3:43.491"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (rank VARCHAR, time VARCHAR) Question: What is the Rank of the Athletes with a Time of 3:43.491? [/INST] SELECT COUNT(rank) FROM table_name_21 WHERE time = "3:43.491" </s>
What are the Notes of the Athletes from Germany?
CREATE TABLE table_name_41 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_41 WHERE country = "germany"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (notes VARCHAR, country VARCHAR) Question: What are the Notes of the Athletes from Germany? [/INST] SELECT notes FROM table_name_41 WHERE country = "germany" </s>
What is the Rank of the Athletes from Ukraine?
CREATE TABLE table_name_65 (rank VARCHAR, country VARCHAR)
SELECT COUNT(rank) FROM table_name_65 WHERE country = "ukraine"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (rank VARCHAR, country VARCHAR) Question: What is the Rank of the Athletes from Ukraine? [/INST] SELECT COUNT(rank) FROM table_name_65 WHERE country = "ukraine" </s>
What location did Sherry Middaugh win in?
CREATE TABLE table_name_13 (location VARCHAR, winning_skip VARCHAR)
SELECT location FROM table_name_13 WHERE winning_skip = "sherry middaugh"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (location VARCHAR, winning_skip VARCHAR) Question: What location did Sherry Middaugh win in? [/INST] SELECT location FROM table_name_13 WHERE winning_skip = "sherry middaugh" </s>
What event did Patti Lank have the winning skip?
CREATE TABLE table_name_11 (event VARCHAR, winning_skip VARCHAR)
SELECT event FROM table_name_11 WHERE winning_skip = "patti lank"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (event VARCHAR, winning_skip VARCHAR) Question: What event did Patti Lank have the winning skip? [/INST] SELECT event FROM table_name_11 WHERE winning_skip = "patti lank" </s>
What date shows Binia Feltscher-Beeli as the runner-up skip?
CREATE TABLE table_name_68 (date VARCHAR, runner_up_skip VARCHAR)
SELECT date FROM table_name_68 WHERE runner_up_skip = "binia feltscher-beeli"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (date VARCHAR, runner_up_skip VARCHAR) Question: What date shows Binia Feltscher-Beeli as the runner-up skip? [/INST] SELECT date FROM table_name_68 WHERE runner_up_skip = "binia feltscher-beeli" <...
What person was the runner-up skip when Julie Reddick was the winning skip?
CREATE TABLE table_name_61 (runner_up_skip VARCHAR, winning_skip VARCHAR)
SELECT runner_up_skip FROM table_name_61 WHERE winning_skip = "julie reddick"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (runner_up_skip VARCHAR, winning_skip VARCHAR) Question: What person was the runner-up skip when Julie Reddick was the winning skip? [/INST] SELECT runner_up_skip FROM table_name_61 WHERE winning_s...
What's the Yellow fertility rate when Brazil is 0,43407?
CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR)
SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = "0,43407"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR) Question: What's the Yellow fertility rate when Brazil is 0,43407? [/INST] SELECT yellow_109_percentage FROM table_name_94 WHERE brazi...
What is the sum of the area in km with a population of 110 in 2011?
CREATE TABLE table_name_59 (area__km_2__ INTEGER, population__2011_ VARCHAR)
SELECT SUM(area__km_2__) FROM table_name_59 WHERE population__2011_ = 110
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (area__km_2__ INTEGER, population__2011_ VARCHAR) Question: What is the sum of the area in km with a population of 110 in 2011? [/INST] SELECT SUM(area__km_2__) FROM table_name_59 WHERE population_...
What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?
CREATE TABLE table_name_14 (population__2006_ INTEGER, population__2011_ VARCHAR, area__km_2__ VARCHAR)
SELECT AVG(population__2006_) FROM table_name_14 WHERE population__2011_ > 5 AND area__km_2__ = 5.84
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (population__2006_ INTEGER, population__2011_ VARCHAR, area__km_2__ VARCHAR) Question: What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km? [/INST] SELECT ...
What is the lowest lane with a 0.216 react?
CREATE TABLE table_name_67 (lane INTEGER, react VARCHAR)
SELECT MIN(lane) FROM table_name_67 WHERE react = 0.216
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (lane INTEGER, react VARCHAR) Question: What is the lowest lane with a 0.216 react? [/INST] SELECT MIN(lane) FROM table_name_67 WHERE react = 0.216 </s>
What is the total rank for the lane before 2?
CREATE TABLE table_name_87 (rank INTEGER, lane INTEGER)
SELECT SUM(rank) FROM table_name_87 WHERE lane < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (rank INTEGER, lane INTEGER) Question: What is the total rank for the lane before 2? [/INST] SELECT SUM(rank) FROM table_name_87 WHERE lane < 2 </s>
What genre is the game from the year 2007?
CREATE TABLE table_name_29 (genre VARCHAR, year VARCHAR)
SELECT genre FROM table_name_29 WHERE year = 2007
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (genre VARCHAR, year VARCHAR) Question: What genre is the game from the year 2007? [/INST] SELECT genre FROM table_name_29 WHERE year = 2007 </s>
What is the Game that came out before the year 2009 for the Playstation 3?
CREATE TABLE table_name_39 (game VARCHAR, platform_s_ VARCHAR, year VARCHAR)
SELECT game FROM table_name_39 WHERE platform_s_ = "playstation 3" AND year < 2009
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (game VARCHAR, platform_s_ VARCHAR, year VARCHAR) Question: What is the Game that came out before the year 2009 for the Playstation 3? [/INST] SELECT game FROM table_name_39 WHERE platform_s_ = "pl...
What is the earliest year that had the Legend of Zelda: Twilight Princess game?
CREATE TABLE table_name_90 (year INTEGER, game VARCHAR)
SELECT MIN(year) FROM table_name_90 WHERE game = "the legend of zelda: twilight princess"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (year INTEGER, game VARCHAR) Question: What is the earliest year that had the Legend of Zelda: Twilight Princess game? [/INST] SELECT MIN(year) FROM table_name_90 WHERE game = "the legend of zelda:...
Who was the opponent on November 15, 1981?
CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_70 WHERE date = "november 15, 1981"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR) Question: Who was the opponent on November 15, 1981? [/INST] SELECT opponent FROM table_name_70 WHERE date = "november 15, 1981" </s>
Which Debut year has a Player of noel carroll, and Games smaller than 12?
CREATE TABLE table_name_95 (debut_year INTEGER, player VARCHAR, games VARCHAR)
SELECT MAX(debut_year) FROM table_name_95 WHERE player = "noel carroll" AND games < 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (debut_year INTEGER, player VARCHAR, games VARCHAR) Question: Which Debut year has a Player of noel carroll, and Games smaller than 12? [/INST] SELECT MAX(debut_year) FROM table_name_95 WHERE playe...
Which Goals have a Player of noel carroll?
CREATE TABLE table_name_4 (goals INTEGER, player VARCHAR)
SELECT MIN(goals) FROM table_name_4 WHERE player = "noel carroll"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (goals INTEGER, player VARCHAR) Question: Which Goals have a Player of noel carroll? [/INST] SELECT MIN(goals) FROM table_name_4 WHERE player = "noel carroll" </s>
How many debut years have Years at club of 1950–1951, and Games larger than 14?
CREATE TABLE table_name_39 (debut_year INTEGER, years_at_club VARCHAR, games VARCHAR)
SELECT SUM(debut_year) FROM table_name_39 WHERE years_at_club = "1950–1951" AND games > 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (debut_year INTEGER, years_at_club VARCHAR, games VARCHAR) Question: How many debut years have Years at club of 1950–1951, and Games larger than 14? [/INST] SELECT SUM(debut_year) FROM table_name_3...
Which title has origianal sound entertainment as its label?
CREATE TABLE table_name_85 (title VARCHAR, label VARCHAR)
SELECT title FROM table_name_85 WHERE label = "origianal sound entertainment"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (title VARCHAR, label VARCHAR) Question: Which title has origianal sound entertainment as its label? [/INST] SELECT title FROM table_name_85 WHERE label = "origianal sound entertainment" </s>
What was the latest year of release for the greatest hits title?
CREATE TABLE table_name_71 (year_of_release INTEGER, title VARCHAR)
SELECT MAX(year_of_release) FROM table_name_71 WHERE title = "greatest hits"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (year_of_release INTEGER, title VARCHAR) Question: What was the latest year of release for the greatest hits title? [/INST] SELECT MAX(year_of_release) FROM table_name_71 WHERE title = "greatest hi...
When the country of release is EU, what is the label name?
CREATE TABLE table_name_39 (label VARCHAR, country_of_release VARCHAR)
SELECT label FROM table_name_39 WHERE country_of_release = "eu"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (label VARCHAR, country_of_release VARCHAR) Question: When the country of release is EU, what is the label name? [/INST] SELECT label FROM table_name_39 WHERE country_of_release = "eu" </s>
what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?
CREATE TABLE table_name_24 (latitude INTEGER, township VARCHAR, geo_id VARCHAR)
SELECT MAX(latitude) FROM table_name_24 WHERE township = "kingsley" AND geo_id > 3803942820
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (latitude INTEGER, township VARCHAR, geo_id VARCHAR) Question: what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820? [/INST] SELECT MAX(latitude) FROM...
what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?
CREATE TABLE table_name_57 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)
SELECT AVG(latitude) FROM table_name_57 WHERE water__sqmi_ = 0.058 AND ansi_code < 1759683
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR) Question: what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683? [/INST] SELECT AVG(latitude) FROM table...
what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?
CREATE TABLE table_name_1 (geo_id INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR)
SELECT MAX(geo_id) FROM table_name_1 WHERE longitude = -98.435797 AND land___sqmi__ < 36.039
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (geo_id INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR) Question: what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039? [/INST] SELECT MAX(geo_id) FROM tabl...
Name the lowest Year Joined which has a Mascot of pioneers?
CREATE TABLE table_name_93 (year_joined INTEGER, mascot VARCHAR)
SELECT MIN(year_joined) FROM table_name_93 WHERE mascot = "pioneers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (year_joined INTEGER, mascot VARCHAR) Question: Name the lowest Year Joined which has a Mascot of pioneers? [/INST] SELECT MIN(year_joined) FROM table_name_93 WHERE mascot = "pioneers" </s>
Name the IHSAA Class of Mascot of pioneers?
CREATE TABLE table_name_32 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT ihsaa_class FROM table_name_32 WHERE mascot = "pioneers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (ihsaa_class VARCHAR, mascot VARCHAR) Question: Name the IHSAA Class of Mascot of pioneers? [/INST] SELECT ihsaa_class FROM table_name_32 WHERE mascot = "pioneers" </s>
Name the IHSAA Class of 55 morgan and a School of mooresville?
CREATE TABLE table_name_8 (ihsaa_class VARCHAR, county VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_8 WHERE county = "55 morgan" AND school = "mooresville"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (ihsaa_class VARCHAR, county VARCHAR, school VARCHAR) Question: Name the IHSAA Class of 55 morgan and a School of mooresville? [/INST] SELECT ihsaa_class FROM table_name_8 WHERE county = "55 morgan"...
where is Mascot of quakers?
CREATE TABLE table_name_35 (location VARCHAR, mascot VARCHAR)
SELECT location FROM table_name_35 WHERE mascot = "quakers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (location VARCHAR, mascot VARCHAR) Question: where is Mascot of quakers? [/INST] SELECT location FROM table_name_35 WHERE mascot = "quakers" </s>
What kind of IHSAA Class has a School of decatur central?
CREATE TABLE table_name_2 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_2 WHERE school = "decatur central"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (ihsaa_class VARCHAR, school VARCHAR) Question: What kind of IHSAA Class has a School of decatur central? [/INST] SELECT ihsaa_class FROM table_name_2 WHERE school = "decatur central" </s>
What studio had the director Peter Lord Nick Park before 2004?
CREATE TABLE table_name_57 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT studio_s_ FROM table_name_57 WHERE year < 2004 AND director = "peter lord nick park"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR) Question: What studio had the director Peter Lord Nick Park before 2004? [/INST] SELECT studio_s_ FROM table_name_57 WHERE year < 2004 AND direct...
What studio did Paul Greengrass direct in 2007?
CREATE TABLE table_name_92 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND director = "paul greengrass"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR) Question: What studio did Paul Greengrass direct in 2007? [/INST] SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND director = "paul gree...
What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?
CREATE TABLE table_name_1 (a_score INTEGER, b_score VARCHAR, position VARCHAR)
SELECT SUM(a_score) FROM table_name_1 WHERE b_score > 9.15 AND position = "2nd"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (a_score INTEGER, b_score VARCHAR, position VARCHAR) Question: What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position? [/INST] SELECT SUM(a_score) FROM table_...
what is the quantity when the year of manufacture is 1900 and the class is mc?
CREATE TABLE table_name_20 (quantity VARCHAR, year_s__of_manufacture VARCHAR, class VARCHAR)
SELECT quantity FROM table_name_20 WHERE year_s__of_manufacture = "1900" AND class = "mc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (quantity VARCHAR, year_s__of_manufacture VARCHAR, class VARCHAR) Question: what is the quantity when the year of manufacture is 1900 and the class is mc? [/INST] SELECT quantity FROM table_name_20...
what is the class when the quantity is 4?
CREATE TABLE table_name_96 (class VARCHAR, quantity VARCHAR)
SELECT class FROM table_name_96 WHERE quantity = 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (class VARCHAR, quantity VARCHAR) Question: what is the class when the quantity is 4? [/INST] SELECT class FROM table_name_96 WHERE quantity = 4 </s>
Who were the opponents on Week 8?
CREATE TABLE table_name_89 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_89 WHERE week = 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (opponent VARCHAR, week VARCHAR) Question: Who were the opponents on Week 8? [/INST] SELECT opponent FROM table_name_89 WHERE week = 8 </s>