instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos?
CREATE TABLE table_name_26 (grand_finalist VARCHAR, grand_finalists VARCHAR)
SELECT grand_finalist FROM table_name_26 WHERE grand_finalists = "jonathan loh, peterson poon, nathan santos"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (grand_finalist VARCHAR, grand_finalists VARCHAR) Question: who is the grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos? [/INST] SELECT grand_finalist FROM table_name_26 WHERE grand_finalists = "jonathan loh, peterson poon, nathan santos" </s>
What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals?
CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, rank VARCHAR)
SELECT MAX(total) FROM table_name_40 WHERE gold = 20 AND rank < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, rank VARCHAR) Question: What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals? [/INST] SELECT MAX(total) FROM table_name_40 WHERE gold = 20 AND rank < 1 </s>
What is the nation that had more than 1 gold medal and a total of 62 medals?
CREATE TABLE table_name_31 (nation VARCHAR, gold VARCHAR, total VARCHAR)
SELECT nation FROM table_name_31 WHERE gold > 1 AND total = 62
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (nation VARCHAR, gold VARCHAR, total VARCHAR) Question: What is the nation that had more than 1 gold medal and a total of 62 medals? [/INST] SELECT nation FROM table_name_31 WHERE gold > 1 AND total = 62 </s>
What is the highest total medals when there were 0 gold medals and 1 silver?
CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_62 WHERE silver = 1 AND gold < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, gold VARCHAR) Question: What is the highest total medals when there were 0 gold medals and 1 silver? [/INST] SELECT MAX(total) FROM table_name_62 WHERE silver = 1 AND gold < 0 </s>
What's the 123kg of the Total world record?
CREATE TABLE table_name_41 (world_record VARCHAR)
SELECT 123 AS kg FROM table_name_41 WHERE world_record = "total"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (world_record VARCHAR) Question: What's the 123kg of the Total world record? [/INST] SELECT 123 AS kg FROM table_name_41 WHERE world_record = "total" </s>
What is the name for the assembly segment with a constituency number of 214?
CREATE TABLE table_name_55 (name VARCHAR, constituency_number VARCHAR)
SELECT name FROM table_name_55 WHERE constituency_number = "214"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (name VARCHAR, constituency_number VARCHAR) Question: What is the name for the assembly segment with a constituency number of 214? [/INST] SELECT name FROM table_name_55 WHERE constituency_number = "214" </s>
What district has an assembly segment named mahidpur?
CREATE TABLE table_name_20 (district VARCHAR, name VARCHAR)
SELECT district FROM table_name_20 WHERE name = "mahidpur"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (district VARCHAR, name VARCHAR) Question: What district has an assembly segment named mahidpur? [/INST] SELECT district FROM table_name_20 WHERE name = "mahidpur" </s>
Who is Doug Basham's team?
CREATE TABLE table_name_39 (team VARCHAR, wrestler VARCHAR)
SELECT team FROM table_name_39 WHERE wrestler = "doug basham"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (team VARCHAR, wrestler VARCHAR) Question: Who is Doug Basham's team? [/INST] SELECT team FROM table_name_39 WHERE wrestler = "doug basham" </s>
What's Jorge Santana's elimination?
CREATE TABLE table_name_71 (elimination VARCHAR, wrestler VARCHAR)
SELECT elimination FROM table_name_71 WHERE wrestler = "jorge santana"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (elimination VARCHAR, wrestler VARCHAR) Question: What's Jorge Santana's elimination? [/INST] SELECT elimination FROM table_name_71 WHERE wrestler = "jorge santana" </s>
Who's the wrestler with an elimination of 1?
CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR)
SELECT wrestler FROM table_name_6 WHERE elimination = "1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR) Question: Who's the wrestler with an elimination of 1? [/INST] SELECT wrestler FROM table_name_6 WHERE elimination = "1" </s>
Who's the eliminated by when the elimination was 1?
CREATE TABLE table_name_61 (eliminated_by VARCHAR, elimination VARCHAR)
SELECT eliminated_by FROM table_name_61 WHERE elimination = "1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (eliminated_by VARCHAR, elimination VARCHAR) Question: Who's the eliminated by when the elimination was 1? [/INST] SELECT eliminated_by FROM table_name_61 WHERE elimination = "1" </s>
What is the date where the result was L 27-10 in a week before week 9?
CREATE TABLE table_name_94 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT date FROM table_name_94 WHERE week < 9 AND result = "l 27-10"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (date VARCHAR, week VARCHAR, result VARCHAR) Question: What is the date where the result was L 27-10 in a week before week 9? [/INST] SELECT date FROM table_name_94 WHERE week < 9 AND result = "l 27-10" </s>
What sum of draw had more than 22 in Jury and a Televote of 130?
CREATE TABLE table_name_91 (draw INTEGER, jury VARCHAR, televote VARCHAR)
SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (draw INTEGER, jury VARCHAR, televote VARCHAR) Question: What sum of draw had more than 22 in Jury and a Televote of 130? [/INST] SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130 </s>
What is the total of the jury that is 2nd place and the total is larger than 190?
CREATE TABLE table_name_86 (jury INTEGER, place VARCHAR, total VARCHAR)
SELECT SUM(jury) FROM table_name_86 WHERE place = "2nd" AND total > 190
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (jury INTEGER, place VARCHAR, total VARCHAR) Question: What is the total of the jury that is 2nd place and the total is larger than 190? [/INST] SELECT SUM(jury) FROM table_name_86 WHERE place = "2nd" AND total > 190 </s>
What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?
CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR)
SELECT AVG(l_100km_combined) FROM table_name_81 WHERE l_100km_urban__cold_ = 13.9 AND mpg_uk_combined > 28.5 AND mpg_uk_extra_urban < 38.7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR) Question: What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7? [/INST] SELECT AVG(l_100km_combined) FROM table_name_81 WHERE l_100km_urban__cold_ = 13.9 AND mpg_uk_combined > 28.5 AND mpg_uk_extra_urban < 38.7 </s>
What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1?
CREATE TABLE table_name_42 (mpg_uk_combined INTEGER, l_100km_urban__cold_ VARCHAR, mpg_uk_urban__cold_ VARCHAR, l_100km_extra_urban VARCHAR)
SELECT MIN(mpg_uk_combined) FROM table_name_42 WHERE mpg_uk_urban__cold_ = 25.4 AND l_100km_extra_urban < 6.9 AND l_100km_urban__cold_ > 11.1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (mpg_uk_combined INTEGER, l_100km_urban__cold_ VARCHAR, mpg_uk_urban__cold_ VARCHAR, l_100km_extra_urban VARCHAR) Question: What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1? [/INST] SELECT MIN(mpg_uk_combined) FROM table_name_42 WHERE mpg_uk_urban__cold_ = 25.4 AND l_100km_extra_urban < 6.9 AND l_100km_urban__cold_ > 11.1 </s>
What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5?
CREATE TABLE table_name_20 (co_2_g_km VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, fuel_type VARCHAR, manufacturer VARCHAR)
SELECT COUNT(co_2_g_km) FROM table_name_20 WHERE fuel_type = "diesel" AND manufacturer = "fiat" AND l_100km_urban__cold_ > 6.3 AND mpg_uk_combined = 43.5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (co_2_g_km VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, fuel_type VARCHAR, manufacturer VARCHAR) Question: What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5? [/INST] SELECT COUNT(co_2_g_km) FROM table_name_20 WHERE fuel_type = "diesel" AND manufacturer = "fiat" AND l_100km_urban__cold_ > 6.3 AND mpg_uk_combined = 43.5 </s>
What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7?
CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR)
SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR) Question: What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7? [/INST] SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50 </s>
What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2?
CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)
SELECT SUM(engine_capacity) FROM table_name_53 WHERE mpg_uk_urban__cold_ < 12.2 AND mpg_uk_extra_urban < 18.8 AND mpg_us_urban < 7.2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR) Question: What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2? [/INST] SELECT SUM(engine_capacity) FROM table_name_53 WHERE mpg_uk_urban__cold_ < 12.2 AND mpg_uk_extra_urban < 18.8 AND mpg_us_urban < 7.2 </s>
What's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2?
CREATE TABLE table_name_61 (mpg_us_urban INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)
SELECT SUM(mpg_us_urban) FROM table_name_61 WHERE mpg_uk_urban__cold_ = 20 AND mpg_uk_extra_urban < 37.2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (mpg_us_urban INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR) Question: What's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2? [/INST] SELECT SUM(mpg_us_urban) FROM table_name_61 WHERE mpg_uk_urban__cold_ = 20 AND mpg_uk_extra_urban < 37.2 </s>
What was the score on 2010-07-13 when Abby wambach had the assist/pass?
CREATE TABLE table_name_56 (score VARCHAR, assist_pass VARCHAR, date VARCHAR)
SELECT score FROM table_name_56 WHERE assist_pass = "abby wambach" AND date = "2010-07-13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (score VARCHAR, assist_pass VARCHAR, date VARCHAR) Question: What was the score on 2010-07-13 when Abby wambach had the assist/pass? [/INST] SELECT score FROM table_name_56 WHERE assist_pass = "abby wambach" AND date = "2010-07-13" </s>
What is the location on 2008-06-17 when the lineup was start?
CREATE TABLE table_name_3 (location VARCHAR, lineup VARCHAR, date VARCHAR)
SELECT location FROM table_name_3 WHERE lineup = "start" AND date = "2008-06-17"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (location VARCHAR, lineup VARCHAR, date VARCHAR) Question: What is the location on 2008-06-17 when the lineup was start? [/INST] SELECT location FROM table_name_3 WHERE lineup = "start" AND date = "2008-06-17" </s>
What is the assist/pass on 2008-01-16 when the score was 2-0?
CREATE TABLE table_name_54 (assist_pass VARCHAR, date VARCHAR, score VARCHAR)
SELECT assist_pass FROM table_name_54 WHERE date = "2008-01-16" AND score = "2-0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (assist_pass VARCHAR, date VARCHAR, score VARCHAR) Question: What is the assist/pass on 2008-01-16 when the score was 2-0? [/INST] SELECT assist_pass FROM table_name_54 WHERE date = "2008-01-16" AND score = "2-0" </s>
What is the result at match reports?
CREATE TABLE table_name_98 (result VARCHAR, location VARCHAR)
SELECT result FROM table_name_98 WHERE location = "match reports"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (result VARCHAR, location VARCHAR) Question: What is the result at match reports? [/INST] SELECT result FROM table_name_98 WHERE location = "match reports" </s>
What's the points if the goals against were 222?
CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR)
SELECT points FROM table_name_24 WHERE goals_against = "222"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR) Question: What's the points if the goals against were 222? [/INST] SELECT points FROM table_name_24 WHERE goals_against = "222" </s>
What are the points if the goals against were 260?
CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR)
SELECT points FROM table_name_95 WHERE goals_against = "260"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR) Question: What are the points if the goals against were 260? [/INST] SELECT points FROM table_name_95 WHERE goals_against = "260" </s>
What are the games with an Involuntary suspension of Season (hurricane Rita)?
CREATE TABLE table_name_72 (games VARCHAR, standing VARCHAR)
SELECT games FROM table_name_72 WHERE standing = "involuntary suspension of season (hurricane rita)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (games VARCHAR, standing VARCHAR) Question: What are the games with an Involuntary suspension of Season (hurricane Rita)? [/INST] SELECT games FROM table_name_72 WHERE standing = "involuntary suspension of season (hurricane rita)" </s>
What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)?
CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR)
SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR) Question: What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)? [/INST] SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)" </s>
What's the season that had a lost of 9 with 72 games?
CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR)
SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR) Question: What's the season that had a lost of 9 with 72 games? [/INST] SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9" </s>
What event did he compete in at Taipei?
CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR)
SELECT format FROM table_name_42 WHERE location = "taipei"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR) Question: What event did he compete in at Taipei? [/INST] SELECT format FROM table_name_42 WHERE location = "taipei" </s>
In what season did he compete in the Grand Prix in Kuala Lumpur?
CREATE TABLE table_name_81 (season VARCHAR, event_type VARCHAR, location VARCHAR)
SELECT season FROM table_name_81 WHERE event_type = "grand prix" AND location = "kuala lumpur"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (season VARCHAR, event_type VARCHAR, location VARCHAR) Question: In what season did he compete in the Grand Prix in Kuala Lumpur? [/INST] SELECT season FROM table_name_81 WHERE event_type = "grand prix" AND location = "kuala lumpur" </s>
What is the position of the player with a pick less than 3 from team san diego?
CREATE TABLE table_name_82 (position VARCHAR, pick VARCHAR, team VARCHAR)
SELECT position FROM table_name_82 WHERE pick < 3 AND team = "san diego"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (position VARCHAR, pick VARCHAR, team VARCHAR) Question: What is the position of the player with a pick less than 3 from team san diego? [/INST] SELECT position FROM table_name_82 WHERE pick < 3 AND team = "san diego" </s>
What location did david mccann receive a siver and morgan fox win the gold?
CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT location FROM table_name_38 WHERE silver = "david mccann" AND gold = "morgan fox"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR) Question: What location did david mccann receive a siver and morgan fox win the gold? [/INST] SELECT location FROM table_name_38 WHERE silver = "david mccann" AND gold = "morgan fox" </s>
Who received the bronze in 2011?
CREATE TABLE table_name_71 (bronze VARCHAR, year VARCHAR)
SELECT bronze FROM table_name_71 WHERE year = "2011"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (bronze VARCHAR, year VARCHAR) Question: Who received the bronze in 2011? [/INST] SELECT bronze FROM table_name_71 WHERE year = "2011" </s>
Who received the silver in 2006?
CREATE TABLE table_name_31 (silver VARCHAR, year VARCHAR)
SELECT silver FROM table_name_31 WHERE year = "2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (silver VARCHAR, year VARCHAR) Question: Who received the silver in 2006? [/INST] SELECT silver FROM table_name_31 WHERE year = "2006" </s>
What's the count for obese children and adolescents ranked 48?
CREATE TABLE table_name_1 (obese_children_and_adolescents VARCHAR, obesity_rank VARCHAR)
SELECT obese_children_and_adolescents FROM table_name_1 WHERE obesity_rank = 48
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (obese_children_and_adolescents VARCHAR, obesity_rank VARCHAR) Question: What's the count for obese children and adolescents ranked 48? [/INST] SELECT obese_children_and_adolescents FROM table_name_1 WHERE obesity_rank = 48 </s>
What's the rank when the obese children and adolescent count is 14.2%?
CREATE TABLE table_name_74 (obesity_rank INTEGER, obese_children_and_adolescents VARCHAR)
SELECT SUM(obesity_rank) FROM table_name_74 WHERE obese_children_and_adolescents = "14.2%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (obesity_rank INTEGER, obese_children_and_adolescents VARCHAR) Question: What's the rank when the obese children and adolescent count is 14.2%? [/INST] SELECT SUM(obesity_rank) FROM table_name_74 WHERE obese_children_and_adolescents = "14.2%" </s>
What's the rank in West Virginia when the overweight adult was 66.8%?
CREATE TABLE table_name_87 (obesity_rank VARCHAR, overweight__incl_obese__adults VARCHAR, state_and_district_of_columbia VARCHAR)
SELECT obesity_rank FROM table_name_87 WHERE overweight__incl_obese__adults = "66.8%" AND state_and_district_of_columbia = "west virginia"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (obesity_rank VARCHAR, overweight__incl_obese__adults VARCHAR, state_and_district_of_columbia VARCHAR) Question: What's the rank in West Virginia when the overweight adult was 66.8%? [/INST] SELECT obesity_rank FROM table_name_87 WHERE overweight__incl_obese__adults = "66.8%" AND state_and_district_of_columbia = "west virginia" </s>
What is reserved for Jawad?
CREATE TABLE table_name_27 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_27 WHERE name = "jawad"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) Question: What is reserved for Jawad? [/INST] SELECT reserved_for___sc___st__none_ FROM table_name_27 WHERE name = "jawad" </s>
What is reserved for the constituency of 228?
CREATE TABLE table_name_65 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_65 WHERE constituency_number = "228"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) Question: What is reserved for the constituency of 228? [/INST] SELECT reserved_for___sc___st__none_ FROM table_name_65 WHERE constituency_number = "228" </s>
Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?
CREATE TABLE table_name_68 (county VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT county FROM table_name_68 WHERE ihsaa_class = "aaa" AND enrollment < 799
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (county VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) Question: Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799? [/INST] SELECT county FROM table_name_68 WHERE ihsaa_class = "aaa" AND enrollment < 799 </s>
Which Location has a Mascot of tigers?
CREATE TABLE table_name_34 (location VARCHAR, mascot VARCHAR)
SELECT location FROM table_name_34 WHERE mascot = "tigers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (location VARCHAR, mascot VARCHAR) Question: Which Location has a Mascot of tigers? [/INST] SELECT location FROM table_name_34 WHERE mascot = "tigers" </s>
What's the most overall when the executive appointments were 28 and the background was smaller than 37?
CREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR)
SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR) Question: What's the most overall when the executive appointments were 28 and the background was smaller than 37? [/INST] SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37 </s>
What was the record at the game with a score of 21-16?
CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_77 WHERE score = "21-16"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR) Question: What was the record at the game with a score of 21-16? [/INST] SELECT record FROM table_name_77 WHERE score = "21-16" </s>
Who was the opponent at the game with a score of 42-28 after week 4?
CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_91 WHERE week > 4 AND score = "42-28"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR, score VARCHAR) Question: Who was the opponent at the game with a score of 42-28 after week 4? [/INST] SELECT opponent FROM table_name_91 WHERE week > 4 AND score = "42-28" </s>
what is the result when the opponent is at dallas cowboys?
CREATE TABLE table_name_12 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_12 WHERE opponent = "at dallas cowboys"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (result VARCHAR, opponent VARCHAR) Question: what is the result when the opponent is at dallas cowboys? [/INST] SELECT result FROM table_name_12 WHERE opponent = "at dallas cowboys" </s>
what is the enrollement for the year joined 1958 in clarksville?
CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR)
SELECT SUM(enrollment) FROM table_name_79 WHERE year_joined = 1958 AND location = "clarksville"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR) Question: what is the enrollement for the year joined 1958 in clarksville? [/INST] SELECT SUM(enrollment) FROM table_name_79 WHERE year_joined = 1958 AND location = "clarksville" </s>
what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?
CREATE TABLE table_name_13 (_number___county VARCHAR, mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT _number___county FROM table_name_13 WHERE ihsaa_class = "aaa" AND enrollment > 611 AND mascot = "dragons"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (_number___county VARCHAR, mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) Question: what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot? [/INST] SELECT _number___county FROM table_name_13 WHERE ihsaa_class = "aaa" AND enrollment > 611 AND mascot = "dragons" </s>
Where was the title released in 1977?
CREATE TABLE table_name_98 (country_of_release VARCHAR, year_of_release VARCHAR)
SELECT country_of_release FROM table_name_98 WHERE year_of_release = 1977
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (country_of_release VARCHAR, year_of_release VARCHAR) Question: Where was the title released in 1977? [/INST] SELECT country_of_release FROM table_name_98 WHERE year_of_release = 1977 </s>
What was the last year MCA had a Release?
CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR)
SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR) Question: What was the last year MCA had a Release? [/INST] SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca" </s>
What is the lowest pick for the Buffalo Bills?
CREATE TABLE table_name_60 (pick INTEGER, team VARCHAR)
SELECT MIN(pick) FROM table_name_60 WHERE team = "buffalo bills"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (pick INTEGER, team VARCHAR) Question: What is the lowest pick for the Buffalo Bills? [/INST] SELECT MIN(pick) FROM table_name_60 WHERE team = "buffalo bills" </s>
Which player played for the Boston Patriots?
CREATE TABLE table_name_61 (player VARCHAR, team VARCHAR)
SELECT player FROM table_name_61 WHERE team = "boston patriots"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (player VARCHAR, team VARCHAR) Question: Which player played for the Boston Patriots? [/INST] SELECT player FROM table_name_61 WHERE team = "boston patriots" </s>
How much Attendance has a Result of 2–4, and a Visitor of brynäs if?
CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, visitor VARCHAR)
SELECT SUM(attendance) FROM table_name_10 WHERE result = "2–4" AND visitor = "brynäs if"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, visitor VARCHAR) Question: How much Attendance has a Result of 2–4, and a Visitor of brynäs if? [/INST] SELECT SUM(attendance) FROM table_name_10 WHERE result = "2–4" AND visitor = "brynäs if" </s>
Which Result has a Round larger than 17?
CREATE TABLE table_name_37 (result VARCHAR, round INTEGER)
SELECT result FROM table_name_37 WHERE round > 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (result VARCHAR, round INTEGER) Question: Which Result has a Round larger than 17? [/INST] SELECT result FROM table_name_37 WHERE round > 17 </s>
What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?
CREATE TABLE table_name_57 (electorate INTEGER, name VARCHAR, political_party VARCHAR, constituency VARCHAR)
SELECT MIN(electorate) FROM table_name_57 WHERE political_party = "conservative" AND constituency = "south west devon" AND "conservative" > 2 AND name = "plymstock radford"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (electorate INTEGER, name VARCHAR, political_party VARCHAR, constituency VARCHAR) Question: What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford? [/INST] SELECT MIN(electorate) FROM table_name_57 WHERE political_party = "conservative" AND constituency = "south west devon" AND "conservative" > 2 AND name = "plymstock radford" </s>
What event was in a year later than 2007 and in the 88th position?
CREATE TABLE table_name_66 (event VARCHAR, year VARCHAR, position VARCHAR)
SELECT event FROM table_name_66 WHERE year > 2007 AND position = "88th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (event VARCHAR, year VARCHAR, position VARCHAR) Question: What event was in a year later than 2007 and in the 88th position? [/INST] SELECT event FROM table_name_66 WHERE year > 2007 AND position = "88th" </s>
What are the notes for 2005?
CREATE TABLE table_name_36 (notes VARCHAR, year VARCHAR)
SELECT notes FROM table_name_36 WHERE year = 2005
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (notes VARCHAR, year VARCHAR) Question: What are the notes for 2005? [/INST] SELECT notes FROM table_name_36 WHERE year = 2005 </s>
Who is the owner of CKLF-FM?
CREATE TABLE table_name_78 (owner VARCHAR, call_sign VARCHAR)
SELECT owner FROM table_name_78 WHERE call_sign = "cklf-fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (owner VARCHAR, call_sign VARCHAR) Question: Who is the owner of CKLF-FM? [/INST] SELECT owner FROM table_name_78 WHERE call_sign = "cklf-fm" </s>
What frequency is First Nations Community?
CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR)
SELECT frequency FROM table_name_78 WHERE format = "first nations community"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR) Question: What frequency is First Nations Community? [/INST] SELECT frequency FROM table_name_78 WHERE format = "first nations community" </s>
What format is CBC Radio 2?
CREATE TABLE table_name_84 (format VARCHAR, branding VARCHAR)
SELECT format FROM table_name_84 WHERE branding = "cbc radio 2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (format VARCHAR, branding VARCHAR) Question: What format is CBC Radio 2? [/INST] SELECT format FROM table_name_84 WHERE branding = "cbc radio 2" </s>
Who owns CKSB-8-FM?
CREATE TABLE table_name_72 (owner VARCHAR, call_sign VARCHAR)
SELECT owner FROM table_name_72 WHERE call_sign = "cksb-8-fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (owner VARCHAR, call_sign VARCHAR) Question: Who owns CKSB-8-FM? [/INST] SELECT owner FROM table_name_72 WHERE call_sign = "cksb-8-fm" </s>
What format is Première Chaîne?
CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR)
SELECT format FROM table_name_44 WHERE branding = "première chaîne"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR) Question: What format is Première Chaîne? [/INST] SELECT format FROM table_name_44 WHERE branding = "première chaîne" </s>
What year was olympics, Canada and the Men's Eight Event ended with a silver medal?
CREATE TABLE table_name_92 (year INTEGER, result VARCHAR, nation VARCHAR, championship VARCHAR, event VARCHAR)
SELECT MAX(year) FROM table_name_92 WHERE championship = "olympics" AND event = "men's eight" AND nation = "canada" AND result = "silver"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (year INTEGER, result VARCHAR, nation VARCHAR, championship VARCHAR, event VARCHAR) Question: What year was olympics, Canada and the Men's Eight Event ended with a silver medal? [/INST] SELECT MAX(year) FROM table_name_92 WHERE championship = "olympics" AND event = "men's eight" AND nation = "canada" AND result = "silver" </s>
What event was in 2006?
CREATE TABLE table_name_2 (event VARCHAR, year VARCHAR)
SELECT event FROM table_name_2 WHERE year = 2006
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (event VARCHAR, year VARCHAR) Question: What event was in 2006? [/INST] SELECT event FROM table_name_2 WHERE year = 2006 </s>
What championship was in the USA after 1994, and resulted in 5th place?
CREATE TABLE table_name_99 (championship VARCHAR, result VARCHAR, nation VARCHAR, year VARCHAR)
SELECT championship FROM table_name_99 WHERE nation = "usa" AND year > 1994 AND result = "5th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (championship VARCHAR, result VARCHAR, nation VARCHAR, year VARCHAR) Question: What championship was in the USA after 1994, and resulted in 5th place? [/INST] SELECT championship FROM table_name_99 WHERE nation = "usa" AND year > 1994 AND result = "5th" </s>
What year did Canada get a silver in the olympics in the Men's Coxless Pair event?
CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR)
SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR) Question: What year did Canada get a silver in the olympics in the Men's Coxless Pair event? [/INST] SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair" </s>
Where is the lacrosse school located?
CREATE TABLE table_name_98 (location VARCHAR, school VARCHAR)
SELECT location FROM table_name_98 WHERE school = "lacrosse"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (location VARCHAR, school VARCHAR) Question: Where is the lacrosse school located? [/INST] SELECT location FROM table_name_98 WHERE school = "lacrosse" </s>
Which IHSAA Class has a Mascot of tigers?
CREATE TABLE table_name_32 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT ihsaa_class FROM table_name_32 WHERE mascot = "tigers"
<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: Which IHSAA Class has a Mascot of tigers? [/INST] SELECT ihsaa_class FROM table_name_32 WHERE mascot = "tigers" </s>
Which Location has an Enrollment larger than 543?
CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER)
SELECT location FROM table_name_62 WHERE enrollment > 543
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER) Question: Which Location has an Enrollment larger than 543? [/INST] SELECT location FROM table_name_62 WHERE enrollment > 543 </s>
Which County has an Enrollment of 297?
CREATE TABLE table_name_16 (county VARCHAR, enrollment VARCHAR)
SELECT county FROM table_name_16 WHERE enrollment = 297
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (county VARCHAR, enrollment VARCHAR) Question: Which County has an Enrollment of 297? [/INST] SELECT county FROM table_name_16 WHERE enrollment = 297 </s>
Which School has an Enrollment larger than 264, and a County of 46 la porte?
CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR)
SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = "46 la porte"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR) Question: Which School has an Enrollment larger than 264, and a County of 46 la porte? [/INST] SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = "46 la porte" </s>
What is the number of silver medals when there are more than 1 gold, and more than 6 bronze?
CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT MIN(silver) FROM table_name_90 WHERE gold > 1 AND bronze > 6
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, bronze VARCHAR) Question: What is the number of silver medals when there are more than 1 gold, and more than 6 bronze? [/INST] SELECT MIN(silver) FROM table_name_90 WHERE gold > 1 AND bronze > 6 </s>
What is the total when the Yugoslavia number of silver won is more than 1?
CREATE TABLE table_name_32 (total INTEGER, silver VARCHAR, nation VARCHAR)
SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = "yugoslavia"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (total INTEGER, silver VARCHAR, nation VARCHAR) Question: What is the total when the Yugoslavia number of silver won is more than 1? [/INST] SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = "yugoslavia" </s>
What is the total attendance before week 1?
CREATE TABLE table_name_16 (attendance INTEGER, week INTEGER)
SELECT SUM(attendance) FROM table_name_16 WHERE week < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (attendance INTEGER, week INTEGER) Question: What is the total attendance before week 1? [/INST] SELECT SUM(attendance) FROM table_name_16 WHERE week < 1 </s>
When was sniffles and the bookworm released?
CREATE TABLE table_name_81 (release_date VARCHAR, title VARCHAR)
SELECT release_date FROM table_name_81 WHERE title = "sniffles and the bookworm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (release_date VARCHAR, title VARCHAR) Question: When was sniffles and the bookworm released? [/INST] SELECT release_date FROM table_name_81 WHERE title = "sniffles and the bookworm" </s>
When was land of the midnight fun in the mm series released?
CREATE TABLE table_name_54 (release_date VARCHAR, series VARCHAR, title VARCHAR)
SELECT release_date FROM table_name_54 WHERE series = "mm" AND title = "land of the midnight fun"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (release_date VARCHAR, series VARCHAR, title VARCHAR) Question: When was land of the midnight fun in the mm series released? [/INST] SELECT release_date FROM table_name_54 WHERE series = "mm" AND title = "land of the midnight fun" </s>
Which series had a release on 1939-07-15 with the 8863 production number?
CREATE TABLE table_name_53 (series VARCHAR, release_date VARCHAR, production_num VARCHAR)
SELECT series FROM table_name_53 WHERE release_date = "1939-07-15" AND production_num = "8863"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (series VARCHAR, release_date VARCHAR, production_num VARCHAR) Question: Which series had a release on 1939-07-15 with the 8863 production number? [/INST] SELECT series FROM table_name_53 WHERE release_date = "1939-07-15" AND production_num = "8863" </s>
Who directed hamateur night?
CREATE TABLE table_name_2 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_2 WHERE title = "hamateur night"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (director VARCHAR, title VARCHAR) Question: Who directed hamateur night? [/INST] SELECT director FROM table_name_2 WHERE title = "hamateur night" </s>
When was Production Number 9105 released?
CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR)
SELECT release_date FROM table_name_29 WHERE production_num = "9105"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR) Question: When was Production Number 9105 released? [/INST] SELECT release_date FROM table_name_29 WHERE production_num = "9105" </s>
What Class has a Frequency of 90.1 FM?
CREATE TABLE table_name_8 (class VARCHAR, frequency VARCHAR)
SELECT class FROM table_name_8 WHERE frequency = "90.1 fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (class VARCHAR, frequency VARCHAR) Question: What Class has a Frequency of 90.1 FM? [/INST] SELECT class FROM table_name_8 WHERE frequency = "90.1 fm" </s>
What is listed for the RECNet that also has a Frequency of 91.1 FM?
CREATE TABLE table_name_51 (recnet VARCHAR, frequency VARCHAR)
SELECT recnet FROM table_name_51 WHERE frequency = "91.1 fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (recnet VARCHAR, frequency VARCHAR) Question: What is listed for the RECNet that also has a Frequency of 91.1 FM? [/INST] SELECT recnet FROM table_name_51 WHERE frequency = "91.1 fm" </s>
What Class has the Identifier fo CBFX-FM-2?
CREATE TABLE table_name_42 (class VARCHAR, identifier VARCHAR)
SELECT class FROM table_name_42 WHERE identifier = "cbfx-fm-2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (class VARCHAR, identifier VARCHAR) Question: What Class has the Identifier fo CBFX-FM-2? [/INST] SELECT class FROM table_name_42 WHERE identifier = "cbfx-fm-2" </s>
What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?
CREATE TABLE table_name_51 (recnet VARCHAR, class VARCHAR, city_of_license VARCHAR)
SELECT recnet FROM table_name_51 WHERE class = "b" AND city_of_license = "rouyn-noranda"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (recnet VARCHAR, class VARCHAR, city_of_license VARCHAR) Question: What is the RECNet with a Class of B and the City of License of Rouyn-Noranda? [/INST] SELECT recnet FROM table_name_51 WHERE class = "b" AND city_of_license = "rouyn-noranda" </s>
What Class has the Identifier of CBFX-FM-6?
CREATE TABLE table_name_21 (class VARCHAR, identifier VARCHAR)
SELECT class FROM table_name_21 WHERE identifier = "cbfx-fm-6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (class VARCHAR, identifier VARCHAR) Question: What Class has the Identifier of CBFX-FM-6? [/INST] SELECT class FROM table_name_21 WHERE identifier = "cbfx-fm-6" </s>
What Frequency has the Identifier of CBFX-FM-6?
CREATE TABLE table_name_53 (frequency VARCHAR, identifier VARCHAR)
SELECT frequency FROM table_name_53 WHERE identifier = "cbfx-fm-6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (frequency VARCHAR, identifier VARCHAR) Question: What Frequency has the Identifier of CBFX-FM-6? [/INST] SELECT frequency FROM table_name_53 WHERE identifier = "cbfx-fm-6" </s>
What is the total number of gold with less than 1 silver, from Belgium?
CREATE TABLE table_name_23 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(gold) FROM table_name_23 WHERE silver < 1 AND nation = "belgium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (gold VARCHAR, silver VARCHAR, nation VARCHAR) Question: What is the total number of gold with less than 1 silver, from Belgium? [/INST] SELECT COUNT(gold) FROM table_name_23 WHERE silver < 1 AND nation = "belgium" </s>
Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?
CREATE TABLE table_name_89 (lost INTEGER, drawn VARCHAR, points VARCHAR, name VARCHAR)
SELECT AVG(lost) FROM table_name_89 WHERE points < 15 AND name = "sc forst" AND drawn < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (lost INTEGER, drawn VARCHAR, points VARCHAR, name VARCHAR) Question: Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0? [/INST] SELECT AVG(lost) FROM table_name_89 WHERE points < 15 AND name = "sc forst" AND drawn < 0 </s>
How much Position has a Lost of 8, and a Played larger than 14?
CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR)
SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR) Question: How much Position has a Lost of 8, and a Played larger than 14? [/INST] SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 14 </s>
Which Drawn has a Lost larger than 8, and Points smaller than 7?
CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR) Question: Which Drawn has a Lost larger than 8, and Points smaller than 7? [/INST] SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 7 </s>
How much Drawn has a Name of erc lechbruck, and Points smaller than 17?
CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR)
SELECT COUNT(drawn) FROM table_name_13 WHERE name = "erc lechbruck" AND points < 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR) Question: How much Drawn has a Name of erc lechbruck, and Points smaller than 17? [/INST] SELECT COUNT(drawn) FROM table_name_13 WHERE name = "erc lechbruck" AND points < 17 </s>
What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001?
CREATE TABLE table_name_81 (town VARCHAR, population_rank VARCHAR, municipality VARCHAR, population__2001_ VARCHAR)
SELECT town FROM table_name_81 WHERE municipality = "molėtai district municipality" AND population__2001_ < 470 AND population_rank = 187
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (town VARCHAR, population_rank VARCHAR, municipality VARCHAR, population__2001_ VARCHAR) Question: What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001? [/INST] SELECT town FROM table_name_81 WHERE municipality = "molėtai district municipality" AND population__2001_ < 470 AND population_rank = 187 </s>
What county is the town with a rank of 205 located in?
CREATE TABLE table_name_78 (county VARCHAR, population_rank VARCHAR)
SELECT county FROM table_name_78 WHERE population_rank = 205
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (county VARCHAR, population_rank VARCHAR) Question: What county is the town with a rank of 205 located in? [/INST] SELECT county FROM table_name_78 WHERE population_rank = 205 </s>
What is the fewest draws for percentages of 5.02%?
CREATE TABLE table_name_95 (draw INTEGER, percentage VARCHAR)
SELECT MIN(draw) FROM table_name_95 WHERE percentage = "5.02%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (draw INTEGER, percentage VARCHAR) Question: What is the fewest draws for percentages of 5.02%? [/INST] SELECT MIN(draw) FROM table_name_95 WHERE percentage = "5.02%" </s>
What is the position of the player from the denver broncos?
CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR)
SELECT position FROM table_name_28 WHERE team = "denver broncos"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR) Question: What is the position of the player from the denver broncos? [/INST] SELECT position FROM table_name_28 WHERE team = "denver broncos" </s>
What is the average pick of the kansas city chiefs?
CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)
SELECT AVG(pick) FROM table_name_12 WHERE team = "kansas city chiefs"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR) Question: What is the average pick of the kansas city chiefs? [/INST] SELECT AVG(pick) FROM table_name_12 WHERE team = "kansas city chiefs" </s>
What is the pick of wiley college?
CREATE TABLE table_name_70 (pick VARCHAR, college VARCHAR)
SELECT pick FROM table_name_70 WHERE college = "wiley"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (pick VARCHAR, college VARCHAR) Question: What is the pick of wiley college? [/INST] SELECT pick FROM table_name_70 WHERE college = "wiley" </s>
What was the attendance for the game with alfreton town as the home team?
CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_53 WHERE home_team = "alfreton town"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR) Question: What was the attendance for the game with alfreton town as the home team? [/INST] SELECT attendance FROM table_name_53 WHERE home_team = "alfreton town" </s>
What was the score of the game where stafford rangers was the away team?
CREATE TABLE table_name_92 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_92 WHERE away_team = "stafford rangers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (score VARCHAR, away_team VARCHAR) Question: What was the score of the game where stafford rangers was the away team? [/INST] SELECT score FROM table_name_92 WHERE away_team = "stafford rangers" </s>
Who was the home team that has a tie no of 1?
CREATE TABLE table_name_29 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_29 WHERE tie_no = "1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (home_team VARCHAR, tie_no VARCHAR) Question: Who was the home team that has a tie no of 1? [/INST] SELECT home_team FROM table_name_29 WHERE tie_no = "1" </s>
What is the tie no that has southport as the away team?
CREATE TABLE table_name_28 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_28 WHERE away_team = "southport"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (tie_no VARCHAR, away_team VARCHAR) Question: What is the tie no that has southport as the away team? [/INST] SELECT tie_no FROM table_name_28 WHERE away_team = "southport" </s>