instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
What was the outcome on May 25, 2009?
CREATE TABLE table_name_55 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_55 WHERE date = "may 25, 2009"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (outcome VARCHAR, date VARCHAR) Question: What was the outcome on May 25, 2009? [/INST] SELECT outcome FROM table_name_55 WHERE date = "may 25, 2009" </s>
What was the outcome on May 18, 2008?
CREATE TABLE table_name_55 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_55 WHERE date = "may 18, 2008"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (outcome VARCHAR, date VARCHAR) Question: What was the outcome on May 18, 2008? [/INST] SELECT outcome FROM table_name_55 WHERE date = "may 18, 2008" </s>
what is the place for Heath Slocum?
CREATE TABLE table_name_53 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_53 WHERE player = "heath slocum"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (place VARCHAR, player VARCHAR) Question: what is the place for Heath Slocum? [/INST] SELECT place FROM table_name_53 WHERE player = "heath slocum" </s>
What is the attendance for august 29?
CREATE TABLE table_name_9 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_9 WHERE date = "august 29"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (attendance VARCHAR, date VARCHAR) Question: What is the attendance for august 29? [/INST] SELECT attendance FROM table_name_9 WHERE date = "august 29" </s>
Which loss has an Opponent of @ angels, and a Date of august 1?
CREATE TABLE table_name_47 (loss VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT loss FROM table_name_47 WHERE opponent = "@ angels" AND date = "august 1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (loss VARCHAR, opponent VARCHAR, date VARCHAR) Question: Which loss has an Opponent of @ angels, and a Date of august 1? [/INST] SELECT loss FROM table_name_47 WHERE opponent = "@ angels" AND date = "august 1" </s>
Which score has an Attendance of 31,178?
CREATE TABLE table_name_99 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_99 WHERE attendance = "31,178"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (score VARCHAR, attendance VARCHAR) Question: Which score has an Attendance of 31,178? [/INST] SELECT score FROM table_name_99 WHERE attendance = "31,178" </s>
Which record has a Date of august 28?
CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_8 WHERE date = "august 28"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR) Question: Which record has a Date of august 28? [/INST] SELECT record FROM table_name_8 WHERE date = "august 28" </s>
Which loss has an Attendance of 23,952?
CREATE TABLE table_name_55 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_55 WHERE attendance = "23,952"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (loss VARCHAR, attendance VARCHAR) Question: Which loss has an Attendance of 23,952? [/INST] SELECT loss FROM table_name_55 WHERE attendance = "23,952" </s>
Which opponent has a Loss of corcoran (4-4)?
CREATE TABLE table_name_28 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_28 WHERE loss = "corcoran (4-4)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (opponent VARCHAR, loss VARCHAR) Question: Which opponent has a Loss of corcoran (4-4)? [/INST] SELECT opponent FROM table_name_28 WHERE loss = "corcoran (4-4)" </s>
What is the location of the gold medal match?
CREATE TABLE table_name_30 (location VARCHAR, competition VARCHAR)
SELECT location FROM table_name_30 WHERE competition = "gold medal match"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (location VARCHAR, competition VARCHAR) Question: What is the location of the gold medal match? [/INST] SELECT location FROM table_name_30 WHERE competition = "gold medal match" </s>
What was the lineup that resulted in 1-0 AET W?
CREATE TABLE table_name_29 (lineup VARCHAR, result VARCHAR)
SELECT lineup FROM table_name_29 WHERE result = "1-0 aet w"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (lineup VARCHAR, result VARCHAR) Question: What was the lineup that resulted in 1-0 AET W? [/INST] SELECT lineup FROM table_name_29 WHERE result = "1-0 aet w" </s>
What was the result of match 25?
CREATE TABLE table_name_97 (result VARCHAR, match VARCHAR)
SELECT result FROM table_name_97 WHERE match = "25"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (result VARCHAR, match VARCHAR) Question: What was the result of match 25? [/INST] SELECT result FROM table_name_97 WHERE match = "25" </s>
What is the result of the London 2012 Women's Olympic Football Tournament?
CREATE TABLE table_name_13 (result VARCHAR, location VARCHAR)
SELECT result FROM table_name_13 WHERE location = "london 2012 women's olympic football tournament"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (result VARCHAR, location VARCHAR) Question: What is the result of the London 2012 Women's Olympic Football Tournament? [/INST] SELECT result FROM table_name_13 WHERE location = "london 2012 women's olympic football tournament" </s>
What was the score of the game that had a loss of Wegman (2-6)?
CREATE TABLE table_name_7 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_7 WHERE loss = "wegman (2-6)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (score VARCHAR, loss VARCHAR) Question: What was the score of the game that had a loss of Wegman (2-6)? [/INST] SELECT score FROM table_name_7 WHERE loss = "wegman (2-6)" </s>
What was the record at the game that had a loss of Blyleven (4-5)?
CREATE TABLE table_name_55 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_55 WHERE loss = "blyleven (4-5)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (record VARCHAR, loss VARCHAR) Question: What was the record at the game that had a loss of Blyleven (4-5)? [/INST] SELECT record FROM table_name_55 WHERE loss = "blyleven (4-5)" </s>
Name the city with july of 88 °f / 31.1 °c
CREATE TABLE table_name_74 (city VARCHAR, jul VARCHAR)
SELECT city FROM table_name_74 WHERE jul = "88 °f / 31.1 °c"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (city VARCHAR, jul VARCHAR) Question: Name the city with july of 88 °f / 31.1 °c [/INST] SELECT city FROM table_name_74 WHERE jul = "88 °f / 31.1 °c" </s>
Name the city with Feb of 66 °f / 18.9 °c
CREATE TABLE table_name_63 (city VARCHAR, feb VARCHAR)
SELECT city FROM table_name_63 WHERE feb = "66 °f / 18.9 °c"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (city VARCHAR, feb VARCHAR) Question: Name the city with Feb of 66 °f / 18.9 °c [/INST] SELECT city FROM table_name_63 WHERE feb = "66 °f / 18.9 °c" </s>
Name the city with september of 83 °f / 28.3 °c
CREATE TABLE table_name_15 (city VARCHAR, sep VARCHAR)
SELECT city FROM table_name_15 WHERE sep = "83 °f / 28.3 °c"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (city VARCHAR, sep VARCHAR) Question: Name the city with september of 83 °f / 28.3 °c [/INST] SELECT city FROM table_name_15 WHERE sep = "83 °f / 28.3 °c" </s>
Name the june when it has july of 84 °f / 28.9 °c
CREATE TABLE table_name_28 (jun VARCHAR, jul VARCHAR)
SELECT jun FROM table_name_28 WHERE jul = "84 °f / 28.9 °c"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (jun VARCHAR, jul VARCHAR) Question: Name the june when it has july of 84 °f / 28.9 °c [/INST] SELECT jun FROM table_name_28 WHERE jul = "84 °f / 28.9 °c" </s>
What Time has Date of May 9?
CREATE TABLE table_name_84 (time VARCHAR, date VARCHAR)
SELECT time FROM table_name_84 WHERE date = "may 9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (time VARCHAR, date VARCHAR) Question: What Time has Date of May 9? [/INST] SELECT time FROM table_name_84 WHERE date = "may 9" </s>
What is the lowest roll number of Katikati college?
CREATE TABLE table_name_37 (roll INTEGER, name VARCHAR)
SELECT MIN(roll) FROM table_name_37 WHERE name = "katikati college"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (roll INTEGER, name VARCHAR) Question: What is the lowest roll number of Katikati college? [/INST] SELECT MIN(roll) FROM table_name_37 WHERE name = "katikati college" </s>
What is the highest roll number of the school in Te puna with a decile larger than 2?
CREATE TABLE table_name_85 (roll INTEGER, decile VARCHAR, area VARCHAR)
SELECT MAX(roll) FROM table_name_85 WHERE decile > 2 AND area = "te puna"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (roll INTEGER, decile VARCHAR, area VARCHAR) Question: What is the highest roll number of the school in Te puna with a decile larger than 2? [/INST] SELECT MAX(roll) FROM table_name_85 WHERE decile > 2 AND area = "te puna" </s>
What is the roll number of Te Puke Intermediate, which has a decile of 4?
CREATE TABLE table_name_62 (roll VARCHAR, decile VARCHAR, name VARCHAR)
SELECT roll FROM table_name_62 WHERE decile = 4 AND name = "te puke intermediate"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (roll VARCHAR, decile VARCHAR, name VARCHAR) Question: What is the roll number of Te Puke Intermediate, which has a decile of 4? [/INST] SELECT roll FROM table_name_62 WHERE decile = 4 AND name = "te puke intermediate" </s>
What is the highest roll number of the school with a state authority and a decile smaller than 8?
CREATE TABLE table_name_79 (roll INTEGER, authority VARCHAR, decile VARCHAR)
SELECT MAX(roll) FROM table_name_79 WHERE authority = "state" AND decile < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (roll INTEGER, authority VARCHAR, decile VARCHAR) Question: What is the highest roll number of the school with a state authority and a decile smaller than 8? [/INST] SELECT MAX(roll) FROM table_name_79 WHERE authority = "state" AND decile < 8 </s>
What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?
CREATE TABLE table_name_10 (lost INTEGER, points VARCHAR, draw VARCHAR)
SELECT SUM(lost) FROM table_name_10 WHERE points > 21 AND draw = 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (lost INTEGER, points VARCHAR, draw VARCHAR) Question: What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2? [/INST] SELECT SUM(lost) FROM table_name_10 WHERE points > 21 AND draw = 2 </s>
What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?
CREATE TABLE table_name_33 (goals_scored INTEGER, team VARCHAR, points VARCHAR)
SELECT MAX(goals_scored) FROM table_name_33 WHERE team = "san salvador f.c." AND points < 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (goals_scored INTEGER, team VARCHAR, points VARCHAR) Question: What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10? [/INST] SELECT MAX(goals_scored) FROM table_name_33 WHERE team = "san salvador f.c." AND points < 10 </s>
What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?
CREATE TABLE table_name_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR)
SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR) Question: What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18? [/INST] SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18 </s>
What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?
CREATE TABLE table_name_95 (lost INTEGER, goals_scored VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_95 WHERE goals_scored > 20 AND played < 18
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (lost INTEGER, goals_scored VARCHAR, played VARCHAR) Question: What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18? [/INST] SELECT AVG(lost) FROM table_name_95 WHERE goals_scored > 20 AND played < 18 </s>
What is score of the game played in place t8 with Byron Nelson playing?
CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_20 WHERE place = "t8" AND player = "byron nelson"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, player VARCHAR) Question: What is score of the game played in place t8 with Byron Nelson playing? [/INST] SELECT score FROM table_name_20 WHERE place = "t8" AND player = "byron nelson" </s>
What is the sum of Money of the game that was played in the United States with Sam Snead as a player?
CREATE TABLE table_name_55 (money___ INTEGER, country VARCHAR, player VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_55 WHERE country = "united states" AND player = "sam snead"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (money___ INTEGER, country VARCHAR, player VARCHAR) Question: What is the sum of Money of the game that was played in the United States with Sam Snead as a player? [/INST] SELECT SUM(money___) AS $__ FROM table_name_55 WHERE country = "united states" AND player = "sam snead" </s>
What is the Money ($) of the game with a score of 69-74-70-73=286?
CREATE TABLE table_name_57 (money___ INTEGER, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (money___ INTEGER, score VARCHAR) Question: What is the Money ($) of the game with a score of 69-74-70-73=286? [/INST] SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286 </s>
Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2
CREATE TABLE table_name_82 (mountains_classification VARCHAR, stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR)
SELECT mountains_classification FROM table_name_82 WHERE young_rider_classification = "francesco casagrande" AND intergiro_classification = "not awarded" AND stage = "2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (mountains_classification VARCHAR, stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR) Question: Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2 [/INST] SELECT mountains_classification FROM table_name_82 WHERE young_rider_classification = "francesco casagrande" AND intergiro_classification = "not awarded" AND stage = "2" </s>
Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13
CREATE TABLE table_name_89 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, intergiro_classification VARCHAR)
SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" AND intergiro_classification = "ján svorada" AND stage = "13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, intergiro_classification VARCHAR) Question: Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13 [/INST] SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" AND intergiro_classification = "ján svorada" AND stage = "13" </s>
Name trofeo fast team with young rider classification of francesco casagrande and stage of 10
CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR)
SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "10"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR) Question: Name trofeo fast team with young rider classification of francesco casagrande and stage of 10 [/INST] SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "10" </s>
What is the sum of the total for a routine score of 26.6?
CREATE TABLE table_name_69 (total INTEGER, routine_score VARCHAR)
SELECT SUM(total) FROM table_name_69 WHERE routine_score = 26.6
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (total INTEGER, routine_score VARCHAR) Question: What is the sum of the total for a routine score of 26.6? [/INST] SELECT SUM(total) FROM table_name_69 WHERE routine_score = 26.6 </s>
Name the january when april is courtney rachel culkin
CREATE TABLE table_name_53 (january VARCHAR, april VARCHAR)
SELECT january FROM table_name_53 WHERE april = "courtney rachel culkin"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (january VARCHAR, april VARCHAR) Question: Name the january when april is courtney rachel culkin [/INST] SELECT january FROM table_name_53 WHERE april = "courtney rachel culkin" </s>
Name the october when november is buffy tyler
CREATE TABLE table_name_17 (october VARCHAR, november VARCHAR)
SELECT october FROM table_name_17 WHERE november = "buffy tyler"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (october VARCHAR, november VARCHAR) Question: Name the october when november is buffy tyler [/INST] SELECT october FROM table_name_17 WHERE november = "buffy tyler" </s>
Name the october when the september is dalene kurtis
CREATE TABLE table_name_47 (october VARCHAR, september VARCHAR)
SELECT october FROM table_name_47 WHERE september = "dalene kurtis"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (october VARCHAR, september VARCHAR) Question: Name the october when the september is dalene kurtis [/INST] SELECT october FROM table_name_47 WHERE september = "dalene kurtis" </s>
Name the april for candice cassidy
CREATE TABLE table_name_41 (april VARCHAR, june VARCHAR)
SELECT april FROM table_name_41 WHERE june = "candice cassidy"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (april VARCHAR, june VARCHAR) Question: Name the april for candice cassidy [/INST] SELECT april FROM table_name_41 WHERE june = "candice cassidy" </s>
Name the october for july of kimberley stanfield
CREATE TABLE table_name_71 (october VARCHAR, july VARCHAR)
SELECT october FROM table_name_71 WHERE july = "kimberley stanfield"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (october VARCHAR, july VARCHAR) Question: Name the october for july of kimberley stanfield [/INST] SELECT october FROM table_name_71 WHERE july = "kimberley stanfield" </s>
Which Representative was from Kentucky during the years of 1855–1859?
CREATE TABLE table_name_25 (representative VARCHAR, state VARCHAR, years VARCHAR)
SELECT representative FROM table_name_25 WHERE state = "kentucky" AND years = "1855–1859"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (representative VARCHAR, state VARCHAR, years VARCHAR) Question: Which Representative was from Kentucky during the years of 1855–1859? [/INST] SELECT representative FROM table_name_25 WHERE state = "kentucky" AND years = "1855–1859" </s>
What was the lifespan of the Representative from the Republican Party during the years of 1953–1970?
CREATE TABLE table_name_31 (lifespan VARCHAR, party VARCHAR, years VARCHAR)
SELECT lifespan FROM table_name_31 WHERE party = "republican" AND years = "1953–1970"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (lifespan VARCHAR, party VARCHAR, years VARCHAR) Question: What was the lifespan of the Representative from the Republican Party during the years of 1953–1970? [/INST] SELECT lifespan FROM table_name_31 WHERE party = "republican" AND years = "1953–1970" </s>
What years did the Representative from Iowa with a lifespan of 1880–1942 serve?
CREATE TABLE table_name_20 (years VARCHAR, state VARCHAR, lifespan VARCHAR)
SELECT years FROM table_name_20 WHERE state = "iowa" AND lifespan = "1880–1942"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (years VARCHAR, state VARCHAR, lifespan VARCHAR) Question: What years did the Representative from Iowa with a lifespan of 1880–1942 serve? [/INST] SELECT years FROM table_name_20 WHERE state = "iowa" AND lifespan = "1880–1942" </s>
Which Representative had a Lifespan of 1795–1866?
CREATE TABLE table_name_71 (representative VARCHAR, lifespan VARCHAR)
SELECT representative FROM table_name_71 WHERE lifespan = "1795–1866"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (representative VARCHAR, lifespan VARCHAR) Question: Which Representative had a Lifespan of 1795–1866? [/INST] SELECT representative FROM table_name_71 WHERE lifespan = "1795–1866" </s>
When did the Chiefs have their first bye?
CREATE TABLE table_name_47 (week INTEGER, attendance VARCHAR)
SELECT MIN(week) FROM table_name_47 WHERE attendance = "bye"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (week INTEGER, attendance VARCHAR) Question: When did the Chiefs have their first bye? [/INST] SELECT MIN(week) FROM table_name_47 WHERE attendance = "bye" </s>
What is the position played for the player drafted in round 2?
CREATE TABLE table_name_76 (position VARCHAR, round VARCHAR)
SELECT position FROM table_name_76 WHERE round = 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (position VARCHAR, round VARCHAR) Question: What is the position played for the player drafted in round 2? [/INST] SELECT position FROM table_name_76 WHERE round = 2 </s>
what is the name of the player that played position 3b?
CREATE TABLE table_name_54 (name VARCHAR, position VARCHAR)
SELECT name FROM table_name_54 WHERE position = "3b"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (name VARCHAR, position VARCHAR) Question: what is the name of the player that played position 3b? [/INST] SELECT name FROM table_name_54 WHERE position = "3b" </s>
what is the school for Ivey armstrong?
CREATE TABLE table_name_90 (school VARCHAR, name VARCHAR)
SELECT school FROM table_name_90 WHERE name = "ivey armstrong"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (school VARCHAR, name VARCHAR) Question: what is the school for Ivey armstrong? [/INST] SELECT school FROM table_name_90 WHERE name = "ivey armstrong" </s>
what is the position for the player from university of alabama?
CREATE TABLE table_name_37 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_37 WHERE school = "university of alabama"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (position VARCHAR, school VARCHAR) Question: what is the position for the player from university of alabama? [/INST] SELECT position FROM table_name_37 WHERE school = "university of alabama" </s>
How many days with frost were there in the City/Town of Lugo have?
CREATE TABLE table_name_22 (days_with_frost INTEGER, city_town VARCHAR)
SELECT SUM(days_with_frost) FROM table_name_22 WHERE city_town = "lugo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (days_with_frost INTEGER, city_town VARCHAR) Question: How many days with frost were there in the City/Town of Lugo have? [/INST] SELECT SUM(days_with_frost) FROM table_name_22 WHERE city_town = "lugo" </s>
What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?
CREATE TABLE table_name_98 (sunlight_hours INTEGER, city_town VARCHAR, days_with_frost VARCHAR)
SELECT MIN(sunlight_hours) FROM table_name_98 WHERE city_town = "ourense" AND days_with_frost > 30
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (sunlight_hours INTEGER, city_town VARCHAR, days_with_frost VARCHAR) Question: What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense? [/INST] SELECT MIN(sunlight_hours) FROM table_name_98 WHERE city_town = "ourense" AND days_with_frost > 30 </s>
What is the largest amount of sunlight hours for the City of Pontevedra?
CREATE TABLE table_name_23 (sunlight_hours INTEGER, city_town VARCHAR)
SELECT MAX(sunlight_hours) FROM table_name_23 WHERE city_town = "pontevedra"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (sunlight_hours INTEGER, city_town VARCHAR) Question: What is the largest amount of sunlight hours for the City of Pontevedra? [/INST] SELECT MAX(sunlight_hours) FROM table_name_23 WHERE city_town = "pontevedra" </s>
for the rank of 3 for the united states, what is the average lane?
CREATE TABLE table_name_8 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT AVG(lane) FROM table_name_8 WHERE nationality = "united states" AND rank = 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (lane INTEGER, nationality VARCHAR, rank VARCHAR) Question: for the rank of 3 for the united states, what is the average lane? [/INST] SELECT AVG(lane) FROM table_name_8 WHERE nationality = "united states" AND rank = 3 </s>
for the rank more than 1 and nationality of netherlands, what is the lane?
CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT AVG(lane) FROM table_name_30 WHERE nationality = "netherlands" AND rank > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR, rank VARCHAR) Question: for the rank more than 1 and nationality of netherlands, what is the lane? [/INST] SELECT AVG(lane) FROM table_name_30 WHERE nationality = "netherlands" AND rank > 1 </s>
for the time of 49.04 and lane less than 3, what is the nationality?
CREATE TABLE table_name_27 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_27 WHERE lane < 3 AND time = 49.04
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (nationality VARCHAR, lane VARCHAR, time VARCHAR) Question: for the time of 49.04 and lane less than 3, what is the nationality? [/INST] SELECT nationality FROM table_name_27 WHERE lane < 3 AND time = 49.04 </s>
for the rank of 8 and lane less than 3 what is the name?
CREATE TABLE table_name_99 (name VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT name FROM table_name_99 WHERE lane < 3 AND rank = 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (name VARCHAR, lane VARCHAR, rank VARCHAR) Question: for the rank of 8 and lane less than 3 what is the name? [/INST] SELECT name FROM table_name_99 WHERE lane < 3 AND rank = 8 </s>
What play has a loss of 2?
CREATE TABLE table_name_1 (played VARCHAR, lost VARCHAR)
SELECT played FROM table_name_1 WHERE lost = "2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (played VARCHAR, lost VARCHAR) Question: What play has a loss of 2? [/INST] SELECT played FROM table_name_1 WHERE lost = "2" </s>
What try bonus has a club of caerphilly rfc?
CREATE TABLE table_name_27 (try_bonus VARCHAR, club VARCHAR)
SELECT try_bonus FROM table_name_27 WHERE club = "caerphilly rfc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (try_bonus VARCHAR, club VARCHAR) Question: What try bonus has a club of caerphilly rfc? [/INST] SELECT try_bonus FROM table_name_27 WHERE club = "caerphilly rfc" </s>
What club has a play of 22, and losing bonus of 7?
CREATE TABLE table_name_38 (club VARCHAR, played VARCHAR, losing_bonus VARCHAR)
SELECT club FROM table_name_38 WHERE played = "22" AND losing_bonus = "7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (club VARCHAR, played VARCHAR, losing_bonus VARCHAR) Question: What club has a play of 22, and losing bonus of 7? [/INST] SELECT club FROM table_name_38 WHERE played = "22" AND losing_bonus = "7" </s>
What point against has tries against of 77, and a lost of 16?
CREATE TABLE table_name_93 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR)
SELECT points_against FROM table_name_93 WHERE tries_against = "77" AND lost = "16"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR) Question: What point against has tries against of 77, and a lost of 16? [/INST] SELECT points_against FROM table_name_93 WHERE tries_against = "77" AND lost = "16" </s>
The nll participate in what sport?
CREATE TABLE table_name_64 (sport VARCHAR, league VARCHAR)
SELECT sport FROM table_name_64 WHERE league = "nll"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (sport VARCHAR, league VARCHAR) Question: The nll participate in what sport? [/INST] SELECT sport FROM table_name_64 WHERE league = "nll" </s>
When did the Club of western new york flash begin to play?
CREATE TABLE table_name_50 (began_play VARCHAR, club VARCHAR)
SELECT began_play FROM table_name_50 WHERE club = "western new york flash"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (began_play VARCHAR, club VARCHAR) Question: When did the Club of western new york flash begin to play? [/INST] SELECT began_play FROM table_name_50 WHERE club = "western new york flash" </s>
Which club plays soccer in the nwsl?
CREATE TABLE table_name_61 (club VARCHAR, sport VARCHAR, league VARCHAR)
SELECT club FROM table_name_61 WHERE sport = "soccer" AND league = "nwsl"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (club VARCHAR, sport VARCHAR, league VARCHAR) Question: Which club plays soccer in the nwsl? [/INST] SELECT club FROM table_name_61 WHERE sport = "soccer" AND league = "nwsl" </s>
When did the Rochester Rhinos begin to play?
CREATE TABLE table_name_48 (began_play VARCHAR, club VARCHAR)
SELECT began_play FROM table_name_48 WHERE club = "rochester rhinos"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (began_play VARCHAR, club VARCHAR) Question: When did the Rochester Rhinos begin to play? [/INST] SELECT began_play FROM table_name_48 WHERE club = "rochester rhinos" </s>
The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.
CREATE TABLE table_name_51 (total INTEGER, tour VARCHAR, giro VARCHAR)
SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (total INTEGER, tour VARCHAR, giro VARCHAR) Question: The sun of total that has a tour of 7 and a Giro smaller than 3 is 12. [/INST] SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3 </s>
What genders did Lynmore Primary School take?
CREATE TABLE table_name_68 (gender VARCHAR, name VARCHAR)
SELECT gender FROM table_name_68 WHERE name = "lynmore primary school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (gender VARCHAR, name VARCHAR) Question: What genders did Lynmore Primary School take? [/INST] SELECT gender FROM table_name_68 WHERE name = "lynmore primary school" </s>
Which area served coed genders at Kaharoa school and had a Decile of 9?
CREATE TABLE table_name_45 (area VARCHAR, name VARCHAR, gender VARCHAR, decile VARCHAR)
SELECT area FROM table_name_45 WHERE gender = "coed" AND decile = "9" AND name = "kaharoa school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (area VARCHAR, name VARCHAR, gender VARCHAR, decile VARCHAR) Question: Which area served coed genders at Kaharoa school and had a Decile of 9? [/INST] SELECT area FROM table_name_45 WHERE gender = "coed" AND decile = "9" AND name = "kaharoa school" </s>
What was the gender for the integrated authority with a roll of 142?
CREATE TABLE table_name_15 (gender VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT gender FROM table_name_15 WHERE authority = "integrated" AND roll = 142
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (gender VARCHAR, authority VARCHAR, roll VARCHAR) Question: What was the gender for the integrated authority with a roll of 142? [/INST] SELECT gender FROM table_name_15 WHERE authority = "integrated" AND roll = 142 </s>
Who is the authority for the coed Eastbourne school?
CREATE TABLE table_name_46 (authority VARCHAR, area VARCHAR, gender VARCHAR)
SELECT authority FROM table_name_46 WHERE area = "eastbourne" AND gender = "coed"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (authority VARCHAR, area VARCHAR, gender VARCHAR) Question: Who is the authority for the coed Eastbourne school? [/INST] SELECT authority FROM table_name_46 WHERE area = "eastbourne" AND gender = "coed" </s>
What is the sum of all laps with rank 3?
CREATE TABLE table_name_99 (laps VARCHAR, rank VARCHAR)
SELECT COUNT(laps) FROM table_name_99 WHERE rank = "3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (laps VARCHAR, rank VARCHAR) Question: What is the sum of all laps with rank 3? [/INST] SELECT COUNT(laps) FROM table_name_99 WHERE rank = "3" </s>
What is the sum of all laps starting at 10 and finishing at 20?
CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR, finish VARCHAR)
SELECT SUM(laps) FROM table_name_32 WHERE start = "10" AND finish = "20"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR, finish VARCHAR) Question: What is the sum of all laps starting at 10 and finishing at 20? [/INST] SELECT SUM(laps) FROM table_name_32 WHERE start = "10" AND finish = "20" </s>
What's the rank when the start is 10 and the laps are fewer than 192?
CREATE TABLE table_name_90 (rank VARCHAR, start VARCHAR, laps VARCHAR)
SELECT rank FROM table_name_90 WHERE start = "10" AND laps < 192
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (rank VARCHAR, start VARCHAR, laps VARCHAR) Question: What's the rank when the start is 10 and the laps are fewer than 192? [/INST] SELECT rank FROM table_name_90 WHERE start = "10" AND laps < 192 </s>
What's the rank when the laps are fewer than 137 and the qual is 116.470?
CREATE TABLE table_name_99 (rank VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT rank FROM table_name_99 WHERE laps < 137 AND qual = "116.470"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (rank VARCHAR, laps VARCHAR, qual VARCHAR) Question: What's the rank when the laps are fewer than 137 and the qual is 116.470? [/INST] SELECT rank FROM table_name_99 WHERE laps < 137 AND qual = "116.470" </s>
What director worked with Al Mackay as writer?
CREATE TABLE table_name_61 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT director_s_ FROM table_name_61 WHERE writer_s_ = "al mackay"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (director_s_ VARCHAR, writer_s_ VARCHAR) Question: What director worked with Al Mackay as writer? [/INST] SELECT director_s_ FROM table_name_61 WHERE writer_s_ = "al mackay" </s>
Which producer worked with Robert Sproul-cran as writer?
CREATE TABLE table_name_94 (producer_s_ VARCHAR, writer_s_ VARCHAR)
SELECT producer_s_ FROM table_name_94 WHERE writer_s_ = "robert sproul-cran"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (producer_s_ VARCHAR, writer_s_ VARCHAR) Question: Which producer worked with Robert Sproul-cran as writer? [/INST] SELECT producer_s_ FROM table_name_94 WHERE writer_s_ = "robert sproul-cran" </s>
Which film did Al Mackay write?
CREATE TABLE table_name_8 (film VARCHAR, writer_s_ VARCHAR)
SELECT film FROM table_name_8 WHERE writer_s_ = "al mackay"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (film VARCHAR, writer_s_ VARCHAR) Question: Which film did Al Mackay write? [/INST] SELECT film FROM table_name_8 WHERE writer_s_ = "al mackay" </s>
Who directed the film 'The Chapel'?
CREATE TABLE table_name_22 (director_s_ VARCHAR, film VARCHAR)
SELECT director_s_ FROM table_name_22 WHERE film = "the chapel"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (director_s_ VARCHAR, film VARCHAR) Question: Who directed the film 'The Chapel'? [/INST] SELECT director_s_ FROM table_name_22 WHERE film = "the chapel" </s>
What award did Andrew Ryder win as producer?
CREATE TABLE table_name_40 (award VARCHAR, producer_s_ VARCHAR)
SELECT award FROM table_name_40 WHERE producer_s_ = "andrew ryder"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (award VARCHAR, producer_s_ VARCHAR) Question: What award did Andrew Ryder win as producer? [/INST] SELECT award FROM table_name_40 WHERE producer_s_ = "andrew ryder" </s>
What is the total national rank of Canada with lanes larger than 3?
CREATE TABLE table_name_72 (rank INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT SUM(rank) FROM table_name_72 WHERE nationality = "canada" AND lane > 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (rank INTEGER, nationality VARCHAR, lane VARCHAR) Question: What is the total national rank of Canada with lanes larger than 3? [/INST] SELECT SUM(rank) FROM table_name_72 WHERE nationality = "canada" AND lane > 3 </s>
For the team with 39+1 points and fewer than 7 draws, how many wins were scored?
CREATE TABLE table_name_32 (wins VARCHAR, points VARCHAR, draws VARCHAR)
SELECT COUNT(wins) FROM table_name_32 WHERE points = "39+1" AND draws < 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (wins VARCHAR, points VARCHAR, draws VARCHAR) Question: For the team with 39+1 points and fewer than 7 draws, how many wins were scored? [/INST] SELECT COUNT(wins) FROM table_name_32 WHERE points = "39+1" AND draws < 7 </s>
For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?
CREATE TABLE table_name_94 (draws INTEGER, goal_difference VARCHAR, losses VARCHAR)
SELECT MAX(draws) FROM table_name_94 WHERE goal_difference > 3 AND losses < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (draws INTEGER, goal_difference VARCHAR, losses VARCHAR) Question: For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored? [/INST] SELECT MAX(draws) FROM table_name_94 WHERE goal_difference > 3 AND losses < 8 </s>
Which club had fewer than 29 goals against and a difference smaller than 26?
CREATE TABLE table_name_47 (club VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
SELECT club FROM table_name_47 WHERE goals_against < 29 AND goal_difference < 26
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (club VARCHAR, goals_against VARCHAR, goal_difference VARCHAR) Question: Which club had fewer than 29 goals against and a difference smaller than 26? [/INST] SELECT club FROM table_name_47 WHERE goals_against < 29 AND goal_difference < 26 </s>
What was the score when the Rangers' attendance was 23,493?
CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_70 WHERE attendance = "23,493"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR) Question: What was the score when the Rangers' attendance was 23,493? [/INST] SELECT score FROM table_name_70 WHERE attendance = "23,493" </s>
Who was the opponent on the game on April 14, 2007?
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_60 WHERE date = "april 14, 2007"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR) Question: Who was the opponent on the game on April 14, 2007? [/INST] SELECT opponent FROM table_name_60 WHERE date = "april 14, 2007" </s>
How many people were in attendance on the game on April 8, 2007?
CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_15 WHERE date = "april 8, 2007"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR) Question: How many people were in attendance on the game on April 8, 2007? [/INST] SELECT attendance FROM table_name_15 WHERE date = "april 8, 2007" </s>
What was the date of the game with 16,404 people?
CREATE TABLE table_name_18 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_18 WHERE attendance = "16,404"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (date VARCHAR, attendance VARCHAR) Question: What was the date of the game with 16,404 people? [/INST] SELECT date FROM table_name_18 WHERE attendance = "16,404" </s>
Which category was Dev Patel nominated for?
CREATE TABLE table_name_61 (category VARCHAR, winner_nominee_s_ VARCHAR)
SELECT category FROM table_name_61 WHERE winner_nominee_s_ = "dev patel"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (category VARCHAR, winner_nominee_s_ VARCHAR) Question: Which category was Dev Patel nominated for? [/INST] SELECT category FROM table_name_61 WHERE winner_nominee_s_ = "dev patel" </s>
Which film was Eddie Murphy nominated for?
CREATE TABLE table_name_19 (film VARCHAR, winner_nominee_s_ VARCHAR, result VARCHAR)
SELECT film FROM table_name_19 WHERE winner_nominee_s_ = "eddie murphy" AND result = "nominated"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (film VARCHAR, winner_nominee_s_ VARCHAR, result VARCHAR) Question: Which film was Eddie Murphy nominated for? [/INST] SELECT film FROM table_name_19 WHERE winner_nominee_s_ = "eddie murphy" AND result = "nominated" </s>
When the start is 22, what is the finish?
CREATE TABLE table_name_71 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_71 WHERE start = "22"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (finish VARCHAR, start VARCHAR) Question: When the start is 22, what is the finish? [/INST] SELECT finish FROM table_name_71 WHERE start = "22" </s>
What year resulted in 54 laps?
CREATE TABLE table_name_39 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_name_39 WHERE laps = 54
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (year VARCHAR, laps VARCHAR) Question: What year resulted in 54 laps? [/INST] SELECT year FROM table_name_39 WHERE laps = 54 </s>
On what date was the score 2–4?
CREATE TABLE table_name_89 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_89 WHERE score = "2–4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (date VARCHAR, score VARCHAR) Question: On what date was the score 2–4? [/INST] SELECT date FROM table_name_89 WHERE score = "2–4" </s>
Who was the home team when the score was 4–3?
CREATE TABLE table_name_93 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_93 WHERE score = "4–3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (home VARCHAR, score VARCHAR) Question: Who was the home team when the score was 4–3? [/INST] SELECT home FROM table_name_93 WHERE score = "4–3" </s>
On what date was the record 2–1?
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_53 WHERE record = "2–1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR) Question: On what date was the record 2–1? [/INST] SELECT date FROM table_name_53 WHERE record = "2–1" </s>
Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider?
CREATE TABLE table_name_96 (winning_driver VARCHAR, fastest_lap VARCHAR, winning_team VARCHAR, round VARCHAR)
SELECT winning_driver FROM table_name_96 WHERE winning_team = "opel team holzer 1" AND round < 9 AND fastest_lap = "bernd schneider"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (winning_driver VARCHAR, fastest_lap VARCHAR, winning_team VARCHAR, round VARCHAR) Question: Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider? [/INST] SELECT winning_driver FROM table_name_96 WHERE winning_team = "opel team holzer 1" AND round < 9 AND fastest_lap = "bernd schneider" </s>
What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?
CREATE TABLE table_name_18 (round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR)
SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR) Question: What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring? [/INST] SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring" </s>
What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz?
CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR, winning_manufacturer VARCHAR)
SELECT date FROM table_name_34 WHERE circuit = "hockenheimring" AND winning_manufacturer = "mercedes-benz"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR, winning_manufacturer VARCHAR) Question: What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz? [/INST] SELECT date FROM table_name_34 WHERE circuit = "hockenheimring" AND winning_manufacturer = "mercedes-benz" </s>
Who was the winning driver of the Circuit of Lausitzring?
CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_name_15 WHERE circuit = "lausitzring"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR) Question: Who was the winning driver of the Circuit of Lausitzring? [/INST] SELECT winning_driver FROM table_name_15 WHERE circuit = "lausitzring" </s>
What is the city of txdot har?
CREATE TABLE table_name_47 (city_of_license VARCHAR, brand VARCHAR)
SELECT city_of_license FROM table_name_47 WHERE brand = "txdot har"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (city_of_license VARCHAR, brand VARCHAR) Question: What is the city of txdot har? [/INST] SELECT city_of_license FROM table_name_47 WHERE brand = "txdot har" </s>
What was radio mexicana's website?
CREATE TABLE table_name_22 (website VARCHAR, brand VARCHAR)
SELECT website FROM table_name_22 WHERE brand = "radio mexicana"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (website VARCHAR, brand VARCHAR) Question: What was radio mexicana's website? [/INST] SELECT website FROM table_name_22 WHERE brand = "radio mexicana" </s>
Which player ranks higher than 9?
CREATE TABLE table_name_11 (player VARCHAR, rank INTEGER)
SELECT player FROM table_name_11 WHERE rank > 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (player VARCHAR, rank INTEGER) Question: Which player ranks higher than 9? [/INST] SELECT player FROM table_name_11 WHERE rank > 9 </s>