instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Name the nation with rank more than 9
CREATE TABLE table_name_77 (nation VARCHAR, rank INTEGER)
SELECT nation FROM table_name_77 WHERE rank > 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (nation VARCHAR, rank INTEGER) Question: Name the nation with rank more than 9 [/INST] SELECT nation FROM table_name_77 WHERE rank > 9 </s>
Name the least bronze for silver being less than 0
CREATE TABLE table_name_45 (bronze INTEGER, silver INTEGER)
SELECT MIN(bronze) FROM table_name_45 WHERE silver < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (bronze INTEGER, silver INTEGER) Question: Name the least bronze for silver being less than 0 [/INST] SELECT MIN(bronze) FROM table_name_45 WHERE silver < 0 </s>
Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1
CREATE TABLE table_name_90 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT SUM(rank) FROM table_name_90 WHERE bronze < 1 AND gold = 1 AND total < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR) Question: Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1 [/INST] SELECT SUM(rank) FROM table_name_90 WHERE bronze < 1 AND gold = 1 AND total < 1 </s>
Name the sum of rank for silver less than 0
CREATE TABLE table_name_55 (rank INTEGER, silver INTEGER)
SELECT SUM(rank) FROM table_name_55 WHERE silver < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (rank INTEGER, silver INTEGER) Question: Name the sum of rank for silver less than 0 [/INST] SELECT SUM(rank) FROM table_name_55 WHERE silver < 0 </s>
Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1
CREATE TABLE table_name_5 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MIN(rank) FROM table_name_5 WHERE silver < 1 AND total > 1 AND bronze < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) Question: Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1 [/INST] SELECT MIN(rank) FROM table_name_5 WHERE silver < 1 AND total > 1 AND bronze < 1 </s>
What was the date of the game in which the series was 1-4?
CREATE TABLE table_name_90 (date VARCHAR, series VARCHAR)
SELECT date FROM table_name_90 WHERE series = "1-4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (date VARCHAR, series VARCHAR) Question: What was the date of the game in which the series was 1-4? [/INST] SELECT date FROM table_name_90 WHERE series = "1-4" </s>
What is the Score that has a Home of montreal canadiens on april 11?
CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 11"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR) Question: What is the Score that has a Home of montreal canadiens on april 11? [/INST] SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 11" </s>
What is the Record on april 13?
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_32 WHERE date = "april 13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR) Question: What is the Record on april 13? [/INST] SELECT record FROM table_name_32 WHERE date = "april 13" </s>
When is Home of chicago black hawks has a Record of 0–1?
CREATE TABLE table_name_57 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_57 WHERE home = "chicago black hawks" AND record = "0–1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (date VARCHAR, home VARCHAR, record VARCHAR) Question: When is Home of chicago black hawks has a Record of 0–1? [/INST] SELECT date FROM table_name_57 WHERE home = "chicago black hawks" AND record = "0–1" </s>
What is the Date that chicago black hawks has a Record of 2–2?
CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT date FROM table_name_5 WHERE visitor = "chicago black hawks" AND record = "2–2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR) Question: What is the Date that chicago black hawks has a Record of 2–2? [/INST] SELECT date FROM table_name_5 WHERE visitor = "chicago black hawks" AND record = "2–2" </s>
Which Record has a Score of 0–2?
CREATE TABLE table_name_38 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_38 WHERE score = "0–2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (record VARCHAR, score VARCHAR) Question: Which Record has a Score of 0–2? [/INST] SELECT record FROM table_name_38 WHERE score = "0–2" </s>
Who is the visitor on April 5?
CREATE TABLE table_name_8 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_8 WHERE date = "april 5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (visitor VARCHAR, date VARCHAR) Question: Who is the visitor on April 5? [/INST] SELECT visitor FROM table_name_8 WHERE date = "april 5" </s>
What is the Team, when the Year is 2011?
CREATE TABLE table_name_14 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_14 WHERE year = "2011"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (team VARCHAR, year VARCHAR) Question: What is the Team, when the Year is 2011? [/INST] SELECT team FROM table_name_14 WHERE year = "2011" </s>
What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greater than 0, and when the vale for Solo is 71?
CREATE TABLE table_name_68 (int_yds VARCHAR, solo VARCHAR, team VARCHAR, sacks VARCHAR)
SELECT int_yds FROM table_name_68 WHERE team = "new orleans saints" AND sacks > 0 AND solo = 71
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (int_yds VARCHAR, solo VARCHAR, team VARCHAR, sacks VARCHAR) Question: What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greater than 0, and when the vale for Solo is 71? [/INST] SELECT int_yds FROM table_name_68 WHERE team = "new orleans saints" AND sacks > 0 AND solo = 71 </s>
What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132?
CREATE TABLE table_name_22 (sacks INTEGER, team VARCHAR, tackles VARCHAR)
SELECT MIN(sacks) FROM table_name_22 WHERE team = "new orleans saints" AND tackles = "132"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (sacks INTEGER, team VARCHAR, tackles VARCHAR) Question: What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132? [/INST] SELECT MIN(sacks) FROM table_name_22 WHERE team = "new orleans saints" AND tackles = "132" </s>
What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1?
CREATE TABLE table_name_75 (tackles VARCHAR, int_yds VARCHAR, solo VARCHAR, sacks VARCHAR)
SELECT tackles FROM table_name_75 WHERE solo > 67 AND sacks < 2 AND int_yds > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (tackles VARCHAR, int_yds VARCHAR, solo VARCHAR, sacks VARCHAR) Question: What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1? [/INST] SELECT tackles FROM table_name_75 WHERE solo > 67 AND sacks < 2 AND int_yds > 1 </s>
What is the total value for Solo, when the value of Sacks is 2, and when the Team is New York Jets?
CREATE TABLE table_name_45 (solo VARCHAR, sacks VARCHAR, team VARCHAR)
SELECT COUNT(solo) FROM table_name_45 WHERE sacks = 2 AND team = "new york jets"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (solo VARCHAR, sacks VARCHAR, team VARCHAR) Question: What is the total value for Solo, when the value of Sacks is 2, and when the Team is New York Jets? [/INST] SELECT COUNT(solo) FROM table_name_45 WHERE sacks = 2 AND team = "new york jets" </s>
What is the outcome of the match with a score of 6–4, 6–1?
CREATE TABLE table_name_39 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_39 WHERE score = "6–4, 6–1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (outcome VARCHAR, score VARCHAR) Question: What is the outcome of the match with a score of 6–4, 6–1? [/INST] SELECT outcome FROM table_name_39 WHERE score = "6–4, 6–1" </s>
What date was the match on a clay surface against Andrea Hlaváčková?
CREATE TABLE table_name_55 (date VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_55 WHERE surface = "clay" AND opponent = "andrea hlaváčková"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (date VARCHAR, surface VARCHAR, opponent VARCHAR) Question: What date was the match on a clay surface against Andrea Hlaváčková? [/INST] SELECT date FROM table_name_55 WHERE surface = "clay" AND opponent = "andrea hlaváčková" </s>
What is the name of the opponent at the Herceg Novi tournament?
CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_54 WHERE tournament = "herceg novi"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR) Question: What is the name of the opponent at the Herceg Novi tournament? [/INST] SELECT opponent FROM table_name_54 WHERE tournament = "herceg novi" </s>
What was the loss of the game when the record was 50-32?
CREATE TABLE table_name_81 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_81 WHERE record = "50-32"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (loss VARCHAR, record VARCHAR) Question: What was the loss of the game when the record was 50-32? [/INST] SELECT loss FROM table_name_81 WHERE record = "50-32" </s>
Who was the opponent with a result of l 14–6?
CREATE TABLE table_name_6 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_6 WHERE result = "l 14–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (opponent VARCHAR, result VARCHAR) Question: Who was the opponent with a result of l 14–6? [/INST] SELECT opponent FROM table_name_6 WHERE result = "l 14–6" </s>
What is the sum of all attendance on November 17, 1961?
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_40 WHERE date = "november 17, 1961"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR) Question: What is the sum of all attendance on November 17, 1961? [/INST] SELECT SUM(attendance) FROM table_name_40 WHERE date = "november 17, 1961" </s>
What is the smallest attendance in week 5?
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_18 WHERE week = 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR) Question: What is the smallest attendance in week 5? [/INST] SELECT MIN(attendance) FROM table_name_18 WHERE week = 5 </s>
Name the 3rd for season less than 4 and lost of 61
CREATE TABLE table_name_19 (season VARCHAR, lost VARCHAR)
SELECT 3 AS _rd FROM table_name_19 WHERE season < 4 AND lost = 61
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (season VARCHAR, lost VARCHAR) Question: Name the 3rd for season less than 4 and lost of 61 [/INST] SELECT 3 AS _rd FROM table_name_19 WHERE season < 4 AND lost = 61 </s>
What is the sum of matches played that has a year of first match before 2000, fewer than 21 lost, and 0 drawn?
CREATE TABLE table_name_27 (played INTEGER, drawn VARCHAR, first_game VARCHAR, lost VARCHAR)
SELECT SUM(played) FROM table_name_27 WHERE first_game < 2000 AND lost < 21 AND drawn < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (played INTEGER, drawn VARCHAR, first_game VARCHAR, lost VARCHAR) Question: What is the sum of matches played that has a year of first match before 2000, fewer than 21 lost, and 0 drawn? [/INST] SELECT SUM(played) FROM table_name_27 WHERE first_game < 2000 AND lost < 21 AND drawn < 0 </s>
What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses?
CREATE TABLE table_name_14 (played INTEGER, lost VARCHAR, drawn VARCHAR, percentage VARCHAR)
SELECT MIN(played) FROM table_name_14 WHERE drawn > 0 AND percentage = "12.50%" AND lost < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (played INTEGER, lost VARCHAR, drawn VARCHAR, percentage VARCHAR) Question: What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses? [/INST] SELECT MIN(played) FROM table_name_14 WHERE drawn > 0 AND percentage = "12.50%" AND lost < 3 </s>
What's the total value of សាមសិប?
CREATE TABLE table_name_2 (value INTEGER, word_form VARCHAR)
SELECT SUM(value) FROM table_name_2 WHERE word_form = "សាមសិប"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (value INTEGER, word_form VARCHAR) Question: What's the total value of សាមសិប? [/INST] SELECT SUM(value) FROM table_name_2 WHERE word_form = "សាមសិប" </s>
What can you say is the word from of sam sep?
CREATE TABLE table_name_30 (word_form VARCHAR, other VARCHAR)
SELECT word_form FROM table_name_30 WHERE other = "sam sep"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (word_form VARCHAR, other VARCHAR) Question: What can you say is the word from of sam sep? [/INST] SELECT word_form FROM table_name_30 WHERE other = "sam sep" </s>
What is smallest Khmer valued less than 90 have a kau sip ALA-LC?
CREATE TABLE table_name_9 (khmer INTEGER, ala_lc VARCHAR, value VARCHAR)
SELECT MIN(khmer) FROM table_name_9 WHERE ala_lc = "kau sip" AND value < 90
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (khmer INTEGER, ala_lc VARCHAR, value VARCHAR) Question: What is smallest Khmer valued less than 90 have a kau sip ALA-LC? [/INST] SELECT MIN(khmer) FROM table_name_9 WHERE ala_lc = "kau sip" AND value < 90 </s>
How much is the total value of kau sĕb UNGEGN ?
CREATE TABLE table_name_73 (value INTEGER, ungegn VARCHAR)
SELECT SUM(value) FROM table_name_73 WHERE ungegn = "kau sĕb"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (value INTEGER, ungegn VARCHAR) Question: How much is the total value of kau sĕb UNGEGN ? [/INST] SELECT SUM(value) FROM table_name_73 WHERE ungegn = "kau sĕb" </s>
What is the lowest number of losses for the club cádiz cf?
CREATE TABLE table_name_79 (losses INTEGER, club VARCHAR)
SELECT MIN(losses) FROM table_name_79 WHERE club = "cádiz cf"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (losses INTEGER, club VARCHAR) Question: What is the lowest number of losses for the club cádiz cf? [/INST] SELECT MIN(losses) FROM table_name_79 WHERE club = "cádiz cf" </s>
What is the name of the artist with a Single / Pack of guitar hero track pack 1?
CREATE TABLE table_name_41 (artist VARCHAR, single___pack VARCHAR)
SELECT artist FROM table_name_41 WHERE single___pack = "guitar hero track pack 1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (artist VARCHAR, single___pack VARCHAR) Question: What is the name of the artist with a Single / Pack of guitar hero track pack 1? [/INST] SELECT artist FROM table_name_41 WHERE single___pack = "guitar hero track pack 1" </s>
What was the record at the game that had a loss of Lemanczyk (0–1)?
CREATE TABLE table_name_34 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_34 WHERE loss = "lemanczyk (0–1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (record VARCHAR, loss VARCHAR) Question: What was the record at the game that had a loss of Lemanczyk (0–1)? [/INST] SELECT record FROM table_name_34 WHERE loss = "lemanczyk (0–1)" </s>
Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at what time?
CREATE TABLE table_name_29 (time VARCHAR, date VARCHAR, game VARCHAR, location VARCHAR)
SELECT time FROM table_name_29 WHERE game > 1 AND location = "comiskey park (i)" AND date = "october 9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (time VARCHAR, date VARCHAR, game VARCHAR, location VARCHAR) Question: Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at what time? [/INST] SELECT time FROM table_name_29 WHERE game > 1 AND location = "comiskey park (i)" AND date = "october 9" </s>
Date of october 8 happened at what time?
CREATE TABLE table_name_1 (time VARCHAR, date VARCHAR)
SELECT time FROM table_name_1 WHERE date = "october 8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (time VARCHAR, date VARCHAR) Question: Date of october 8 happened at what time? [/INST] SELECT time FROM table_name_1 WHERE date = "october 8" </s>
Game 1's sum of attendance is?
CREATE TABLE table_name_4 (attendance INTEGER, game VARCHAR)
SELECT SUM(attendance) FROM table_name_4 WHERE game = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (attendance INTEGER, game VARCHAR) Question: Game 1's sum of attendance is? [/INST] SELECT SUM(attendance) FROM table_name_4 WHERE game = 1 </s>
What was the finish of the winner of the 2000 Masters?
CREATE TABLE table_name_54 (finish VARCHAR, year_s__won VARCHAR)
SELECT finish FROM table_name_54 WHERE year_s__won = "2000"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (finish VARCHAR, year_s__won VARCHAR) Question: What was the finish of the winner of the 2000 Masters? [/INST] SELECT finish FROM table_name_54 WHERE year_s__won = "2000" </s>
For the player from Fiji, what was his finish?
CREATE TABLE table_name_83 (finish VARCHAR, country VARCHAR)
SELECT finish FROM table_name_83 WHERE country = "fiji"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (finish VARCHAR, country VARCHAR) Question: For the player from Fiji, what was his finish? [/INST] SELECT finish FROM table_name_83 WHERE country = "fiji" </s>
For the player finishing at +8, what is his nationality?
CREATE TABLE table_name_91 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_91 WHERE to_par = "+8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (country VARCHAR, to_par VARCHAR) Question: For the player finishing at +8, what is his nationality? [/INST] SELECT country FROM table_name_91 WHERE to_par = "+8" </s>
What was the score of the game that had a record of 52–103?
CREATE TABLE table_name_14 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_14 WHERE record = "52–103"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (score VARCHAR, record VARCHAR) Question: What was the score of the game that had a record of 52–103? [/INST] SELECT score FROM table_name_14 WHERE record = "52–103" </s>
What was the date of the game when the record was 53–104?
CREATE TABLE table_name_89 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_89 WHERE record = "53–104"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (date VARCHAR, record VARCHAR) Question: What was the date of the game when the record was 53–104? [/INST] SELECT date FROM table_name_89 WHERE record = "53–104" </s>
What was the record at the game that had a loss of Huffman (6–18)?
CREATE TABLE table_name_49 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_49 WHERE loss = "huffman (6–18)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (record VARCHAR, loss VARCHAR) Question: What was the record at the game that had a loss of Huffman (6–18)? [/INST] SELECT record FROM table_name_49 WHERE loss = "huffman (6–18)" </s>
Which format is released on August 29, 1998?
CREATE TABLE table_name_72 (format VARCHAR, date VARCHAR)
SELECT format FROM table_name_72 WHERE date = "august 29, 1998"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (format VARCHAR, date VARCHAR) Question: Which format is released on August 29, 1998? [/INST] SELECT format FROM table_name_72 WHERE date = "august 29, 1998" </s>
What is the catalog number for the January 25, 1987 release?
CREATE TABLE table_name_5 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_5 WHERE date = "january 25, 1987"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (catalog VARCHAR, date VARCHAR) Question: What is the catalog number for the January 25, 1987 release? [/INST] SELECT catalog FROM table_name_5 WHERE date = "january 25, 1987" </s>
Which format is released on May 27, 2009?
CREATE TABLE table_name_31 (format VARCHAR, date VARCHAR)
SELECT format FROM table_name_31 WHERE date = "may 27, 2009"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (format VARCHAR, date VARCHAR) Question: Which format is released on May 27, 2009? [/INST] SELECT format FROM table_name_31 WHERE date = "may 27, 2009" </s>
What is the catalog number of the May 27, 2009 release?
CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_89 WHERE date = "may 27, 2009"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR) Question: What is the catalog number of the May 27, 2009 release? [/INST] SELECT catalog FROM table_name_89 WHERE date = "may 27, 2009" </s>
What is the release date of a CD with the catalog number ALCA-9206?
CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_87 WHERE format = "cd" AND catalog = "alca-9206"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR, catalog VARCHAR) Question: What is the release date of a CD with the catalog number ALCA-9206? [/INST] SELECT date FROM table_name_87 WHERE format = "cd" AND catalog = "alca-9206" </s>
Which format is released on May 27, 2009?
CREATE TABLE table_name_77 (format VARCHAR, date VARCHAR)
SELECT format FROM table_name_77 WHERE date = "may 27, 2009"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (format VARCHAR, date VARCHAR) Question: Which format is released on May 27, 2009? [/INST] SELECT format FROM table_name_77 WHERE date = "may 27, 2009" </s>
What was the average of points with ranks smaller than 7 but with total point games of 113?
CREATE TABLE table_name_24 (total_points INTEGER, games VARCHAR, rank VARCHAR)
SELECT AVG(total_points) FROM table_name_24 WHERE games = 113 AND rank < 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (total_points INTEGER, games VARCHAR, rank VARCHAR) Question: What was the average of points with ranks smaller than 7 but with total point games of 113? [/INST] SELECT AVG(total_points) FROM table_name_24 WHERE games = 113 AND rank < 7 </s>
What is the sum of the roll with an area of Waikaka?
CREATE TABLE table_name_11 (roll INTEGER, area VARCHAR)
SELECT SUM(roll) FROM table_name_11 WHERE area = "waikaka"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (roll INTEGER, area VARCHAR) Question: What is the sum of the roll with an area of Waikaka? [/INST] SELECT SUM(roll) FROM table_name_11 WHERE area = "waikaka" </s>
What is the roll number for East Gore School?
CREATE TABLE table_name_21 (roll VARCHAR, name VARCHAR)
SELECT COUNT(roll) FROM table_name_21 WHERE name = "east gore school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (roll VARCHAR, name VARCHAR) Question: What is the roll number for East Gore School? [/INST] SELECT COUNT(roll) FROM table_name_21 WHERE name = "east gore school" </s>
What is the lowest decile with 1-6 years and area of Maitland?
CREATE TABLE table_name_2 (decile INTEGER, years VARCHAR, area VARCHAR)
SELECT MIN(decile) FROM table_name_2 WHERE years = "1-6" AND area = "maitland"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (decile INTEGER, years VARCHAR, area VARCHAR) Question: What is the lowest decile with 1-6 years and area of Maitland? [/INST] SELECT MIN(decile) FROM table_name_2 WHERE years = "1-6" AND area = "maitland" </s>
Which gender has 7-15 years?
CREATE TABLE table_name_74 (gender VARCHAR, years VARCHAR)
SELECT gender FROM table_name_74 WHERE years = "7-15"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (gender VARCHAR, years VARCHAR) Question: Which gender has 7-15 years? [/INST] SELECT gender FROM table_name_74 WHERE years = "7-15" </s>
What is the gender for Otama?
CREATE TABLE table_name_23 (gender VARCHAR, area VARCHAR)
SELECT gender FROM table_name_23 WHERE area = "otama"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (gender VARCHAR, area VARCHAR) Question: What is the gender for Otama? [/INST] SELECT gender FROM table_name_23 WHERE area = "otama" </s>
What is the authority for roll of 96?
CREATE TABLE table_name_46 (authority VARCHAR, roll VARCHAR)
SELECT authority FROM table_name_46 WHERE roll = 96
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (authority VARCHAR, roll VARCHAR) Question: What is the authority for roll of 96? [/INST] SELECT authority FROM table_name_46 WHERE roll = 96 </s>
When is a Roll of 9?
CREATE TABLE table_name_86 (years VARCHAR, roll VARCHAR)
SELECT years FROM table_name_86 WHERE roll = 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (years VARCHAR, roll VARCHAR) Question: When is a Roll of 9? [/INST] SELECT years FROM table_name_86 WHERE roll = 9 </s>
What is the Area with 26 in Roll
CREATE TABLE table_name_63 (area VARCHAR, roll VARCHAR)
SELECT area FROM table_name_63 WHERE roll = 26
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (area VARCHAR, roll VARCHAR) Question: What is the Area with 26 in Roll [/INST] SELECT area FROM table_name_63 WHERE roll = 26 </s>
For nations with more than 6 silvers and more than 10 golds, what is the lowest total?
CREATE TABLE table_name_6 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (total INTEGER, silver VARCHAR, gold VARCHAR) Question: For nations with more than 6 silvers and more than 10 golds, what is the lowest total? [/INST] SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10 </s>
What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals?
CREATE TABLE table_name_21 (rank INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MIN(rank) FROM table_name_21 WHERE bronze > 3 AND total > 36
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (rank INTEGER, bronze VARCHAR, total VARCHAR) Question: What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals? [/INST] SELECT MIN(rank) FROM table_name_21 WHERE bronze > 3 AND total > 36 </s>
Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals.
CREATE TABLE table_name_80 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT MAX(bronze) FROM table_name_80 WHERE silver > 1 AND gold = 1 AND total < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR) Question: Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals. [/INST] SELECT MAX(bronze) FROM table_name_80 WHERE silver > 1 AND gold = 1 AND total < 4 </s>
What nation has the most bronze medals with over 11 total medals?
CREATE TABLE table_name_75 (bronze INTEGER, total INTEGER)
SELECT MAX(bronze) FROM table_name_75 WHERE total > 11
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (bronze INTEGER, total INTEGER) Question: What nation has the most bronze medals with over 11 total medals? [/INST] SELECT MAX(bronze) FROM table_name_75 WHERE total > 11 </s>
How many silver medals does Cuba have?
CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR)
SELECT SUM(silver) FROM table_name_15 WHERE nation = "cuba"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR) Question: How many silver medals does Cuba have? [/INST] SELECT SUM(silver) FROM table_name_15 WHERE nation = "cuba" </s>
Where was the game that the Indianapolis Colts lost 24-14?
CREATE TABLE table_name_23 (location VARCHAR, loser VARCHAR, result VARCHAR)
SELECT location FROM table_name_23 WHERE loser = "indianapolis colts" AND result = "24-14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (location VARCHAR, loser VARCHAR, result VARCHAR) Question: Where was the game that the Indianapolis Colts lost 24-14? [/INST] SELECT location FROM table_name_23 WHERE loser = "indianapolis colts" AND result = "24-14" </s>
On what date was the game that the Indianapolis Colts lost in 2004?
CREATE TABLE table_name_98 (date VARCHAR, loser VARCHAR, year VARCHAR)
SELECT date FROM table_name_98 WHERE loser = "indianapolis colts" AND year = 2004
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (date VARCHAR, loser VARCHAR, year VARCHAR) Question: On what date was the game that the Indianapolis Colts lost in 2004? [/INST] SELECT date FROM table_name_98 WHERE loser = "indianapolis colts" AND year = 2004 </s>
Which team won against the New England Patriots 40-21?
CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR)
SELECT winner FROM table_name_14 WHERE loser = "new england patriots" AND result = "40-21"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR) Question: Which team won against the New England Patriots 40-21? [/INST] SELECT winner FROM table_name_14 WHERE loser = "new england patriots" AND result = "40-21" </s>
What was the date of the game played at Gillette Stadium with a score of 40-21?
CREATE TABLE table_name_97 (date VARCHAR, location VARCHAR, result VARCHAR)
SELECT date FROM table_name_97 WHERE location = "gillette stadium" AND result = "40-21"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (date VARCHAR, location VARCHAR, result VARCHAR) Question: What was the date of the game played at Gillette Stadium with a score of 40-21? [/INST] SELECT date FROM table_name_97 WHERE location = "gillette stadium" AND result = "40-21" </s>
What year was the game that ended with a score of 24-14?
CREATE TABLE table_name_22 (year INTEGER, result VARCHAR)
SELECT AVG(year) FROM table_name_22 WHERE result = "24-14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (year INTEGER, result VARCHAR) Question: What year was the game that ended with a score of 24-14? [/INST] SELECT AVG(year) FROM table_name_22 WHERE result = "24-14" </s>
What was the score of the 3-0 Win result?
CREATE TABLE table_name_91 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_91 WHERE result = "3-0 win"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (score VARCHAR, result VARCHAR) Question: What was the score of the 3-0 Win result? [/INST] SELECT score FROM table_name_91 WHERE result = "3-0 win" </s>
What was the result of the game from 10 October 2009?
CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_47 WHERE date = "10 october 2009"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR) Question: What was the result of the game from 10 October 2009? [/INST] SELECT result FROM table_name_47 WHERE date = "10 october 2009" </s>
What is the name of the competition that has a score of 2-0?
CREATE TABLE table_name_91 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_91 WHERE score = "2-0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (competition VARCHAR, score VARCHAR) Question: What is the name of the competition that has a score of 2-0? [/INST] SELECT competition FROM table_name_91 WHERE score = "2-0" </s>
Name the visitor for home of dallas
CREATE TABLE table_name_37 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_37 WHERE home = "dallas"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (visitor VARCHAR, home VARCHAR) Question: Name the visitor for home of dallas [/INST] SELECT visitor FROM table_name_37 WHERE home = "dallas" </s>
Name the period for south korea with peak position of #1
CREATE TABLE table_name_90 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
SELECT period FROM table_name_90 WHERE country = "south korea" AND peak_position = "#1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (period VARCHAR, country VARCHAR, peak_position VARCHAR) Question: Name the period for south korea with peak position of #1 [/INST] SELECT period FROM table_name_90 WHERE country = "south korea" AND peak_position = "#1" </s>
Name the period for south korea with peak position of #24
CREATE TABLE table_name_74 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
SELECT period FROM table_name_74 WHERE country = "south korea" AND peak_position = "#24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (period VARCHAR, country VARCHAR, peak_position VARCHAR) Question: Name the period for south korea with peak position of #24 [/INST] SELECT period FROM table_name_74 WHERE country = "south korea" AND peak_position = "#24" </s>
Name the period for Chart of g-music j-pop/k-pop chart
CREATE TABLE table_name_29 (period VARCHAR, chart VARCHAR)
SELECT period FROM table_name_29 WHERE chart = "g-music j-pop/k-pop chart"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (period VARCHAR, chart VARCHAR) Question: Name the period for Chart of g-music j-pop/k-pop chart [/INST] SELECT period FROM table_name_29 WHERE chart = "g-music j-pop/k-pop chart" </s>
Name the sales with peak position of #24
CREATE TABLE table_name_7 (sales VARCHAR, peak_position VARCHAR)
SELECT sales FROM table_name_7 WHERE peak_position = "#24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (sales VARCHAR, peak_position VARCHAR) Question: Name the sales with peak position of #24 [/INST] SELECT sales FROM table_name_7 WHERE peak_position = "#24" </s>
Which aggregate has ajax as the club?
CREATE TABLE table_name_49 (aggregate VARCHAR, club VARCHAR)
SELECT aggregate FROM table_name_49 WHERE club = "ajax"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (aggregate VARCHAR, club VARCHAR) Question: Which aggregate has ajax as the club? [/INST] SELECT aggregate FROM table_name_49 WHERE club = "ajax" </s>
How many attended on march 1?
CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_19 WHERE date = "march 1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR) Question: How many attended on march 1? [/INST] SELECT AVG(attendance) FROM table_name_19 WHERE date = "march 1" </s>
Who was the visitor on march 21?
CREATE TABLE table_name_96 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_96 WHERE date = "march 21"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (visitor VARCHAR, date VARCHAR) Question: Who was the visitor on march 21? [/INST] SELECT visitor FROM table_name_96 WHERE date = "march 21" </s>
Who was the cyclist from Belgium?
CREATE TABLE table_name_85 (cyclist VARCHAR, nation VARCHAR)
SELECT cyclist FROM table_name_85 WHERE nation = "belgium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (cyclist VARCHAR, nation VARCHAR) Question: Who was the cyclist from Belgium? [/INST] SELECT cyclist FROM table_name_85 WHERE nation = "belgium" </s>
What is the nation of the person who was from the CSC team?
CREATE TABLE table_name_79 (nation VARCHAR, team VARCHAR)
SELECT nation FROM table_name_79 WHERE team = "csc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (nation VARCHAR, team VARCHAR) Question: What is the nation of the person who was from the CSC team? [/INST] SELECT nation FROM table_name_79 WHERE team = "csc" </s>
Who is the cyclist from the GCE team and had UCI points under 20?
CREATE TABLE table_name_70 (cyclist VARCHAR, team VARCHAR, uci_points VARCHAR)
SELECT cyclist FROM table_name_70 WHERE team = "gce" AND uci_points < 20
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (cyclist VARCHAR, team VARCHAR, uci_points VARCHAR) Question: Who is the cyclist from the GCE team and had UCI points under 20? [/INST] SELECT cyclist FROM table_name_70 WHERE team = "gce" AND uci_points < 20 </s>
Which nation is Danilo di Luca from?
CREATE TABLE table_name_7 (nation VARCHAR, cyclist VARCHAR)
SELECT nation FROM table_name_7 WHERE cyclist = "danilo di luca"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (nation VARCHAR, cyclist VARCHAR) Question: Which nation is Danilo di Luca from? [/INST] SELECT nation FROM table_name_7 WHERE cyclist = "danilo di luca" </s>
Which nation is Robert Gesink from?
CREATE TABLE table_name_96 (nation VARCHAR, cyclist VARCHAR)
SELECT nation FROM table_name_96 WHERE cyclist = "robert gesink"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (nation VARCHAR, cyclist VARCHAR) Question: Which nation is Robert Gesink from? [/INST] SELECT nation FROM table_name_96 WHERE cyclist = "robert gesink" </s>
What is the sum of UCI points for Kim Kirchen?
CREATE TABLE table_name_42 (uci_points INTEGER, cyclist VARCHAR)
SELECT SUM(uci_points) FROM table_name_42 WHERE cyclist = "kim kirchen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (uci_points INTEGER, cyclist VARCHAR) Question: What is the sum of UCI points for Kim Kirchen? [/INST] SELECT SUM(uci_points) FROM table_name_42 WHERE cyclist = "kim kirchen" </s>
How many games for the player that has an over 2.7 assist average and over 598 total assists?
CREATE TABLE table_name_91 (games VARCHAR, ast_avg VARCHAR, total_assists VARCHAR)
SELECT COUNT(games) FROM table_name_91 WHERE ast_avg > 2.7 AND total_assists > 598
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (games VARCHAR, ast_avg VARCHAR, total_assists VARCHAR) Question: How many games for the player that has an over 2.7 assist average and over 598 total assists? [/INST] SELECT COUNT(games) FROM table_name_91 WHERE ast_avg > 2.7 AND total_assists > 598 </s>
How many assists does cam long average in under 132 games?
CREATE TABLE table_name_28 (ast_avg INTEGER, player VARCHAR, games VARCHAR)
SELECT MAX(ast_avg) FROM table_name_28 WHERE player = "cam long" AND games < 132
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (ast_avg INTEGER, player VARCHAR, games VARCHAR) Question: How many assists does cam long average in under 132 games? [/INST] SELECT MAX(ast_avg) FROM table_name_28 WHERE player = "cam long" AND games < 132 </s>
Where is the Stadium of Gortakeegan located?
CREATE TABLE table_name_91 (location VARCHAR, stadium VARCHAR)
SELECT location FROM table_name_91 WHERE stadium = "gortakeegan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (location VARCHAR, stadium VARCHAR) Question: Where is the Stadium of Gortakeegan located? [/INST] SELECT location FROM table_name_91 WHERE stadium = "gortakeegan" </s>
In 1972, how many points did the entrant with the March 721G Chassis have?
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_74 WHERE year > 1972 AND chassis = "march 721g"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, chassis VARCHAR) Question: In 1972, how many points did the entrant with the March 721G Chassis have? [/INST] SELECT points FROM table_name_74 WHERE year > 1972 AND chassis = "march 721g" </s>
In 1971, how many total points did the entrant stp march have?
CREATE TABLE table_name_56 (points VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT COUNT(points) FROM table_name_56 WHERE entrant = "stp march" AND year > 1971
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (points VARCHAR, entrant VARCHAR, year VARCHAR) Question: In 1971, how many total points did the entrant stp march have? [/INST] SELECT COUNT(points) FROM table_name_56 WHERE entrant = "stp march" AND year > 1971 </s>
Which Chassis was featured in the year 1971?
CREATE TABLE table_name_88 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_88 WHERE year = 1971
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (chassis VARCHAR, year VARCHAR) Question: Which Chassis was featured in the year 1971? [/INST] SELECT chassis FROM table_name_88 WHERE year = 1971 </s>
Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?
CREATE TABLE table_name_57 (chassis VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_57 WHERE entrant = "clarke-mordaunt-guthrie-durlacher"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (chassis VARCHAR, entrant VARCHAR) Question: Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry? [/INST] SELECT chassis FROM table_name_57 WHERE entrant = "clarke-mordaunt-guthrie-durlacher" </s>
What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?
CREATE TABLE table_name_98 (total_g INTEGER, c_apps VARCHAR, l_apps VARCHAR, player VARCHAR)
SELECT AVG(total_g) FROM table_name_98 WHERE l_apps = 29 AND player = "bartolo" AND c_apps > 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (total_g INTEGER, c_apps VARCHAR, l_apps VARCHAR, player VARCHAR) Question: What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5? [/INST] SELECT AVG(total_g) FROM table_name_98 WHERE l_apps = 29 AND player = "bartolo" AND c_apps > 5 </s>
What is the lowest round for Southern College?
CREATE TABLE table_name_58 (round INTEGER, college VARCHAR)
SELECT MIN(round) FROM table_name_58 WHERE college = "southern"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (round INTEGER, college VARCHAR) Question: What is the lowest round for Southern College? [/INST] SELECT MIN(round) FROM table_name_58 WHERE college = "southern" </s>
Who had the placekicker position with a round above 10?
CREATE TABLE table_name_64 (name VARCHAR, round VARCHAR, position VARCHAR)
SELECT name FROM table_name_64 WHERE round > 10 AND position = "placekicker"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (name VARCHAR, round VARCHAR, position VARCHAR) Question: Who had the placekicker position with a round above 10? [/INST] SELECT name FROM table_name_64 WHERE round > 10 AND position = "placekicker" </s>
What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?
CREATE TABLE table_name_45 (partner VARCHAR, surface VARCHAR, opponents VARCHAR)
SELECT partner FROM table_name_45 WHERE surface = "clay" AND opponents = "guillermo garcía-lópez albert portas"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (partner VARCHAR, surface VARCHAR, opponents VARCHAR) Question: What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay? [/INST] SELECT partner FROM table_name_45 WHERE surface = "clay" AND opponents = "guillermo garcía-lópez albert portas" </s>
What are the dates where the opponent was guillermo garcía-lópez albert portas?
CREATE TABLE table_name_9 (date VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_9 WHERE opponents = "guillermo garcía-lópez albert portas"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (date VARCHAR, opponents VARCHAR) Question: What are the dates where the opponent was guillermo garcía-lópez albert portas? [/INST] SELECT date FROM table_name_9 WHERE opponents = "guillermo garcía-lópez albert portas" </s>
What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?
CREATE TABLE table_name_74 (year INTEGER, rank VARCHAR, class VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_74 WHERE class = "125cc" AND points > 102 AND rank = "2nd"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (year INTEGER, rank VARCHAR, class VARCHAR, points VARCHAR) Question: What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd? [/INST] SELECT MIN(year) FROM table_name_74 WHERE class = "125cc" AND points > 102 AND rank = "2nd" </s>
Which team had fewer than 167 points in the 250cc class?
CREATE TABLE table_name_72 (team VARCHAR, points VARCHAR, class VARCHAR)
SELECT team FROM table_name_72 WHERE points < 167 AND class = "250cc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (team VARCHAR, points VARCHAR, class VARCHAR) Question: Which team had fewer than 167 points in the 250cc class? [/INST] SELECT team FROM table_name_72 WHERE points < 167 AND class = "250cc" </s>
For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?
CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, rank VARCHAR)
SELECT SUM(points) FROM table_name_65 WHERE class = "125cc" AND rank = "3rd" AND year < 1996
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, rank VARCHAR) Question: For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points? [/INST] SELECT SUM(points) FROM table_name_65 WHERE class = "125cc" AND rank = "3rd" AND year < 1996 </s>