instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Which tournament had a qf in 2011?
CREATE TABLE table_name_26 (tournament VARCHAR)
SELECT tournament FROM table_name_26 WHERE 2011 = "qf"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (tournament VARCHAR) Question: Which tournament had a qf in 2011? [/INST] SELECT tournament FROM table_name_26 WHERE 2011 = "qf" </s>
What was the score for the 2014 FIFA World Cup Qual. competition?
CREATE TABLE table_name_13 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_13 WHERE competition = "2014 fifa world cup qual."
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (score VARCHAR, competition VARCHAR) Question: What was the score for the 2014 FIFA World Cup Qual. competition? [/INST] SELECT score FROM table_name_13 WHERE competition = "2014 fifa world cup qual." </s>
What is the highest number of matches with less than 2 draws that had an efficiency percent of 25%?
CREATE TABLE table_name_46 (matches INTEGER, draws VARCHAR, efficiency__percentage VARCHAR)
SELECT MAX(matches) FROM table_name_46 WHERE draws < 2 AND efficiency__percentage = "25%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (matches INTEGER, draws VARCHAR, efficiency__percentage VARCHAR) Question: What is the highest number of matches with less than 2 draws that had an efficiency percent of 25%? [/INST] SELECT MAX(matches) FROM table_name_46 WHERE draws < 2 AND efficiency__percentage = "25%" </s>
What is the total number of Draws with less than 4 matches?
CREATE TABLE table_name_27 (draws VARCHAR, matches INTEGER)
SELECT COUNT(draws) FROM table_name_27 WHERE matches < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (draws VARCHAR, matches INTEGER) Question: What is the total number of Draws with less than 4 matches? [/INST] SELECT COUNT(draws) FROM table_name_27 WHERE matches < 4 </s>
What is the average MHz Frequency of radio rezonans?
CREATE TABLE table_name_9 (frequency_mhz INTEGER, program VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_9 WHERE program = "radio rezonans"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (frequency_mhz INTEGER, program VARCHAR) Question: What is the average MHz Frequency of radio rezonans? [/INST] SELECT AVG(frequency_mhz) FROM table_name_9 WHERE program = "radio rezonans" </s>
What date shows a Loss of lilly (2–2)?
CREATE TABLE table_name_80 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_80 WHERE loss = "lilly (2–2)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (date VARCHAR, loss VARCHAR) Question: What date shows a Loss of lilly (2–2)? [/INST] SELECT date FROM table_name_80 WHERE loss = "lilly (2–2)" </s>
What is the loss when the time was 3:16, and a Record of 15–15?
CREATE TABLE table_name_74 (loss VARCHAR, time VARCHAR, record VARCHAR)
SELECT loss FROM table_name_74 WHERE time = "3:16" AND record = "15–15"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (loss VARCHAR, time VARCHAR, record VARCHAR) Question: What is the loss when the time was 3:16, and a Record of 15–15? [/INST] SELECT loss FROM table_name_74 WHERE time = "3:16" AND record = "15–15" </s>
What team was the opponent when the time was 2:57, and a Score of 7–5?
CREATE TABLE table_name_59 (opponent VARCHAR, time VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_59 WHERE time = "2:57" AND score = "7–5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (opponent VARCHAR, time VARCHAR, score VARCHAR) Question: What team was the opponent when the time was 2:57, and a Score of 7–5? [/INST] SELECT opponent FROM table_name_59 WHERE time = "2:57" AND score = "7–5" </s>
What date was the loss of ponson (4–3)?
CREATE TABLE table_name_68 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_68 WHERE loss = "ponson (4–3)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (date VARCHAR, loss VARCHAR) Question: What date was the loss of ponson (4–3)? [/INST] SELECT date FROM table_name_68 WHERE loss = "ponson (4–3)" </s>
What date was the loss of sparks (0–1)?
CREATE TABLE table_name_43 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_43 WHERE loss = "sparks (0–1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (date VARCHAR, loss VARCHAR) Question: What date was the loss of sparks (0–1)? [/INST] SELECT date FROM table_name_43 WHERE loss = "sparks (0–1)" </s>
What is the position of the competition in Tampere, Finland?
CREATE TABLE table_name_62 (position VARCHAR, venue VARCHAR)
SELECT position FROM table_name_62 WHERE venue = "tampere, finland"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (position VARCHAR, venue VARCHAR) Question: What is the position of the competition in Tampere, Finland? [/INST] SELECT position FROM table_name_62 WHERE venue = "tampere, finland" </s>
What is the lowest total that has draws less than 2 and wins less than 1, losses bigger than 1 with a goal difference of 1:2
CREATE TABLE table_name_89 (total INTEGER, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = "1:2" AND losses > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (total INTEGER, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR, wins VARCHAR) Question: What is the lowest total that has draws less than 2 and wins less than 1, losses bigger than 1 with a goal difference of 1:2 [/INST] SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = "1:2" AND losses > 1 </s>
What is the average number of draws that have a total of 1 and a goal difference of 2:0?
CREATE TABLE table_name_67 (draws INTEGER, total VARCHAR, goal_difference VARCHAR)
SELECT AVG(draws) FROM table_name_67 WHERE total = 1 AND goal_difference = "2:0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (draws INTEGER, total VARCHAR, goal_difference VARCHAR) Question: What is the average number of draws that have a total of 1 and a goal difference of 2:0? [/INST] SELECT AVG(draws) FROM table_name_67 WHERE total = 1 AND goal_difference = "2:0" </s>
What is the lowest number of draws that have a goal difference of 0:2 and wins greater than 0?
CREATE TABLE table_name_83 (draws INTEGER, goal_difference VARCHAR, wins VARCHAR)
SELECT MIN(draws) FROM table_name_83 WHERE goal_difference = "0:2" AND wins > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (draws INTEGER, goal_difference VARCHAR, wins VARCHAR) Question: What is the lowest number of draws that have a goal difference of 0:2 and wins greater than 0? [/INST] SELECT MIN(draws) FROM table_name_83 WHERE goal_difference = "0:2" AND wins > 0 </s>
What regular season had an average attendance of 1,242?
CREATE TABLE table_name_89 (reg_season VARCHAR, avg_attendance_† VARCHAR)
SELECT reg_season FROM table_name_89 WHERE avg_attendance_† = "1,242"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (reg_season VARCHAR, avg_attendance_† VARCHAR) Question: What regular season had an average attendance of 1,242? [/INST] SELECT reg_season FROM table_name_89 WHERE avg_attendance_† = "1,242" </s>
What league has an average attendance of 244?
CREATE TABLE table_name_72 (league VARCHAR, avg_attendance_† VARCHAR)
SELECT league FROM table_name_72 WHERE avg_attendance_† = "244"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (league VARCHAR, avg_attendance_† VARCHAR) Question: What league has an average attendance of 244? [/INST] SELECT league FROM table_name_72 WHERE avg_attendance_† = "244" </s>
On what date was the opponent the White Sox and the record 18-13?
CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT date FROM table_name_90 WHERE opponent = "white sox" AND record = "18-13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR, record VARCHAR) Question: On what date was the opponent the White Sox and the record 18-13? [/INST] SELECT date FROM table_name_90 WHERE opponent = "white sox" AND record = "18-13" </s>
What was the average attendance when the record was 19-13?
CREATE TABLE table_name_23 (attendance INTEGER, record VARCHAR)
SELECT AVG(attendance) FROM table_name_23 WHERE record = "19-13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (attendance INTEGER, record VARCHAR) Question: What was the average attendance when the record was 19-13? [/INST] SELECT AVG(attendance) FROM table_name_23 WHERE record = "19-13" </s>
What was the Loss when the opponent was the Rangers and the attendance was greater than 43,211?
CREATE TABLE table_name_57 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_57 WHERE opponent = "rangers" AND attendance > 43 OFFSET 211 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR) Question: What was the Loss when the opponent was the Rangers and the attendance was greater than 43,211? [/INST] SELECT loss FROM table_name_57 WHERE opponent = "rangers" AND attendance > 43 OFFSET 211 ROWS </s>
What was the 2012 result associated with a 2007 finish of 2R and a 2009 of 1R?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT 2012 FROM table_name_18 WHERE 2007 = "2r" AND 2009 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (Id VARCHAR) Question: What was the 2012 result associated with a 2007 finish of 2R and a 2009 of 1R? [/INST] SELECT 2012 FROM table_name_18 WHERE 2007 = "2r" AND 2009 = "1r" </s>
What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R?
CREATE TABLE table_name_2 (Id VARCHAR)
SELECT 2009 FROM table_name_2 WHERE 2012 = "1r" AND 2007 = "2r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (Id VARCHAR) Question: What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R? [/INST] SELECT 2009 FROM table_name_2 WHERE 2012 = "1r" AND 2007 = "2r" </s>
What was the 2008 result associated with a 2009 of A and a 2011 of 2R?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT 2008 FROM table_name_36 WHERE 2009 = "a" AND 2011 = "2r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (Id VARCHAR) Question: What was the 2008 result associated with a 2009 of A and a 2011 of 2R? [/INST] SELECT 2008 FROM table_name_36 WHERE 2009 = "a" AND 2011 = "2r" </s>
In which tournament did Pauline Parmentier finish LQ in 2007?
CREATE TABLE table_name_34 (tournament VARCHAR)
SELECT tournament FROM table_name_34 WHERE 2007 = "lq"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (tournament VARCHAR) Question: In which tournament did Pauline Parmentier finish LQ in 2007? [/INST] SELECT tournament FROM table_name_34 WHERE 2007 = "lq" </s>
Name the player name with matches of 51
CREATE TABLE table_name_23 (player_name VARCHAR, matches VARCHAR)
SELECT player_name FROM table_name_23 WHERE matches = "51"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (player_name VARCHAR, matches VARCHAR) Question: Name the player name with matches of 51 [/INST] SELECT player_name FROM table_name_23 WHERE matches = "51" </s>
Name the position for brazil 2008 with goals of 0 1
CREATE TABLE table_name_6 (position VARCHAR, goals VARCHAR, country VARCHAR, period VARCHAR)
SELECT position FROM table_name_6 WHERE country = "brazil" AND period = "2008" AND goals = "0 1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (position VARCHAR, goals VARCHAR, country VARCHAR, period VARCHAR) Question: Name the position for brazil 2008 with goals of 0 1 [/INST] SELECT position FROM table_name_6 WHERE country = "brazil" AND period = "2008" AND goals = "0 1" </s>
Name the goals with matches of 21
CREATE TABLE table_name_38 (goals VARCHAR, matches VARCHAR)
SELECT goals FROM table_name_38 WHERE matches = "21"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (goals VARCHAR, matches VARCHAR) Question: Name the goals with matches of 21 [/INST] SELECT goals FROM table_name_38 WHERE matches = "21" </s>
Name the period with matches of 0 0 of portugal
CREATE TABLE table_name_56 (period VARCHAR, matches VARCHAR, country VARCHAR)
SELECT period FROM table_name_56 WHERE matches = "0 0" AND country = "portugal"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (period VARCHAR, matches VARCHAR, country VARCHAR) Question: Name the period with matches of 0 0 of portugal [/INST] SELECT period FROM table_name_56 WHERE matches = "0 0" AND country = "portugal" </s>
Name the opponents for round of round 5
CREATE TABLE table_name_9 (opponents VARCHAR, round VARCHAR)
SELECT opponents FROM table_name_9 WHERE round = "round 5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (opponents VARCHAR, round VARCHAR) Question: Name the opponents for round of round 5 [/INST] SELECT opponents FROM table_name_9 WHERE round = "round 5" </s>
Name the attendance for 4 january 2004
CREATE TABLE table_name_72 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_72 WHERE date = "4 january 2004"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (attendance VARCHAR, date VARCHAR) Question: Name the attendance for 4 january 2004 [/INST] SELECT attendance FROM table_name_72 WHERE date = "4 january 2004" </s>
Name the most attendance for 25 january 2004
CREATE TABLE table_name_64 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_64 WHERE date = "25 january 2004"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (attendance INTEGER, date VARCHAR) Question: Name the most attendance for 25 january 2004 [/INST] SELECT MAX(attendance) FROM table_name_64 WHERE date = "25 january 2004" </s>
What is the average Attendance for the final round?
CREATE TABLE table_name_54 (attendance INTEGER, round VARCHAR)
SELECT AVG(attendance) FROM table_name_54 WHERE round = "final"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (attendance INTEGER, round VARCHAR) Question: What is the average Attendance for the final round? [/INST] SELECT AVG(attendance) FROM table_name_54 WHERE round = "final" </s>
What is the smallest number of people to attend a game with an H/A of h and the opponent was Roma?
CREATE TABLE table_name_67 (attendance INTEGER, h___a VARCHAR, opponents VARCHAR)
SELECT MIN(attendance) FROM table_name_67 WHERE h___a = "h" AND opponents = "roma"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (attendance INTEGER, h___a VARCHAR, opponents VARCHAR) Question: What is the smallest number of people to attend a game with an H/A of h and the opponent was Roma? [/INST] SELECT MIN(attendance) FROM table_name_67 WHERE h___a = "h" AND opponents = "roma" </s>
Which game does the quentyn martell have?
CREATE TABLE table_name_54 (game VARCHAR, pov_character VARCHAR)
SELECT game FROM table_name_54 WHERE pov_character = "quentyn martell"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (game VARCHAR, pov_character VARCHAR) Question: Which game does the quentyn martell have? [/INST] SELECT game FROM table_name_54 WHERE pov_character = "quentyn martell" </s>
Which storm has a clash of 3 and a dance of 4?
CREATE TABLE table_name_58 (storm VARCHAR, dance VARCHAR, clash VARCHAR)
SELECT storm FROM table_name_58 WHERE dance = "4" AND clash = "3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (storm VARCHAR, dance VARCHAR, clash VARCHAR) Question: Which storm has a clash of 3 and a dance of 4? [/INST] SELECT storm FROM table_name_58 WHERE dance = "4" AND clash = "3" </s>
Name the melbourne with perth, adelaide and auckland of no with sydney of yes
CREATE TABLE table_name_38 (melbourne VARCHAR, sydney VARCHAR, auckland VARCHAR, perth VARCHAR, adelaide VARCHAR)
SELECT melbourne FROM table_name_38 WHERE perth = "no" AND adelaide = "no" AND auckland = "no" AND sydney = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (melbourne VARCHAR, sydney VARCHAR, auckland VARCHAR, perth VARCHAR, adelaide VARCHAR) Question: Name the melbourne with perth, adelaide and auckland of no with sydney of yes [/INST] SELECT melbourne FROM table_name_38 WHERE perth = "no" AND adelaide = "no" AND auckland = "no" AND sydney = "yes" </s>
Name the gold coast which has an auckland of no and melbourne of yes
CREATE TABLE table_name_88 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT gold_coast FROM table_name_88 WHERE auckland = "no" AND melbourne = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) Question: Name the gold coast which has an auckland of no and melbourne of yes [/INST] SELECT gold_coast FROM table_name_88 WHERE auckland = "no" AND melbourne = "yes" </s>
Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes
CREATE TABLE table_name_53 (sydney VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, perth VARCHAR, adelaide VARCHAR)
SELECT sydney FROM table_name_53 WHERE perth = "no" AND adelaide = "no" AND melbourne = "yes" AND gold_coast = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (sydney VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, perth VARCHAR, adelaide VARCHAR) Question: Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes [/INST] SELECT sydney FROM table_name_53 WHERE perth = "no" AND adelaide = "no" AND melbourne = "yes" AND gold_coast = "yes" </s>
Name the Adelaide for Sydney of yes and Perth of yes
CREATE TABLE table_name_6 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR)
SELECT adelaide FROM table_name_6 WHERE sydney = "yes" AND perth = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR) Question: Name the Adelaide for Sydney of yes and Perth of yes [/INST] SELECT adelaide FROM table_name_6 WHERE sydney = "yes" AND perth = "yes" </s>
Name the melbourne for adelaide of no with auckland of yes and gold coast of yes
CREATE TABLE table_name_49 (melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR, auckland VARCHAR)
SELECT melbourne FROM table_name_49 WHERE adelaide = "no" AND auckland = "yes" AND gold_coast = "no"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR, auckland VARCHAR) Question: Name the melbourne for adelaide of no with auckland of yes and gold coast of yes [/INST] SELECT melbourne FROM table_name_49 WHERE adelaide = "no" AND auckland = "yes" AND gold_coast = "no" </s>
Who is the Prime Minister of Antoine Wehenkel?
CREATE TABLE table_name_71 (Prime VARCHAR, minister VARCHAR)
SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (Prime VARCHAR, minister VARCHAR) Question: Who is the Prime Minister of Antoine Wehenkel? [/INST] SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel" </s>
What is the least amount of wins earlier than 1964 with more than 7 points?
CREATE TABLE table_name_49 (wins INTEGER, year VARCHAR, points VARCHAR)
SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (wins INTEGER, year VARCHAR, points VARCHAR) Question: What is the least amount of wins earlier than 1964 with more than 7 points? [/INST] SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7 </s>
What is the least points for class 125cc with 1 win earlier than 1961?
CREATE TABLE table_name_57 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)
SELECT MIN(points) FROM table_name_57 WHERE class = "125cc" AND wins = 1 AND year < 1961
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR) Question: What is the least points for class 125cc with 1 win earlier than 1961? [/INST] SELECT MIN(points) FROM table_name_57 WHERE class = "125cc" AND wins = 1 AND year < 1961 </s>
What is the number of wins when there are 7 points?
CREATE TABLE table_name_6 (wins VARCHAR, points VARCHAR)
SELECT wins FROM table_name_6 WHERE points = 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (wins VARCHAR, points VARCHAR) Question: What is the number of wins when there are 7 points? [/INST] SELECT wins FROM table_name_6 WHERE points = 7 </s>
What is the least amount of points when there is 1 win?
CREATE TABLE table_name_95 (points INTEGER, wins VARCHAR)
SELECT MIN(points) FROM table_name_95 WHERE wins = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (points INTEGER, wins VARCHAR) Question: What is the least amount of points when there is 1 win? [/INST] SELECT MIN(points) FROM table_name_95 WHERE wins = 1 </s>
What club has more than 35 goals, more than 7 draws, and 20 losses?
CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR)
SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR) Question: What club has more than 35 goals, more than 7 draws, and 20 losses? [/INST] SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20 </s>
How many goals have more than 38 played and more than 9 draws?
CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR)
SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR) Question: How many goals have more than 38 played and more than 9 draws? [/INST] SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38 </s>
How many losses has more than 59 goals against and more than 17 position?
CREATE TABLE table_name_32 (losses INTEGER, goals_against VARCHAR, position VARCHAR)
SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (losses INTEGER, goals_against VARCHAR, position VARCHAR) Question: How many losses has more than 59 goals against and more than 17 position? [/INST] SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17 </s>
On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78?
CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR)
SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR) Question: On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78? [/INST] SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78" </s>
What Nationality's time is 2:07.64?
CREATE TABLE table_name_98 (nationality VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_98 WHERE time = "2:07.64"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (nationality VARCHAR, time VARCHAR) Question: What Nationality's time is 2:07.64? [/INST] SELECT nationality FROM table_name_98 WHERE time = "2:07.64" </s>
What Event's Time is 4:01.00?
CREATE TABLE table_name_4 (event VARCHAR, time VARCHAR)
SELECT event FROM table_name_4 WHERE time = "4:01.00"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (event VARCHAR, time VARCHAR) Question: What Event's Time is 4:01.00? [/INST] SELECT event FROM table_name_4 WHERE time = "4:01.00" </s>
In what Location in the United States the Time 2:25.62?
CREATE TABLE table_name_87 (location VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT location FROM table_name_87 WHERE nationality = "united states" AND time = "2:25.62"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (location VARCHAR, nationality VARCHAR, time VARCHAR) Question: In what Location in the United States the Time 2:25.62? [/INST] SELECT location FROM table_name_87 WHERE nationality = "united states" AND time = "2:25.62" </s>
Year larger than 1975, and a Record of 13–11 is what playoffs?
CREATE TABLE table_name_54 (playoffs VARCHAR, year VARCHAR, record VARCHAR)
SELECT playoffs FROM table_name_54 WHERE year > 1975 AND record = "13–11"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (playoffs VARCHAR, year VARCHAR, record VARCHAR) Question: Year larger than 1975, and a Record of 13–11 is what playoffs? [/INST] SELECT playoffs FROM table_name_54 WHERE year > 1975 AND record = "13–11" </s>
What are the venues prior to 2005 in the World Class category that resulted in a bronze?
CREATE TABLE table_name_57 (venue VARCHAR, result VARCHAR, year VARCHAR, category VARCHAR)
SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (venue VARCHAR, result VARCHAR, year VARCHAR, category VARCHAR) Question: What are the venues prior to 2005 in the World Class category that resulted in a bronze? [/INST] SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze" </s>
What are the competitions that occurred before 2006 in SVK Nitra?
CREATE TABLE table_name_10 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_10 WHERE year < 2006 AND venue = "svk nitra"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (competition VARCHAR, year VARCHAR, venue VARCHAR) Question: What are the competitions that occurred before 2006 in SVK Nitra? [/INST] SELECT competition FROM table_name_10 WHERE year < 2006 AND venue = "svk nitra" </s>
What are the categories of events that occurred after 2007 that were World Championships?
CREATE TABLE table_name_93 (category VARCHAR, year VARCHAR, competition VARCHAR)
SELECT category FROM table_name_93 WHERE year > 2007 AND competition = "world championships"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (category VARCHAR, year VARCHAR, competition VARCHAR) Question: What are the categories of events that occurred after 2007 that were World Championships? [/INST] SELECT category FROM table_name_93 WHERE year > 2007 AND competition = "world championships" </s>
What was the result of events held at Nor Elverum, prior to 2010?
CREATE TABLE table_name_22 (result VARCHAR, year VARCHAR, venue VARCHAR)
SELECT result FROM table_name_22 WHERE year < 2010 AND venue = "nor elverum"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (result VARCHAR, year VARCHAR, venue VARCHAR) Question: What was the result of events held at Nor Elverum, prior to 2010? [/INST] SELECT result FROM table_name_22 WHERE year < 2010 AND venue = "nor elverum" </s>
What was the competition held in 2003?
CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR)
SELECT competition FROM table_name_17 WHERE year = 2003
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR) Question: What was the competition held in 2003? [/INST] SELECT competition FROM table_name_17 WHERE year = 2003 </s>
What chassis type does a scuderia ferrari with more than 1 point have?
CREATE TABLE table_name_33 (chassis VARCHAR, entrant VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_33 WHERE entrant = "scuderia ferrari" AND points > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (chassis VARCHAR, entrant VARCHAR, points VARCHAR) Question: What chassis type does a scuderia ferrari with more than 1 point have? [/INST] SELECT chassis FROM table_name_33 WHERE entrant = "scuderia ferrari" AND points > 1 </s>
A ferrari flat-12 engine with more than 1 point has what kind of chassis?
CREATE TABLE table_name_80 (chassis VARCHAR, engine VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (chassis VARCHAR, engine VARCHAR, points VARCHAR) Question: A ferrari flat-12 engine with more than 1 point has what kind of chassis? [/INST] SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 1 </s>
What is the average year for a merzario a2 chassis?
CREATE TABLE table_name_91 (year INTEGER, chassis VARCHAR)
SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (year INTEGER, chassis VARCHAR) Question: What is the average year for a merzario a2 chassis? [/INST] SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2" </s>
What was the team's record when they played visitor team Chicago Black Hawks on November 24?
CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR) Question: What was the team's record when they played visitor team Chicago Black Hawks on November 24? [/INST] SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24" </s>
What is the name of the visitor team who played home team Chicago Black Hawks on March 20?
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "march 20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR) Question: What is the name of the visitor team who played home team Chicago Black Hawks on March 20? [/INST] SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "march 20" </s>
What was the team's record on November 12?
CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_38 WHERE date = "november 12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR) Question: What was the team's record on November 12? [/INST] SELECT record FROM table_name_38 WHERE date = "november 12" </s>
What champion has 1981 as the year?
CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR)
SELECT champion FROM table_name_33 WHERE year = "1981"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR) Question: What champion has 1981 as the year? [/INST] SELECT champion FROM table_name_33 WHERE year = "1981" </s>
What date final has 1982 as the year?
CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR)
SELECT date_final FROM table_name_59 WHERE year = "1982"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR) Question: What date final has 1982 as the year? [/INST] SELECT date_final FROM table_name_59 WHERE year = "1982" </s>
What prize money has michelob light challenge of champions as the commercial name?
CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR)
SELECT prize_money FROM table_name_56 WHERE commercial_name = "michelob light challenge of champions"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR) Question: What prize money has michelob light challenge of champions as the commercial name? [/INST] SELECT prize_money FROM table_name_56 WHERE commercial_name = "michelob light challenge of champions" </s>
What date final has 1989 as the year?
CREATE TABLE table_name_90 (date_final VARCHAR, year VARCHAR)
SELECT date_final FROM table_name_90 WHERE year = "1989"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (date_final VARCHAR, year VARCHAR) Question: What date final has 1989 as the year? [/INST] SELECT date_final FROM table_name_90 WHERE year = "1989" </s>
What score in final has boris becker as the champion?
CREATE TABLE table_name_54 (score_in_final VARCHAR, champion VARCHAR)
SELECT score_in_final FROM table_name_54 WHERE champion = "boris becker"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (score_in_final VARCHAR, champion VARCHAR) Question: What score in final has boris becker as the champion? [/INST] SELECT score_in_final FROM table_name_54 WHERE champion = "boris becker" </s>
What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957
CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR) Question: What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957 [/INST] SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957 </s>
What 1957 engine has a Chassis of connaught type b?
CREATE TABLE table_name_71 (engine VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT engine FROM table_name_71 WHERE chassis = "connaught type b" AND year > 1957
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (engine VARCHAR, chassis VARCHAR, year VARCHAR) Question: What 1957 engine has a Chassis of connaught type b? [/INST] SELECT engine FROM table_name_71 WHERE chassis = "connaught type b" AND year > 1957 </s>
When was the winning score βˆ’9 (72-68-64-67=271)?
CREATE TABLE table_name_89 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_89 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (date VARCHAR, winning_score VARCHAR) Question: When was the winning score βˆ’9 (72-68-64-67=271)? [/INST] SELECT date FROM table_name_89 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271) </s>
What was the margin of victory for the Mississippi Gulf Resort Classic?
CREATE TABLE table_name_77 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_77 WHERE tournament = "mississippi gulf resort classic"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (margin_of_victory VARCHAR, tournament VARCHAR) Question: What was the margin of victory for the Mississippi Gulf Resort Classic? [/INST] SELECT margin_of_victory FROM table_name_77 WHERE tournament = "mississippi gulf resort classic" </s>
What was the margin of victory when Mark Calcavecchia was the runner-up?
CREATE TABLE table_name_53 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (margin_of_victory VARCHAR, runner_s__up VARCHAR) Question: What was the margin of victory when Mark Calcavecchia was the runner-up? [/INST] SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia" </s>
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?
CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) Question: What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory? [/INST] SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic" </s>
What was the margin of victory when the winning score was βˆ’9 (72-68-64-67=271)?
CREATE TABLE table_name_84 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_84 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (margin_of_victory VARCHAR, winning_score VARCHAR) Question: What was the margin of victory when the winning score was βˆ’9 (72-68-64-67=271)? [/INST] SELECT margin_of_victory FROM table_name_84 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271) </s>
What is the average round for te position?
CREATE TABLE table_name_65 (round INTEGER, position VARCHAR)
SELECT AVG(round) FROM table_name_65 WHERE position = "te"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (round INTEGER, position VARCHAR) Question: What is the average round for te position? [/INST] SELECT AVG(round) FROM table_name_65 WHERE position = "te" </s>
Name the average overall for james davis
CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR)
SELECT AVG(overall) FROM table_name_91 WHERE player = "james davis"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR) Question: Name the average overall for james davis [/INST] SELECT AVG(overall) FROM table_name_91 WHERE player = "james davis" </s>
Name the most overall for james davis and round more than 5
CREATE TABLE table_name_89 (overall INTEGER, player VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (overall INTEGER, player VARCHAR, round VARCHAR) Question: Name the most overall for james davis and round more than 5 [/INST] SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 5 </s>
Name the total number of overall for villanova and round less than 2
CREATE TABLE table_name_20 (overall VARCHAR, college VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_20 WHERE college = "villanova" AND round < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (overall VARCHAR, college VARCHAR, round VARCHAR) Question: Name the total number of overall for villanova and round less than 2 [/INST] SELECT COUNT(overall) FROM table_name_20 WHERE college = "villanova" AND round < 2 </s>
Which state is Mount Chiginagak located in?
CREATE TABLE table_name_8 (state VARCHAR, mountain_peak VARCHAR)
SELECT state FROM table_name_8 WHERE mountain_peak = "mount chiginagak"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (state VARCHAR, mountain_peak VARCHAR) Question: Which state is Mount Chiginagak located in? [/INST] SELECT state FROM table_name_8 WHERE mountain_peak = "mount chiginagak" </s>
What were the circumstances for the Baghlan location?
CREATE TABLE table_name_62 (circumstances VARCHAR, location VARCHAR)
SELECT circumstances FROM table_name_62 WHERE location = "baghlan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (circumstances VARCHAR, location VARCHAR) Question: What were the circumstances for the Baghlan location? [/INST] SELECT circumstances FROM table_name_62 WHERE location = "baghlan" </s>
What were the casualties in the Baghlan location?
CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR)
SELECT casualties FROM table_name_64 WHERE location = "baghlan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR) Question: What were the casualties in the Baghlan location? [/INST] SELECT casualties FROM table_name_64 WHERE location = "baghlan" </s>
What was the date of natural cause situation?
CREATE TABLE table_name_12 (date VARCHAR, circumstances VARCHAR)
SELECT date FROM table_name_12 WHERE circumstances = "natural cause"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (date VARCHAR, circumstances VARCHAR) Question: What was the date of natural cause situation? [/INST] SELECT date FROM table_name_12 WHERE circumstances = "natural cause" </s>
Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?
CREATE TABLE table_name_49 (gold_coast VARCHAR, auckland VARCHAR, perth VARCHAR, sydney VARCHAR)
SELECT gold_coast FROM table_name_49 WHERE perth = "no" AND sydney = "yes" AND auckland = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (gold_coast VARCHAR, auckland VARCHAR, perth VARCHAR, sydney VARCHAR) Question: Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes? [/INST] SELECT gold_coast FROM table_name_49 WHERE perth = "no" AND sydney = "yes" AND auckland = "yes" </s>
Which Melbourne has an Auckland of no, and a Gold Coast of no?
CREATE TABLE table_name_14 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR)
SELECT melbourne FROM table_name_14 WHERE auckland = "no" AND gold_coast = "no"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR) Question: Which Melbourne has an Auckland of no, and a Gold Coast of no? [/INST] SELECT melbourne FROM table_name_14 WHERE auckland = "no" AND gold_coast = "no" </s>
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?
CREATE TABLE table_name_2 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT adelaide FROM table_name_2 WHERE melbourne = "yes" AND auckland = "yes" AND perth = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR) Question: Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes? [/INST] SELECT adelaide FROM table_name_2 WHERE melbourne = "yes" AND auckland = "yes" AND perth = "yes" </s>
Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no?
CREATE TABLE table_name_27 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, melbourne VARCHAR)
SELECT sydney FROM table_name_27 WHERE perth = "no" AND melbourne = "yes" AND gold_coast = "no"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, melbourne VARCHAR) Question: Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no? [/INST] SELECT sydney FROM table_name_27 WHERE perth = "no" AND melbourne = "yes" AND gold_coast = "no" </s>
Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?
CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR)
SELECT auckland FROM table_name_1 WHERE adelaide = "no" AND melbourne = "yes" AND sydney = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR) Question: Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes? [/INST] SELECT auckland FROM table_name_1 WHERE adelaide = "no" AND melbourne = "yes" AND sydney = "yes" </s>
Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?
CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR) Question: Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled? [/INST] SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled" </s>
Who is the owner of RSS Racing that driver Ryan Sieg belongs to?
CREATE TABLE table_name_75 (owner_s_ VARCHAR, team VARCHAR, driver_s_ VARCHAR)
SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (owner_s_ VARCHAR, team VARCHAR, driver_s_ VARCHAR) Question: Who is the owner of RSS Racing that driver Ryan Sieg belongs to? [/INST] SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg" </s>
Parts Plus sponsors what driver?
CREATE TABLE table_name_21 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR) Question: Parts Plus sponsors what driver? [/INST] SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus" </s>
Who is the owner of NTS Motorsports sponsored by Qore-24?
CREATE TABLE table_name_61 (owner_s_ VARCHAR, team VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (owner_s_ VARCHAR, team VARCHAR, primary_sponsor_s_ VARCHAR) Question: Who is the owner of NTS Motorsports sponsored by Qore-24? [/INST] SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24" </s>
Who is the crew chief, of driver Matt kurzejewski?
CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR)
SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR) Question: Who is the crew chief, of driver Matt kurzejewski? [/INST] SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski" </s>
Who is the driver that has a crew chief Gary Ritter?
CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR) Question: Who is the driver that has a crew chief Gary Ritter? [/INST] SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter" </s>
what is the award for the 2009 songwriter of the year?
CREATE TABLE table_name_24 (award VARCHAR, year VARCHAR, category VARCHAR)
SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (award VARCHAR, year VARCHAR, category VARCHAR) Question: what is the award for the 2009 songwriter of the year? [/INST] SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year" </s>
what is the category that has the people's choice awards?
CREATE TABLE table_name_38 (category VARCHAR, award VARCHAR)
SELECT category FROM table_name_38 WHERE award = "people's choice awards"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (category VARCHAR, award VARCHAR) Question: what is the category that has the people's choice awards? [/INST] SELECT category FROM table_name_38 WHERE award = "people's choice awards" </s>
what year has general nominated in the category or choice breakthrough artist?
CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR)
SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR) Question: what year has general nominated in the category or choice breakthrough artist? [/INST] SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist" </s>
What was the score on 6 February 2008?
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_35 WHERE date = "6 february 2008"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR) Question: What was the score on 6 February 2008? [/INST] SELECT score FROM table_name_35 WHERE date = "6 february 2008" </s>
Which competition was held on 14 November 2012?
CREATE TABLE table_name_41 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_41 WHERE date = "14 november 2012"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (competition VARCHAR, date VARCHAR) Question: Which competition was held on 14 November 2012? [/INST] SELECT competition FROM table_name_41 WHERE date = "14 november 2012" </s>
What competition took place on 10 August 2011?
CREATE TABLE table_name_85 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_85 WHERE date = "10 august 2011"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (competition VARCHAR, date VARCHAR) Question: What competition took place on 10 August 2011? [/INST] SELECT competition FROM table_name_85 WHERE date = "10 august 2011" </s>