instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Who is the opponent in week 10?
CREATE TABLE table_name_5 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_5 WHERE week = 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (opponent VARCHAR, week VARCHAR) Question: Who is the opponent in week 10? [/INST] SELECT opponent FROM table_name_5 WHERE week = 10 </s>
How many people attended the game played with the New England Patriots as opponents?
CREATE TABLE table_name_53 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_53 WHERE opponent = "new england patriots"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (attendance VARCHAR, opponent VARCHAR) Question: How many people attended the game played with the New England Patriots as opponents? [/INST] SELECT attendance FROM table_name_53 WHERE opponent = "new england patriots" </s>
What was the top place with over 24 points and more than 14 played?
CREATE TABLE table_name_41 (place__posición_ INTEGER, points__pts_ VARCHAR, played__pj_ VARCHAR)
SELECT MAX(place__posición_) FROM table_name_41 WHERE points__pts_ > 24 AND played__pj_ > 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (place__posición_ INTEGER, points__pts_ VARCHAR, played__pj_ VARCHAR) Question: What was the top place with over 24 points and more than 14 played? [/INST] SELECT MAX(place__posición_) FROM table_name_41 WHERE points__pts_ > 24 AND played__pj_ > 14 </s>
What is the sum of all points for places above 8?
CREATE TABLE table_name_37 (points__pts_ INTEGER, place__posición_ INTEGER)
SELECT SUM(points__pts_) FROM table_name_37 WHERE place__posición_ > 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (points__pts_ INTEGER, place__posición_ INTEGER) Question: What is the sum of all points for places above 8? [/INST] SELECT SUM(points__pts_) FROM table_name_37 WHERE place__posición_ > 8 </s>
What is the average number played for place 2 and more than 4 lost?
CREATE TABLE table_name_18 (played__pj_ INTEGER, place__posición_ VARCHAR, lost__pp_ VARCHAR)
SELECT AVG(played__pj_) FROM table_name_18 WHERE place__posición_ = 2 AND lost__pp_ > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (played__pj_ INTEGER, place__posición_ VARCHAR, lost__pp_ VARCHAR) Question: What is the average number played for place 2 and more than 4 lost? [/INST] SELECT AVG(played__pj_) FROM table_name_18 WHERE place__posición_ = 2 AND lost__pp_ > 4 </s>
What is the largest number of points for Orion with more than 4 losses?
CREATE TABLE table_name_53 (points__pts_ INTEGER, team__equipo_ VARCHAR, lost__pp_ VARCHAR)
SELECT MAX(points__pts_) FROM table_name_53 WHERE team__equipo_ = "orion" AND lost__pp_ > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (points__pts_ INTEGER, team__equipo_ VARCHAR, lost__pp_ VARCHAR) Question: What is the largest number of points for Orion with more than 4 losses? [/INST] SELECT MAX(points__pts_) FROM table_name_53 WHERE team__equipo_ = "orion" AND lost__pp_ > 4 </s>
What is the Time when the Set 2 is 25–21, on 29 may?
CREATE TABLE table_name_91 (time VARCHAR, set_2 VARCHAR, date VARCHAR)
SELECT time FROM table_name_91 WHERE set_2 = "25–21" AND date = "29 may"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (time VARCHAR, set_2 VARCHAR, date VARCHAR) Question: What is the Time when the Set 2 is 25–21, on 29 may? [/INST] SELECT time FROM table_name_91 WHERE set_2 = "25–21" AND date = "29 may" </s>
What is the Set 3 when the Set 2 is 21–25, and a Set 1 is 25–21?
CREATE TABLE table_name_70 (set_3 VARCHAR, set_2 VARCHAR, set_1 VARCHAR)
SELECT set_3 FROM table_name_70 WHERE set_2 = "21–25" AND set_1 = "25–21"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (set_3 VARCHAR, set_2 VARCHAR, set_1 VARCHAR) Question: What is the Set 3 when the Set 2 is 21–25, and a Set 1 is 25–21? [/INST] SELECT set_3 FROM table_name_70 WHERE set_2 = "21–25" AND set_1 = "25–21" </s>
What is the Total when the Set 3 is 22–25, and a Set 2 is 25–20?
CREATE TABLE table_name_58 (total VARCHAR, set_3 VARCHAR, set_2 VARCHAR)
SELECT total FROM table_name_58 WHERE set_3 = "22–25" AND set_2 = "25–20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (total VARCHAR, set_3 VARCHAR, set_2 VARCHAR) Question: What is the Total when the Set 3 is 22–25, and a Set 2 is 25–20? [/INST] SELECT total FROM table_name_58 WHERE set_3 = "22–25" AND set_2 = "25–20" </s>
What is the Set 3 on 30 may, and a Set 1 is 20–25?
CREATE TABLE table_name_79 (set_3 VARCHAR, date VARCHAR, set_1 VARCHAR)
SELECT set_3 FROM table_name_79 WHERE date = "30 may" AND set_1 = "20–25"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (set_3 VARCHAR, date VARCHAR, set_1 VARCHAR) Question: What is the Set 3 on 30 may, and a Set 1 is 20–25? [/INST] SELECT set_3 FROM table_name_79 WHERE date = "30 may" AND set_1 = "20–25" </s>
What is the Date when the Set 1 is 25–21, and the Score is 3–0, and the Time is 11:00?
CREATE TABLE table_name_51 (date VARCHAR, time VARCHAR, set_1 VARCHAR, score VARCHAR)
SELECT date FROM table_name_51 WHERE set_1 = "25–21" AND score = "3–0" AND time = "11:00"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (date VARCHAR, time VARCHAR, set_1 VARCHAR, score VARCHAR) Question: What is the Date when the Set 1 is 25–21, and the Score is 3–0, and the Time is 11:00? [/INST] SELECT date FROM table_name_51 WHERE set_1 = "25–21" AND score = "3–0" AND time = "11:00" </s>
What is the Date when the Set 2 is 13–25?
CREATE TABLE table_name_32 (date VARCHAR, set_2 VARCHAR)
SELECT date FROM table_name_32 WHERE set_2 = "13–25"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (date VARCHAR, set_2 VARCHAR) Question: What is the Date when the Set 2 is 13–25? [/INST] SELECT date FROM table_name_32 WHERE set_2 = "13–25" </s>
What is the Away captain with a Venue that is old trafford?
CREATE TABLE table_name_36 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_36 WHERE venue = "old trafford"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (away_captain VARCHAR, venue VARCHAR) Question: What is the Away captain with a Venue that is old trafford? [/INST] SELECT away_captain FROM table_name_36 WHERE venue = "old trafford" </s>
What is the Date with a Venue that is oval?
CREATE TABLE table_name_36 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_36 WHERE venue = "oval"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (date VARCHAR, venue VARCHAR) Question: What is the Date with a Venue that is oval? [/INST] SELECT date FROM table_name_36 WHERE venue = "oval" </s>
What is the Highest Points for Team Adet where the Draw is less than 6?
CREATE TABLE table_name_85 (points INTEGER, team VARCHAR, draw VARCHAR)
SELECT MAX(points) FROM table_name_85 WHERE team = "adet" AND draw < 6
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (points INTEGER, team VARCHAR, draw VARCHAR) Question: What is the Highest Points for Team Adet where the Draw is less than 6? [/INST] SELECT MAX(points) FROM table_name_85 WHERE team = "adet" AND draw < 6 </s>
What is the highest games Played where the Place is 10 and Points are less than 17?
CREATE TABLE table_name_56 (played INTEGER, place VARCHAR, points VARCHAR)
SELECT MAX(played) FROM table_name_56 WHERE place = 10 AND points < 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (played INTEGER, place VARCHAR, points VARCHAR) Question: What is the highest games Played where the Place is 10 and Points are less than 17? [/INST] SELECT MAX(played) FROM table_name_56 WHERE place = 10 AND points < 17 </s>
What is the average for games Lost where the Points are 25 and games Played are more than 18?
CREATE TABLE table_name_28 (lost INTEGER, points VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_28 WHERE points = 25 AND played > 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (lost INTEGER, points VARCHAR, played VARCHAR) Question: What is the average for games Lost where the Points are 25 and games Played are more than 18? [/INST] SELECT AVG(lost) FROM table_name_28 WHERE points = 25 AND played > 18 </s>
What is the average for Draw games where Played games is more than 18?
CREATE TABLE table_name_61 (draw INTEGER, played INTEGER)
SELECT AVG(draw) FROM table_name_61 WHERE played > 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (draw INTEGER, played INTEGER) Question: What is the average for Draw games where Played games is more than 18? [/INST] SELECT AVG(draw) FROM table_name_61 WHERE played > 18 </s>
What is the largest byes with lost games of 4 and Ballarat FL of Melton and the against less than 1819?
CREATE TABLE table_name_3 (byes INTEGER, against VARCHAR, losses VARCHAR, ballarat_fl VARCHAR)
SELECT MAX(byes) FROM table_name_3 WHERE losses = 4 AND ballarat_fl = "melton" AND against < 1819
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (byes INTEGER, against VARCHAR, losses VARCHAR, ballarat_fl VARCHAR) Question: What is the largest byes with lost games of 4 and Ballarat FL of Melton and the against less than 1819? [/INST] SELECT MAX(byes) FROM table_name_3 WHERE losses = 4 AND ballarat_fl = "melton" AND against < 1819 </s>
How many total wins does Ballarat FL of East point have when the against is greater than 1000?
CREATE TABLE table_name_61 (wins VARCHAR, ballarat_fl VARCHAR, against VARCHAR)
SELECT COUNT(wins) FROM table_name_61 WHERE ballarat_fl = "east point" AND against > 1000
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (wins VARCHAR, ballarat_fl VARCHAR, against VARCHAR) Question: How many total wins does Ballarat FL of East point have when the against is greater than 1000? [/INST] SELECT COUNT(wins) FROM table_name_61 WHERE ballarat_fl = "east point" AND against > 1000 </s>
How many total losses does the team have with an against of 2195 and the draws were greater than 0?
CREATE TABLE table_name_77 (losses VARCHAR, against VARCHAR, draws VARCHAR)
SELECT COUNT(losses) FROM table_name_77 WHERE against = 2195 AND draws > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (losses VARCHAR, against VARCHAR, draws VARCHAR) Question: How many total losses does the team have with an against of 2195 and the draws were greater than 0? [/INST] SELECT COUNT(losses) FROM table_name_77 WHERE against = 2195 AND draws > 0 </s>
What is the value in 2009 corresponding to Career Statistics in 2003?
CREATE TABLE table_name_96 (Id VARCHAR)
SELECT 2009 FROM table_name_96 WHERE 2003 = "career statistics"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (Id VARCHAR) Question: What is the value in 2009 corresponding to Career Statistics in 2003? [/INST] SELECT 2009 FROM table_name_96 WHERE 2003 = "career statistics" </s>
What is the value in 2006 when Career Statistics is in Career W-L?
CREATE TABLE table_name_70 (career_w_l VARCHAR)
SELECT 2006 FROM table_name_70 WHERE career_w_l = "career statistics"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (career_w_l VARCHAR) Question: What is the value in 2006 when Career Statistics is in Career W-L? [/INST] SELECT 2006 FROM table_name_70 WHERE career_w_l = "career statistics" </s>
What is the value for Career W-L for the Grand Slam Tournaments?
CREATE TABLE table_name_83 (career_w_l VARCHAR, tournament VARCHAR)
SELECT career_w_l FROM table_name_83 WHERE tournament = "grand slam tournaments"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (career_w_l VARCHAR, tournament VARCHAR) Question: What is the value for Career W-L for the Grand Slam Tournaments? [/INST] SELECT career_w_l FROM table_name_83 WHERE tournament = "grand slam tournaments" </s>
What is the value in 2008 when the value for Tournament is year?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT 2008 FROM table_name_77 WHERE tournament = "year"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (tournament VARCHAR) Question: What is the value in 2008 when the value for Tournament is year? [/INST] SELECT 2008 FROM table_name_77 WHERE tournament = "year" </s>
What is the value in 2006 when the value for 2009 is 0 with runner-ups for tournament?
CREATE TABLE table_name_72 (tournament VARCHAR)
SELECT 2006 FROM table_name_72 WHERE 2009 = "0" AND tournament = "runner-ups"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (tournament VARCHAR) Question: What is the value in 2006 when the value for 2009 is 0 with runner-ups for tournament? [/INST] SELECT 2006 FROM table_name_72 WHERE 2009 = "0" AND tournament = "runner-ups" </s>
What is the value for 2005 when A is 2009 and 2000?
CREATE TABLE table_name_98 (Id VARCHAR)
SELECT 2005 FROM table_name_98 WHERE 2009 = "a" AND 2000 = "a"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (Id VARCHAR) Question: What is the value for 2005 when A is 2009 and 2000? [/INST] SELECT 2005 FROM table_name_98 WHERE 2009 = "a" AND 2000 = "a" </s>
What Opponent in the final had a Partner of Gastón Etlis?
CREATE TABLE table_name_76 (opponent_in_the_final VARCHAR, partner VARCHAR)
SELECT opponent_in_the_final FROM table_name_76 WHERE partner = "gastón etlis"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (opponent_in_the_final VARCHAR, partner VARCHAR) Question: What Opponent in the final had a Partner of Gastón Etlis? [/INST] SELECT opponent_in_the_final FROM table_name_76 WHERE partner = "gastón etlis" </s>
What is the earliest Date David Adams played on a Clay Surface with Brett Steven as Partner?
CREATE TABLE table_name_46 (date INTEGER, surface VARCHAR, partner VARCHAR)
SELECT MIN(date) FROM table_name_46 WHERE surface = "clay" AND partner = "brett steven"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (date INTEGER, surface VARCHAR, partner VARCHAR) Question: What is the earliest Date David Adams played on a Clay Surface with Brett Steven as Partner? [/INST] SELECT MIN(date) FROM table_name_46 WHERE surface = "clay" AND partner = "brett steven" </s>
Who was David Adams partner on the match played on Clay Surface with a Score in the final of 6–3, 6–7 (5–7) , 7–6 (7–5)?
CREATE TABLE table_name_53 (partner VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT partner FROM table_name_53 WHERE surface = "clay" AND score_in_the_final = "6–3, 6–7 (5–7) , 7–6 (7–5)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (partner VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) Question: Who was David Adams partner on the match played on Clay Surface with a Score in the final of 6–3, 6–7 (5–7) , 7–6 (7–5)? [/INST] SELECT partner FROM table_name_53 WHERE surface = "clay" AND score_in_the_final = "6–3, 6–7 (5–7) , 7–6 (7–5)" </s>
Who were the Opponents when Liga Dekmeijere had Alicja Rosolska as a Partner?
CREATE TABLE table_name_59 (opponents VARCHAR, partner VARCHAR)
SELECT opponents FROM table_name_59 WHERE partner = "alicja rosolska"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (opponents VARCHAR, partner VARCHAR) Question: Who were the Opponents when Liga Dekmeijere had Alicja Rosolska as a Partner? [/INST] SELECT opponents FROM table_name_59 WHERE partner = "alicja rosolska" </s>
What was the Outcome of the match played on Hard (i) Surface?
CREATE TABLE table_name_16 (outcome VARCHAR, surface VARCHAR)
SELECT outcome FROM table_name_16 WHERE surface = "hard (i)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (outcome VARCHAR, surface VARCHAR) Question: What was the Outcome of the match played on Hard (i) Surface? [/INST] SELECT outcome FROM table_name_16 WHERE surface = "hard (i)" </s>
What was the Outcome of the match with Partner Kateryna Bondarenko?
CREATE TABLE table_name_84 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_84 WHERE partner = "kateryna bondarenko"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (outcome VARCHAR, partner VARCHAR) Question: What was the Outcome of the match with Partner Kateryna Bondarenko? [/INST] SELECT outcome FROM table_name_84 WHERE partner = "kateryna bondarenko" </s>
What is the Song choice with a Theme that is 1960s?
CREATE TABLE table_name_1 (song_choice VARCHAR, theme VARCHAR)
SELECT song_choice FROM table_name_1 WHERE theme = "1960s"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (song_choice VARCHAR, theme VARCHAR) Question: What is the Song choice with a Theme that is 1960s? [/INST] SELECT song_choice FROM table_name_1 WHERE theme = "1960s" </s>
Can you tell me the Co-driver that has the Year smaller than 2012, and the Laps smaller than 161, and the Position of dnf, and the Number 33?
CREATE TABLE table_name_1 (co_driver VARCHAR, number VARCHAR, position VARCHAR, year VARCHAR, laps VARCHAR)
SELECT co_driver FROM table_name_1 WHERE year < 2012 AND laps < 161 AND position = "dnf" AND number = 33
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (co_driver VARCHAR, number VARCHAR, position VARCHAR, year VARCHAR, laps VARCHAR) Question: Can you tell me the Co-driver that has the Year smaller than 2012, and the Laps smaller than 161, and the Position of dnf, and the Number 33? [/INST] SELECT co_driver FROM table_name_1 WHERE year < 2012 AND laps < 161 AND position = "dnf" AND number = 33 </s>
Can you tell me the total number of Laps that has the Team of wps racing?
CREATE TABLE table_name_94 (laps VARCHAR, team VARCHAR)
SELECT COUNT(laps) FROM table_name_94 WHERE team = "wps racing"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (laps VARCHAR, team VARCHAR) Question: Can you tell me the total number of Laps that has the Team of wps racing? [/INST] SELECT COUNT(laps) FROM table_name_94 WHERE team = "wps racing" </s>
How many people live where there are 118% of people have phones?
CREATE TABLE table_name_88 (population VARCHAR, _number_of_phones_as__percentage_of_population VARCHAR)
SELECT population FROM table_name_88 WHERE _number_of_phones_as__percentage_of_population = 118
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (population VARCHAR, _number_of_phones_as__percentage_of_population VARCHAR) Question: How many people live where there are 118% of people have phones? [/INST] SELECT population FROM table_name_88 WHERE _number_of_phones_as__percentage_of_population = 118 </s>
What percent of the population has phone in Russia?
CREATE TABLE table_name_15 (_number_of_phones_as__percentage_of_population INTEGER, country_or_region VARCHAR)
SELECT AVG(_number_of_phones_as__percentage_of_population) FROM table_name_15 WHERE country_or_region = "russia"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (_number_of_phones_as__percentage_of_population INTEGER, country_or_region VARCHAR) Question: What percent of the population has phone in Russia? [/INST] SELECT AVG(_number_of_phones_as__percentage_of_population) FROM table_name_15 WHERE country_or_region = "russia" </s>
What percent is 327,577,529 people with phones in June 2013?
CREATE TABLE table_name_90 (_number_of_phones_as__percentage_of_population INTEGER, last_updated_date VARCHAR, number_of_mobile_phones VARCHAR)
SELECT MAX(_number_of_phones_as__percentage_of_population) FROM table_name_90 WHERE last_updated_date = "june 2013" AND number_of_mobile_phones = "327,577,529"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (_number_of_phones_as__percentage_of_population INTEGER, last_updated_date VARCHAR, number_of_mobile_phones VARCHAR) Question: What percent is 327,577,529 people with phones in June 2013? [/INST] SELECT MAX(_number_of_phones_as__percentage_of_population) FROM table_name_90 WHERE last_updated_date = "june 2013" AND number_of_mobile_phones = "327,577,529" </s>
How many mobile phones were there as of April 2013?
CREATE TABLE table_name_11 (number_of_mobile_phones VARCHAR, last_updated_date VARCHAR)
SELECT number_of_mobile_phones FROM table_name_11 WHERE last_updated_date = "april 2013"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (number_of_mobile_phones VARCHAR, last_updated_date VARCHAR) Question: How many mobile phones were there as of April 2013? [/INST] SELECT number_of_mobile_phones FROM table_name_11 WHERE last_updated_date = "april 2013" </s>
How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5?
CREATE TABLE table_name_33 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_33 WHERE rank > 5 AND bronze > 6 AND gold < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR) Question: How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5? [/INST] SELECT SUM(silver) FROM table_name_33 WHERE rank > 5 AND bronze > 6 AND gold < 2 </s>
How many gold medals were awarded to teams ranked higher than 19?
CREATE TABLE table_name_8 (gold VARCHAR, rank INTEGER)
SELECT COUNT(gold) FROM table_name_8 WHERE rank > 19
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (gold VARCHAR, rank INTEGER) Question: How many gold medals were awarded to teams ranked higher than 19? [/INST] SELECT COUNT(gold) FROM table_name_8 WHERE rank > 19 </s>
What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total?
CREATE TABLE table_name_72 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_72 WHERE total > 13 AND silver > 9 AND bronze = 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR) Question: What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total? [/INST] SELECT MAX(gold) FROM table_name_72 WHERE total > 13 AND silver > 9 AND bronze = 7 </s>
What is the lowest Muslim (% of Total population) of a year after 2011?
CREATE TABLE table_name_37 (muslim___percentage_of_total_population_ INTEGER, census_year INTEGER)
SELECT MIN(muslim___percentage_of_total_population_) FROM table_name_37 WHERE census_year > 2011
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (muslim___percentage_of_total_population_ INTEGER, census_year INTEGER) Question: What is the lowest Muslim (% of Total population) of a year after 2011? [/INST] SELECT MIN(muslim___percentage_of_total_population_) FROM table_name_37 WHERE census_year > 2011 </s>
What shows for 1997 when 1987 is 2r?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 1997 FROM table_name_46 WHERE 1987 = "2r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (Id VARCHAR) Question: What shows for 1997 when 1987 is 2r? [/INST] SELECT 1997 FROM table_name_46 WHERE 1987 = "2r" </s>
What shows for 1993 when 1991 is grand slams?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT 1993 FROM table_name_6 WHERE 1991 = "grand slams"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (Id VARCHAR) Question: What shows for 1993 when 1991 is grand slams? [/INST] SELECT 1993 FROM table_name_6 WHERE 1991 = "grand slams" </s>
What shows for 1987 when 1995 shows 1r, 1986 is a, and 1998 is sf?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT 1987 FROM table_name_47 WHERE 1995 = "1r" AND 1986 = "a" AND 1988 = "sf"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (Id VARCHAR) Question: What shows for 1987 when 1995 shows 1r, 1986 is a, and 1998 is sf? [/INST] SELECT 1987 FROM table_name_47 WHERE 1995 = "1r" AND 1986 = "a" AND 1988 = "sf" </s>
Which away game was played on 2008-07-18?
CREATE TABLE table_name_5 (away VARCHAR, date VARCHAR)
SELECT away FROM table_name_5 WHERE date = "2008-07-18"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (away VARCHAR, date VARCHAR) Question: Which away game was played on 2008-07-18? [/INST] SELECT away FROM table_name_5 WHERE date = "2008-07-18" </s>
What away game had a time of 10:00?
CREATE TABLE table_name_98 (away VARCHAR, time VARCHAR)
SELECT away FROM table_name_98 WHERE time = "10:00"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (away VARCHAR, time VARCHAR) Question: What away game had a time of 10:00? [/INST] SELECT away FROM table_name_98 WHERE time = "10:00" </s>
What time was the away game played against the High Park Demons?
CREATE TABLE table_name_35 (time VARCHAR, away VARCHAR)
SELECT time FROM table_name_35 WHERE away = "high park demons"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (time VARCHAR, away VARCHAR) Question: What time was the away game played against the High Park Demons? [/INST] SELECT time FROM table_name_35 WHERE away = "high park demons" </s>
Where was the game played the ended with a score of 62-69?
CREATE TABLE table_name_22 (ground VARCHAR, score VARCHAR)
SELECT ground FROM table_name_22 WHERE score = "62-69"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (ground VARCHAR, score VARCHAR) Question: Where was the game played the ended with a score of 62-69? [/INST] SELECT ground FROM table_name_22 WHERE score = "62-69" </s>
When did the team play an away game against the Toronto Eagles?
CREATE TABLE table_name_39 (date VARCHAR, away VARCHAR)
SELECT date FROM table_name_39 WHERE away = "toronto eagles"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (date VARCHAR, away VARCHAR) Question: When did the team play an away game against the Toronto Eagles? [/INST] SELECT date FROM table_name_39 WHERE away = "toronto eagles" </s>
What is the League a for 1908–1928?
CREATE TABLE table_name_30 (league_a VARCHAR, years VARCHAR)
SELECT league_a FROM table_name_30 WHERE years = "1908–1928"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (league_a VARCHAR, years VARCHAR) Question: What is the League a for 1908–1928? [/INST] SELECT league_a FROM table_name_30 WHERE years = "1908–1928" </s>
What years have a total of 395 (0)?
CREATE TABLE table_name_64 (years VARCHAR, total VARCHAR)
SELECT years FROM table_name_64 WHERE total = "395 (0)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (years VARCHAR, total VARCHAR) Question: What years have a total of 395 (0)? [/INST] SELECT years FROM table_name_64 WHERE total = "395 (0)" </s>
What is the League Cup for 1947–1958?
CREATE TABLE table_name_40 (league_cup VARCHAR, years VARCHAR)
SELECT league_cup FROM table_name_40 WHERE years = "1947–1958"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (league_cup VARCHAR, years VARCHAR) Question: What is the League Cup for 1947–1958? [/INST] SELECT league_cup FROM table_name_40 WHERE years = "1947–1958" </s>
What is the Total for 1926–1938?
CREATE TABLE table_name_89 (total VARCHAR, years VARCHAR)
SELECT total FROM table_name_89 WHERE years = "1926–1938"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (total VARCHAR, years VARCHAR) Question: What is the Total for 1926–1938? [/INST] SELECT total FROM table_name_89 WHERE years = "1926–1938" </s>
What is the Total for 1953–1964?
CREATE TABLE table_name_26 (total VARCHAR, years VARCHAR)
SELECT total FROM table_name_26 WHERE years = "1953–1964"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (total VARCHAR, years VARCHAR) Question: What is the Total for 1953–1964? [/INST] SELECT total FROM table_name_26 WHERE years = "1953–1964" </s>
Which final score had a surface of hard (i) on October 22, 2000?
CREATE TABLE table_name_47 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard (i)" AND date = "october 22, 2000"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) Question: Which final score had a surface of hard (i) on October 22, 2000? [/INST] SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard (i)" AND date = "october 22, 2000" </s>
Which tournament had an outcome of winner, a hard surface, and happened on August 26, 2006?
CREATE TABLE table_name_76 (tournament VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT tournament FROM table_name_76 WHERE outcome = "winner" AND surface = "hard" AND date = "august 26, 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (tournament VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR) Question: Which tournament had an outcome of winner, a hard surface, and happened on August 26, 2006? [/INST] SELECT tournament FROM table_name_76 WHERE outcome = "winner" AND surface = "hard" AND date = "august 26, 2006" </s>
Which date had the final opponent of Iva Majoli?
CREATE TABLE table_name_39 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_39 WHERE opponent_in_the_final = "iva majoli"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (date VARCHAR, opponent_in_the_final VARCHAR) Question: Which date had the final opponent of Iva Majoli? [/INST] SELECT date FROM table_name_39 WHERE opponent_in_the_final = "iva majoli" </s>
On September 30, 1979, in a week before week 8, what was the result?
CREATE TABLE table_name_71 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_71 WHERE week < 8 AND date = "september 30, 1979"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (result VARCHAR, week VARCHAR, date VARCHAR) Question: On September 30, 1979, in a week before week 8, what was the result? [/INST] SELECT result FROM table_name_71 WHERE week < 8 AND date = "september 30, 1979" </s>
What was the average attendance in week 2?
CREATE TABLE table_name_61 (attendance INTEGER, week VARCHAR)
SELECT AVG(attendance) FROM table_name_61 WHERE week = 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (attendance INTEGER, week VARCHAR) Question: What was the average attendance in week 2? [/INST] SELECT AVG(attendance) FROM table_name_61 WHERE week = 2 </s>
What is the sum of tonnage with a time at 00:10 and less than 42 casualties?
CREATE TABLE table_name_30 (tonnage__grt_ INTEGER, time VARCHAR, casualties VARCHAR)
SELECT SUM(tonnage__grt_) FROM table_name_30 WHERE time = "00:10" AND casualties < 42
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (tonnage__grt_ INTEGER, time VARCHAR, casualties VARCHAR) Question: What is the sum of tonnage with a time at 00:10 and less than 42 casualties? [/INST] SELECT SUM(tonnage__grt_) FROM table_name_30 WHERE time = "00:10" AND casualties < 42 </s>
Which Opponent had a Win as Res and a Time of 1:10?
CREATE TABLE table_name_44 (opponent VARCHAR, res VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_44 WHERE res = "win" AND time = "1:10"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (opponent VARCHAR, res VARCHAR, time VARCHAR) Question: Which Opponent had a Win as Res and a Time of 1:10? [/INST] SELECT opponent FROM table_name_44 WHERE res = "win" AND time = "1:10" </s>
How many games that ended in a draw were played by a team with more than 15 total games?
CREATE TABLE table_name_78 (drawn VARCHAR, played INTEGER)
SELECT COUNT(drawn) FROM table_name_78 WHERE played > 15
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (drawn VARCHAR, played INTEGER) Question: How many games that ended in a draw were played by a team with more than 15 total games? [/INST] SELECT COUNT(drawn) FROM table_name_78 WHERE played > 15 </s>
How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have?
CREATE TABLE table_name_30 (pages INTEGER, vol__number VARCHAR, isbn VARCHAR)
SELECT SUM(pages) FROM table_name_30 WHERE vol__number < 8 AND isbn = "1-40122-892-5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (pages INTEGER, vol__number VARCHAR, isbn VARCHAR) Question: How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have? [/INST] SELECT SUM(pages) FROM table_name_30 WHERE vol__number < 8 AND isbn = "1-40122-892-5" </s>
What is the title of the edition with more than 128 pages and a volume # of 5?
CREATE TABLE table_name_5 (title VARCHAR, pages VARCHAR, vol__number VARCHAR)
SELECT title FROM table_name_5 WHERE pages > 128 AND vol__number = 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (title VARCHAR, pages VARCHAR, vol__number VARCHAR) Question: What is the title of the edition with more than 128 pages and a volume # of 5? [/INST] SELECT title FROM table_name_5 WHERE pages > 128 AND vol__number = 5 </s>
How many pages does the ISBN 1-40122-328-1 have?
CREATE TABLE table_name_47 (pages INTEGER, isbn VARCHAR)
SELECT SUM(pages) FROM table_name_47 WHERE isbn = "1-40122-328-1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (pages INTEGER, isbn VARCHAR) Question: How many pages does the ISBN 1-40122-328-1 have? [/INST] SELECT SUM(pages) FROM table_name_47 WHERE isbn = "1-40122-328-1" </s>
What position has a height (cm) greater than 180, and brian lawton as the name?
CREATE TABLE table_name_68 (position VARCHAR, height__cm_ VARCHAR, name VARCHAR)
SELECT position FROM table_name_68 WHERE height__cm_ > 180 AND name = "brian lawton"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (position VARCHAR, height__cm_ VARCHAR, name VARCHAR) Question: What position has a height (cm) greater than 180, and brian lawton as the name? [/INST] SELECT position FROM table_name_68 WHERE height__cm_ > 180 AND name = "brian lawton" </s>
What is the lowest jersey # that has evergreen park, illinois as the birthplace, with a weight (km) greater than 86?
CREATE TABLE table_name_62 (jersey__number INTEGER, birthplace VARCHAR, weight__kg_ VARCHAR)
SELECT MIN(jersey__number) FROM table_name_62 WHERE birthplace = "evergreen park, illinois" AND weight__kg_ > 86
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (jersey__number INTEGER, birthplace VARCHAR, weight__kg_ VARCHAR) Question: What is the lowest jersey # that has evergreen park, illinois as the birthplace, with a weight (km) greater than 86? [/INST] SELECT MIN(jersey__number) FROM table_name_62 WHERE birthplace = "evergreen park, illinois" AND weight__kg_ > 86 </s>
How many lost stats have a played number of less than 8?
CREATE TABLE table_name_1 (lost VARCHAR, played INTEGER)
SELECT COUNT(lost) FROM table_name_1 WHERE played < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (lost VARCHAR, played INTEGER) Question: How many lost stats have a played number of less than 8? [/INST] SELECT COUNT(lost) FROM table_name_1 WHERE played < 8 </s>
What is the largest lost stat when the difference is - 19?
CREATE TABLE table_name_36 (lost INTEGER, difference VARCHAR)
SELECT MAX(lost) FROM table_name_36 WHERE difference = "- 19"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (lost INTEGER, difference VARCHAR) Question: What is the largest lost stat when the difference is - 19? [/INST] SELECT MAX(lost) FROM table_name_36 WHERE difference = "- 19" </s>
How many positions have an against of less than 27, and a played number of less than 8?
CREATE TABLE table_name_59 (position VARCHAR, against VARCHAR, played VARCHAR)
SELECT COUNT(position) FROM table_name_59 WHERE against < 27 AND played < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (position VARCHAR, against VARCHAR, played VARCHAR) Question: How many positions have an against of less than 27, and a played number of less than 8? [/INST] SELECT COUNT(position) FROM table_name_59 WHERE against < 27 AND played < 8 </s>
What is Muzzle energy, when Cartridge is .375 remington ultra magnum?
CREATE TABLE table_name_24 (muzzle_energy VARCHAR, cartridge VARCHAR)
SELECT muzzle_energy FROM table_name_24 WHERE cartridge = ".375 remington ultra magnum"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (muzzle_energy VARCHAR, cartridge VARCHAR) Question: What is Muzzle energy, when Cartridge is .375 remington ultra magnum? [/INST] SELECT muzzle_energy FROM table_name_24 WHERE cartridge = ".375 remington ultra magnum" </s>
What is Source, when Cartridge is .375 remington ultra magnum?
CREATE TABLE table_name_62 (source VARCHAR, cartridge VARCHAR)
SELECT source FROM table_name_62 WHERE cartridge = ".375 remington ultra magnum"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (source VARCHAR, cartridge VARCHAR) Question: What is Source, when Cartridge is .375 remington ultra magnum? [/INST] SELECT source FROM table_name_62 WHERE cartridge = ".375 remington ultra magnum" </s>
What is Source, when Cartridge is .375 remington ultra magnum?
CREATE TABLE table_name_67 (source VARCHAR, cartridge VARCHAR)
SELECT source FROM table_name_67 WHERE cartridge = ".375 remington ultra magnum"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (source VARCHAR, cartridge VARCHAR) Question: What is Source, when Cartridge is .375 remington ultra magnum? [/INST] SELECT source FROM table_name_67 WHERE cartridge = ".375 remington ultra magnum" </s>
What is Muzzle energy, when Source is hornady?
CREATE TABLE table_name_16 (muzzle_energy VARCHAR, source VARCHAR)
SELECT muzzle_energy FROM table_name_16 WHERE source = "hornady"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (muzzle_energy VARCHAR, source VARCHAR) Question: What is Muzzle energy, when Source is hornady? [/INST] SELECT muzzle_energy FROM table_name_16 WHERE source = "hornady" </s>
What is Bullet weight, when Source is hornady?
CREATE TABLE table_name_99 (bullet_weight VARCHAR, source VARCHAR)
SELECT bullet_weight FROM table_name_99 WHERE source = "hornady"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (bullet_weight VARCHAR, source VARCHAR) Question: What is Bullet weight, when Source is hornady? [/INST] SELECT bullet_weight FROM table_name_99 WHERE source = "hornady" </s>
Which Format has a Catalog of vcrdx 106?
CREATE TABLE table_name_72 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_72 WHERE catalog = "vcrdx 106"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (format VARCHAR, catalog VARCHAR) Question: Which Format has a Catalog of vcrdx 106? [/INST] SELECT format FROM table_name_72 WHERE catalog = "vcrdx 106" </s>
Which Region has a Catalog of magik muzik 806-5?
CREATE TABLE table_name_19 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_19 WHERE catalog = "magik muzik 806-5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (region VARCHAR, catalog VARCHAR) Question: Which Region has a Catalog of magik muzik 806-5? [/INST] SELECT region FROM table_name_19 WHERE catalog = "magik muzik 806-5" </s>
Which Date has a Catalog of vcrt 106?
CREATE TABLE table_name_6 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_6 WHERE catalog = "vcrt 106"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (date VARCHAR, catalog VARCHAR) Question: Which Date has a Catalog of vcrt 106? [/INST] SELECT date FROM table_name_6 WHERE catalog = "vcrt 106" </s>
What pick was play Jason Webb?
CREATE TABLE table_name_31 (pick INTEGER, player VARCHAR)
SELECT MAX(pick) FROM table_name_31 WHERE player = "jason webb"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (pick INTEGER, player VARCHAR) Question: What pick was play Jason Webb? [/INST] SELECT MAX(pick) FROM table_name_31 WHERE player = "jason webb" </s>
Which colleges have a pick above 7?
CREATE TABLE table_name_27 (college VARCHAR, pick INTEGER)
SELECT college FROM table_name_27 WHERE pick > 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (college VARCHAR, pick INTEGER) Question: Which colleges have a pick above 7? [/INST] SELECT college FROM table_name_27 WHERE pick > 7 </s>
How many teams picked Jason Webb?
CREATE TABLE table_name_62 (pick VARCHAR, player VARCHAR)
SELECT COUNT(pick) FROM table_name_62 WHERE player = "jason webb"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (pick VARCHAR, player VARCHAR) Question: How many teams picked Jason Webb? [/INST] SELECT COUNT(pick) FROM table_name_62 WHERE player = "jason webb" </s>
What is the Total Tax Revenue that has an n.a. Stamp Duty Reserve Tax in the years 1995-96?
CREATE TABLE table_name_75 (over_total_tax_revenue__in__percentage_ VARCHAR, stamp_duty_reserve_tax VARCHAR, year VARCHAR)
SELECT over_total_tax_revenue__in__percentage_ FROM table_name_75 WHERE stamp_duty_reserve_tax = "n.a." AND year = "1995-96"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (over_total_tax_revenue__in__percentage_ VARCHAR, stamp_duty_reserve_tax VARCHAR, year VARCHAR) Question: What is the Total Tax Revenue that has an n.a. Stamp Duty Reserve Tax in the years 1995-96? [/INST] SELECT over_total_tax_revenue__in__percentage_ FROM table_name_75 WHERE stamp_duty_reserve_tax = "n.a." AND year = "1995-96" </s>
What was the lowest Attendance on 8 October 1986?
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_name_1 WHERE date = "8 october 1986"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR) Question: What was the lowest Attendance on 8 October 1986? [/INST] SELECT MIN(attendance) FROM table_name_1 WHERE date = "8 october 1986" </s>
What was the result when Dundee were the Opponent at Venue A on 6 September 1986?
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT result FROM table_name_9 WHERE opponent = "dundee" AND venue = "a" AND date = "6 september 1986"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR, opponent VARCHAR, venue VARCHAR) Question: What was the result when Dundee were the Opponent at Venue A on 6 September 1986? [/INST] SELECT result FROM table_name_9 WHERE opponent = "dundee" AND venue = "a" AND date = "6 september 1986" </s>
What position did the player play who weighed less thna 91 kg and was born on March 5, 1977?
CREATE TABLE table_name_6 (position VARCHAR, weight__kg_ VARCHAR, birthdate VARCHAR)
SELECT position FROM table_name_6 WHERE weight__kg_ < 91 AND birthdate = "march 5, 1977"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (position VARCHAR, weight__kg_ VARCHAR, birthdate VARCHAR) Question: What position did the player play who weighed less thna 91 kg and was born on March 5, 1977? [/INST] SELECT position FROM table_name_6 WHERE weight__kg_ < 91 AND birthdate = "march 5, 1977" </s>
What is the total number of FA trophies of player Neil Grayson, who has more than 2 FA cups and a league greater than 17?
CREATE TABLE table_name_17 (fa_trophy VARCHAR, league VARCHAR, fa_cup VARCHAR, player VARCHAR)
SELECT COUNT(fa_trophy) FROM table_name_17 WHERE fa_cup > 2 AND player = "neil grayson" AND league > 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (fa_trophy VARCHAR, league VARCHAR, fa_cup VARCHAR, player VARCHAR) Question: What is the total number of FA trophies of player Neil Grayson, who has more than 2 FA cups and a league greater than 17? [/INST] SELECT COUNT(fa_trophy) FROM table_name_17 WHERE fa_cup > 2 AND player = "neil grayson" AND league > 17 </s>
What is the sum of FA cups of club Stalybridge Celtic, which has more than 0 FA trophies and a total less than 20?
CREATE TABLE table_name_50 (fa_cup INTEGER, total VARCHAR, fa_trophy VARCHAR, club VARCHAR)
SELECT SUM(fa_cup) FROM table_name_50 WHERE fa_trophy > 0 AND club = "stalybridge celtic" AND total < 20
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (fa_cup INTEGER, total VARCHAR, fa_trophy VARCHAR, club VARCHAR) Question: What is the sum of FA cups of club Stalybridge Celtic, which has more than 0 FA trophies and a total less than 20? [/INST] SELECT SUM(fa_cup) FROM table_name_50 WHERE fa_trophy > 0 AND club = "stalybridge celtic" AND total < 20 </s>
What is the average total of halifax town club, which has a league less than 30 and more than 3 FA cups?
CREATE TABLE table_name_18 (total INTEGER, fa_cup VARCHAR, club VARCHAR, league VARCHAR)
SELECT AVG(total) FROM table_name_18 WHERE club = "halifax town" AND league < 30 AND fa_cup > 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (total INTEGER, fa_cup VARCHAR, club VARCHAR, league VARCHAR) Question: What is the average total of halifax town club, which has a league less than 30 and more than 3 FA cups? [/INST] SELECT AVG(total) FROM table_name_18 WHERE club = "halifax town" AND league < 30 AND fa_cup > 3 </s>
What was the score of the match against roger federer on April 3, 2006?
CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT score FROM table_name_44 WHERE opponent = "roger federer" AND date = "april 3, 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR, date VARCHAR) Question: What was the score of the match against roger federer on April 3, 2006? [/INST] SELECT score FROM table_name_44 WHERE opponent = "roger federer" AND date = "april 3, 2006" </s>
What was the outcome of the match against andy roddick?
CREATE TABLE table_name_78 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_78 WHERE opponent = "andy roddick"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (outcome VARCHAR, opponent VARCHAR) Question: What was the outcome of the match against andy roddick? [/INST] SELECT outcome FROM table_name_78 WHERE opponent = "andy roddick" </s>
What average week has october 8, 1950 as the date?
CREATE TABLE table_name_8 (week INTEGER, date VARCHAR)
SELECT AVG(week) FROM table_name_8 WHERE date = "october 8, 1950"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (week INTEGER, date VARCHAR) Question: What average week has october 8, 1950 as the date? [/INST] SELECT AVG(week) FROM table_name_8 WHERE date = "october 8, 1950" </s>
How many weeks have pittsburgh steelers as the opponent?
CREATE TABLE table_name_89 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_89 WHERE opponent = "pittsburgh steelers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (week VARCHAR, opponent VARCHAR) Question: How many weeks have pittsburgh steelers as the opponent? [/INST] SELECT COUNT(week) FROM table_name_89 WHERE opponent = "pittsburgh steelers" </s>
How many weeks have l 3-17 as the result?
CREATE TABLE table_name_9 (week INTEGER, result VARCHAR)
SELECT SUM(week) FROM table_name_9 WHERE result = "l 3-17"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (week INTEGER, result VARCHAR) Question: How many weeks have l 3-17 as the result? [/INST] SELECT SUM(week) FROM table_name_9 WHERE result = "l 3-17" </s>
What attendance has Washington redskins as the opponent?
CREATE TABLE table_name_89 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_89 WHERE opponent = "washington redskins"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (attendance VARCHAR, opponent VARCHAR) Question: What attendance has Washington redskins as the opponent? [/INST] SELECT attendance FROM table_name_89 WHERE opponent = "washington redskins" </s>
Which Model number has a Frequency of 2000mhz and a Voltage of 0.75-1.2?
CREATE TABLE table_name_57 (model_number VARCHAR, frequency VARCHAR, voltage VARCHAR)
SELECT model_number FROM table_name_57 WHERE frequency = "2000mhz" AND voltage = "0.75-1.2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (model_number VARCHAR, frequency VARCHAR, voltage VARCHAR) Question: Which Model number has a Frequency of 2000mhz and a Voltage of 0.75-1.2? [/INST] SELECT model_number FROM table_name_57 WHERE frequency = "2000mhz" AND voltage = "0.75-1.2" </s>
Which Multi 1 has a Frequency of 2300mhz, and a Release date of q3 2008 and a Model number of turion x2 ultra zm-84?
CREATE TABLE table_name_7 (multi_1 VARCHAR, model_number VARCHAR, frequency VARCHAR, release_date VARCHAR)
SELECT multi_1 FROM table_name_7 WHERE frequency = "2300mhz" AND release_date = "q3 2008" AND model_number = "turion x2 ultra zm-84"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (multi_1 VARCHAR, model_number VARCHAR, frequency VARCHAR, release_date VARCHAR) Question: Which Multi 1 has a Frequency of 2300mhz, and a Release date of q3 2008 and a Model number of turion x2 ultra zm-84? [/INST] SELECT multi_1 FROM table_name_7 WHERE frequency = "2300mhz" AND release_date = "q3 2008" AND model_number = "turion x2 ultra zm-84" </s>
What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008?
CREATE TABLE table_name_64 (voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)
SELECT voltage FROM table_name_64 WHERE frequency = "2000mhz" AND release_date = "q3 2008"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (voltage VARCHAR, frequency VARCHAR, release_date VARCHAR) Question: What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008? [/INST] SELECT voltage FROM table_name_64 WHERE frequency = "2000mhz" AND release_date = "q3 2008" </s>