instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
How many points for did Bridgend Athletic RFC score?
CREATE TABLE table_name_86 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_name_86 WHERE club = "bridgend athletic rfc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (points_for VARCHAR, club VARCHAR) Question: How many points for did Bridgend Athletic RFC score? [/INST] SELECT points_for FROM table_name_86 WHERE club = "bridgend athletic rfc" </s>
How many tries for did the team with a try bonus of 5 score?
CREATE TABLE table_name_49 (tries_for VARCHAR, try_bonus VARCHAR)
SELECT tries_for FROM table_name_49 WHERE try_bonus = "5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (tries_for VARCHAR, try_bonus VARCHAR) Question: How many tries for did the team with a try bonus of 5 score? [/INST] SELECT tries_for FROM table_name_49 WHERE try_bonus = "5" </s>
How many points against did the team that allowed 42 tries against allow?
CREATE TABLE table_name_65 (points_against VARCHAR, tries_against VARCHAR)
SELECT points_against FROM table_name_65 WHERE tries_against = "42"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (points_against VARCHAR, tries_against VARCHAR) Question: How many points against did the team that allowed 42 tries against allow? [/INST] SELECT points_against FROM table_name_65 WHERE tries_against = "42" </s>
What is the average number of bronze medals associated with 0 silver, 1 total, and ranks over 16?
CREATE TABLE table_name_58 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_58 WHERE total = 1 AND silver = 0 AND rank > 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR) Question: What is the average number of bronze medals associated with 0 silver, 1 total, and ranks over 16? [/INST] SELECT AVG(bronze) FROM table_name_58 WHERE total = 1 AND silver = 0 AND rank > 16 </s>
What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze?
CREATE TABLE table_name_33 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_33 WHERE bronze = 2 AND gold = 1 AND silver > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) Question: What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze? [/INST] SELECT MAX(total) FROM table_name_33 WHERE bronze = 2 AND gold = 1 AND silver > 0 </s>
What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3?
CREATE TABLE table_name_53 (total VARCHAR, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT COUNT(total) FROM table_name_53 WHERE silver > 3 AND rank = 3 AND bronze > 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (total VARCHAR, bronze VARCHAR, silver VARCHAR, rank VARCHAR) Question: What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3? [/INST] SELECT COUNT(total) FROM table_name_53 WHERE silver > 3 AND rank = 3 AND bronze > 2 </s>
What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?
CREATE TABLE table_name_75 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT MIN(silver) FROM table_name_75 WHERE bronze = 0 AND rank = 14 AND gold > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR) Question: What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14? [/INST] SELECT MIN(silver) FROM table_name_75 WHERE bronze = 0 AND rank = 14 AND gold > 0 </s>
What is the qual 1 for conquest racing?
CREATE TABLE table_name_41 (qual_1 VARCHAR, team VARCHAR)
SELECT qual_1 FROM table_name_41 WHERE team = "conquest racing"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (qual_1 VARCHAR, team VARCHAR) Question: What is the qual 1 for conquest racing? [/INST] SELECT qual_1 FROM table_name_41 WHERE team = "conquest racing" </s>
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?
CREATE TABLE table_name_34 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR)
SELECT MIN(best) FROM table_name_34 WHERE team = "n/h/l racing" AND name = "graham rahal" AND qual_2 > 59.384
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR) Question: Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best? [/INST] SELECT MIN(best) FROM table_name_34 WHERE team = "n/h/l racing" AND name = "graham rahal" AND qual_2 > 59.384 </s>
What is the total best for Bruno junqueira
CREATE TABLE table_name_32 (best INTEGER, name VARCHAR)
SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (best INTEGER, name VARCHAR) Question: What is the total best for Bruno junqueira [/INST] SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira" </s>
What is the Mascot of Brook?
CREATE TABLE table_name_25 (mascot VARCHAR, location VARCHAR)
SELECT mascot FROM table_name_25 WHERE location = "brook"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (mascot VARCHAR, location VARCHAR) Question: What is the Mascot of Brook? [/INST] SELECT mascot FROM table_name_25 WHERE location = "brook" </s>
When was the first year when Fowler joined?
CREATE TABLE table_name_73 (year_left INTEGER, location VARCHAR)
SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (year_left INTEGER, location VARCHAR) Question: When was the first year when Fowler joined? [/INST] SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler" </s>
What is the molecular target of bacterium?
CREATE TABLE table_name_10 (molecular_target VARCHAR, marine_organism_Ξ± VARCHAR)
SELECT molecular_target FROM table_name_10 WHERE marine_organism_Ξ± = "bacterium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (molecular_target VARCHAR, marine_organism_Ξ± VARCHAR) Question: What is the molecular target of bacterium? [/INST] SELECT molecular_target FROM table_name_10 WHERE marine_organism_Ξ± = "bacterium" </s>
What is the organism that has a disease area of cancer and has 4/4 clinical trial b?
CREATE TABLE table_name_96 (marine_organism_Ξ± VARCHAR, disease_area VARCHAR, clinical_trials_Ξ² VARCHAR)
SELECT marine_organism_Ξ± FROM table_name_96 WHERE disease_area = "cancer" AND clinical_trials_Ξ² = "4/4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (marine_organism_Ξ± VARCHAR, disease_area VARCHAR, clinical_trials_Ξ² VARCHAR) Question: What is the organism that has a disease area of cancer and has 4/4 clinical trial b? [/INST] SELECT marine_organism_Ξ± FROM table_name_96 WHERE disease_area = "cancer" AND clinical_trials_Ξ² = "4/4" </s>
What is the molecular target of the organism that has a disease area of antiviral?
CREATE TABLE table_name_45 (molecular_target VARCHAR, disease_area VARCHAR)
SELECT molecular_target FROM table_name_45 WHERE disease_area = "antiviral"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (molecular_target VARCHAR, disease_area VARCHAR) Question: What is the molecular target of the organism that has a disease area of antiviral? [/INST] SELECT molecular_target FROM table_name_45 WHERE disease_area = "antiviral" </s>
On what date was the record 62–84?
CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_38 WHERE record = "62–84"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (date VARCHAR, record VARCHAR) Question: On what date was the record 62–84? [/INST] SELECT date FROM table_name_38 WHERE record = "62–84" </s>
What was the record on September 4?
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_26 WHERE date = "september 4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR) Question: What was the record on September 4? [/INST] SELECT record FROM table_name_26 WHERE date = "september 4" </s>
What was the record on September 26?
CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_79 WHERE date = "september 26"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR) Question: What was the record on September 26? [/INST] SELECT record FROM table_name_79 WHERE date = "september 26" </s>
Who was the opponent with a Loss of Leal (1–4)?
CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_35 WHERE loss = "leal (1–4)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR) Question: Who was the opponent with a Loss of Leal (1–4)? [/INST] SELECT opponent FROM table_name_35 WHERE loss = "leal (1–4)" </s>
What was the result of the match played on 13 October 1993?
CREATE TABLE table_name_93 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_93 WHERE date = "13 october 1993"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (result VARCHAR, date VARCHAR) Question: What was the result of the match played on 13 October 1993? [/INST] SELECT result FROM table_name_93 WHERE date = "13 october 1993" </s>
When did the team score 21 goals?
CREATE TABLE table_name_67 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_67 WHERE goal = 21
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (date VARCHAR, goal VARCHAR) Question: When did the team score 21 goals? [/INST] SELECT date FROM table_name_67 WHERE goal = 21 </s>
What was the score of the match played on 14 October 1998, resulting in more than 10 goals?
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, goal VARCHAR)
SELECT score FROM table_name_59 WHERE date = "14 october 1998" AND goal > 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, goal VARCHAR) Question: What was the score of the match played on 14 October 1998, resulting in more than 10 goals? [/INST] SELECT score FROM table_name_59 WHERE date = "14 october 1998" AND goal > 10 </s>
What is the total number of years that Scuderia Guastalla was an entrant?
CREATE TABLE table_name_24 (year VARCHAR, entrant VARCHAR)
SELECT COUNT(year) FROM table_name_24 WHERE entrant = "scuderia guastalla"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (year VARCHAR, entrant VARCHAR) Question: What is the total number of years that Scuderia Guastalla was an entrant? [/INST] SELECT COUNT(year) FROM table_name_24 WHERE entrant = "scuderia guastalla" </s>
What was the earliest year that Scuderia Ferrari was an entrant with 0 points?
CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, entrant VARCHAR)
SELECT MIN(year) FROM table_name_88 WHERE points = "0" AND entrant = "scuderia ferrari"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, entrant VARCHAR) Question: What was the earliest year that Scuderia Ferrari was an entrant with 0 points? [/INST] SELECT MIN(year) FROM table_name_88 WHERE points = "0" AND entrant = "scuderia ferrari" </s>
What is the total number of years that has a chassis of Ferrari 625 and 2 points?
CREATE TABLE table_name_24 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_24 WHERE chassis = "ferrari 625" AND points = "2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (year VARCHAR, chassis VARCHAR, points VARCHAR) Question: What is the total number of years that has a chassis of Ferrari 625 and 2 points? [/INST] SELECT COUNT(year) FROM table_name_24 WHERE chassis = "ferrari 625" AND points = "2" </s>
Which 2006 Cobra Starship song has work done of guest vocals?
CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR)
SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR) Question: Which 2006 Cobra Starship song has work done of guest vocals? [/INST] SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship" </s>
What is the decile sum with a roll smaller than 25, and franz josef area?
CREATE TABLE table_name_37 (decile INTEGER, roll VARCHAR, area VARCHAR)
SELECT SUM(decile) FROM table_name_37 WHERE roll < 25 AND area = "franz josef"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (decile INTEGER, roll VARCHAR, area VARCHAR) Question: What is the decile sum with a roll smaller than 25, and franz josef area? [/INST] SELECT SUM(decile) FROM table_name_37 WHERE roll < 25 AND area = "franz josef" </s>
What is the area with decile of 8, and a 25 roll?
CREATE TABLE table_name_67 (area VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT area FROM table_name_67 WHERE decile = 8 AND roll = 25
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (area VARCHAR, decile VARCHAR, roll VARCHAR) Question: What is the area with decile of 8, and a 25 roll? [/INST] SELECT area FROM table_name_67 WHERE decile = 8 AND roll = 25 </s>
What is the overall pick average with the pick # lower than 15?
CREATE TABLE table_name_26 (overall INTEGER, pick__number INTEGER)
SELECT AVG(overall) FROM table_name_26 WHERE pick__number < 15
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (overall INTEGER, pick__number INTEGER) Question: What is the overall pick average with the pick # lower than 15? [/INST] SELECT AVG(overall) FROM table_name_26 WHERE pick__number < 15 </s>
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?
CREATE TABLE table_name_3 (rank INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (rank INTEGER, bronze VARCHAR, total VARCHAR) Question: What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze? [/INST] SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 10 </s>
What is the Qual listed on the Year of 1954?
CREATE TABLE table_name_38 (qual VARCHAR, year VARCHAR)
SELECT qual FROM table_name_38 WHERE year = "1954"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (qual VARCHAR, year VARCHAR) Question: What is the Qual listed on the Year of 1954? [/INST] SELECT qual FROM table_name_38 WHERE year = "1954" </s>
Which Year has a Qual of 144.683 and Lap larger than 27?
CREATE TABLE table_name_66 (year VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT year FROM table_name_66 WHERE laps > 27 AND qual = "144.683"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (year VARCHAR, laps VARCHAR, qual VARCHAR) Question: Which Year has a Qual of 144.683 and Lap larger than 27? [/INST] SELECT year FROM table_name_66 WHERE laps > 27 AND qual = "144.683" </s>
What's the Qual listed with a Rank of 27?
CREATE TABLE table_name_41 (qual VARCHAR, rank VARCHAR)
SELECT qual FROM table_name_41 WHERE rank = "27"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (qual VARCHAR, rank VARCHAR) Question: What's the Qual listed with a Rank of 27? [/INST] SELECT qual FROM table_name_41 WHERE rank = "27" </s>
Which Team has a Year of 1978?
CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_45 WHERE year = 1978
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR) Question: Which Team has a Year of 1978? [/INST] SELECT team FROM table_name_45 WHERE year = 1978 </s>
Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?
CREATE TABLE table_name_51 (engine VARCHAR, team VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_51 WHERE team = "chesterfield racing" AND chassis = "march 761"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (engine VARCHAR, team VARCHAR, chassis VARCHAR) Question: Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761? [/INST] SELECT engine FROM table_name_51 WHERE team = "chesterfield racing" AND chassis = "march 761" </s>
What is the smallest year with a Mintage smaller than 10,000?
CREATE TABLE table_name_37 (year INTEGER, mintage INTEGER)
SELECT MIN(year) FROM table_name_37 WHERE mintage < 10 OFFSET 000 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (year INTEGER, mintage INTEGER) Question: What is the smallest year with a Mintage smaller than 10,000? [/INST] SELECT MIN(year) FROM table_name_37 WHERE mintage < 10 OFFSET 000 ROWS </s>
Which loss has a Date of april 26?
CREATE TABLE table_name_30 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_30 WHERE date = "april 26"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (loss VARCHAR, date VARCHAR) Question: Which loss has a Date of april 26? [/INST] SELECT loss FROM table_name_30 WHERE date = "april 26" </s>
Which date has an Opponent of angels, and a Loss of sanderson (0–1)?
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT date FROM table_name_95 WHERE opponent = "angels" AND loss = "sanderson (0–1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, loss VARCHAR) Question: Which date has an Opponent of angels, and a Loss of sanderson (0–1)? [/INST] SELECT date FROM table_name_95 WHERE opponent = "angels" AND loss = "sanderson (0–1)" </s>
What is the largest Attendance with a Loss of darling (0–1)?
CREATE TABLE table_name_35 (attendance INTEGER, loss VARCHAR)
SELECT MAX(attendance) FROM table_name_35 WHERE loss = "darling (0–1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (attendance INTEGER, loss VARCHAR) Question: What is the largest Attendance with a Loss of darling (0–1)? [/INST] SELECT MAX(attendance) FROM table_name_35 WHERE loss = "darling (0–1)" </s>
What is the maximum capacity of the San Agustin Gym?
CREATE TABLE table_name_91 (maximum_seating_capacity VARCHAR, arena_venue VARCHAR)
SELECT maximum_seating_capacity FROM table_name_91 WHERE arena_venue = "san agustin gym"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (maximum_seating_capacity VARCHAR, arena_venue VARCHAR) Question: What is the maximum capacity of the San Agustin Gym? [/INST] SELECT maximum_seating_capacity FROM table_name_91 WHERE arena_venue = "san agustin gym" </s>
Where is the Cagayan de Oro city located?
CREATE TABLE table_name_98 (province_region VARCHAR, location VARCHAR)
SELECT province_region FROM table_name_98 WHERE location = "cagayan de oro city"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (province_region VARCHAR, location VARCHAR) Question: Where is the Cagayan de Oro city located? [/INST] SELECT province_region FROM table_name_98 WHERE location = "cagayan de oro city" </s>
Where is the Holy Cross of Davao College campus located?
CREATE TABLE table_name_42 (province_region VARCHAR, home_campus VARCHAR)
SELECT province_region FROM table_name_42 WHERE home_campus = "holy cross of davao college"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (province_region VARCHAR, home_campus VARCHAR) Question: Where is the Holy Cross of Davao College campus located? [/INST] SELECT province_region FROM table_name_42 WHERE home_campus = "holy cross of davao college" </s>
Which campus has the San Agustin gym?
CREATE TABLE table_name_2 (home_campus VARCHAR, arena_venue VARCHAR)
SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (home_campus VARCHAR, arena_venue VARCHAR) Question: Which campus has the San Agustin gym? [/INST] SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym" </s>
What year did the San Agustin gym open?
CREATE TABLE table_name_44 (year_opened VARCHAR, arena_venue VARCHAR)
SELECT year_opened FROM table_name_44 WHERE arena_venue = "san agustin gym"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (year_opened VARCHAR, arena_venue VARCHAR) Question: What year did the San Agustin gym open? [/INST] SELECT year_opened FROM table_name_44 WHERE arena_venue = "san agustin gym" </s>
Which player has a total bigger than 285 and a to par of +14?
CREATE TABLE table_name_10 (player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_10 WHERE total > 285 AND to_par = "+14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (player VARCHAR, total VARCHAR, to_par VARCHAR) Question: Which player has a total bigger than 285 and a to par of +14? [/INST] SELECT player FROM table_name_10 WHERE total > 285 AND to_par = "+14" </s>
What is the highest total with a t12 finish?
CREATE TABLE table_name_61 (total INTEGER, finish VARCHAR)
SELECT MAX(total) FROM table_name_61 WHERE finish = "t12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (total INTEGER, finish VARCHAR) Question: What is the highest total with a t12 finish? [/INST] SELECT MAX(total) FROM table_name_61 WHERE finish = "t12" </s>
Which country has a finish of t4?
CREATE TABLE table_name_98 (country VARCHAR, finish VARCHAR)
SELECT country FROM table_name_98 WHERE finish = "t4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (country VARCHAR, finish VARCHAR) Question: Which country has a finish of t4? [/INST] SELECT country FROM table_name_98 WHERE finish = "t4" </s>
What year won has a total less than 281?
CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER)
SELECT year_s__won FROM table_name_71 WHERE total < 281
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER) Question: What year won has a total less than 281? [/INST] SELECT year_s__won FROM table_name_71 WHERE total < 281 </s>
Which chassis is ranked 24th?
CREATE TABLE table_name_96 (chassis VARCHAR, rank VARCHAR)
SELECT chassis FROM table_name_96 WHERE rank = "24th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (chassis VARCHAR, rank VARCHAR) Question: Which chassis is ranked 24th? [/INST] SELECT chassis FROM table_name_96 WHERE rank = "24th" </s>
Which chassis was made in 1993?
CREATE TABLE table_name_94 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_94 WHERE year = 1993
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (chassis VARCHAR, year VARCHAR) Question: Which chassis was made in 1993? [/INST] SELECT chassis FROM table_name_94 WHERE year = 1993 </s>
Which team is from earlier than 1994?
CREATE TABLE table_name_53 (team VARCHAR, year INTEGER)
SELECT team FROM table_name_53 WHERE year < 1994
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (team VARCHAR, year INTEGER) Question: Which team is from earlier than 1994? [/INST] SELECT team FROM table_name_53 WHERE year < 1994 </s>
What rank is later than 1994?
CREATE TABLE table_name_4 (rank VARCHAR, year INTEGER)
SELECT rank FROM table_name_4 WHERE year > 1994
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (rank VARCHAR, year INTEGER) Question: What rank is later than 1994? [/INST] SELECT rank FROM table_name_4 WHERE year > 1994 </s>
What year did the King team have fewer than 10 points?
CREATE TABLE table_name_66 (year INTEGER, team VARCHAR, points VARCHAR)
SELECT AVG(year) FROM table_name_66 WHERE team = "king" AND points < 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (year INTEGER, team VARCHAR, points VARCHAR) Question: What year did the King team have fewer than 10 points? [/INST] SELECT AVG(year) FROM table_name_66 WHERE team = "king" AND points < 10 </s>
What are the average points for the Project Indy team that has the Ford xb engine?
CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR)
SELECT AVG(points) FROM table_name_42 WHERE engine = "ford xb" AND team = "project indy"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR) Question: What are the average points for the Project Indy team that has the Ford xb engine? [/INST] SELECT AVG(points) FROM table_name_42 WHERE engine = "ford xb" AND team = "project indy" </s>
Name the became consort for marriage of 4 april 1721
CREATE TABLE table_name_92 (became_consort VARCHAR, marriage VARCHAR)
SELECT became_consort FROM table_name_92 WHERE marriage = "4 april 1721"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (became_consort VARCHAR, marriage VARCHAR) Question: Name the became consort for marriage of 4 april 1721 [/INST] SELECT became_consort FROM table_name_92 WHERE marriage = "4 april 1721" </s>
Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721
CREATE TABLE table_name_55 (birth VARCHAR, spouse VARCHAR, became_consort VARCHAR)
SELECT birth FROM table_name_55 WHERE spouse = "frederick iv" AND became_consort = "4 april 1721"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (birth VARCHAR, spouse VARCHAR, became_consort VARCHAR) Question: Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721 [/INST] SELECT birth FROM table_name_55 WHERE spouse = "frederick iv" AND became_consort = "4 april 1721" </s>
Name the became consort for ceased to be consort of 4 april 1588 husband's death
CREATE TABLE table_name_14 (became_consort VARCHAR, ceased_to_be_consort VARCHAR)
SELECT became_consort FROM table_name_14 WHERE ceased_to_be_consort = "4 april 1588 husband's death"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (became_consort VARCHAR, ceased_to_be_consort VARCHAR) Question: Name the became consort for ceased to be consort of 4 april 1588 husband's death [/INST] SELECT became_consort FROM table_name_14 WHERE ceased_to_be_consort = "4 april 1588 husband's death" </s>
Name the marriage of the person who is married for christian viii
CREATE TABLE table_name_74 (marriage VARCHAR, spouse VARCHAR)
SELECT marriage FROM table_name_74 WHERE spouse = "christian viii"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (marriage VARCHAR, spouse VARCHAR) Question: Name the marriage of the person who is married for christian viii [/INST] SELECT marriage FROM table_name_74 WHERE spouse = "christian viii" </s>
Who has 48 points in the class of 500 cc?
CREATE TABLE table_name_11 (team VARCHAR, points VARCHAR, class VARCHAR)
SELECT team FROM table_name_11 WHERE points = 48 AND class = "500 cc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (team VARCHAR, points VARCHAR, class VARCHAR) Question: Who has 48 points in the class of 500 cc? [/INST] SELECT team FROM table_name_11 WHERE points = 48 AND class = "500 cc" </s>
How many wins does Benelli have before 1962?
CREATE TABLE table_name_43 (wins VARCHAR, team VARCHAR, year VARCHAR)
SELECT COUNT(wins) FROM table_name_43 WHERE team = "benelli" AND year < 1962
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (wins VARCHAR, team VARCHAR, year VARCHAR) Question: How many wins does Benelli have before 1962? [/INST] SELECT COUNT(wins) FROM table_name_43 WHERE team = "benelli" AND year < 1962 </s>
Which is Natural Wood Keyboard with a Model of clps306?
CREATE TABLE table_name_18 (natural_wood_keyboard VARCHAR, model VARCHAR)
SELECT natural_wood_keyboard FROM table_name_18 WHERE model = "clps306"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (natural_wood_keyboard VARCHAR, model VARCHAR) Question: Which is Natural Wood Keyboard with a Model of clps306? [/INST] SELECT natural_wood_keyboard FROM table_name_18 WHERE model = "clps306" </s>
Which Graded Hammer (Non GH3) has a Model of cvp501?
CREATE TABLE table_name_44 (graded_hammer__non_gh3_ VARCHAR, model VARCHAR)
SELECT graded_hammer__non_gh3_ FROM table_name_44 WHERE model = "cvp501"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (graded_hammer__non_gh3_ VARCHAR, model VARCHAR) Question: Which Graded Hammer (Non GH3) has a Model of cvp501? [/INST] SELECT graded_hammer__non_gh3_ FROM table_name_44 WHERE model = "cvp501" </s>
Which Natural Wood Keyboard has a CLP380 ?
CREATE TABLE table_name_21 (natural_wood_keyboard VARCHAR, model VARCHAR)
SELECT natural_wood_keyboard FROM table_name_21 WHERE model = "clp380"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (natural_wood_keyboard VARCHAR, model VARCHAR) Question: Which Natural Wood Keyboard has a CLP380 ? [/INST] SELECT natural_wood_keyboard FROM table_name_21 WHERE model = "clp380" </s>
Which Graded Hammer Three (GH3) shows Model of clp320?
CREATE TABLE table_name_20 (graded_hammer_three__gh3_ VARCHAR, model VARCHAR)
SELECT graded_hammer_three__gh3_ FROM table_name_20 WHERE model = "clp320"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (graded_hammer_three__gh3_ VARCHAR, model VARCHAR) Question: Which Graded Hammer Three (GH3) shows Model of clp320? [/INST] SELECT graded_hammer_three__gh3_ FROM table_name_20 WHERE model = "clp320" </s>
What was the date for the French Grand Prix?
CREATE TABLE table_name_19 (date VARCHAR, name VARCHAR)
SELECT date FROM table_name_19 WHERE name = "french grand prix"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (date VARCHAR, name VARCHAR) Question: What was the date for the French Grand Prix? [/INST] SELECT date FROM table_name_19 WHERE name = "french grand prix" </s>
What was the name for the race in the Miramas circuit?
CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_31 WHERE circuit = "miramas"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR) Question: What was the name for the race in the Miramas circuit? [/INST] SELECT name FROM table_name_31 WHERE circuit = "miramas" </s>
Which circuit was Delage the winning constructor for?
CREATE TABLE table_name_44 (circuit VARCHAR, winning_constructor VARCHAR)
SELECT circuit FROM table_name_44 WHERE winning_constructor = "delage"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (circuit VARCHAR, winning_constructor VARCHAR) Question: Which circuit was Delage the winning constructor for? [/INST] SELECT circuit FROM table_name_44 WHERE winning_constructor = "delage" </s>
What is the name for the Monza circuit race were Bugatti was the winning constructor?
CREATE TABLE table_name_51 (name VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_51 WHERE winning_constructor = "bugatti" AND circuit = "monza"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (name VARCHAR, winning_constructor VARCHAR, circuit VARCHAR) Question: What is the name for the Monza circuit race were Bugatti was the winning constructor? [/INST] SELECT name FROM table_name_51 WHERE winning_constructor = "bugatti" AND circuit = "monza" </s>
Which report shows that Frank Lockhart was a winning driver?
CREATE TABLE table_name_79 (report VARCHAR, winning_drivers VARCHAR)
SELECT report FROM table_name_79 WHERE winning_drivers = "frank lockhart"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (report VARCHAR, winning_drivers VARCHAR) Question: Which report shows that Frank Lockhart was a winning driver? [/INST] SELECT report FROM table_name_79 WHERE winning_drivers = "frank lockhart" </s>
What Ranking has Gold less than 20 and the Event 1976 Toronto?
CREATE TABLE table_name_25 (ranking VARCHAR, gold VARCHAR, event VARCHAR)
SELECT ranking FROM table_name_25 WHERE gold < 20 AND event = "1976 toronto"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (ranking VARCHAR, gold VARCHAR, event VARCHAR) Question: What Ranking has Gold less than 20 and the Event 1976 Toronto? [/INST] SELECT ranking FROM table_name_25 WHERE gold < 20 AND event = "1976 toronto" </s>
What Gold has a Silver greater than 30 and a Total less than 107?
CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR) Question: What Gold has a Silver greater than 30 and a Total less than 107? [/INST] SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107 </s>
What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?
CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_27 WHERE event = "1972 heidelberg" AND total < 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR) Question: What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5? [/INST] SELECT MAX(bronze) FROM table_name_27 WHERE event = "1972 heidelberg" AND total < 5 </s>
What is the Total with the Event 2004 Athens and Gold less than 20?
CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR) Question: What is the Total with the Event 2004 Athens and Gold less than 20? [/INST] SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20 </s>
What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4?
CREATE TABLE table_name_2 (bronze INTEGER, ranking VARCHAR, gold VARCHAR)
SELECT MIN(bronze) FROM table_name_2 WHERE ranking = "22nd of 32" AND gold > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (bronze INTEGER, ranking VARCHAR, gold VARCHAR) Question: What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4? [/INST] SELECT MIN(bronze) FROM table_name_2 WHERE ranking = "22nd of 32" AND gold > 4 </s>
Which polling firm put T. Papadopoulos at 31%?
CREATE TABLE table_name_91 (polling_firm VARCHAR, t_papadopoulos VARCHAR)
SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = "31%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (polling_firm VARCHAR, t_papadopoulos VARCHAR) Question: Which polling firm put T. Papadopoulos at 31%? [/INST] SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = "31%" </s>
What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?
CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR)
SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR) Question: What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%? [/INST] SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%" </s>
What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%?
CREATE TABLE table_name_65 (k_themistokleous VARCHAR, i_kasoulidis VARCHAR)
SELECT k_themistokleous FROM table_name_65 WHERE i_kasoulidis = "30.1%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (k_themistokleous VARCHAR, i_kasoulidis VARCHAR) Question: What was the percentage for K. Themistokleous when I. Kasoulidis was 30.1%? [/INST] SELECT k_themistokleous FROM table_name_65 WHERE i_kasoulidis = "30.1%" </s>
What was the percentage for T. Papadopoulos when D. Christofias was 28.4%?
CREATE TABLE table_name_48 (t_papadopoulos VARCHAR, d_christofias VARCHAR)
SELECT t_papadopoulos FROM table_name_48 WHERE d_christofias = "28.4%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (t_papadopoulos VARCHAR, d_christofias VARCHAR) Question: What was the percentage for T. Papadopoulos when D. Christofias was 28.4%? [/INST] SELECT t_papadopoulos FROM table_name_48 WHERE d_christofias = "28.4%" </s>
Which tournament has a 2007 of 2r, and a 2011 of 2r?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT tournament FROM table_name_93 WHERE 2007 = "2r" AND 2011 = "2r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (tournament VARCHAR) Question: Which tournament has a 2007 of 2r, and a 2011 of 2r? [/INST] SELECT tournament FROM table_name_93 WHERE 2007 = "2r" AND 2011 = "2r" </s>
What is the number of titles for the city of gyΕ‘r with a rank larger than 4?
CREATE TABLE table_name_47 (titles INTEGER, city VARCHAR, rank VARCHAR)
SELECT SUM(titles) FROM table_name_47 WHERE city = "gyΕ‘r" AND rank > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (titles INTEGER, city VARCHAR, rank VARCHAR) Question: What is the number of titles for the city of gyΕ‘r with a rank larger than 4? [/INST] SELECT SUM(titles) FROM table_name_47 WHERE city = "gyΕ‘r" AND rank > 4 </s>
What is the Score of the Toronto Maple Leafs home game on February 1?
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_99 WHERE home = "toronto maple leafs" AND date = "february 1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR, date VARCHAR) Question: What is the Score of the Toronto Maple Leafs home game on February 1? [/INST] SELECT score FROM table_name_99 WHERE home = "toronto maple leafs" AND date = "february 1" </s>
What is the score of the Boston Bruins away game on March 13?
CREATE TABLE table_name_92 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_92 WHERE visitor = "boston bruins" AND date = "march 13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (score VARCHAR, visitor VARCHAR, date VARCHAR) Question: What is the score of the Boston Bruins away game on March 13? [/INST] SELECT score FROM table_name_92 WHERE visitor = "boston bruins" AND date = "march 13" </s>
What visiting team has a record of 9–5–2?
CREATE TABLE table_name_93 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_93 WHERE record = "9–5–2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (visitor VARCHAR, record VARCHAR) Question: What visiting team has a record of 9–5–2? [/INST] SELECT visitor FROM table_name_93 WHERE record = "9–5–2" </s>
What is the score of the game with a record of 12–8–3?
CREATE TABLE table_name_98 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_98 WHERE record = "12–8–3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (score VARCHAR, record VARCHAR) Question: What is the score of the game with a record of 12–8–3? [/INST] SELECT score FROM table_name_98 WHERE record = "12–8–3" </s>
What is the date that the Montreal Canadiens hosted a game with a record of 14–11–3?
CREATE TABLE table_name_77 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_77 WHERE home = "montreal canadiens" AND record = "14–11–3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (date VARCHAR, home VARCHAR, record VARCHAR) Question: What is the date that the Montreal Canadiens hosted a game with a record of 14–11–3? [/INST] SELECT date FROM table_name_77 WHERE home = "montreal canadiens" AND record = "14–11–3" </s>
What is the country of Craig Stadler?
CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_65 WHERE player = "craig stadler"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR) Question: What is the country of Craig Stadler? [/INST] SELECT country FROM table_name_65 WHERE player = "craig stadler" </s>
What is the average total of Gay Brewer from the United States with a to par of 9?
CREATE TABLE table_name_49 (total INTEGER, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT AVG(total) FROM table_name_49 WHERE country = "united states" AND to_par = 9 AND player = "gay brewer"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (total INTEGER, player VARCHAR, country VARCHAR, to_par VARCHAR) Question: What is the average total of Gay Brewer from the United States with a to par of 9? [/INST] SELECT AVG(total) FROM table_name_49 WHERE country = "united states" AND to_par = 9 AND player = "gay brewer" </s>
What was the finish by the player from West Germany?
CREATE TABLE table_name_36 (finish VARCHAR, country VARCHAR)
SELECT finish FROM table_name_36 WHERE country = "west germany"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (finish VARCHAR, country VARCHAR) Question: What was the finish by the player from West Germany? [/INST] SELECT finish FROM table_name_36 WHERE country = "west germany" </s>
What is the smallest goal during the 2006 fifa world cup qualification competition?
CREATE TABLE table_name_45 (goal INTEGER, competition VARCHAR)
SELECT MIN(goal) FROM table_name_45 WHERE competition = "2006 fifa world cup qualification"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (goal INTEGER, competition VARCHAR) Question: What is the smallest goal during the 2006 fifa world cup qualification competition? [/INST] SELECT MIN(goal) FROM table_name_45 WHERE competition = "2006 fifa world cup qualification" </s>
Name the representative for party of whig
CREATE TABLE table_name_76 (representative VARCHAR, party VARCHAR)
SELECT representative FROM table_name_76 WHERE party = "whig"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (representative VARCHAR, party VARCHAR) Question: Name the representative for party of whig [/INST] SELECT representative FROM table_name_76 WHERE party = "whig" </s>
Name the total number of years for chassis of maserati 250f and points less than 0
CREATE TABLE table_name_85 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_85 WHERE chassis = "maserati 250f" AND points < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (year VARCHAR, chassis VARCHAR, points VARCHAR) Question: Name the total number of years for chassis of maserati 250f and points less than 0 [/INST] SELECT COUNT(year) FROM table_name_85 WHERE chassis = "maserati 250f" AND points < 0 </s>
Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957
CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_8 WHERE chassis = "maserati 250f" AND entrant = "luigi piotti" AND year < 1957
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR) Question: Name the engine with chassis of maserati 250f and entrant of luigi piotti with year less than 1957 [/INST] SELECT engine FROM table_name_8 WHERE chassis = "maserati 250f" AND entrant = "luigi piotti" AND year < 1957 </s>
Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati
CREATE TABLE table_name_80 (points INTEGER, chassis VARCHAR, entrant VARCHAR)
SELECT SUM(points) FROM table_name_80 WHERE chassis = "maserati 250f" AND entrant = "officine alfieri maserati"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (points INTEGER, chassis VARCHAR, entrant VARCHAR) Question: Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati [/INST] SELECT SUM(points) FROM table_name_80 WHERE chassis = "maserati 250f" AND entrant = "officine alfieri maserati" </s>
Name the lowest points for officine alfieri maserati
CREATE TABLE table_name_7 (points INTEGER, entrant VARCHAR)
SELECT MIN(points) FROM table_name_7 WHERE entrant = "officine alfieri maserati"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (points INTEGER, entrant VARCHAR) Question: Name the lowest points for officine alfieri maserati [/INST] SELECT MIN(points) FROM table_name_7 WHERE entrant = "officine alfieri maserati" </s>
How tall is Ye Fei?
CREATE TABLE table_name_36 (height VARCHAR, players VARCHAR)
SELECT height FROM table_name_36 WHERE players = "ye fei"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (height VARCHAR, players VARCHAR) Question: How tall is Ye Fei? [/INST] SELECT height FROM table_name_36 WHERE players = "ye fei" </s>
What is the attendance of the game on July 26?
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_1 WHERE date = "july 26"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR) Question: What is the attendance of the game on July 26? [/INST] SELECT SUM(attendance) FROM table_name_1 WHERE date = "july 26" </s>
How many years did the team place 2nd in Antwerp, Belgium?
CREATE TABLE table_name_21 (year VARCHAR, venue VARCHAR, result VARCHAR)
SELECT COUNT(year) FROM table_name_21 WHERE venue = "antwerp, belgium" AND result = "2nd"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (year VARCHAR, venue VARCHAR, result VARCHAR) Question: How many years did the team place 2nd in Antwerp, Belgium? [/INST] SELECT COUNT(year) FROM table_name_21 WHERE venue = "antwerp, belgium" AND result = "2nd" </s>
What is the name of the venue that was used before 1991?
CREATE TABLE table_name_23 (venue VARCHAR, year INTEGER)
SELECT venue FROM table_name_23 WHERE year < 1991
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (venue VARCHAR, year INTEGER) Question: What is the name of the venue that was used before 1991? [/INST] SELECT venue FROM table_name_23 WHERE year < 1991 </s>
How many years did the team place 2nd in Auckland, New Zealand?
CREATE TABLE table_name_30 (year VARCHAR, result VARCHAR, venue VARCHAR)
SELECT COUNT(year) FROM table_name_30 WHERE result = "2nd" AND venue = "auckland, new zealand"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (year VARCHAR, result VARCHAR, venue VARCHAR) Question: How many years did the team place 2nd in Auckland, New Zealand? [/INST] SELECT COUNT(year) FROM table_name_30 WHERE result = "2nd" AND venue = "auckland, new zealand" </s>
What was the started round for the competition that had the last match on January 16, 2008?
CREATE TABLE table_name_57 (started_round VARCHAR, last_match VARCHAR)
SELECT started_round FROM table_name_57 WHERE last_match = "january 16, 2008"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (started_round VARCHAR, last_match VARCHAR) Question: What was the started round for the competition that had the last match on January 16, 2008? [/INST] SELECT started_round FROM table_name_57 WHERE last_match = "january 16, 2008" </s>