instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Which result has a Date of november 2, 2007?
CREATE TABLE table_name_86 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_86 WHERE date = "november 2, 2007"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (result VARCHAR, date VARCHAR) Question: Which result has a Date of november 2, 2007? [/INST] SELECT result FROM table_name_86 WHERE date = "november 2, 2007" </s>
Which Competition has a Score of 2-0?
CREATE TABLE table_name_7 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_7 WHERE score = "2-0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (competition VARCHAR, score VARCHAR) Question: Which Competition has a Score of 2-0? [/INST] SELECT competition FROM table_name_7 WHERE score = "2-0" </s>
Which Venue has a Date of january 9, 2011?
CREATE TABLE table_name_51 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_51 WHERE date = "january 9, 2011"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (venue VARCHAR, date VARCHAR) Question: Which Venue has a Date of january 9, 2011? [/INST] SELECT venue FROM table_name_51 WHERE date = "january 9, 2011" </s>
What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?
CREATE TABLE table_name_58 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR)
SELECT termination_of_mission FROM table_name_58 WHERE presentation_of_credentials = "july 4, 1898"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) Question: What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898? [/INST] SELECT termination_of_mission FROM table_name_58 WHERE presentation_of_credentials = "july 4, 1898" </s>
What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?
CREATE TABLE table_name_7 (presentation_of_credentials VARCHAR, title VARCHAR, representative VARCHAR)
SELECT presentation_of_credentials FROM table_name_7 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "raúl h. castro"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (presentation_of_credentials VARCHAR, title VARCHAR, representative VARCHAR) Question: What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary? [/INST] SELECT presentation_of_credentials FROM table_name_7 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "raúl h. castro" </s>
Who is the representative with a presentation of credentials date on February 23, 1854?
CREATE TABLE table_name_32 (representative VARCHAR, presentation_of_credentials VARCHAR)
SELECT representative FROM table_name_32 WHERE presentation_of_credentials = "february 23, 1854"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (representative VARCHAR, presentation_of_credentials VARCHAR) Question: Who is the representative with a presentation of credentials date on February 23, 1854? [/INST] SELECT representative FROM table_name_32 WHERE presentation_of_credentials = "february 23, 1854" </s>
What is the title of the representative appointed by James K. Polk?
CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR)
SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR) Question: What is the title of the representative appointed by James K. Polk? [/INST] SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk" </s>
What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires?
CREATE TABLE table_name_37 (termination_of_mission VARCHAR, appointed_by VARCHAR, title VARCHAR)
SELECT termination_of_mission FROM table_name_37 WHERE appointed_by = "franklin pierce" AND title = "chargé d'affaires"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (termination_of_mission VARCHAR, appointed_by VARCHAR, title VARCHAR) Question: What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires? [/INST] SELECT termination_of_mission FROM table_name_37 WHERE appointed_by = "franklin pierce" AND title = "chargé d'affaires" </s>
What is the Stadium held on november 29?
CREATE TABLE table_name_41 (stadium VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_41 WHERE date = "november 29"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (stadium VARCHAR, date VARCHAR) Question: What is the Stadium held on november 29? [/INST] SELECT stadium FROM table_name_41 WHERE date = "november 29" </s>
Who is the Visiting team on december 20?
CREATE TABLE table_name_99 (visiting_team VARCHAR, date VARCHAR)
SELECT visiting_team FROM table_name_99 WHERE date = "december 20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (visiting_team VARCHAR, date VARCHAR) Question: Who is the Visiting team on december 20? [/INST] SELECT visiting_team FROM table_name_99 WHERE date = "december 20" </s>
Which Stadium has a Visiting team of pittsburgh steelers?
CREATE TABLE table_name_44 (stadium VARCHAR, visiting_team VARCHAR)
SELECT stadium FROM table_name_44 WHERE visiting_team = "pittsburgh steelers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (stadium VARCHAR, visiting_team VARCHAR) Question: Which Stadium has a Visiting team of pittsburgh steelers? [/INST] SELECT stadium FROM table_name_44 WHERE visiting_team = "pittsburgh steelers" </s>
Who is the Host team that has a chicago bears as a visiting team?
CREATE TABLE table_name_61 (host_team VARCHAR, visiting_team VARCHAR)
SELECT host_team FROM table_name_61 WHERE visiting_team = "chicago bears"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (host_team VARCHAR, visiting_team VARCHAR) Question: Who is the Host team that has a chicago bears as a visiting team? [/INST] SELECT host_team FROM table_name_61 WHERE visiting_team = "chicago bears" </s>
What is the Final score on november 22?
CREATE TABLE table_name_48 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_name_48 WHERE date = "november 22"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (final_score VARCHAR, date VARCHAR) Question: What is the Final score on november 22? [/INST] SELECT final_score FROM table_name_48 WHERE date = "november 22" </s>
What is the Host team that has indianapolis colts as a Visiting team?
CREATE TABLE table_name_71 (host_team VARCHAR, visiting_team VARCHAR)
SELECT host_team FROM table_name_71 WHERE visiting_team = "indianapolis colts"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (host_team VARCHAR, visiting_team VARCHAR) Question: What is the Host team that has indianapolis colts as a Visiting team? [/INST] SELECT host_team FROM table_name_71 WHERE visiting_team = "indianapolis colts" </s>
Who won when np cooper av cooke was runner up?
CREATE TABLE table_name_34 (winners VARCHAR, runners_up VARCHAR)
SELECT winners FROM table_name_34 WHERE runners_up = "np cooper av cooke"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (winners VARCHAR, runners_up VARCHAR) Question: Who won when np cooper av cooke was runner up? [/INST] SELECT winners FROM table_name_34 WHERE runners_up = "np cooper av cooke" </s>
What was the record of the match that had a time of 1:44?
CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_35 WHERE time = "1:44"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR) Question: What was the record of the match that had a time of 1:44? [/INST] SELECT record FROM table_name_35 WHERE time = "1:44" </s>
Who was the opponent at GCM – D.O.G. 4?
CREATE TABLE table_name_54 (opponent VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_54 WHERE event = "gcm – d.o.g. 4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (opponent VARCHAR, event VARCHAR) Question: Who was the opponent at GCM – D.O.G. 4? [/INST] SELECT opponent FROM table_name_54 WHERE event = "gcm – d.o.g. 4" </s>
What was the location of the match that ended before round 2, against Hikaru Sato?
CREATE TABLE table_name_48 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_48 WHERE round < 2 AND opponent = "hikaru sato"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (location VARCHAR, round VARCHAR, opponent VARCHAR) Question: What was the location of the match that ended before round 2, against Hikaru Sato? [/INST] SELECT location FROM table_name_48 WHERE round < 2 AND opponent = "hikaru sato" </s>
What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?
CREATE TABLE table_name_25 (company_or_product_name VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
SELECT company_or_product_name FROM table_name_25 WHERE money_requested__£_ = "75,000" AND entrepreneur_s_ = "geoff and colette bell"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (company_or_product_name VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) Question: What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000? [/INST] SELECT company_or_product_name FROM table_name_25 WHERE money_requested__£_ = "75,000" AND entrepreneur_s_ = "geoff and colette bell" </s>
Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?
CREATE TABLE table_name_82 (investing_dragon_s_ VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR)
SELECT investing_dragon_s_ FROM table_name_82 WHERE episode = "episode 9" AND entrepreneur_s_ = "ashley sayed"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (investing_dragon_s_ VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR) Question: Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed? [/INST] SELECT investing_dragon_s_ FROM table_name_82 WHERE episode = "episode 9" AND entrepreneur_s_ = "ashley sayed" </s>
What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?
CREATE TABLE table_name_99 (episode VARCHAR, entrepreneur_s_ VARCHAR)
SELECT episode FROM table_name_99 WHERE entrepreneur_s_ = "luke booth and christopher eves"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (episode VARCHAR, entrepreneur_s_ VARCHAR) Question: What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part? [/INST] SELECT episode FROM table_name_99 WHERE entrepreneur_s_ = "luke booth and christopher eves" </s>
Which Company or Product name requested £70,000 on Episode 11?
CREATE TABLE table_name_17 (company_or_product_name VARCHAR, episode VARCHAR, money_requested__£_ VARCHAR)
SELECT company_or_product_name FROM table_name_17 WHERE episode = "episode 11" AND money_requested__£_ = "70,000"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (company_or_product_name VARCHAR, episode VARCHAR, money_requested__£_ VARCHAR) Question: Which Company or Product name requested £70,000 on Episode 11? [/INST] SELECT company_or_product_name FROM table_name_17 WHERE episode = "episode 11" AND money_requested__£_ = "70,000" </s>
What is stephen arigbabu's height?
CREATE TABLE table_name_52 (height INTEGER, player VARCHAR)
SELECT MIN(height) FROM table_name_52 WHERE player = "stephen arigbabu"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (height INTEGER, player VARCHAR) Question: What is stephen arigbabu's height? [/INST] SELECT MIN(height) FROM table_name_52 WHERE player = "stephen arigbabu" </s>
For all games with los angeles as visitor, what is the highest attendance of all?
CREATE TABLE table_name_12 (attendance INTEGER, visitor VARCHAR)
SELECT MAX(attendance) FROM table_name_12 WHERE visitor = "los angeles"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (attendance INTEGER, visitor VARCHAR) Question: For all games with los angeles as visitor, what is the highest attendance of all? [/INST] SELECT MAX(attendance) FROM table_name_12 WHERE visitor = "los angeles" </s>
For all games with calgary as home, what is the average number of attendees?
CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR)
SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR) Question: For all games with calgary as home, what is the average number of attendees? [/INST] SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary" </s>
Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?
CREATE TABLE table_name_29 (no5 VARCHAR, no1 VARCHAR, no2 VARCHAR)
SELECT no5 FROM table_name_29 WHERE no1 = "lena claudisabel" AND no2 = "lena sylvie"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (no5 VARCHAR, no1 VARCHAR, no2 VARCHAR) Question: Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2? [/INST] SELECT no5 FROM table_name_29 WHERE no1 = "lena claudisabel" AND no2 = "lena sylvie" </s>
Who is no.3 when Claudio Sylvie is no.1?
CREATE TABLE table_name_62 (no3 VARCHAR, no1 VARCHAR)
SELECT no3 FROM table_name_62 WHERE no1 = "claudio sylvie"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (no3 VARCHAR, no1 VARCHAR) Question: Who is no.3 when Claudio Sylvie is no.1? [/INST] SELECT no3 FROM table_name_62 WHERE no1 = "claudio sylvie" </s>
What was the score of the game when the record was 18-20?
CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_77 WHERE record = "18-20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) Question: What was the score of the game when the record was 18-20? [/INST] SELECT score FROM table_name_77 WHERE record = "18-20" </s>
Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?
CREATE TABLE table_name_7 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_7 WHERE opponents_in_the_final = "flavio cipolla simone vagnozzi"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (partner VARCHAR, opponents_in_the_final VARCHAR) Question: Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final? [/INST] SELECT partner FROM table_name_7 WHERE opponents_in_the_final = "flavio cipolla simone vagnozzi" </s>
Who were the Opponents in the final that played on a carpet (i) Surface?
CREATE TABLE table_name_62 (opponents_in_the_final VARCHAR, surface VARCHAR)
SELECT opponents_in_the_final FROM table_name_62 WHERE surface = "carpet (i)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (opponents_in_the_final VARCHAR, surface VARCHAR) Question: Who were the Opponents in the final that played on a carpet (i) Surface? [/INST] SELECT opponents_in_the_final FROM table_name_62 WHERE surface = "carpet (i)" </s>
Played on Clay Surface, what was the Score of the Dortmund Tournament?
CREATE TABLE table_name_70 (score_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT score_in_the_final FROM table_name_70 WHERE surface = "clay" AND tournament = "dortmund"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (score_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR) Question: Played on Clay Surface, what was the Score of the Dortmund Tournament? [/INST] SELECT score_in_the_final FROM table_name_70 WHERE surface = "clay" AND tournament = "dortmund" </s>
Who is Partner Frederik Nielsen's Opponents in the final?
CREATE TABLE table_name_38 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT opponents_in_the_final FROM table_name_38 WHERE partner = "frederik nielsen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (opponents_in_the_final VARCHAR, partner VARCHAR) Question: Who is Partner Frederik Nielsen's Opponents in the final? [/INST] SELECT opponents_in_the_final FROM table_name_38 WHERE partner = "frederik nielsen" </s>
What is Partner Tomas Behrend's Score in the final?
CREATE TABLE table_name_48 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT score_in_the_final FROM table_name_48 WHERE partner = "tomas behrend"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (score_in_the_final VARCHAR, partner VARCHAR) Question: What is Partner Tomas Behrend's Score in the final? [/INST] SELECT score_in_the_final FROM table_name_48 WHERE partner = "tomas behrend" </s>
What Country does Larry Mize play for?
CREATE TABLE table_name_67 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_67 WHERE player = "larry mize"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (country VARCHAR, player VARCHAR) Question: What Country does Larry Mize play for? [/INST] SELECT country FROM table_name_67 WHERE player = "larry mize" </s>
What is the winning total from 1976?
CREATE TABLE table_name_20 (total INTEGER, year_s__won VARCHAR)
SELECT MAX(total) FROM table_name_20 WHERE year_s__won = "1976"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (total INTEGER, year_s__won VARCHAR) Question: What is the winning total from 1976? [/INST] SELECT MAX(total) FROM table_name_20 WHERE year_s__won = "1976" </s>
What year was owner Michael E. Pegram's last win?
CREATE TABLE table_name_42 (year INTEGER, owner VARCHAR)
SELECT MAX(year) FROM table_name_42 WHERE owner = "michael e. pegram"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (year INTEGER, owner VARCHAR) Question: What year was owner Michael E. Pegram's last win? [/INST] SELECT MAX(year) FROM table_name_42 WHERE owner = "michael e. pegram" </s>
Who is the trainer for Cherry Valley Farm?
CREATE TABLE table_name_94 (trainer VARCHAR, owner VARCHAR)
SELECT trainer FROM table_name_94 WHERE owner = "cherry valley farm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (trainer VARCHAR, owner VARCHAR) Question: Who is the trainer for Cherry Valley Farm? [/INST] SELECT trainer FROM table_name_94 WHERE owner = "cherry valley farm" </s>
Who owned winner Blueeyesintherein after 2009?
CREATE TABLE table_name_75 (owner VARCHAR, year VARCHAR, winner VARCHAR)
SELECT owner FROM table_name_75 WHERE year > 2009 AND winner = "blueeyesintherein"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (owner VARCHAR, year VARCHAR, winner VARCHAR) Question: Who owned winner Blueeyesintherein after 2009? [/INST] SELECT owner FROM table_name_75 WHERE year > 2009 AND winner = "blueeyesintherein" </s>
Who was the Blue Jays' opponent when their record was 33-15?
CREATE TABLE table_name_8 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_8 WHERE record = "33-15"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (opponent VARCHAR, record VARCHAR) Question: Who was the Blue Jays' opponent when their record was 33-15? [/INST] SELECT opponent FROM table_name_8 WHERE record = "33-15" </s>
Who did the Blue Jays lose to when their record was 36-20?
CREATE TABLE table_name_3 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_3 WHERE record = "36-20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (loss VARCHAR, record VARCHAR) Question: Who did the Blue Jays lose to when their record was 36-20? [/INST] SELECT loss FROM table_name_3 WHERE record = "36-20" </s>
What is the rank of the qual 141.471?
CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR)
SELECT rank FROM table_name_3 WHERE qual = "141.471"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR) Question: What is the rank of the qual 141.471? [/INST] SELECT rank FROM table_name_3 WHERE qual = "141.471" </s>
What is the start of lap 55?
CREATE TABLE table_name_18 (start VARCHAR, laps VARCHAR)
SELECT start FROM table_name_18 WHERE laps = 55
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (start VARCHAR, laps VARCHAR) Question: What is the start of lap 55? [/INST] SELECT start FROM table_name_18 WHERE laps = 55 </s>
What is rank of the year 1956?
CREATE TABLE table_name_63 (rank VARCHAR, year VARCHAR)
SELECT rank FROM table_name_63 WHERE year = "1956"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (rank VARCHAR, year VARCHAR) Question: What is rank of the year 1956? [/INST] SELECT rank FROM table_name_63 WHERE year = "1956" </s>
What is the lap number for the rank of 13?
CREATE TABLE table_name_78 (laps VARCHAR, rank VARCHAR)
SELECT laps FROM table_name_78 WHERE rank = "13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (laps VARCHAR, rank VARCHAR) Question: What is the lap number for the rank of 13? [/INST] SELECT laps FROM table_name_78 WHERE rank = "13" </s>
What is the rank for 1961?
CREATE TABLE table_name_33 (rank VARCHAR, year VARCHAR)
SELECT rank FROM table_name_33 WHERE year = "1961"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (rank VARCHAR, year VARCHAR) Question: What is the rank for 1961? [/INST] SELECT rank FROM table_name_33 WHERE year = "1961" </s>
What is the sum of the lap with a finish of 24?
CREATE TABLE table_name_60 (laps INTEGER, finish VARCHAR)
SELECT SUM(laps) FROM table_name_60 WHERE finish = "24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (laps INTEGER, finish VARCHAR) Question: What is the sum of the lap with a finish of 24? [/INST] SELECT SUM(laps) FROM table_name_60 WHERE finish = "24" </s>
Which band plays Self Versus Self - Immersion?
CREATE TABLE table_name_17 (band VARCHAR, album_or_song VARCHAR)
SELECT band FROM table_name_17 WHERE album_or_song = "self versus self - immersion"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (band VARCHAR, album_or_song VARCHAR) Question: Which band plays Self Versus Self - Immersion? [/INST] SELECT band FROM table_name_17 WHERE album_or_song = "self versus self - immersion" </s>
What Event used submission (rear naked choke) with 9-4?
CREATE TABLE table_name_11 (event VARCHAR, method VARCHAR, record VARCHAR)
SELECT event FROM table_name_11 WHERE method = "submission (rear naked choke)" AND record = "9-4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (event VARCHAR, method VARCHAR, record VARCHAR) Question: What Event used submission (rear naked choke) with 9-4? [/INST] SELECT event FROM table_name_11 WHERE method = "submission (rear naked choke)" AND record = "9-4" </s>
What event was Donald Ouimet involved?
CREATE TABLE table_name_41 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_41 WHERE opponent = "donald ouimet"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (event VARCHAR, opponent VARCHAR) Question: What event was Donald Ouimet involved? [/INST] SELECT event FROM table_name_41 WHERE opponent = "donald ouimet" </s>
What event did she finish 3rd in 2010?
CREATE TABLE table_name_37 (event VARCHAR, position VARCHAR, year VARCHAR)
SELECT event FROM table_name_37 WHERE position = "3rd" AND year = 2010
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (event VARCHAR, position VARCHAR, year VARCHAR) Question: What event did she finish 3rd in 2010? [/INST] SELECT event FROM table_name_37 WHERE position = "3rd" AND year = 2010 </s>
What year did she compete in tampere, finland?
CREATE TABLE table_name_95 (year INTEGER, venue VARCHAR)
SELECT AVG(year) FROM table_name_95 WHERE venue = "tampere, finland"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (year INTEGER, venue VARCHAR) Question: What year did she compete in tampere, finland? [/INST] SELECT AVG(year) FROM table_name_95 WHERE venue = "tampere, finland" </s>
Ben Hogan with a score larger than 66 had a place listed of what?
CREATE TABLE table_name_77 (place VARCHAR, score VARCHAR, player VARCHAR)
SELECT place FROM table_name_77 WHERE score > 66 AND player = "ben hogan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (place VARCHAR, score VARCHAR, player VARCHAR) Question: Ben Hogan with a score larger than 66 had a place listed of what? [/INST] SELECT place FROM table_name_77 WHERE score > 66 AND player = "ben hogan" </s>
With a score of 70, this player's name is listed as what?
CREATE TABLE table_name_27 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_27 WHERE score = 70
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (player VARCHAR, score VARCHAR) Question: With a score of 70, this player's name is listed as what? [/INST] SELECT player FROM table_name_27 WHERE score = 70 </s>
With a score smaller than 71 along with a place of t6, what is the To par score?
CREATE TABLE table_name_69 (to_par VARCHAR, score VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_69 WHERE score < 71 AND place = "t6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (to_par VARCHAR, score VARCHAR, place VARCHAR) Question: With a score smaller than 71 along with a place of t6, what is the To par score? [/INST] SELECT to_par FROM table_name_69 WHERE score < 71 AND place = "t6" </s>
Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?
CREATE TABLE table_name_98 (hanyu_pinyin VARCHAR, gdp_2011__billion_yuan_ VARCHAR, regional_population_2010_ VARCHAR)
SELECT hanyu_pinyin FROM table_name_98 WHERE gdp_2011__billion_yuan_ > 688.02 AND regional_population_2010_ = "8,700,400"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (hanyu_pinyin VARCHAR, gdp_2011__billion_yuan_ VARCHAR, regional_population_2010_ VARCHAR) Question: Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010? [/INST] SELECT hanyu_pinyin FROM table_name_98 WHERE gdp_2011__billion_yuan_ > 688.02 AND regional_population_2010_ = "8,700,400" </s>
Which Hanzi has a Regional Population of 4,591,972 in 2010?
CREATE TABLE table_name_92 (hanzi VARCHAR, regional_population_2010_ VARCHAR)
SELECT hanzi FROM table_name_92 WHERE regional_population_2010_ = "4,591,972"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (hanzi VARCHAR, regional_population_2010_ VARCHAR) Question: Which Hanzi has a Regional Population of 4,591,972 in 2010? [/INST] SELECT hanzi FROM table_name_92 WHERE regional_population_2010_ = "4,591,972" </s>
What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62?
CREATE TABLE table_name_19 (name VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR)
SELECT name FROM table_name_19 WHERE rank < 5 AND time < 55.62 AND lane < 5 AND nationality = "netherlands"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (name VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR) Question: What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62? [/INST] SELECT name FROM table_name_19 WHERE rank < 5 AND time < 55.62 AND lane < 5 AND nationality = "netherlands" </s>
What is the highest Rank of Karen Pickering when she had a time of less than 55.71?
CREATE TABLE table_name_59 (rank INTEGER, name VARCHAR, time VARCHAR)
SELECT MAX(rank) FROM table_name_59 WHERE name = "karen pickering" AND time < 55.71
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (rank INTEGER, name VARCHAR, time VARCHAR) Question: What is the highest Rank of Karen Pickering when she had a time of less than 55.71? [/INST] SELECT MAX(rank) FROM table_name_59 WHERE name = "karen pickering" AND time < 55.71 </s>
What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?
CREATE TABLE table_name_68 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (lane INTEGER, time VARCHAR, rank VARCHAR) Question: What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8? [/INST] SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8 </s>
What was the date of the game that had a loss of Burns (0-1)?
CREATE TABLE table_name_85 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_85 WHERE loss = "burns (0-1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (date VARCHAR, loss VARCHAR) Question: What was the date of the game that had a loss of Burns (0-1)? [/INST] SELECT date FROM table_name_85 WHERE loss = "burns (0-1)" </s>
What was the loss of the game when the record was 20-16?
CREATE TABLE table_name_77 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_77 WHERE record = "20-16"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (loss VARCHAR, record VARCHAR) Question: What was the loss of the game when the record was 20-16? [/INST] SELECT loss FROM table_name_77 WHERE record = "20-16" </s>
What was the loss of the game that had an attendance of 18,769?
CREATE TABLE table_name_22 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_22 WHERE attendance = "18,769"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (loss VARCHAR, attendance VARCHAR) Question: What was the loss of the game that had an attendance of 18,769? [/INST] SELECT loss FROM table_name_22 WHERE attendance = "18,769" </s>
What was the date of the game that had a loss of Geisel (0-1)?
CREATE TABLE table_name_5 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_5 WHERE loss = "geisel (0-1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (date VARCHAR, loss VARCHAR) Question: What was the date of the game that had a loss of Geisel (0-1)? [/INST] SELECT date FROM table_name_5 WHERE loss = "geisel (0-1)" </s>
What is the date of the game against the Royals that had an attendance of 12,699?
CREATE TABLE table_name_12 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_12 WHERE opponent = "royals" AND attendance = "12,699"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (date VARCHAR, opponent VARCHAR, attendance VARCHAR) Question: What is the date of the game against the Royals that had an attendance of 12,699? [/INST] SELECT date FROM table_name_12 WHERE opponent = "royals" AND attendance = "12,699" </s>
When Regions center has a rank less than 11, what is the greatest number o floors?
CREATE TABLE table_name_62 (floors INTEGER, name VARCHAR, rank VARCHAR)
SELECT MAX(floors) FROM table_name_62 WHERE name = "regions center" AND rank < 11
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (floors INTEGER, name VARCHAR, rank VARCHAR) Question: When Regions center has a rank less than 11, what is the greatest number o floors? [/INST] SELECT MAX(floors) FROM table_name_62 WHERE name = "regions center" AND rank < 11 </s>
What is the average rank for a building with 24 floors?
CREATE TABLE table_name_84 (rank INTEGER, floors VARCHAR)
SELECT AVG(rank) FROM table_name_84 WHERE floors = 24
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (rank INTEGER, floors VARCHAR) Question: What is the average rank for a building with 24 floors? [/INST] SELECT AVG(rank) FROM table_name_84 WHERE floors = 24 </s>
What is the rank for Omni nashville hotel?
CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR)
SELECT SUM(rank) FROM table_name_89 WHERE name = "omni nashville hotel"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR) Question: What is the rank for Omni nashville hotel? [/INST] SELECT SUM(rank) FROM table_name_89 WHERE name = "omni nashville hotel" </s>
What is the greatest rank for Fifth third center?
CREATE TABLE table_name_27 (rank INTEGER, name VARCHAR)
SELECT MAX(rank) FROM table_name_27 WHERE name = "fifth third center"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (rank INTEGER, name VARCHAR) Question: What is the greatest rank for Fifth third center? [/INST] SELECT MAX(rank) FROM table_name_27 WHERE name = "fifth third center" </s>
When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?
CREATE TABLE table_name_77 (year INTEGER, rank VARCHAR, floors VARCHAR, height_ft__m_ VARCHAR)
SELECT AVG(year) FROM table_name_77 WHERE floors < 23 AND height_ft__m_ = "292 (89)" AND rank < 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (year INTEGER, rank VARCHAR, floors VARCHAR, height_ft__m_ VARCHAR) Question: When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year? [/INST] SELECT AVG(year) FROM table_name_77 WHERE floors < 23 AND height_ft__m_ = "292 (89)" AND rank < 14 </s>
What type of regular season/preseason game was played on August 25, 2007?
CREATE TABLE table_name_70 (regular_season___preseason VARCHAR, date VARCHAR)
SELECT regular_season___preseason FROM table_name_70 WHERE date = "august 25, 2007"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (regular_season___preseason VARCHAR, date VARCHAR) Question: What type of regular season/preseason game was played on August 25, 2007? [/INST] SELECT regular_season___preseason FROM table_name_70 WHERE date = "august 25, 2007" </s>
In what stadium was the game on August 22, 2008 played?
CREATE TABLE table_name_36 (stadium VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_36 WHERE date = "august 22, 2008"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (stadium VARCHAR, date VARCHAR) Question: In what stadium was the game on August 22, 2008 played? [/INST] SELECT stadium FROM table_name_36 WHERE date = "august 22, 2008" </s>
In what stadium was the home team Dallas Cowboys 21?
CREATE TABLE table_name_89 (stadium VARCHAR, home_team VARCHAR)
SELECT stadium FROM table_name_89 WHERE home_team = "dallas cowboys 21"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (stadium VARCHAR, home_team VARCHAR) Question: In what stadium was the home team Dallas Cowboys 21? [/INST] SELECT stadium FROM table_name_89 WHERE home_team = "dallas cowboys 21" </s>
On what date was the home team the Dallas Cowboys 34?
CREATE TABLE table_name_28 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_28 WHERE home_team = "dallas cowboys 34"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (date VARCHAR, home_team VARCHAR) Question: On what date was the home team the Dallas Cowboys 34? [/INST] SELECT date FROM table_name_28 WHERE home_team = "dallas cowboys 34" </s>
Who was the visiting team on October 15, 2006?
CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)
SELECT visiting_team FROM table_name_59 WHERE date = "october 15, 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) Question: Who was the visiting team on October 15, 2006? [/INST] SELECT visiting_team FROM table_name_59 WHERE date = "october 15, 2006" </s>
What's the smallest amount of Laps that had a finish of 7 with a start of 6?
CREATE TABLE table_name_49 (laps INTEGER, finish VARCHAR, start VARCHAR)
SELECT MIN(laps) FROM table_name_49 WHERE finish = "7" AND start = "6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (laps INTEGER, finish VARCHAR, start VARCHAR) Question: What's the smallest amount of Laps that had a finish of 7 with a start of 6? [/INST] SELECT MIN(laps) FROM table_name_49 WHERE finish = "7" AND start = "6" </s>
What is the smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary?
CREATE TABLE table_name_36 (bronze INTEGER, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MIN(bronze) FROM table_name_36 WHERE gold < 3 AND silver > 1 AND rank = 6 AND nation = "hungary"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (bronze INTEGER, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) Question: What is the smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary? [/INST] SELECT MIN(bronze) FROM table_name_36 WHERE gold < 3 AND silver > 1 AND rank = 6 AND nation = "hungary" </s>
What is the average bronze with a rank of 4 and less than 1 silver?
CREATE TABLE table_name_73 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_73 WHERE rank = 4 AND silver < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (bronze INTEGER, rank VARCHAR, silver VARCHAR) Question: What is the average bronze with a rank of 4 and less than 1 silver? [/INST] SELECT AVG(bronze) FROM table_name_73 WHERE rank = 4 AND silver < 1 </s>
Which silver has a Gold larger than 4, and a Rank of 1?
CREATE TABLE table_name_74 (silver VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT silver FROM table_name_74 WHERE gold > 4 AND rank = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (silver VARCHAR, gold VARCHAR, rank VARCHAR) Question: Which silver has a Gold larger than 4, and a Rank of 1? [/INST] SELECT silver FROM table_name_74 WHERE gold > 4 AND rank = 1 </s>
What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?
CREATE TABLE table_name_52 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MIN(bronze) FROM table_name_52 WHERE total = 3 AND nation = "hungary" AND gold < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR) Question: What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0? [/INST] SELECT MIN(bronze) FROM table_name_52 WHERE total = 3 AND nation = "hungary" AND gold < 0 </s>
How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?
CREATE TABLE table_name_29 (gold INTEGER, silver VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_29 WHERE rank = 7 AND bronze = 1 AND silver < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (gold INTEGER, silver VARCHAR, rank VARCHAR, bronze VARCHAR) Question: How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0? [/INST] SELECT SUM(gold) FROM table_name_29 WHERE rank = 7 AND bronze = 1 AND silver < 0 </s>
How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?
CREATE TABLE table_name_71 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_71 WHERE silver < 2 AND nation = "ukraine" AND gold < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR) Question: How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3? [/INST] SELECT COUNT(total) FROM table_name_71 WHERE silver < 2 AND nation = "ukraine" AND gold < 3 </s>
Which player played in 2007?
CREATE TABLE table_name_17 (player VARCHAR, season VARCHAR)
SELECT player FROM table_name_17 WHERE season = "2007"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (player VARCHAR, season VARCHAR) Question: Which player played in 2007? [/INST] SELECT player FROM table_name_17 WHERE season = "2007" </s>
What was Min Patel's bowling?
CREATE TABLE table_name_7 (bowling VARCHAR, player VARCHAR)
SELECT bowling FROM table_name_7 WHERE player = "min patel"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (bowling VARCHAR, player VARCHAR) Question: What was Min Patel's bowling? [/INST] SELECT bowling FROM table_name_7 WHERE player = "min patel" </s>
Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?
CREATE TABLE table_name_35 (week_1 VARCHAR, week_2 VARCHAR)
SELECT week_1 FROM table_name_35 WHERE week_2 = "piia jarkko"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (week_1 VARCHAR, week_2 VARCHAR) Question: Who was the week 1 nomination when the week 2 nomination was Piia Jarkko? [/INST] SELECT week_1 FROM table_name_35 WHERE week_2 = "piia jarkko" </s>
Who was the week 12 nomination when the week 9 nomination walked (day 11)?
CREATE TABLE table_name_10 (week_12 VARCHAR, week_9 VARCHAR)
SELECT week_12 FROM table_name_10 WHERE week_9 = "walked (day 11)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (week_12 VARCHAR, week_9 VARCHAR) Question: Who was the week 12 nomination when the week 9 nomination walked (day 11)? [/INST] SELECT week_12 FROM table_name_10 WHERE week_9 = "walked (day 11)" </s>
What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?
CREATE TABLE table_name_1 (week_12 VARCHAR, week_1 VARCHAR, week_2 VARCHAR)
SELECT week_12 FROM table_name_1 WHERE week_1 = "maria maxine" AND week_2 = "henri satu"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (week_12 VARCHAR, week_1 VARCHAR, week_2 VARCHAR) Question: What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu? [/INST] SELECT week_12 FROM table_name_1 WHERE week_1 = "maria maxine" AND week_2 = "henri satu" </s>
Name the heightfor city of license of malone, ny
CREATE TABLE table_name_44 (height_m___ft__ VARCHAR, city_of_license VARCHAR)
SELECT height_m___ft__ FROM table_name_44 WHERE city_of_license = "malone, ny"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (height_m___ft__ VARCHAR, city_of_license VARCHAR) Question: Name the heightfor city of license of malone, ny [/INST] SELECT height_m___ft__ FROM table_name_44 WHERE city_of_license = "malone, ny" </s>
Name the class with call sign of wmhn
CREATE TABLE table_name_74 (class VARCHAR, call_sign VARCHAR)
SELECT class FROM table_name_74 WHERE call_sign = "wmhn"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (class VARCHAR, call_sign VARCHAR) Question: Name the class with call sign of wmhn [/INST] SELECT class FROM table_name_74 WHERE call_sign = "wmhn" </s>
Name the frequency with class of b
CREATE TABLE table_name_78 (frequency VARCHAR, class VARCHAR)
SELECT frequency FROM table_name_78 WHERE class = "b"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (frequency VARCHAR, class VARCHAR) Question: Name the frequency with class of b [/INST] SELECT frequency FROM table_name_78 WHERE class = "b" </s>
Name the city of license with frequency of 90.1 fm
CREATE TABLE table_name_37 (city_of_license VARCHAR, frequency VARCHAR)
SELECT city_of_license FROM table_name_37 WHERE frequency = "90.1 fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (city_of_license VARCHAR, frequency VARCHAR) Question: Name the city of license with frequency of 90.1 fm [/INST] SELECT city_of_license FROM table_name_37 WHERE frequency = "90.1 fm" </s>
Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430
CREATE TABLE table_name_34 (erp___power_w VARCHAR, frequency VARCHAR, facility_id VARCHAR)
SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = "89.3 fm" AND facility_id < 40430
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (erp___power_w VARCHAR, frequency VARCHAR, facility_id VARCHAR) Question: Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430 [/INST] SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = "89.3 fm" AND facility_id < 40430 </s>
What is the Engine(s) that has f Tyres in 1971?
CREATE TABLE table_name_68 (engine_s_ VARCHAR, tyres VARCHAR, year VARCHAR)
SELECT engine_s_ FROM table_name_68 WHERE tyres = "f" AND year = 1971
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (engine_s_ VARCHAR, tyres VARCHAR, year VARCHAR) Question: What is the Engine(s) that has f Tyres in 1971? [/INST] SELECT engine_s_ FROM table_name_68 WHERE tyres = "f" AND year = 1971 </s>
What was the attendance on June 27?
CREATE TABLE table_name_6 (att INTEGER, date VARCHAR)
SELECT MIN(att) FROM table_name_6 WHERE date = "june 27"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (att INTEGER, date VARCHAR) Question: What was the attendance on June 27? [/INST] SELECT MIN(att) FROM table_name_6 WHERE date = "june 27" </s>
Name the surface for 12 september 2006
CREATE TABLE table_name_3 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_3 WHERE date = "12 september 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (surface VARCHAR, date VARCHAR) Question: Name the surface for 12 september 2006 [/INST] SELECT surface FROM table_name_3 WHERE date = "12 september 2006" </s>
Name the score for opponent in the final being paul baccanello
CREATE TABLE table_name_46 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_46 WHERE opponent_in_the_final = "paul baccanello"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (score VARCHAR, opponent_in_the_final VARCHAR) Question: Name the score for opponent in the final being paul baccanello [/INST] SELECT score FROM table_name_46 WHERE opponent_in_the_final = "paul baccanello" </s>
Name the surface for 20 march 2007
CREATE TABLE table_name_5 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_5 WHERE date = "20 march 2007"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (surface VARCHAR, date VARCHAR) Question: Name the surface for 20 march 2007 [/INST] SELECT surface FROM table_name_5 WHERE date = "20 march 2007" </s>
Name the date for opponent in the final being ignasi villacampa
CREATE TABLE table_name_5 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_5 WHERE opponent_in_the_final = "ignasi villacampa"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (date VARCHAR, opponent_in_the_final VARCHAR) Question: Name the date for opponent in the final being ignasi villacampa [/INST] SELECT date FROM table_name_5 WHERE opponent_in_the_final = "ignasi villacampa" </s>
Name the tournament for grass surface and opponent in the final being paul baccanello
CREATE TABLE table_name_11 (tournament VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_11 WHERE surface = "grass" AND opponent_in_the_final = "paul baccanello"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (tournament VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) Question: Name the tournament for grass surface and opponent in the final being paul baccanello [/INST] SELECT tournament FROM table_name_11 WHERE surface = "grass" AND opponent_in_the_final = "paul baccanello" </s>
When is the earliest year in milan that guillermo vilas was champion?
CREATE TABLE table_name_43 (year INTEGER, location VARCHAR, champion VARCHAR)
SELECT MIN(year) FROM table_name_43 WHERE location = "milan" AND champion = "guillermo vilas"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (year INTEGER, location VARCHAR, champion VARCHAR) Question: When is the earliest year in milan that guillermo vilas was champion? [/INST] SELECT MIN(year) FROM table_name_43 WHERE location = "milan" AND champion = "guillermo vilas" </s>
Where in 1985 was tim mayotte runner up?
CREATE TABLE table_name_13 (location VARCHAR, year VARCHAR, runner_up VARCHAR)
SELECT location FROM table_name_13 WHERE year > 1985 AND runner_up = "tim mayotte"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (location VARCHAR, year VARCHAR, runner_up VARCHAR) Question: Where in 1985 was tim mayotte runner up? [/INST] SELECT location FROM table_name_13 WHERE year > 1985 AND runner_up = "tim mayotte" </s>