instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
What was the Score on October 24, 1982 in Tokyo, Japan?
CREATE TABLE table_name_60 (score VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT score FROM table_name_60 WHERE tournament = "tokyo, japan" AND date = "october 24, 1982"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (score VARCHAR, tournament VARCHAR, date VARCHAR) Question: What was the Score on October 24, 1982 in Tokyo, Japan? [/INST] SELECT score FROM table_name_60 WHERE tournament = "tokyo, japan" AND date = "october 24, 1982" </s>
What Tournament on October 24, 1982 had Alycia Moulton as the Partner?
CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR, partner VARCHAR)
SELECT tournament FROM table_name_23 WHERE date = "october 24, 1982" AND partner = "alycia moulton"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR, partner VARCHAR) Question: What Tournament on October 24, 1982 had Alycia Moulton as the Partner? [/INST] SELECT tournament FROM table_name_23 WHERE date = "october 24, 1982" AND partner = "alycia moulton" </s>
Who were the Opponents when Laura DuPont had Pam Shriver as Partner with a Score of 6-3, 6-3?
CREATE TABLE table_name_10 (opponents VARCHAR, partner VARCHAR, score VARCHAR)
SELECT opponents FROM table_name_10 WHERE partner = "pam shriver" AND score = "6-3, 6-3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (opponents VARCHAR, partner VARCHAR, score VARCHAR) Question: Who were the Opponents when Laura DuPont had Pam Shriver as Partner with a Score of 6-3, 6-3? [/INST] SELECT opponents FROM table_name_10 WHERE partner = "pam shriver" AND score = "6-3, 6-3" </s>
On what Surface was the match with a Score of 3-6, 1-6 played?
CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR) Question: On what Surface was the match with a Score of 3-6, 1-6 played? [/INST] SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6" </s>
In what Tournament was Barbara Jordan a Partner with a Score of 6-2, 3-6, 3-6?
CREATE TABLE table_name_85 (tournament VARCHAR, partner VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_85 WHERE partner = "barbara jordan" AND score = "6-2, 3-6, 3-6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (tournament VARCHAR, partner VARCHAR, score VARCHAR) Question: In what Tournament was Barbara Jordan a Partner with a Score of 6-2, 3-6, 3-6? [/INST] SELECT tournament FROM table_name_85 WHERE partner = "barbara jordan" AND score = "6-2, 3-6, 3-6" </s>
Name the points with tries for of 40
CREATE TABLE table_name_62 (points_for VARCHAR, tries_for VARCHAR)
SELECT points_for FROM table_name_62 WHERE tries_for = "40"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (points_for VARCHAR, tries_for VARCHAR) Question: Name the points with tries for of 40 [/INST] SELECT points_for FROM table_name_62 WHERE tries_for = "40" </s>
Name the played with losing bonus of 3 and points against of 426
CREATE TABLE table_name_37 (played VARCHAR, losing_bonus VARCHAR, points_against VARCHAR)
SELECT played FROM table_name_37 WHERE losing_bonus = "3" AND points_against = "426"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (played VARCHAR, losing_bonus VARCHAR, points_against VARCHAR) Question: Name the played with losing bonus of 3 and points against of 426 [/INST] SELECT played FROM table_name_37 WHERE losing_bonus = "3" AND points_against = "426" </s>
Name the club with points of 56
CREATE TABLE table_name_9 (club VARCHAR, points VARCHAR)
SELECT club FROM table_name_9 WHERE points = "56"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (club VARCHAR, points VARCHAR) Question: Name the club with points of 56 [/INST] SELECT club FROM table_name_9 WHERE points = "56" </s>
Name the points against for porthcawl rfc
CREATE TABLE table_name_87 (points_against VARCHAR, club VARCHAR)
SELECT points_against FROM table_name_87 WHERE club = "porthcawl rfc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (points_against VARCHAR, club VARCHAR) Question: Name the points against for porthcawl rfc [/INST] SELECT points_against FROM table_name_87 WHERE club = "porthcawl rfc" </s>
Name the club for drawn of 0 and lost of 0
CREATE TABLE table_name_92 (club VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT club FROM table_name_92 WHERE drawn = "0" AND lost = "0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (club VARCHAR, drawn VARCHAR, lost VARCHAR) Question: Name the club for drawn of 0 and lost of 0 [/INST] SELECT club FROM table_name_92 WHERE drawn = "0" AND lost = "0" </s>
Name the points with lost of 19
CREATE TABLE table_name_96 (points VARCHAR, lost VARCHAR)
SELECT points FROM table_name_96 WHERE lost = "19"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (points VARCHAR, lost VARCHAR) Question: Name the points with lost of 19 [/INST] SELECT points FROM table_name_96 WHERE lost = "19" </s>
result is lost re-election republican gain, what is the district?
CREATE TABLE table_name_48 (district VARCHAR, result VARCHAR)
SELECT district FROM table_name_48 WHERE result = "lost re-election republican gain"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (district VARCHAR, result VARCHAR) Question: result is lost re-election republican gain, what is the district? [/INST] SELECT district FROM table_name_48 WHERE result = "lost re-election republican gain" </s>
Which Winning constructor has a Winning driver of felice nazzaro?
CREATE TABLE table_name_52 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT winning_constructor FROM table_name_52 WHERE winning_driver = "felice nazzaro"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (winning_constructor VARCHAR, winning_driver VARCHAR) Question: Which Winning constructor has a Winning driver of felice nazzaro? [/INST] SELECT winning_constructor FROM table_name_52 WHERE winning_driver = "felice nazzaro" </s>
Who is Winning driver on 18 may?
CREATE TABLE table_name_30 (winning_driver VARCHAR, date VARCHAR)
SELECT winning_driver FROM table_name_30 WHERE date = "18 may"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (winning_driver VARCHAR, date VARCHAR) Question: Who is Winning driver on 18 may? [/INST] SELECT winning_driver FROM table_name_30 WHERE date = "18 may" </s>
WHo is Winning driver that is in st. petersburg - moscow?
CREATE TABLE table_name_73 (winning_driver VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_73 WHERE name = "st. petersburg - moscow"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (winning_driver VARCHAR, name VARCHAR) Question: WHo is Winning driver that is in st. petersburg - moscow? [/INST] SELECT winning_driver FROM table_name_73 WHERE name = "st. petersburg - moscow" </s>
Which Date has a Winning constructor of fiat and a Winning driver of louis wagner?
CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT date FROM table_name_34 WHERE winning_constructor = "fiat" AND winning_driver = "louis wagner"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR) Question: Which Date has a Winning constructor of fiat and a Winning driver of louis wagner? [/INST] SELECT date FROM table_name_34 WHERE winning_constructor = "fiat" AND winning_driver = "louis wagner" </s>
Which Report is on 1 june?
CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_13 WHERE date = "1 june"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR) Question: Which Report is on 1 june? [/INST] SELECT report FROM table_name_13 WHERE date = "1 june" </s>
When is vanderbilt cup in?
CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR)
SELECT date FROM table_name_55 WHERE name = "vanderbilt cup"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR) Question: When is vanderbilt cup in? [/INST] SELECT date FROM table_name_55 WHERE name = "vanderbilt cup" </s>
Which event is in round 1 with a record at 5-1?
CREATE TABLE table_name_28 (event VARCHAR, round VARCHAR, record VARCHAR)
SELECT event FROM table_name_28 WHERE round = 1 AND record = "5-1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (event VARCHAR, round VARCHAR, record VARCHAR) Question: Which event is in round 1 with a record at 5-1? [/INST] SELECT event FROM table_name_28 WHERE round = 1 AND record = "5-1" </s>
When the country is Cambodia and the total is smaller than 1 what's the lowest silver?
CREATE TABLE table_name_42 (silver INTEGER, country VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_42 WHERE country = "cambodia" AND total < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (silver INTEGER, country VARCHAR, total VARCHAR) Question: When the country is Cambodia and the total is smaller than 1 what's the lowest silver? [/INST] SELECT MIN(silver) FROM table_name_42 WHERE country = "cambodia" AND total < 1 </s>
What is the highest gold for Cambodia when the total is less than 1?
CREATE TABLE table_name_94 (gold INTEGER, country VARCHAR, total VARCHAR)
SELECT MAX(gold) FROM table_name_94 WHERE country = "cambodia" AND total < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (gold INTEGER, country VARCHAR, total VARCHAR) Question: What is the highest gold for Cambodia when the total is less than 1? [/INST] SELECT MAX(gold) FROM table_name_94 WHERE country = "cambodia" AND total < 1 </s>
What is the total silver when bronze is smaller than 0?
CREATE TABLE table_name_92 (silver VARCHAR, bronze INTEGER)
SELECT COUNT(silver) FROM table_name_92 WHERE bronze < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (silver VARCHAR, bronze INTEGER) Question: What is the total silver when bronze is smaller than 0? [/INST] SELECT COUNT(silver) FROM table_name_92 WHERE bronze < 0 </s>
What is the total when the gold of 0, and a bronze larger than 1?
CREATE TABLE table_name_25 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT MAX(total) FROM table_name_25 WHERE gold = 0 AND bronze > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (total INTEGER, gold VARCHAR, bronze VARCHAR) Question: What is the total when the gold of 0, and a bronze larger than 1? [/INST] SELECT MAX(total) FROM table_name_25 WHERE gold = 0 AND bronze > 1 </s>
What is the total when bronze has a silver larger than 2?
CREATE TABLE table_name_12 (bronze VARCHAR, silver INTEGER)
SELECT COUNT(bronze) FROM table_name_12 WHERE silver > 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (bronze VARCHAR, silver INTEGER) Question: What is the total when bronze has a silver larger than 2? [/INST] SELECT COUNT(bronze) FROM table_name_12 WHERE silver > 2 </s>
What is the sum of silver medals for teams with more than 14 total medals and more than 16 golds?
CREATE TABLE table_name_14 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_14 WHERE total > 14 AND gold > 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (silver INTEGER, total VARCHAR, gold VARCHAR) Question: What is the sum of silver medals for teams with more than 14 total medals and more than 16 golds? [/INST] SELECT SUM(silver) FROM table_name_14 WHERE total > 14 AND gold > 16 </s>
What is the rank of the team having 3 bronzes and 0 silver?
CREATE TABLE table_name_79 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT rank FROM table_name_79 WHERE bronze = 3 AND silver = 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (rank VARCHAR, bronze VARCHAR, silver VARCHAR) Question: What is the rank of the team having 3 bronzes and 0 silver? [/INST] SELECT rank FROM table_name_79 WHERE bronze = 3 AND silver = 0 </s>
How many tries against did the club with 383 points against have?
CREATE TABLE table_name_39 (tries_against VARCHAR, points_against VARCHAR)
SELECT tries_against FROM table_name_39 WHERE points_against = "383"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (tries_against VARCHAR, points_against VARCHAR) Question: How many tries against did the club with 383 points against have? [/INST] SELECT tries_against FROM table_name_39 WHERE points_against = "383" </s>
How many tries against did the club with 48 tries for have?
CREATE TABLE table_name_90 (tries_against VARCHAR, tries_for VARCHAR)
SELECT tries_against FROM table_name_90 WHERE tries_for = "48"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (tries_against VARCHAR, tries_for VARCHAR) Question: How many tries against did the club with 48 tries for have? [/INST] SELECT tries_against FROM table_name_90 WHERE tries_for = "48" </s>
How many points did the club with 13 losses and 461 points against have?
CREATE TABLE table_name_59 (points VARCHAR, lost VARCHAR, points_against VARCHAR)
SELECT points FROM table_name_59 WHERE lost = "13" AND points_against = "461"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (points VARCHAR, lost VARCHAR, points_against VARCHAR) Question: How many points did the club with 13 losses and 461 points against have? [/INST] SELECT points FROM table_name_59 WHERE lost = "13" AND points_against = "461" </s>
How many tries against did Pentyrch RFC have?
CREATE TABLE table_name_92 (tries_against VARCHAR, club VARCHAR)
SELECT tries_against FROM table_name_92 WHERE club = "pentyrch rfc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (tries_against VARCHAR, club VARCHAR) Question: How many tries against did Pentyrch RFC have? [/INST] SELECT tries_against FROM table_name_92 WHERE club = "pentyrch rfc" </s>
What is the lowest drawn that has games less than 7?
CREATE TABLE table_name_83 (drawn INTEGER, games INTEGER)
SELECT MIN(drawn) FROM table_name_83 WHERE games < 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (drawn INTEGER, games INTEGER) Question: What is the lowest drawn that has games less than 7? [/INST] SELECT MIN(drawn) FROM table_name_83 WHERE games < 7 </s>
Hoe many of lost have points greater than 14?
CREATE TABLE table_name_50 (lost VARCHAR, points INTEGER)
SELECT COUNT(lost) FROM table_name_50 WHERE points > 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (lost VARCHAR, points INTEGER) Question: Hoe many of lost have points greater than 14? [/INST] SELECT COUNT(lost) FROM table_name_50 WHERE points > 14 </s>
How many of lost have 11 as the points, and a drawn greater than 1?
CREATE TABLE table_name_81 (lost VARCHAR, points VARCHAR, drawn VARCHAR)
SELECT COUNT(lost) FROM table_name_81 WHERE points = 11 AND drawn > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (lost VARCHAR, points VARCHAR, drawn VARCHAR) Question: How many of lost have 11 as the points, and a drawn greater than 1? [/INST] SELECT COUNT(lost) FROM table_name_81 WHERE points = 11 AND drawn > 1 </s>
What is the lowest game that has a drawn less than 0?
CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER)
SELECT MIN(games) FROM table_name_26 WHERE drawn < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER) Question: What is the lowest game that has a drawn less than 0? [/INST] SELECT MIN(games) FROM table_name_26 WHERE drawn < 0 </s>
Which Total is the lowest one that has a Bronze of 0, and a Silver larger than 0, and a Rank of 5?
CREATE TABLE table_name_51 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_51 WHERE bronze = 0 AND silver > 0 AND rank = 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR) Question: Which Total is the lowest one that has a Bronze of 0, and a Silver larger than 0, and a Rank of 5? [/INST] SELECT MIN(total) FROM table_name_51 WHERE bronze = 0 AND silver > 0 AND rank = 5 </s>
Which Bronze has a Total smaller than 2, and a Silver larger than 0, and a Gold smaller than 0?
CREATE TABLE table_name_69 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_69 WHERE total < 2 AND silver > 0 AND gold < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR) Question: Which Bronze has a Total smaller than 2, and a Silver larger than 0, and a Gold smaller than 0? [/INST] SELECT SUM(bronze) FROM table_name_69 WHERE total < 2 AND silver > 0 AND gold < 0 </s>
Which Rank is the lowest one that has a Nation of switzerland, and a Bronze smaller than 0?
CREATE TABLE table_name_38 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(rank) FROM table_name_38 WHERE nation = "switzerland" AND bronze < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (rank INTEGER, nation VARCHAR, bronze VARCHAR) Question: Which Rank is the lowest one that has a Nation of switzerland, and a Bronze smaller than 0? [/INST] SELECT MIN(rank) FROM table_name_38 WHERE nation = "switzerland" AND bronze < 0 </s>
Which Total is the highest one that has a Bronze of 0, and a Nation of poland, and a Gold smaller than 0?
CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT MAX(total) FROM table_name_87 WHERE bronze = 0 AND nation = "poland" AND gold < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR) Question: Which Total is the highest one that has a Bronze of 0, and a Nation of poland, and a Gold smaller than 0? [/INST] SELECT MAX(total) FROM table_name_87 WHERE bronze = 0 AND nation = "poland" AND gold < 0 </s>
What is the save of the game that 23,394 people attended?
CREATE TABLE table_name_49 (save VARCHAR, attendance VARCHAR)
SELECT save FROM table_name_49 WHERE attendance = "23,394"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (save VARCHAR, attendance VARCHAR) Question: What is the save of the game that 23,394 people attended? [/INST] SELECT save FROM table_name_49 WHERE attendance = "23,394" </s>
Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201?
CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR, opponent VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT MIN(date) FROM table_name_51 WHERE competition = "league" AND venue = "away" AND opponent = "swindon wildcats" AND attendance > 1 OFFSET 201 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR, opponent VARCHAR, competition VARCHAR, venue VARCHAR) Question: Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201? [/INST] SELECT MIN(date) FROM table_name_51 WHERE competition = "league" AND venue = "away" AND opponent = "swindon wildcats" AND attendance > 1 OFFSET 201 ROWS </s>
How many Dates have an Opponent of romford raiders, and a Result of won 7-3, and an Attendance larger than 1,769?
CREATE TABLE table_name_24 (date VARCHAR, attendance VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT COUNT(date) FROM table_name_24 WHERE opponent = "romford raiders" AND result = "won 7-3" AND attendance > 1 OFFSET 769 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (date VARCHAR, attendance VARCHAR, opponent VARCHAR, result VARCHAR) Question: How many Dates have an Opponent of romford raiders, and a Result of won 7-3, and an Attendance larger than 1,769? [/INST] SELECT COUNT(date) FROM table_name_24 WHERE opponent = "romford raiders" AND result = "won 7-3" AND attendance > 1 OFFSET 769 ROWS </s>
Which Date has an Opponent of milton keynes lightning, and an Attendance smaller than 1,771?
CREATE TABLE table_name_96 (date INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT AVG(date) FROM table_name_96 WHERE opponent = "milton keynes lightning" AND attendance < 1 OFFSET 771 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (date INTEGER, opponent VARCHAR, attendance VARCHAR) Question: Which Date has an Opponent of milton keynes lightning, and an Attendance smaller than 1,771? [/INST] SELECT AVG(date) FROM table_name_96 WHERE opponent = "milton keynes lightning" AND attendance < 1 OFFSET 771 ROWS </s>
Which Attendance has a Date of october 25?
CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 25"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR) Question: Which Attendance has a Date of october 25? [/INST] SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 25" </s>
Which Score has a Visitor of atlanta?
CREATE TABLE table_name_72 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_72 WHERE visitor = "atlanta"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (score VARCHAR, visitor VARCHAR) Question: Which Score has a Visitor of atlanta? [/INST] SELECT score FROM table_name_72 WHERE visitor = "atlanta" </s>
Which Yards has a Attempts of 247
CREATE TABLE table_name_74 (yards VARCHAR, attempts VARCHAR)
SELECT yards FROM table_name_74 WHERE attempts = "247"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (yards VARCHAR, attempts VARCHAR) Question: Which Yards has a Attempts of 247 [/INST] SELECT yards FROM table_name_74 WHERE attempts = "247" </s>
Which yard has a Completion of 64.9%?
CREATE TABLE table_name_26 (yards VARCHAR, completion__percentage VARCHAR)
SELECT yards FROM table_name_26 WHERE completion__percentage = "64.9%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (yards VARCHAR, completion__percentage VARCHAR) Question: Which yard has a Completion of 64.9%? [/INST] SELECT yards FROM table_name_26 WHERE completion__percentage = "64.9%" </s>
Which Completions has Yards of 10,098?
CREATE TABLE table_name_36 (completions VARCHAR, yards VARCHAR)
SELECT completions FROM table_name_36 WHERE yards = "10,098"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (completions VARCHAR, yards VARCHAR) Question: Which Completions has Yards of 10,098? [/INST] SELECT completions FROM table_name_36 WHERE yards = "10,098" </s>
When has Attempts of 282 ?
CREATE TABLE table_name_3 (year VARCHAR, attempts VARCHAR)
SELECT year FROM table_name_3 WHERE attempts = "282"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (year VARCHAR, attempts VARCHAR) Question: When has Attempts of 282 ? [/INST] SELECT year FROM table_name_3 WHERE attempts = "282" </s>
Which Completions has Attempts of 1,271?
CREATE TABLE table_name_89 (completions VARCHAR, attempts VARCHAR)
SELECT completions FROM table_name_89 WHERE attempts = "1,271"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (completions VARCHAR, attempts VARCHAR) Question: Which Completions has Attempts of 1,271? [/INST] SELECT completions FROM table_name_89 WHERE attempts = "1,271" </s>
which Completion % has a Yards of 2,175?
CREATE TABLE table_name_57 (completion__percentage VARCHAR, yards VARCHAR)
SELECT completion__percentage FROM table_name_57 WHERE yards = "2,175"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (completion__percentage VARCHAR, yards VARCHAR) Question: which Completion % has a Yards of 2,175? [/INST] SELECT completion__percentage FROM table_name_57 WHERE yards = "2,175" </s>
What was the surface for Adrian Ungur as an opponent?
CREATE TABLE table_name_86 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_86 WHERE opponent = "adrian ungur"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (surface VARCHAR, opponent VARCHAR) Question: What was the surface for Adrian Ungur as an opponent? [/INST] SELECT surface FROM table_name_86 WHERE opponent = "adrian ungur" </s>
What was the score on a clay surface on May 29, 2006?
CREATE TABLE table_name_5 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score FROM table_name_5 WHERE surface = "clay" AND date = "may 29, 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (score VARCHAR, surface VARCHAR, date VARCHAR) Question: What was the score on a clay surface on May 29, 2006? [/INST] SELECT score FROM table_name_5 WHERE surface = "clay" AND date = "may 29, 2006" </s>
Which tournament had a score of 6–3, 7–6?
CREATE TABLE table_name_75 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_75 WHERE score = "6–3, 7–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (tournament VARCHAR, score VARCHAR) Question: Which tournament had a score of 6–3, 7–6? [/INST] SELECT tournament FROM table_name_75 WHERE score = "6–3, 7–6" </s>
On what surface was the opponent Michael Berrer?
CREATE TABLE table_name_15 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_15 WHERE opponent = "michael berrer"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (surface VARCHAR, opponent VARCHAR) Question: On what surface was the opponent Michael Berrer? [/INST] SELECT surface FROM table_name_15 WHERE opponent = "michael berrer" </s>
What game has 2 points?
CREATE TABLE table_name_58 (games INTEGER, points VARCHAR)
SELECT MAX(games) FROM table_name_58 WHERE points = 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (games INTEGER, points VARCHAR) Question: What game has 2 points? [/INST] SELECT MAX(games) FROM table_name_58 WHERE points = 2 </s>
How many total drawn has less than 4 lost and 8 points?
CREATE TABLE table_name_59 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(drawn) FROM table_name_59 WHERE lost < 4 AND points = 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (drawn INTEGER, lost VARCHAR, points VARCHAR) Question: How many total drawn has less than 4 lost and 8 points? [/INST] SELECT SUM(drawn) FROM table_name_59 WHERE lost < 4 AND points = 8 </s>
How many lost are there before game 7?
CREATE TABLE table_name_5 (lost INTEGER, games INTEGER)
SELECT SUM(lost) FROM table_name_5 WHERE games < 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (lost INTEGER, games INTEGER) Question: How many lost are there before game 7? [/INST] SELECT SUM(lost) FROM table_name_5 WHERE games < 7 </s>
How many touchdowns did the player with less than 4495 yards, long of less than 80, and yds/att less than 5.5 have?
CREATE TABLE table_name_65 (touchdowns VARCHAR, yds_att VARCHAR, net_yds VARCHAR, long VARCHAR)
SELECT COUNT(touchdowns) FROM table_name_65 WHERE net_yds < 4495 AND long < 80 AND yds_att < 5.5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (touchdowns VARCHAR, yds_att VARCHAR, net_yds VARCHAR, long VARCHAR) Question: How many touchdowns did the player with less than 4495 yards, long of less than 80, and yds/att less than 5.5 have? [/INST] SELECT COUNT(touchdowns) FROM table_name_65 WHERE net_yds < 4495 AND long < 80 AND yds_att < 5.5 </s>
How many attempts did the player ranking with a number higher than 1, who started after 1997 and had yds/att of 5 have?
CREATE TABLE table_name_66 (attempts INTEGER, rank VARCHAR, start VARCHAR, yds_att VARCHAR)
SELECT SUM(attempts) FROM table_name_66 WHERE start > 1997 AND yds_att = 5 AND rank > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (attempts INTEGER, rank VARCHAR, start VARCHAR, yds_att VARCHAR) Question: How many attempts did the player ranking with a number higher than 1, who started after 1997 and had yds/att of 5 have? [/INST] SELECT SUM(attempts) FROM table_name_66 WHERE start > 1997 AND yds_att = 5 AND rank > 1 </s>
What is the average net yds for the player who had a long of 68 and started after 1984?
CREATE TABLE table_name_59 (net_yds INTEGER, long VARCHAR, start VARCHAR)
SELECT AVG(net_yds) FROM table_name_59 WHERE long = 68 AND start > 1984
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (net_yds INTEGER, long VARCHAR, start VARCHAR) Question: What is the average net yds for the player who had a long of 68 and started after 1984? [/INST] SELECT AVG(net_yds) FROM table_name_59 WHERE long = 68 AND start > 1984 </s>
What is the lowest number of attempts for the player with a rank number larger than 3, who started after 1984 and had less than 6.1 yds/att?
CREATE TABLE table_name_57 (attempts INTEGER, yds_att VARCHAR, rank VARCHAR, start VARCHAR)
SELECT MIN(attempts) FROM table_name_57 WHERE rank > 3 AND start > 1984 AND yds_att < 6.1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (attempts INTEGER, yds_att VARCHAR, rank VARCHAR, start VARCHAR) Question: What is the lowest number of attempts for the player with a rank number larger than 3, who started after 1984 and had less than 6.1 yds/att? [/INST] SELECT MIN(attempts) FROM table_name_57 WHERE rank > 3 AND start > 1984 AND yds_att < 6.1 </s>
Which film was made before 2002?
CREATE TABLE table_name_1 (film VARCHAR, year INTEGER)
SELECT film FROM table_name_1 WHERE year < 2002
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (film VARCHAR, year INTEGER) Question: Which film was made before 2002? [/INST] SELECT film FROM table_name_1 WHERE year < 2002 </s>
Which film has a role named Taylor?
CREATE TABLE table_name_68 (film VARCHAR, role VARCHAR)
SELECT film FROM table_name_68 WHERE role = "taylor"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (film VARCHAR, role VARCHAR) Question: Which film has a role named Taylor? [/INST] SELECT film FROM table_name_68 WHERE role = "taylor" </s>
What notes does the film Touch & go have?
CREATE TABLE table_name_3 (notes VARCHAR, film VARCHAR)
SELECT notes FROM table_name_3 WHERE film = "touch & go"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (notes VARCHAR, film VARCHAR) Question: What notes does the film Touch & go have? [/INST] SELECT notes FROM table_name_3 WHERE film = "touch & go" </s>
What language is the film Marion Bridge?
CREATE TABLE table_name_46 (language VARCHAR, film VARCHAR)
SELECT language FROM table_name_46 WHERE film = "marion bridge"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (language VARCHAR, film VARCHAR) Question: What language is the film Marion Bridge? [/INST] SELECT language FROM table_name_46 WHERE film = "marion bridge" </s>
What language is the film with a character named Annabelle?
CREATE TABLE table_name_90 (language VARCHAR, role VARCHAR)
SELECT language FROM table_name_90 WHERE role = "annabelle"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (language VARCHAR, role VARCHAR) Question: What language is the film with a character named Annabelle? [/INST] SELECT language FROM table_name_90 WHERE role = "annabelle" </s>
What is the lowest pick from the Furman School that is a round smaller than 8?
CREATE TABLE table_name_83 (pick INTEGER, school VARCHAR, round VARCHAR)
SELECT MIN(pick) FROM table_name_83 WHERE school = "furman" AND round < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (pick INTEGER, school VARCHAR, round VARCHAR) Question: What is the lowest pick from the Furman School that is a round smaller than 8? [/INST] SELECT MIN(pick) FROM table_name_83 WHERE school = "furman" AND round < 8 </s>
What is the total number of round picks from the Morris Brown School?
CREATE TABLE table_name_59 (round VARCHAR, school VARCHAR)
SELECT COUNT(round) FROM table_name_59 WHERE school = "morris brown"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (round VARCHAR, school VARCHAR) Question: What is the total number of round picks from the Morris Brown School? [/INST] SELECT COUNT(round) FROM table_name_59 WHERE school = "morris brown" </s>
What is the total number of rounds for the player of Rell Tipton?
CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_58 WHERE player = "rell tipton"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR) Question: What is the total number of rounds for the player of Rell Tipton? [/INST] SELECT COUNT(round) FROM table_name_58 WHERE player = "rell tipton" </s>
On what date was game 3 played?
CREATE TABLE table_name_44 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_44 WHERE game = 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (date VARCHAR, game VARCHAR) Question: On what date was game 3 played? [/INST] SELECT date FROM table_name_44 WHERE game = 3 </s>
Which game took place on April 22?
CREATE TABLE table_name_8 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_8 WHERE date = "april 22"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (game VARCHAR, date VARCHAR) Question: Which game took place on April 22? [/INST] SELECT game FROM table_name_8 WHERE date = "april 22" </s>
What was the standing in the series after game 1?
CREATE TABLE table_name_1 (series VARCHAR, game VARCHAR)
SELECT series FROM table_name_1 WHERE game = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (series VARCHAR, game VARCHAR) Question: What was the standing in the series after game 1? [/INST] SELECT series FROM table_name_1 WHERE game = 1 </s>
Which race had a time of 1:24.35?
CREATE TABLE table_name_90 (race VARCHAR, time VARCHAR)
SELECT race FROM table_name_90 WHERE time = "1:24.35"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (race VARCHAR, time VARCHAR) Question: Which race had a time of 1:24.35? [/INST] SELECT race FROM table_name_90 WHERE time = "1:24.35" </s>
What was the date for the G1 group race at Flemington?
CREATE TABLE table_name_98 (date VARCHAR, group VARCHAR, venue VARCHAR)
SELECT date FROM table_name_98 WHERE group = "g1" AND venue = "flemington"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (date VARCHAR, group VARCHAR, venue VARCHAR) Question: What was the date for the G1 group race at Flemington? [/INST] SELECT date FROM table_name_98 WHERE group = "g1" AND venue = "flemington" </s>
What was the combined weight in kilograms of the horses in the race at Chelmsford stakes?
CREATE TABLE table_name_42 (weight__kg_ VARCHAR, race VARCHAR)
SELECT COUNT(weight__kg_) FROM table_name_42 WHERE race = "chelmsford stakes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (weight__kg_ VARCHAR, race VARCHAR) Question: What was the combined weight in kilograms of the horses in the race at Chelmsford stakes? [/INST] SELECT COUNT(weight__kg_) FROM table_name_42 WHERE race = "chelmsford stakes" </s>
In what year was the artist Afro-dite?
CREATE TABLE table_name_54 (year VARCHAR, artist VARCHAR)
SELECT year FROM table_name_54 WHERE artist = "afro-dite"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (year VARCHAR, artist VARCHAR) Question: In what year was the artist Afro-dite? [/INST] SELECT year FROM table_name_54 WHERE artist = "afro-dite" </s>
What stadium was the game held at on December 23, 2001?
CREATE TABLE table_name_2 (stadium VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_2 WHERE date = "december 23, 2001"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (stadium VARCHAR, date VARCHAR) Question: What stadium was the game held at on December 23, 2001? [/INST] SELECT stadium FROM table_name_2 WHERE date = "december 23, 2001" </s>
What is the Record for the game held on December 2, 2001?
CREATE TABLE table_name_52 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_52 WHERE date = "december 2, 2001"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (record VARCHAR, date VARCHAR) Question: What is the Record for the game held on December 2, 2001? [/INST] SELECT record FROM table_name_52 WHERE date = "december 2, 2001" </s>
What is the average Game where there were 65,666 in attendance?
CREATE TABLE table_name_24 (game INTEGER, attendance VARCHAR)
SELECT AVG(game) FROM table_name_24 WHERE attendance = "65,666"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (game INTEGER, attendance VARCHAR) Question: What is the average Game where there were 65,666 in attendance? [/INST] SELECT AVG(game) FROM table_name_24 WHERE attendance = "65,666" </s>
Driving Force EX of 25cm (10-inch) involves what feature?
CREATE TABLE table_name_46 (feature VARCHAR, driving_force_ex VARCHAR)
SELECT feature FROM table_name_46 WHERE driving_force_ex = "25cm (10-inch)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (feature VARCHAR, driving_force_ex VARCHAR) Question: Driving Force EX of 25cm (10-inch) involves what feature? [/INST] SELECT feature FROM table_name_46 WHERE driving_force_ex = "25cm (10-inch)" </s>
GT Force of no, and a Driving Force Pro of no, and a G27 Racing Wheel of no has what driving force gt?
CREATE TABLE table_name_2 (driving_force_gt VARCHAR, g27_racing_wheel VARCHAR, gt_force VARCHAR, driving_force_pro VARCHAR)
SELECT driving_force_gt FROM table_name_2 WHERE gt_force = "no" AND driving_force_pro = "no" AND g27_racing_wheel = "no"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (driving_force_gt VARCHAR, g27_racing_wheel VARCHAR, gt_force VARCHAR, driving_force_pro VARCHAR) Question: GT Force of no, and a Driving Force Pro of no, and a G27 Racing Wheel of no has what driving force gt? [/INST] SELECT driving_force_gt FROM table_name_2 WHERE gt_force = "no" AND driving_force_pro = "no" AND g27_racing_wheel = "no" </s>
Feature of gear stick involves which driving force gt?
CREATE TABLE table_name_34 (driving_force_gt VARCHAR, feature VARCHAR)
SELECT driving_force_gt FROM table_name_34 WHERE feature = "gear stick"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (driving_force_gt VARCHAR, feature VARCHAR) Question: Feature of gear stick involves which driving force gt? [/INST] SELECT driving_force_gt FROM table_name_34 WHERE feature = "gear stick" </s>
Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature?
CREATE TABLE table_name_64 (feature VARCHAR, driving_force_pro VARCHAR, driving_force_ex VARCHAR, driving_force_gt VARCHAR)
SELECT feature FROM table_name_64 WHERE driving_force_ex = "no" AND driving_force_gt = "yes" AND driving_force_pro = "yes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (feature VARCHAR, driving_force_pro VARCHAR, driving_force_ex VARCHAR, driving_force_gt VARCHAR) Question: Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature? [/INST] SELECT feature FROM table_name_64 WHERE driving_force_ex = "no" AND driving_force_gt = "yes" AND driving_force_pro = "yes" </s>
Driving Force EX of no, and a Driving Force Pro of no, and a G25 Racing Wheel of no involves which g27 racing wheel?
CREATE TABLE table_name_45 (g27_racing_wheel VARCHAR, g25_racing_wheel VARCHAR, driving_force_ex VARCHAR, driving_force_pro VARCHAR)
SELECT g27_racing_wheel FROM table_name_45 WHERE driving_force_ex = "no" AND driving_force_pro = "no" AND g25_racing_wheel = "no"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (g27_racing_wheel VARCHAR, g25_racing_wheel VARCHAR, driving_force_ex VARCHAR, driving_force_pro VARCHAR) Question: Driving Force EX of no, and a Driving Force Pro of no, and a G25 Racing Wheel of no involves which g27 racing wheel? [/INST] SELECT g27_racing_wheel FROM table_name_45 WHERE driving_force_ex = "no" AND driving_force_pro = "no" AND g25_racing_wheel = "no" </s>
GT Force of yes, and a G27 Racing Wheel of 16 involves which driving force ex?
CREATE TABLE table_name_87 (driving_force_ex VARCHAR, gt_force VARCHAR, g27_racing_wheel VARCHAR)
SELECT driving_force_ex FROM table_name_87 WHERE gt_force = "yes" AND g27_racing_wheel = "16"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (driving_force_ex VARCHAR, gt_force VARCHAR, g27_racing_wheel VARCHAR) Question: GT Force of yes, and a G27 Racing Wheel of 16 involves which driving force ex? [/INST] SELECT driving_force_ex FROM table_name_87 WHERE gt_force = "yes" AND g27_racing_wheel = "16" </s>
What is the score on october 7?
CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_95 WHERE date = "october 7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR) Question: What is the score on october 7? [/INST] SELECT score FROM table_name_95 WHERE date = "october 7" </s>
How many people went to the game that had 17-13?
CREATE TABLE table_name_39 (attendance INTEGER, score VARCHAR)
SELECT SUM(attendance) FROM table_name_39 WHERE score = "17-13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (attendance INTEGER, score VARCHAR) Question: How many people went to the game that had 17-13? [/INST] SELECT SUM(attendance) FROM table_name_39 WHERE score = "17-13" </s>
What is the highest rank for the airport with a code of HKG/VHHH?
CREATE TABLE table_name_56 (rank INTEGER, code__iata_icao_ VARCHAR)
SELECT MAX(rank) FROM table_name_56 WHERE code__iata_icao_ = "hkg/vhhh"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (rank INTEGER, code__iata_icao_ VARCHAR) Question: What is the highest rank for the airport with a code of HKG/VHHH? [/INST] SELECT MAX(rank) FROM table_name_56 WHERE code__iata_icao_ = "hkg/vhhh" </s>
How many Points have Drawn of 7, and a Team of corinthians, and a Played larger than 18?
CREATE TABLE table_name_72 (points VARCHAR, played VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT COUNT(points) FROM table_name_72 WHERE drawn = 7 AND team = "corinthians" AND played > 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (points VARCHAR, played VARCHAR, drawn VARCHAR, team VARCHAR) Question: How many Points have Drawn of 7, and a Team of corinthians, and a Played larger than 18? [/INST] SELECT COUNT(points) FROM table_name_72 WHERE drawn = 7 AND team = "corinthians" AND played > 18 </s>
Which Points is the highest one that has a Position of 5, and a Played smaller than 18?
CREATE TABLE table_name_80 (points INTEGER, position VARCHAR, played VARCHAR)
SELECT MAX(points) FROM table_name_80 WHERE position = 5 AND played < 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (points INTEGER, position VARCHAR, played VARCHAR) Question: Which Points is the highest one that has a Position of 5, and a Played smaller than 18? [/INST] SELECT MAX(points) FROM table_name_80 WHERE position = 5 AND played < 18 </s>
Which Drawn is the average one that has a Position smaller than 9, and Points smaller than 22, and a Lost smaller than 9, and an Against larger than 29?
CREATE TABLE table_name_76 (drawn INTEGER, against VARCHAR, lost VARCHAR, position VARCHAR, points VARCHAR)
SELECT AVG(drawn) FROM table_name_76 WHERE position < 9 AND points < 22 AND lost < 9 AND against > 29
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (drawn INTEGER, against VARCHAR, lost VARCHAR, position VARCHAR, points VARCHAR) Question: Which Drawn is the average one that has a Position smaller than 9, and Points smaller than 22, and a Lost smaller than 9, and an Against larger than 29? [/INST] SELECT AVG(drawn) FROM table_name_76 WHERE position < 9 AND points < 22 AND lost < 9 AND against > 29 </s>
How many Against have Played smaller than 18?
CREATE TABLE table_name_54 (against VARCHAR, played INTEGER)
SELECT COUNT(against) FROM table_name_54 WHERE played < 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (against VARCHAR, played INTEGER) Question: How many Against have Played smaller than 18? [/INST] SELECT COUNT(against) FROM table_name_54 WHERE played < 18 </s>
What is the points difference associated with more than 3 points and more than 0 losses?
CREATE TABLE table_name_66 (points_difference VARCHAR, points VARCHAR, lost VARCHAR)
SELECT points_difference FROM table_name_66 WHERE points > 3 AND lost > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (points_difference VARCHAR, points VARCHAR, lost VARCHAR) Question: What is the points difference associated with more than 3 points and more than 0 losses? [/INST] SELECT points_difference FROM table_name_66 WHERE points > 3 AND lost > 0 </s>
What is the difference associated with more than 2 losses and more than 1 point?
CREATE TABLE table_name_45 (points_difference VARCHAR, lost VARCHAR, points VARCHAR)
SELECT points_difference FROM table_name_45 WHERE lost > 2 AND points > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (points_difference VARCHAR, lost VARCHAR, points VARCHAR) Question: What is the difference associated with more than 2 losses and more than 1 point? [/INST] SELECT points_difference FROM table_name_45 WHERE lost > 2 AND points > 1 </s>
What location did game 64 take place
CREATE TABLE table_name_34 (location VARCHAR, game VARCHAR)
SELECT location FROM table_name_34 WHERE game = 64
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (location VARCHAR, game VARCHAR) Question: What location did game 64 take place [/INST] SELECT location FROM table_name_34 WHERE game = 64 </s>
What was the Attendance after Week 7 at Tiger Stadium?
CREATE TABLE table_name_27 (attendance VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_27 WHERE game_site = "tiger stadium" AND week > 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (attendance VARCHAR, game_site VARCHAR, week VARCHAR) Question: What was the Attendance after Week 7 at Tiger Stadium? [/INST] SELECT COUNT(attendance) FROM table_name_27 WHERE game_site = "tiger stadium" AND week > 7 </s>
What was the Attendance at the Game with a Result of w 21–7?
CREATE TABLE table_name_71 (attendance INTEGER, result VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (attendance INTEGER, result VARCHAR) Question: What was the Attendance at the Game with a Result of w 21–7? [/INST] SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7" </s>
How many years have a Make/ Model of new flyer c40lfr?
CREATE TABLE table_name_4 (year VARCHAR, make__model VARCHAR)
SELECT COUNT(year) FROM table_name_4 WHERE make__model = "new flyer c40lfr"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (year VARCHAR, make__model VARCHAR) Question: How many years have a Make/ Model of new flyer c40lfr? [/INST] SELECT COUNT(year) FROM table_name_4 WHERE make__model = "new flyer c40lfr" </s>
Which Make/ Model that Numbers (Quantity Ordered) of 1461–1500 (40 buses)?
CREATE TABLE table_name_36 (make__model VARCHAR, numbers__quantity_ordered_ VARCHAR)
SELECT make__model FROM table_name_36 WHERE numbers__quantity_ordered_ = "1461–1500 (40 buses)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (make__model VARCHAR, numbers__quantity_ordered_ VARCHAR) Question: Which Make/ Model that Numbers (Quantity Ordered) of 1461–1500 (40 buses)? [/INST] SELECT make__model FROM table_name_36 WHERE numbers__quantity_ordered_ = "1461–1500 (40 buses)" </s>
Which Fuel Propulsion has Numbers (Quantity Ordered) of 7124-7156 (33 buses)?
CREATE TABLE table_name_34 (fuel_propulsion VARCHAR, numbers__quantity_ordered_ VARCHAR)
SELECT fuel_propulsion FROM table_name_34 WHERE numbers__quantity_ordered_ = "7124-7156 (33 buses)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (fuel_propulsion VARCHAR, numbers__quantity_ordered_ VARCHAR) Question: Which Fuel Propulsion has Numbers (Quantity Ordered) of 7124-7156 (33 buses)? [/INST] SELECT fuel_propulsion FROM table_name_34 WHERE numbers__quantity_ordered_ = "7124-7156 (33 buses)" </s>