instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
On what date was their record 46-39?
CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_17 WHERE record = "46-39"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR) Question: On what date was their record 46-39? [/INST] SELECT date FROM table_name_17 WHERE record = "46-39" </s>
What was the oilers record on October 20?
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_1 WHERE date = "october 20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) Question: What was the oilers record on October 20? [/INST] SELECT record FROM table_name_1 WHERE date = "october 20" </s>
What was the oilers record for the game on November 27 when the Edmonton oilers were playing at home and the Chicago Blackhawks were the visiting team?
CREATE TABLE table_name_85 (record VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_85 WHERE home = "edmonton oilers" AND visitor = "chicago blackhawks" AND date = "november 27"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (record VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) Question: What was the oilers record for the game on November 27 when the Edmonton oilers were playing at home and the Chicago Blackhawks were the visiting team? [/INST] SELECT record FROM table_name_85 WHERE home = "edmonton oilers" AND visitor = "chicago blackhawks" AND date = "november 27" </s>
Name the lead with left bloc of 8.4%
CREATE TABLE table_name_25 (lead VARCHAR, left_bloc VARCHAR)
SELECT lead FROM table_name_25 WHERE left_bloc = "8.4%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (lead VARCHAR, left_bloc VARCHAR) Question: Name the lead with left bloc of 8.4% [/INST] SELECT lead FROM table_name_25 WHERE left_bloc = "8.4%" </s>
Name the lead for institute of election results and social democratic of 31.7% 8 seats
CREATE TABLE table_name_95 (lead VARCHAR, institute VARCHAR, social_democratic VARCHAR)
SELECT lead FROM table_name_95 WHERE institute = "election results" AND social_democratic = "31.7% 8 seats"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (lead VARCHAR, institute VARCHAR, social_democratic VARCHAR) Question: Name the lead for institute of election results and social democratic of 31.7% 8 seats [/INST] SELECT lead FROM table_name_95 WHERE institute = "election results" AND social_democratic = "31.7% 8 seats" </s>
What is the Regionalliga Sud for 1995-96?
CREATE TABLE table_name_13 (regionalliga_süd VARCHAR, season VARCHAR)
SELECT regionalliga_süd FROM table_name_13 WHERE season = "1995-96"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (regionalliga_süd VARCHAR, season VARCHAR) Question: What is the Regionalliga Sud for 1995-96? [/INST] SELECT regionalliga_süd FROM table_name_13 WHERE season = "1995-96" </s>
What was the Regionalliga Nord-Ost for the team that had a Regionalliga Sud of SpVgg Unterhaching?
CREATE TABLE table_name_61 (regionalliga_nord VARCHAR, Ost VARCHAR, regionalliga_süd VARCHAR)
SELECT regionalliga_nord - Ost FROM table_name_61 WHERE regionalliga_süd = "spvgg unterhaching"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (regionalliga_nord VARCHAR, Ost VARCHAR, regionalliga_süd VARCHAR) Question: What was the Regionalliga Nord-Ost for the team that had a Regionalliga Sud of SpVgg Unterhaching? [/INST] SELECT regionalliga_nord - Ost FROM table_name_61 WHERE regionalliga_süd = "spvgg unterhaching" </s>
Which season had a Regionalliga Sud of Stuttgarter Kickers?
CREATE TABLE table_name_68 (season VARCHAR, regionalliga_süd VARCHAR)
SELECT season FROM table_name_68 WHERE regionalliga_süd = "stuttgarter kickers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (season VARCHAR, regionalliga_süd VARCHAR) Question: Which season had a Regionalliga Sud of Stuttgarter Kickers? [/INST] SELECT season FROM table_name_68 WHERE regionalliga_süd = "stuttgarter kickers" </s>
What party is Charles Van Wyck part of?
CREATE TABLE table_name_4 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_4 WHERE incumbent = "charles van wyck"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (party VARCHAR, incumbent VARCHAR) Question: What party is Charles Van Wyck part of? [/INST] SELECT party FROM table_name_4 WHERE incumbent = "charles van wyck" </s>
What district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain?
CREATE TABLE table_name_3 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)
SELECT district FROM table_name_3 WHERE first_elected = 1858 AND result = "defeated democratic gain" AND incumbent = "james humphrey"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR) Question: What district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain? [/INST] SELECT district FROM table_name_3 WHERE first_elected = 1858 AND result = "defeated democratic gain" AND incumbent = "james humphrey" </s>
What surface was the November 5, 1995 match played on?
CREATE TABLE table_name_33 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_33 WHERE date = "november 5, 1995"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (surface VARCHAR, date VARCHAR) Question: What surface was the November 5, 1995 match played on? [/INST] SELECT surface FROM table_name_33 WHERE date = "november 5, 1995" </s>
What date was the match played where Amy Frazier was the opponent?
CREATE TABLE table_name_80 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (date VARCHAR, opponent_in_the_final VARCHAR) Question: What date was the match played where Amy Frazier was the opponent? [/INST] SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier" </s>
What score was given at the August 17, 2005 match?
CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_47 WHERE date = "august 17, 2005"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR) Question: What score was given at the August 17, 2005 match? [/INST] SELECT score FROM table_name_47 WHERE date = "august 17, 2005" </s>
Which tournament was played on October 1, 2006?
CREATE TABLE table_name_7 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_7 WHERE date = "october 1, 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (tournament VARCHAR, date VARCHAR) Question: Which tournament was played on October 1, 2006? [/INST] SELECT tournament FROM table_name_7 WHERE date = "october 1, 2006" </s>
What is the score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva?
CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtseva"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) Question: What is the score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva? [/INST] SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtseva" </s>
What was the team's record on july 18?
CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_71 WHERE date = "july 18"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR) Question: What was the team's record on july 18? [/INST] SELECT record FROM table_name_71 WHERE date = "july 18" </s>
Which Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers?
CREATE TABLE table_name_95 (conference_joined VARCHAR, previous_conference VARCHAR, mascot VARCHAR)
SELECT conference_joined FROM table_name_95 WHERE previous_conference = "northwestern" AND mascot = "oilers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (conference_joined VARCHAR, previous_conference VARCHAR, mascot VARCHAR) Question: Which Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers? [/INST] SELECT conference_joined FROM table_name_95 WHERE previous_conference = "northwestern" AND mascot = "oilers" </s>
Which Year Left is the lowest one that has a School of calumet, and a Year Joined larger than 1993?
CREATE TABLE table_name_13 (year_left INTEGER, school VARCHAR, year_joined VARCHAR)
SELECT MIN(year_left) FROM table_name_13 WHERE school = "calumet" AND year_joined > 1993
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (year_left INTEGER, school VARCHAR, year_joined VARCHAR) Question: Which Year Left is the lowest one that has a School of calumet, and a Year Joined larger than 1993? [/INST] SELECT MIN(year_left) FROM table_name_13 WHERE school = "calumet" AND year_joined > 1993 </s>
avg passengers in 2012 for 2009 more than 104.5 and 2010 less than 162.6 and 2011 less than 141.8 is what?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT AVG(2012) FROM table_name_22 WHERE 2009 > 104.5 AND 2010 < 162.6 AND 2011 < 141.8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (Id VARCHAR) Question: avg passengers in 2012 for 2009 more than 104.5 and 2010 less than 162.6 and 2011 less than 141.8 is what? [/INST] SELECT AVG(2012) FROM table_name_22 WHERE 2009 > 104.5 AND 2010 < 162.6 AND 2011 < 141.8 </s>
The lowest rank with 2011 less than 80.7 and 2012 less than 73.1 is what?
CREATE TABLE table_name_82 (rank INTEGER)
SELECT MIN(rank) FROM table_name_82 WHERE 2011 < 80.7 AND 2012 < 73.1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (rank INTEGER) Question: The lowest rank with 2011 less than 80.7 and 2012 less than 73.1 is what? [/INST] SELECT MIN(rank) FROM table_name_82 WHERE 2011 < 80.7 AND 2012 < 73.1 </s>
the sum of 2009 with rank of 5 and 2010 less than 76.5 is what?
CREATE TABLE table_name_70 (rank VARCHAR)
SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (rank VARCHAR) Question: the sum of 2009 with rank of 5 and 2010 less than 76.5 is what? [/INST] SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.5 </s>
What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar?
CREATE TABLE table_name_45 (entered_office VARCHAR, throne_name VARCHAR)
SELECT entered_office FROM table_name_45 WHERE throne_name = "mohammad ali shah qajar"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (entered_office VARCHAR, throne_name VARCHAR) Question: What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar? [/INST] SELECT entered_office FROM table_name_45 WHERE throne_name = "mohammad ali shah qajar" </s>
What is listed for the Main Location(s) that has a % of National of 2.05%?
CREATE TABLE table_name_77 (main_location_s_ VARCHAR, _percentage_of_national VARCHAR)
SELECT main_location_s_ FROM table_name_77 WHERE _percentage_of_national = "2.05%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (main_location_s_ VARCHAR, _percentage_of_national VARCHAR) Question: What is listed for the Main Location(s) that has a % of National of 2.05%? [/INST] SELECT main_location_s_ FROM table_name_77 WHERE _percentage_of_national = "2.05%" </s>
What's the Area with an Output (2007) of 12,332 T?
CREATE TABLE table_name_17 (area VARCHAR, output__2007_ VARCHAR)
SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (area VARCHAR, output__2007_ VARCHAR) Question: What's the Area with an Output (2007) of 12,332 T? [/INST] SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t" </s>
What Main Location(s) has an Area of 19,800 HA?
CREATE TABLE table_name_16 (main_location_s_ VARCHAR, area VARCHAR)
SELECT main_location_s_ FROM table_name_16 WHERE area = "19,800 ha"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (main_location_s_ VARCHAR, area VARCHAR) Question: What Main Location(s) has an Area of 19,800 HA? [/INST] SELECT main_location_s_ FROM table_name_16 WHERE area = "19,800 ha" </s>
On what date was the record 4–0–0?
CREATE TABLE table_name_81 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_81 WHERE record = "4–0–0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (date VARCHAR, record VARCHAR) Question: On what date was the record 4–0–0? [/INST] SELECT date FROM table_name_81 WHERE record = "4–0–0" </s>
what was the score in toronto
CREATE TABLE table_name_2 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_2 WHERE home = "toronto"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (score VARCHAR, home VARCHAR) Question: what was the score in toronto [/INST] SELECT score FROM table_name_2 WHERE home = "toronto" </s>
Which Record has an Event of tpf 5: stars and strikes?
CREATE TABLE table_name_21 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_21 WHERE event = "tpf 5: stars and strikes"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (record VARCHAR, event VARCHAR) Question: Which Record has an Event of tpf 5: stars and strikes? [/INST] SELECT record FROM table_name_21 WHERE event = "tpf 5: stars and strikes" </s>
Which Opponent has an Event of king of the cage: shock and awe?
CREATE TABLE table_name_8 (opponent VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_8 WHERE event = "king of the cage: shock and awe"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (opponent VARCHAR, event VARCHAR) Question: Which Opponent has an Event of king of the cage: shock and awe? [/INST] SELECT opponent FROM table_name_8 WHERE event = "king of the cage: shock and awe" </s>
Which Method has a Record of 16–7?
CREATE TABLE table_name_99 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_99 WHERE record = "16–7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (method VARCHAR, record VARCHAR) Question: Which Method has a Record of 16–7? [/INST] SELECT method FROM table_name_99 WHERE record = "16–7" </s>
Which Round has a Method of decision (unanimous), and an Event of ufc 145?
CREATE TABLE table_name_32 (round VARCHAR, method VARCHAR, event VARCHAR)
SELECT round FROM table_name_32 WHERE method = "decision (unanimous)" AND event = "ufc 145"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (round VARCHAR, method VARCHAR, event VARCHAR) Question: Which Round has a Method of decision (unanimous), and an Event of ufc 145? [/INST] SELECT round FROM table_name_32 WHERE method = "decision (unanimous)" AND event = "ufc 145" </s>
Which Event has a Round of 1, and a Record of 2–0?
CREATE TABLE table_name_70 (event VARCHAR, round VARCHAR, record VARCHAR)
SELECT event FROM table_name_70 WHERE round = "1" AND record = "2–0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (event VARCHAR, round VARCHAR, record VARCHAR) Question: Which Event has a Round of 1, and a Record of 2–0? [/INST] SELECT event FROM table_name_70 WHERE round = "1" AND record = "2–0" </s>
What is the general classification of Mapei-clas in stage 12?
CREATE TABLE table_name_25 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_name_25 WHERE team_classification = "mapei-clas" AND stage = "12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR) Question: What is the general classification of Mapei-clas in stage 12? [/INST] SELECT general_classification FROM table_name_25 WHERE team_classification = "mapei-clas" AND stage = "12" </s>
Which winner has a P stage?
CREATE TABLE table_name_48 (winner VARCHAR, stage VARCHAR)
SELECT winner FROM table_name_48 WHERE stage = "p"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (winner VARCHAR, stage VARCHAR) Question: Which winner has a P stage? [/INST] SELECT winner FROM table_name_48 WHERE stage = "p" </s>
Which stage corresponds to Banesto and Tony Rominger?
CREATE TABLE table_name_7 (stage VARCHAR, team_classification VARCHAR, points_classification VARCHAR)
SELECT stage FROM table_name_7 WHERE team_classification = "banesto" AND points_classification = "tony rominger"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (stage VARCHAR, team_classification VARCHAR, points_classification VARCHAR) Question: Which stage corresponds to Banesto and Tony Rominger? [/INST] SELECT stage FROM table_name_7 WHERE team_classification = "banesto" AND points_classification = "tony rominger" </s>
Type of primary, and a Call letters of kbjs has what format?
CREATE TABLE table_name_74 (format VARCHAR, type VARCHAR, call_letters VARCHAR)
SELECT format FROM table_name_74 WHERE type = "primary" AND call_letters = "kbjs"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (format VARCHAR, type VARCHAR, call_letters VARCHAR) Question: Type of primary, and a Call letters of kbjs has what format? [/INST] SELECT format FROM table_name_74 WHERE type = "primary" AND call_letters = "kbjs" </s>
Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number?
CREATE TABLE table_name_52 (frequency__mhz_ VARCHAR, type VARCHAR, call_letters VARCHAR)
SELECT COUNT(frequency__mhz_) FROM table_name_52 WHERE type = "primary" AND call_letters = "ktbb-fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (frequency__mhz_ VARCHAR, type VARCHAR, call_letters VARCHAR) Question: Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number? [/INST] SELECT COUNT(frequency__mhz_) FROM table_name_52 WHERE type = "primary" AND call_letters = "ktbb-fm" </s>
Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)?
CREATE TABLE table_name_40 (frequency__mhz_ INTEGER, type VARCHAR, call_letters VARCHAR)
SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (frequency__mhz_ INTEGER, type VARCHAR, call_letters VARCHAR) Question: Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)? [/INST] SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm" </s>
Frequency (MHz) that has a Call letters of krmd-fm has what sum?
CREATE TABLE table_name_99 (frequency__mhz_ INTEGER, call_letters VARCHAR)
SELECT SUM(frequency__mhz_) FROM table_name_99 WHERE call_letters = "krmd-fm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (frequency__mhz_ INTEGER, call_letters VARCHAR) Question: Frequency (MHz) that has a Call letters of krmd-fm has what sum? [/INST] SELECT SUM(frequency__mhz_) FROM table_name_99 WHERE call_letters = "krmd-fm" </s>
What date has 1 for the game?
CREATE TABLE table_name_84 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_84 WHERE game = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (date VARCHAR, game VARCHAR) Question: What date has 1 for the game? [/INST] SELECT date FROM table_name_84 WHERE game = 1 </s>
What opponent has april 10 as the date?
CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_14 WHERE date = "april 10"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR) Question: What opponent has april 10 as the date? [/INST] SELECT opponent FROM table_name_14 WHERE date = "april 10" </s>
What player has a round larger than 6 with a D position.
CREATE TABLE table_name_82 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT player FROM table_name_82 WHERE round > 6 AND position = "d"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (player VARCHAR, round VARCHAR, position VARCHAR) Question: What player has a round larger than 6 with a D position. [/INST] SELECT player FROM table_name_82 WHERE round > 6 AND position = "d" </s>
What league is from the United States and a round smaller than 12.
CREATE TABLE table_name_44 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_44 WHERE nationality = "united states" AND round < 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR) Question: What league is from the United States and a round smaller than 12. [/INST] SELECT college_junior_club_team__league_ FROM table_name_44 WHERE nationality = "united states" AND round < 12 </s>
What league has a 10 for round with Paul Cain?
CREATE TABLE table_name_51 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_51 WHERE round = 10 AND player = "paul cain"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR) Question: What league has a 10 for round with Paul Cain? [/INST] SELECT college_junior_club_team__league_ FROM table_name_51 WHERE round = 10 AND player = "paul cain" </s>
What league has a D position, a round smaller than 11 and is with Dennis Vial?
CREATE TABLE table_name_84 (college_junior_club_team__league_ VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_84 WHERE position = "d" AND round < 11 AND player = "dennis vial"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (college_junior_club_team__league_ VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR) Question: What league has a D position, a round smaller than 11 and is with Dennis Vial? [/INST] SELECT college_junior_club_team__league_ FROM table_name_84 WHERE position = "d" AND round < 11 AND player = "dennis vial" </s>
What is the rank of the gatchaman of Jinpei?
CREATE TABLE table_name_76 (rank VARCHAR, gatchaman VARCHAR)
SELECT rank FROM table_name_76 WHERE gatchaman = "jinpei"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (rank VARCHAR, gatchaman VARCHAR) Question: What is the rank of the gatchaman of Jinpei? [/INST] SELECT rank FROM table_name_76 WHERE gatchaman = "jinpei" </s>
Who is the Japanese voice actor of the Battle of the Planets of Keyop?
CREATE TABLE table_name_87 (japanese_voice_actor VARCHAR, battle_of_the_planets VARCHAR)
SELECT japanese_voice_actor FROM table_name_87 WHERE battle_of_the_planets = "keyop"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (japanese_voice_actor VARCHAR, battle_of_the_planets VARCHAR) Question: Who is the Japanese voice actor of the Battle of the Planets of Keyop? [/INST] SELECT japanese_voice_actor FROM table_name_87 WHERE battle_of_the_planets = "keyop" </s>
What is the rank of the gatchaman Jinpei?
CREATE TABLE table_name_38 (rank VARCHAR, gatchaman VARCHAR)
SELECT rank FROM table_name_38 WHERE gatchaman = "jinpei"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (rank VARCHAR, gatchaman VARCHAR) Question: What is the rank of the gatchaman Jinpei? [/INST] SELECT rank FROM table_name_38 WHERE gatchaman = "jinpei" </s>
Who is the voice actor of the character with the Japanese voice actor Yoku Shioya?
CREATE TABLE table_name_48 (voice_actor__harmony_gold_ova_dub_ VARCHAR, japanese_voice_actor VARCHAR)
SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_48 WHERE japanese_voice_actor = "yoku shioya"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (voice_actor__harmony_gold_ova_dub_ VARCHAR, japanese_voice_actor VARCHAR) Question: Who is the voice actor of the character with the Japanese voice actor Yoku Shioya? [/INST] SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_48 WHERE japanese_voice_actor = "yoku shioya" </s>
What is the mecha with a condor bird uniform?
CREATE TABLE table_name_33 (mecha VARCHAR, bird_uniform VARCHAR)
SELECT mecha FROM table_name_33 WHERE bird_uniform = "condor"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (mecha VARCHAR, bird_uniform VARCHAR) Question: What is the mecha with a condor bird uniform? [/INST] SELECT mecha FROM table_name_33 WHERE bird_uniform = "condor" </s>
Who is the voice actor (harmony gold ova dub) of the character with a voice actor (adv TV/sentai ova dub) Kim Prause?
CREATE TABLE table_name_10 (voice_actor__harmony_gold_ova_dub_ VARCHAR, voice_actor__adv_tv_sentai_ova_dub_ VARCHAR)
SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_10 WHERE voice_actor__adv_tv_sentai_ova_dub_ = "kim prause"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (voice_actor__harmony_gold_ova_dub_ VARCHAR, voice_actor__adv_tv_sentai_ova_dub_ VARCHAR) Question: Who is the voice actor (harmony gold ova dub) of the character with a voice actor (adv TV/sentai ova dub) Kim Prause? [/INST] SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_10 WHERE voice_actor__adv_tv_sentai_ova_dub_ = "kim prause" </s>
What is the score of the tournament on 25 July 1994 with a clay surface and Patricia Tarabini as the partner?
CREATE TABLE table_name_83 (score VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT score FROM table_name_83 WHERE surface = "clay" AND partner = "patricia tarabini" AND date = "25 july 1994"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (score VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR) Question: What is the score of the tournament on 25 July 1994 with a clay surface and Patricia Tarabini as the partner? [/INST] SELECT score FROM table_name_83 WHERE surface = "clay" AND partner = "patricia tarabini" AND date = "25 july 1994" </s>
Who is the partner of the tournament on 6 July 1987?
CREATE TABLE table_name_12 (partner VARCHAR, date VARCHAR)
SELECT partner FROM table_name_12 WHERE date = "6 july 1987"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (partner VARCHAR, date VARCHAR) Question: Who is the partner of the tournament on 6 July 1987? [/INST] SELECT partner FROM table_name_12 WHERE date = "6 july 1987" </s>
Who is the partner at the Tampa tournament?
CREATE TABLE table_name_93 (partner VARCHAR, tournament VARCHAR)
SELECT partner FROM table_name_93 WHERE tournament = "tampa"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (partner VARCHAR, tournament VARCHAR) Question: Who is the partner at the Tampa tournament? [/INST] SELECT partner FROM table_name_93 WHERE tournament = "tampa" </s>
What is the tenure of the person with revenues of 60,000-->58,000 koku?
CREATE TABLE table_name_90 (tenure VARCHAR, revenues VARCHAR)
SELECT tenure FROM table_name_90 WHERE revenues = "60,000-->58,000 koku"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (tenure VARCHAR, revenues VARCHAR) Question: What is the tenure of the person with revenues of 60,000-->58,000 koku? [/INST] SELECT tenure FROM table_name_90 WHERE revenues = "60,000-->58,000 koku" </s>
What is the court rank of the person with a courtesy title of nagato-no-kami?
CREATE TABLE table_name_70 (court_rank VARCHAR, courtesy_title VARCHAR)
SELECT court_rank FROM table_name_70 WHERE courtesy_title = "nagato-no-kami"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (court_rank VARCHAR, courtesy_title VARCHAR) Question: What is the court rank of the person with a courtesy title of nagato-no-kami? [/INST] SELECT court_rank FROM table_name_70 WHERE courtesy_title = "nagato-no-kami" </s>
What is the name of the person with a courtesy title of sanuki-no-kami/jiju?
CREATE TABLE table_name_32 (name VARCHAR, courtesy_title VARCHAR)
SELECT name FROM table_name_32 WHERE courtesy_title = "sanuki-no-kami/jiju"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (name VARCHAR, courtesy_title VARCHAR) Question: What is the name of the person with a courtesy title of sanuki-no-kami/jiju? [/INST] SELECT name FROM table_name_32 WHERE courtesy_title = "sanuki-no-kami/jiju" </s>
what day was the score 39-14
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_58 WHERE record = "39-14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR) Question: what day was the score 39-14 [/INST] SELECT date FROM table_name_58 WHERE record = "39-14" </s>
Which position did the drafted player affiliated with UCLA play?
CREATE TABLE table_name_85 (position VARCHAR, affiliation VARCHAR)
SELECT position FROM table_name_85 WHERE affiliation = "ucla"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (position VARCHAR, affiliation VARCHAR) Question: Which position did the drafted player affiliated with UCLA play? [/INST] SELECT position FROM table_name_85 WHERE affiliation = "ucla" </s>
Which MLS tea, drafted a player affilaited with the university of california?
CREATE TABLE table_name_29 (mls_team VARCHAR, affiliation VARCHAR)
SELECT mls_team FROM table_name_29 WHERE affiliation = "university of california"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (mls_team VARCHAR, affiliation VARCHAR) Question: Which MLS tea, drafted a player affilaited with the university of california? [/INST] SELECT mls_team FROM table_name_29 WHERE affiliation = "university of california" </s>
What rank does the person participating in American Civil war and indian wars?
CREATE TABLE table_name_65 (rank VARCHAR, active_service VARCHAR)
SELECT rank FROM table_name_65 WHERE active_service = "american civil war and indian wars"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (rank VARCHAR, active_service VARCHAR) Question: What rank does the person participating in American Civil war and indian wars? [/INST] SELECT rank FROM table_name_65 WHERE active_service = "american civil war and indian wars" </s>
When did the Tournament of the Tour Championship take place?
CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_10 WHERE tournament = "the tour championship"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR) Question: When did the Tournament of the Tour Championship take place? [/INST] SELECT date FROM table_name_10 WHERE tournament = "the tour championship" </s>
Name the average number of seasons for Prva HNL of 17
CREATE TABLE table_name_65 (number_of_seasons_in_top_division INTEGER, number_of_seasons_in_prva_hnl VARCHAR)
SELECT AVG(number_of_seasons_in_top_division) FROM table_name_65 WHERE number_of_seasons_in_prva_hnl = 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (number_of_seasons_in_top_division INTEGER, number_of_seasons_in_prva_hnl VARCHAR) Question: Name the average number of seasons for Prva HNL of 17 [/INST] SELECT AVG(number_of_seasons_in_top_division) FROM table_name_65 WHERE number_of_seasons_in_prva_hnl = 17 </s>
Name the least number of seasons in top division with position in 2012-13 of 001 1st
CREATE TABLE table_name_46 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR)
SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = "001 1st"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR) Question: Name the least number of seasons in top division with position in 2012-13 of 001 1st [/INST] SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = "001 1st" </s>
Which first was born on 5 february 1979?
CREATE TABLE table_name_30 (first VARCHAR, dob VARCHAR)
SELECT first FROM table_name_30 WHERE dob = "5 february 1979"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (first VARCHAR, dob VARCHAR) Question: Which first was born on 5 february 1979? [/INST] SELECT first FROM table_name_30 WHERE dob = "5 february 1979" </s>
Which First has a Position of c, and Bats of l?
CREATE TABLE table_name_62 (first VARCHAR, position VARCHAR, bats VARCHAR)
SELECT first FROM table_name_62 WHERE position = "c" AND bats = "l"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (first VARCHAR, position VARCHAR, bats VARCHAR) Question: Which First has a Position of c, and Bats of l? [/INST] SELECT first FROM table_name_62 WHERE position = "c" AND bats = "l" </s>
Which First has a Surname of searle?
CREATE TABLE table_name_42 (first VARCHAR, surname VARCHAR)
SELECT first FROM table_name_42 WHERE surname = "searle"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (first VARCHAR, surname VARCHAR) Question: Which First has a Surname of searle? [/INST] SELECT first FROM table_name_42 WHERE surname = "searle" </s>
Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?
CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR)
SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR) Question: Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989? [/INST] SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989" </s>
Which DOB has a First of david, and Throws of l, and a Position of if?
CREATE TABLE table_name_56 (dob VARCHAR, position VARCHAR, first VARCHAR, throws VARCHAR)
SELECT dob FROM table_name_56 WHERE first = "david" AND throws = "l" AND position = "if"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (dob VARCHAR, position VARCHAR, first VARCHAR, throws VARCHAR) Question: Which DOB has a First of david, and Throws of l, and a Position of if? [/INST] SELECT dob FROM table_name_56 WHERE first = "david" AND throws = "l" AND position = "if" </s>
How many throws does PJ have?
CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR)
SELECT throws FROM table_name_39 WHERE first = "pj"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR) Question: How many throws does PJ have? [/INST] SELECT throws FROM table_name_39 WHERE first = "pj" </s>
Televoting of 9, and a Jury smaller than 10 had what sum of draw?
CREATE TABLE table_name_24 (draw INTEGER, televoting VARCHAR, jury VARCHAR)
SELECT SUM(draw) FROM table_name_24 WHERE televoting = 9 AND jury < 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (draw INTEGER, televoting VARCHAR, jury VARCHAR) Question: Televoting of 9, and a Jury smaller than 10 had what sum of draw? [/INST] SELECT SUM(draw) FROM table_name_24 WHERE televoting = 9 AND jury < 10 </s>
Jury larger than 6, and a Artist of zhenya rasskazova, and a Draw larger than 9 had what sum of points?
CREATE TABLE table_name_17 (points INTEGER, draw VARCHAR, jury VARCHAR, artist VARCHAR)
SELECT SUM(points) FROM table_name_17 WHERE jury > 6 AND artist = "zhenya rasskazova" AND draw > 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (points INTEGER, draw VARCHAR, jury VARCHAR, artist VARCHAR) Question: Jury larger than 6, and a Artist of zhenya rasskazova, and a Draw larger than 9 had what sum of points? [/INST] SELECT SUM(points) FROM table_name_17 WHERE jury > 6 AND artist = "zhenya rasskazova" AND draw > 9 </s>
Televoting smaller than 2 had what highest draw?
CREATE TABLE table_name_25 (draw INTEGER, televoting INTEGER)
SELECT MAX(draw) FROM table_name_25 WHERE televoting < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (draw INTEGER, televoting INTEGER) Question: Televoting smaller than 2 had what highest draw? [/INST] SELECT MAX(draw) FROM table_name_25 WHERE televoting < 2 </s>
Who was the opponent when Hoeft (19-14) took the loss?
CREATE TABLE table_name_1 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_1 WHERE loss = "hoeft (19-14)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (opponent VARCHAR, loss VARCHAR) Question: Who was the opponent when Hoeft (19-14) took the loss? [/INST] SELECT opponent FROM table_name_1 WHERE loss = "hoeft (19-14)" </s>
What was the score of the game that led to an 80-63 record?
CREATE TABLE table_name_82 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_82 WHERE record = "80-63"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (score VARCHAR, record VARCHAR) Question: What was the score of the game that led to an 80-63 record? [/INST] SELECT score FROM table_name_82 WHERE record = "80-63" </s>
Who was the opponent when Brown (9-5) took the loss?
CREATE TABLE table_name_62 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_62 WHERE loss = "brown (9-5)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (opponent VARCHAR, loss VARCHAR) Question: Who was the opponent when Brown (9-5) took the loss? [/INST] SELECT opponent FROM table_name_62 WHERE loss = "brown (9-5)" </s>
What was Performer 1's name who performed with Sandi Toksvig as Performer 3 and Mike McShane as Performer 4?
CREATE TABLE table_name_13 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR)
SELECT performer_1 FROM table_name_13 WHERE performer_3 = "sandi toksvig" AND performer_4 = "mike mcshane"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR) Question: What was Performer 1's name who performed with Sandi Toksvig as Performer 3 and Mike McShane as Performer 4? [/INST] SELECT performer_1 FROM table_name_13 WHERE performer_3 = "sandi toksvig" AND performer_4 = "mike mcshane" </s>
What was Performer 4's name when Performer 3 was Ryan Stiles on episode 14?
CREATE TABLE table_name_14 (performer_4 VARCHAR, performer_3 VARCHAR, episode VARCHAR)
SELECT performer_4 FROM table_name_14 WHERE performer_3 = "ryan stiles" AND episode = 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (performer_4 VARCHAR, performer_3 VARCHAR, episode VARCHAR) Question: What was Performer 4's name when Performer 3 was Ryan Stiles on episode 14? [/INST] SELECT performer_4 FROM table_name_14 WHERE performer_3 = "ryan stiles" AND episode = 14 </s>
How many points have @ new york islanders as the opponent, with a game greater than 35?
CREATE TABLE table_name_64 (points VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT COUNT(points) FROM table_name_64 WHERE opponent = "@ new york islanders" AND game > 35
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (points VARCHAR, opponent VARCHAR, game VARCHAR) Question: How many points have @ new york islanders as the opponent, with a game greater than 35? [/INST] SELECT COUNT(points) FROM table_name_64 WHERE opponent = "@ new york islanders" AND game > 35 </s>
What record has a december less than 6, points less than 38, and pittsburgh penguins as the opponent?
CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR, december VARCHAR, points VARCHAR)
SELECT record FROM table_name_40 WHERE december < 6 AND points < 38 AND opponent = "pittsburgh penguins"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR, december VARCHAR, points VARCHAR) Question: What record has a december less than 6, points less than 38, and pittsburgh penguins as the opponent? [/INST] SELECT record FROM table_name_40 WHERE december < 6 AND points < 38 AND opponent = "pittsburgh penguins" </s>
When the county is Carroll what is the lowest population?
CREATE TABLE table_name_50 (population INTEGER, county VARCHAR)
SELECT MIN(population) FROM table_name_50 WHERE county = "carroll"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (population INTEGER, county VARCHAR) Question: When the county is Carroll what is the lowest population? [/INST] SELECT MIN(population) FROM table_name_50 WHERE county = "carroll" </s>
When the Per capita income is $29,194, what is the average population?
CREATE TABLE table_name_70 (population INTEGER, per_capita_income VARCHAR)
SELECT AVG(population) FROM table_name_70 WHERE per_capita_income = "$29,194"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (population INTEGER, per_capita_income VARCHAR) Question: When the Per capita income is $29,194, what is the average population? [/INST] SELECT AVG(population) FROM table_name_70 WHERE per_capita_income = "$29,194" </s>
Which year has a railway class of 250?
CREATE TABLE table_name_19 (year VARCHAR, class VARCHAR)
SELECT year FROM table_name_19 WHERE class = "250"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (year VARCHAR, class VARCHAR) Question: Which year has a railway class of 250? [/INST] SELECT year FROM table_name_19 WHERE class = "250" </s>
Which works number has a class of 15th and year of 1940?
CREATE TABLE table_name_69 (works_no VARCHAR, class VARCHAR, year VARCHAR)
SELECT works_no FROM table_name_69 WHERE class = "15th" AND year = "1940"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (works_no VARCHAR, class VARCHAR, year VARCHAR) Question: Which works number has a class of 15th and year of 1940? [/INST] SELECT works_no FROM table_name_69 WHERE class = "15th" AND year = "1940" </s>
Which builder has a railway of Rhodesia Railways?
CREATE TABLE table_name_18 (builder VARCHAR, railway VARCHAR)
SELECT builder FROM table_name_18 WHERE railway = "rhodesia railways"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (builder VARCHAR, railway VARCHAR) Question: Which builder has a railway of Rhodesia Railways? [/INST] SELECT builder FROM table_name_18 WHERE railway = "rhodesia railways" </s>
Which railway has a class of 250 and year 1936?
CREATE TABLE table_name_76 (railway VARCHAR, class VARCHAR, year VARCHAR)
SELECT railway FROM table_name_76 WHERE class = "250" AND year = "1936"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (railway VARCHAR, class VARCHAR, year VARCHAR) Question: Which railway has a class of 250 and year 1936? [/INST] SELECT railway FROM table_name_76 WHERE class = "250" AND year = "1936" </s>
which week had an attendance of 53,677?
CREATE TABLE table_name_43 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_43 WHERE attendance = "53,677"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (week VARCHAR, attendance VARCHAR) Question: which week had an attendance of 53,677? [/INST] SELECT COUNT(week) FROM table_name_43 WHERE attendance = "53,677" </s>
which team had a bye week?
CREATE TABLE table_name_21 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_21 WHERE attendance = "bye"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (opponent VARCHAR, attendance VARCHAR) Question: which team had a bye week? [/INST] SELECT opponent FROM table_name_21 WHERE attendance = "bye" </s>
Which Date has Points smaller than 85 and a Game # of 74?
CREATE TABLE table_name_36 (date VARCHAR, points VARCHAR, game__number VARCHAR)
SELECT date FROM table_name_36 WHERE points < 85 AND game__number = 74
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (date VARCHAR, points VARCHAR, game__number VARCHAR) Question: Which Date has Points smaller than 85 and a Game # of 74? [/INST] SELECT date FROM table_name_36 WHERE points < 85 AND game__number = 74 </s>
What is listed for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo?
CREATE TABLE table_name_20 (visitor VARCHAR, game__number VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = "buffalo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (visitor VARCHAR, game__number VARCHAR, home VARCHAR) Question: What is listed for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo? [/INST] SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = "buffalo" </s>
What Date has a Home listed as Calgary?
CREATE TABLE table_name_48 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_48 WHERE home = "calgary"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (date VARCHAR, home VARCHAR) Question: What Date has a Home listed as Calgary? [/INST] SELECT date FROM table_name_48 WHERE home = "calgary" </s>
What Score has a Record of 35-28-6?
CREATE TABLE table_name_65 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_65 WHERE record = "35-28-6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (score VARCHAR, record VARCHAR) Question: What Score has a Record of 35-28-6? [/INST] SELECT score FROM table_name_65 WHERE record = "35-28-6" </s>
What Date has Points smaller than 80, Home of Los Angeles, and a Visitor of Pittsburgh?
CREATE TABLE table_name_76 (date VARCHAR, visitor VARCHAR, points VARCHAR, home VARCHAR)
SELECT date FROM table_name_76 WHERE points < 80 AND home = "los angeles" AND visitor = "pittsburgh"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (date VARCHAR, visitor VARCHAR, points VARCHAR, home VARCHAR) Question: What Date has Points smaller than 80, Home of Los Angeles, and a Visitor of Pittsburgh? [/INST] SELECT date FROM table_name_76 WHERE points < 80 AND home = "los angeles" AND visitor = "pittsburgh" </s>
Which Week 10 Nov 2 has a Week 14 Nov 30 of penn state (11-1)?
CREATE TABLE table_name_4 (week_10_nov_2 VARCHAR, week_14_nov_30 VARCHAR)
SELECT week_10_nov_2 FROM table_name_4 WHERE week_14_nov_30 = "penn state (11-1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (week_10_nov_2 VARCHAR, week_14_nov_30 VARCHAR) Question: Which Week 10 Nov 2 has a Week 14 Nov 30 of penn state (11-1)? [/INST] SELECT week_10_nov_2 FROM table_name_4 WHERE week_14_nov_30 = "penn state (11-1)" </s>
Which Week 7 Oct 12 has a Week 11 Nov 9 of week 11 nov 9?
CREATE TABLE table_name_15 (week_7_oct_12 VARCHAR, week_11_nov_9 VARCHAR)
SELECT week_7_oct_12 FROM table_name_15 WHERE week_11_nov_9 = "week 11 nov 9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (week_7_oct_12 VARCHAR, week_11_nov_9 VARCHAR) Question: Which Week 7 Oct 12 has a Week 11 Nov 9 of week 11 nov 9? [/INST] SELECT week_7_oct_12 FROM table_name_15 WHERE week_11_nov_9 = "week 11 nov 9" </s>
Which Week 7 Oct 12 has a Week 9 Oct 26 of tulsa (7-0)?
CREATE TABLE table_name_79 (week_7_oct_12 VARCHAR, week_9_oct_26 VARCHAR)
SELECT week_7_oct_12 FROM table_name_79 WHERE week_9_oct_26 = "tulsa (7-0)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (week_7_oct_12 VARCHAR, week_9_oct_26 VARCHAR) Question: Which Week 7 Oct 12 has a Week 9 Oct 26 of tulsa (7-0)? [/INST] SELECT week_7_oct_12 FROM table_name_79 WHERE week_9_oct_26 = "tulsa (7-0)" </s>
Which Week 10 Nov 2 has a Week 9 Oct 26 of lsu (5-2)?
CREATE TABLE table_name_86 (week_10_nov_2 VARCHAR, week_9_oct_26 VARCHAR)
SELECT week_10_nov_2 FROM table_name_86 WHERE week_9_oct_26 = "lsu (5-2)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (week_10_nov_2 VARCHAR, week_9_oct_26 VARCHAR) Question: Which Week 10 Nov 2 has a Week 9 Oct 26 of lsu (5-2)? [/INST] SELECT week_10_nov_2 FROM table_name_86 WHERE week_9_oct_26 = "lsu (5-2)" </s>
Which Week 14 Nov 30 has a Week 6 Oct 5 of michigan state (5-1)?
CREATE TABLE table_name_1 (week_14_nov_30 VARCHAR, week_6_oct_5 VARCHAR)
SELECT week_14_nov_30 FROM table_name_1 WHERE week_6_oct_5 = "michigan state (5-1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (week_14_nov_30 VARCHAR, week_6_oct_5 VARCHAR) Question: Which Week 14 Nov 30 has a Week 6 Oct 5 of michigan state (5-1)? [/INST] SELECT week_14_nov_30 FROM table_name_1 WHERE week_6_oct_5 = "michigan state (5-1)" </s>
Which Week 13 Nov 23 has a Week 6 Oct 5 of oklahoma state (5-0)?
CREATE TABLE table_name_73 (week_13_nov_23 VARCHAR, week_6_oct_5 VARCHAR)
SELECT week_13_nov_23 FROM table_name_73 WHERE week_6_oct_5 = "oklahoma state (5-0)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (week_13_nov_23 VARCHAR, week_6_oct_5 VARCHAR) Question: Which Week 13 Nov 23 has a Week 6 Oct 5 of oklahoma state (5-0)? [/INST] SELECT week_13_nov_23 FROM table_name_73 WHERE week_6_oct_5 = "oklahoma state (5-0)" </s>
What was the displacement having a torque of n·m (lb·ft) @ 3000 rpm?
CREATE TABLE table_name_16 (displacement VARCHAR, torque VARCHAR)
SELECT displacement FROM table_name_16 WHERE torque = "n·m (lb·ft) @ 3000 rpm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (displacement VARCHAR, torque VARCHAR) Question: What was the displacement having a torque of n·m (lb·ft) @ 3000 rpm? [/INST] SELECT displacement FROM table_name_16 WHERE torque = "n·m (lb·ft) @ 3000 rpm" </s>