instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
What is the average Heat for anjelika solovieva?
CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR)
SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR) Question: What is the average Heat for anjelika solovieva? [/INST] SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva" </s>
What is the average lane with Netherlands Antilles Nationality?
CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR)
SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR) Question: What is the average lane with Netherlands Antilles Nationality? [/INST] SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles" ...
What is the finish of the year with start 5?
CREATE TABLE table_name_42 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_42 WHERE start = "5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (finish VARCHAR, start VARCHAR) Question: What is the finish of the year with start 5? [/INST] SELECT finish FROM table_name_42 WHERE start = "5" </s>
What is the rank in 1940?
CREATE TABLE table_name_26 (rank VARCHAR, year VARCHAR)
SELECT rank FROM table_name_26 WHERE year = "1940"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (rank VARCHAR, year VARCHAR) Question: What is the rank in 1940? [/INST] SELECT rank FROM table_name_26 WHERE year = "1940" </s>
What is the highest laps of the year when the rank was 14?
CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)
SELECT MAX(laps) FROM table_name_73 WHERE rank = "14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR) Question: What is the highest laps of the year when the rank was 14? [/INST] SELECT MAX(laps) FROM table_name_73 WHERE rank = "14" </s>
What year had 134 laps?
CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_name_75 WHERE laps = 134
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (year VARCHAR, laps VARCHAR) Question: What year had 134 laps? [/INST] SELECT year FROM table_name_75 WHERE laps = 134 </s>
What is the finish when there was more than 192 laps and a qual of 135.736?
CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (finish VARCHAR, laps VARCHAR, qual VARCHAR) Question: What is the finish when there was more than 192 laps and a qual of 135.736? [/INST] SELECT finish FROM table_name_2 WHERE laps > 192 AND qual =...
Witch opponent has a loss of Glynn (0-2)?
CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_51 WHERE loss = "glynn (0-2)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR) Question: Witch opponent has a loss of Glynn (0-2)? [/INST] SELECT opponent FROM table_name_51 WHERE loss = "glynn (0-2)" </s>
Who was the previous champion of the title won on July 7, 2010?
CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)
SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR) Question: Who was the previous champion of the title won on July 7, 2010? [/INST] SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "j...
When did Bonecrusher win the championship at Bayamón, Puerto Rico?
CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR)
SELECT date_won FROM table_name_5 WHERE location = "bayamón, puerto rico" AND champion_s_ = "bonecrusher"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR) Question: When did Bonecrusher win the championship at Bayamón, Puerto Rico? [/INST] SELECT date_won FROM table_name_5 WHERE location = "bay...
Who is the champion of the title previously held by Lash?
CREATE TABLE table_name_4 (champion_s_ VARCHAR, previous_champion_s_ VARCHAR)
SELECT champion_s_ FROM table_name_4 WHERE previous_champion_s_ = "lash"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (champion_s_ VARCHAR, previous_champion_s_ VARCHAR) Question: Who is the champion of the title previously held by Lash? [/INST] SELECT champion_s_ FROM table_name_4 WHERE previous_champion_s_ = "las...
Which championship was won on July 7, 2010?
CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR)
SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR) Question: Which championship was won on July 7, 2010? [/INST] SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010" </s>
Who has 6/1 odds?
CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR)
SELECT trainer FROM table_name_50 WHERE odds = "6/1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR) Question: Who has 6/1 odds? [/INST] SELECT trainer FROM table_name_50 WHERE odds = "6/1" </s>
What is the total dist with Johnny Murtagh and less than 26 runners?
CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR)
SELECT SUM(dist__f_) FROM table_name_12 WHERE jockey = "johnny murtagh" AND runners < 26
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR) Question: What is the total dist with Johnny Murtagh and less than 26 runners? [/INST] SELECT SUM(dist__f_) FROM table_name_12 WHERE jockey = "jo...
Who has 5/1 odds?
CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR)
SELECT jockey FROM table_name_55 WHERE odds = "5/1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR) Question: Who has 5/1 odds? [/INST] SELECT jockey FROM table_name_55 WHERE odds = "5/1" </s>
What course did Fergal Lynch end up with 5/1 odds?
CREATE TABLE table_name_34 (course VARCHAR, jockey VARCHAR, odds VARCHAR)
SELECT course FROM table_name_34 WHERE jockey = "fergal lynch" AND odds = "5/1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (course VARCHAR, jockey VARCHAR, odds VARCHAR) Question: What course did Fergal Lynch end up with 5/1 odds? [/INST] SELECT course FROM table_name_34 WHERE jockey = "fergal lynch" AND odds = "5/1" <...
What place has a To par of +4 and a score of 74-70-74-74=292?
CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 70 - 74 - 74 = 292
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (place VARCHAR, to_par VARCHAR, score VARCHAR) Question: What place has a To par of +4 and a score of 74-70-74-74=292? [/INST] SELECT place FROM table_name_77 WHERE to_par = "+4" AND score = 74 - 7...
What place in the United States has a To par of e?
CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR) Question: What place in the United States has a To par of e? [/INST] SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e...
What is the To par for the place in the United States and a score of 74-69-71-74=288?
CREATE TABLE table_name_87 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_87 WHERE country = "united states" AND score = 74 - 69 - 71 - 74 = 288
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (to_par VARCHAR, country VARCHAR, score VARCHAR) Question: What is the To par for the place in the United States and a score of 74-69-71-74=288? [/INST] SELECT to_par FROM table_name_87 WHERE count...
What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf)?
CREATE TABLE table_name_27 (venue VARCHAR, year VARCHAR, position VARCHAR)
SELECT venue FROM table_name_27 WHERE year < 2005 AND position = "10th (sf)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (venue VARCHAR, year VARCHAR, position VARCHAR) Question: What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf)? [/INST] SELECT venue FROM table_name_27 WHERE year < 20...
What's the average Year for the Position of 7th (sf)?
CREATE TABLE table_name_47 (year INTEGER, position VARCHAR)
SELECT AVG(year) FROM table_name_47 WHERE position = "7th (sf)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (year INTEGER, position VARCHAR) Question: What's the average Year for the Position of 7th (sf)? [/INST] SELECT AVG(year) FROM table_name_47 WHERE position = "7th (sf)" </s>
What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?
CREATE TABLE table_name_67 (year INTEGER, event VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_67 WHERE event = "800 m" AND venue = "santiago de chile"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (year INTEGER, event VARCHAR, venue VARCHAR) Question: What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m? [/INST] SELECT MAX(year) FROM table_name_67 WHERE event = "...
What Venue has a Position of 12th (sf)?
CREATE TABLE table_name_97 (venue VARCHAR, position VARCHAR)
SELECT venue FROM table_name_97 WHERE position = "12th (sf)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (venue VARCHAR, position VARCHAR) Question: What Venue has a Position of 12th (sf)? [/INST] SELECT venue FROM table_name_97 WHERE position = "12th (sf)" </s>
Which engine has an Entrant of team lotus, and a Year larger than 1962?
CREATE TABLE table_name_47 (engine VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT engine FROM table_name_47 WHERE entrant = "team lotus" AND year > 1962
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (engine VARCHAR, entrant VARCHAR, year VARCHAR) Question: Which engine has an Entrant of team lotus, and a Year larger than 1962? [/INST] SELECT engine FROM table_name_47 WHERE entrant = "team lotu...
How many points have a Year larger than 1966?
CREATE TABLE table_name_69 (points VARCHAR, year INTEGER)
SELECT COUNT(points) FROM table_name_69 WHERE year > 1966
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (points VARCHAR, year INTEGER) Question: How many points have a Year larger than 1966? [/INST] SELECT COUNT(points) FROM table_name_69 WHERE year > 1966 </s>
What is the smallest number of points with an Engine of climax v8, and a Year of 1966?
CREATE TABLE table_name_87 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_87 WHERE engine = "climax v8" AND year = 1966
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (points INTEGER, engine VARCHAR, year VARCHAR) Question: What is the smallest number of points with an Engine of climax v8, and a Year of 1966? [/INST] SELECT MIN(points) FROM table_name_87 WHERE e...
How many points did Team Rothmans International have after 1975 when their Chassis was a March 771?
CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT points FROM table_name_91 WHERE year > 1975 AND entrant = "team rothmans international" AND chassis = "march 771"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR, entrant VARCHAR) Question: How many points did Team Rothmans International have after 1975 when their Chassis was a March 771? [/INST] SELECT points ...
What Nationality of the person who has a Rank of 4
CREATE TABLE table_name_59 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_59 WHERE lane < 4 AND rank = 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (nationality VARCHAR, lane VARCHAR, rank VARCHAR) Question: What Nationality of the person who has a Rank of 4 [/INST] SELECT nationality FROM table_name_59 WHERE lane < 4 AND rank = 4 </s>
Name the score on october 14
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_59 WHERE date = "october 14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR) Question: Name the score on october 14 [/INST] SELECT score FROM table_name_59 WHERE date = "october 14" </s>
What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR) Question: What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than...
How many people played at the club that had a "goal difference" of -8 and a position lower than 12?
CREATE TABLE table_name_80 (played INTEGER, goal_difference VARCHAR, position VARCHAR)
SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (played INTEGER, goal_difference VARCHAR, position VARCHAR) Question: How many people played at the club that had a "goal difference" of -8 and a position lower than 12? [/INST] SELECT SUM(played) ...
How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more than 44 goals?
CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR)
SELECT COUNT(goals_against) FROM table_name_13 WHERE goal_difference = 0 AND wins = 12 AND goals_for > 44
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR) Question: How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more tha...
What is the smallest number of "goals for" out of the clubs where there were 18 wins and fewer than 38 "goals against"?
CREATE TABLE table_name_85 (goals_for INTEGER, wins VARCHAR, goals_against VARCHAR)
SELECT MIN(goals_for) FROM table_name_85 WHERE wins = 18 AND goals_against < 38
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (goals_for INTEGER, wins VARCHAR, goals_against VARCHAR) Question: What is the smallest number of "goals for" out of the clubs where there were 18 wins and fewer than 38 "goals against"? [/INST] SE...
When did Manny Pacquiao win his first championship?
CREATE TABLE table_name_37 (year INTEGER, fighter VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE fighter = "manny pacquiao"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (year INTEGER, fighter VARCHAR) Question: When did Manny Pacquiao win his first championship? [/INST] SELECT MIN(year) FROM table_name_37 WHERE fighter = "manny pacquiao" </s>
Which sport did the United States win?
CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR)
SELECT sport FROM table_name_29 WHERE nation_represented = "united states"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR) Question: Which sport did the United States win? [/INST] SELECT sport FROM table_name_29 WHERE nation_represented = "united states" </s>
What is the latest result where a person from the Philippines won?
CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR)
SELECT MAX(year) FROM table_name_72 WHERE nation_represented = "philippines"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR) Question: What is the latest result where a person from the Philippines won? [/INST] SELECT MAX(year) FROM table_name_72 WHERE nation_represented = "phili...
Which nation won the boxing championship in 2012?
CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR)
SELECT nation_represented FROM table_name_1 WHERE year = 2012
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (nation_represented VARCHAR, year VARCHAR) Question: Which nation won the boxing championship in 2012? [/INST] SELECT nation_represented FROM table_name_1 WHERE year = 2012 </s>
What is the total number of seats of the Christian Democratic Union (CDU) party?
CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR)
SELECT total_seats FROM table_name_34 WHERE party = "christian democratic union (cdu)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR) Question: What is the total number of seats of the Christian Democratic Union (CDU) party? [/INST] SELECT total_seats FROM table_name_34 WHERE party = "christia...
What seat has a vote percentage of 100.0%
CREATE TABLE table_name_41 (seat_percentage VARCHAR, vote_percentage VARCHAR)
SELECT seat_percentage FROM table_name_41 WHERE vote_percentage = "100.0%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (seat_percentage VARCHAR, vote_percentage VARCHAR) Question: What seat has a vote percentage of 100.0% [/INST] SELECT seat_percentage FROM table_name_41 WHERE vote_percentage = "100.0%" </s>
What was the area in Glenella with a population of 522 in 2011?
CREATE TABLE table_name_24 (area__km²_ INTEGER, name VARCHAR, population__2011_ VARCHAR)
SELECT AVG(area__km²_) FROM table_name_24 WHERE name = "glenella" AND population__2011_ < 522
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (area__km²_ INTEGER, name VARCHAR, population__2011_ VARCHAR) Question: What was the area in Glenella with a population of 522 in 2011? [/INST] SELECT AVG(area__km²_) FROM table_name_24 WHERE name ...
What is the population density of Siglunes when the change was smaller than -8.1 percent?
CREATE TABLE table_name_6 (population_density VARCHAR, name VARCHAR, change___percentage_ VARCHAR)
SELECT COUNT(population_density) FROM table_name_6 WHERE name = "siglunes" AND change___percentage_ < -8.1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (population_density VARCHAR, name VARCHAR, change___percentage_ VARCHAR) Question: What is the population density of Siglunes when the change was smaller than -8.1 percent? [/INST] SELECT COUNT(popu...
Who was the trainer when Crowd Pleaser won?
CREATE TABLE table_name_67 (trainer VARCHAR, winner VARCHAR)
SELECT trainer FROM table_name_67 WHERE winner = "crowd pleaser"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (trainer VARCHAR, winner VARCHAR) Question: Who was the trainer when Crowd Pleaser won? [/INST] SELECT trainer FROM table_name_67 WHERE winner = "crowd pleaser" </s>
What was the race time of the horse with jockey Ramon Dominguez?
CREATE TABLE table_name_73 (time VARCHAR, jockey VARCHAR)
SELECT time FROM table_name_73 WHERE jockey = "ramon dominguez"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (time VARCHAR, jockey VARCHAR) Question: What was the race time of the horse with jockey Ramon Dominguez? [/INST] SELECT time FROM table_name_73 WHERE jockey = "ramon dominguez" </s>
What jockey rode for Michael House before 2012
CREATE TABLE table_name_70 (jockey VARCHAR, year VARCHAR, owner VARCHAR)
SELECT jockey FROM table_name_70 WHERE year < 2012 AND owner = "michael house"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (jockey VARCHAR, year VARCHAR, owner VARCHAR) Question: What jockey rode for Michael House before 2012 [/INST] SELECT jockey FROM table_name_70 WHERE year < 2012 AND owner = "michael house" </s>
How many UK events won for the contestant that won under 1 US event?
CREATE TABLE table_name_45 (events_won__uk_series_ VARCHAR, events_won__us_series_ INTEGER)
SELECT events_won__uk_series_ FROM table_name_45 WHERE events_won__us_series_ < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (events_won__uk_series_ VARCHAR, events_won__us_series_ INTEGER) Question: How many UK events won for the contestant that won under 1 US event? [/INST] SELECT events_won__uk_series_ FROM table_name...
How many US events did jason bennett win?
CREATE TABLE table_name_83 (events_won__us_series_ INTEGER, name VARCHAR)
SELECT AVG(events_won__us_series_) FROM table_name_83 WHERE name = "jason bennett"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (events_won__us_series_ INTEGER, name VARCHAR) Question: How many US events did jason bennett win? [/INST] SELECT AVG(events_won__us_series_) FROM table_name_83 WHERE name = "jason bennett" </s>
Which downhill has 7 overalls?
CREATE TABLE table_name_90 (downhill VARCHAR, overall VARCHAR)
SELECT downhill FROM table_name_90 WHERE overall = "7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (downhill VARCHAR, overall VARCHAR) Question: Which downhill has 7 overalls? [/INST] SELECT downhill FROM table_name_90 WHERE overall = "7" </s>
What is the combined of 2 overalls and 5 slaloms?
CREATE TABLE table_name_93 (combined VARCHAR, overall VARCHAR, slalom VARCHAR)
SELECT combined FROM table_name_93 WHERE overall = "2" AND slalom = "5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (combined VARCHAR, overall VARCHAR, slalom VARCHAR) Question: What is the combined of 2 overalls and 5 slaloms? [/INST] SELECT combined FROM table_name_93 WHERE overall = "2" AND slalom = "5" </s>
How many overalls has 1 combined and 24 downhills?
CREATE TABLE table_name_9 (overall VARCHAR, combined VARCHAR, downhill VARCHAR)
SELECT overall FROM table_name_9 WHERE combined = "1" AND downhill = "24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (overall VARCHAR, combined VARCHAR, downhill VARCHAR) Question: How many overalls has 1 combined and 24 downhills? [/INST] SELECT overall FROM table_name_9 WHERE combined = "1" AND downhill = "24" <...
What Distance had a Race Leader in Km (mi)?
CREATE TABLE table_name_94 (distance VARCHAR, race_leader VARCHAR)
SELECT distance FROM table_name_94 WHERE race_leader = "km (mi)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (distance VARCHAR, race_leader VARCHAR) Question: What Distance had a Race Leader in Km (mi)? [/INST] SELECT distance FROM table_name_94 WHERE race_leader = "km (mi)" </s>
What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, and over 72 games played?
CREATE TABLE table_name_10 (points INTEGER, games VARCHAR, tied VARCHAR, goals_for VARCHAR)
SELECT MAX(points) FROM table_name_10 WHERE tied = "4" AND goals_for < 257 AND games > 72
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (points INTEGER, games VARCHAR, tied VARCHAR, goals_for VARCHAR) Question: What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, and over 72 games ...
What is the average of games played with a percentage of 3.33% and less than 29 losses?
CREATE TABLE table_name_54 (played INTEGER, percentage VARCHAR, lost VARCHAR)
SELECT AVG(played) FROM table_name_54 WHERE percentage = "3.33%" AND lost < 29
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (played INTEGER, percentage VARCHAR, lost VARCHAR) Question: What is the average of games played with a percentage of 3.33% and less than 29 losses? [/INST] SELECT AVG(played) FROM table_name_54 WH...
What is the total number of games played that correlates with a first game in 1991, a percentage of 22.22%, and less than 7 losses?
CREATE TABLE table_name_22 (played VARCHAR, lost VARCHAR, first_game VARCHAR, percentage VARCHAR)
SELECT COUNT(played) FROM table_name_22 WHERE first_game = 1991 AND percentage = "22.22%" AND lost > 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (played VARCHAR, lost VARCHAR, first_game VARCHAR, percentage VARCHAR) Question: What is the total number of games played that correlates with a first game in 1991, a percentage of 22.22%, and less...
What is the highest number of draws that correlates with a percentage of 0.00% and less than 1 loss?
CREATE TABLE table_name_92 (drawn INTEGER, percentage VARCHAR, lost VARCHAR)
SELECT MAX(drawn) FROM table_name_92 WHERE percentage = "0.00%" AND lost < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (drawn INTEGER, percentage VARCHAR, lost VARCHAR) Question: What is the highest number of draws that correlates with a percentage of 0.00% and less than 1 loss? [/INST] SELECT MAX(drawn) FROM table...
What is the start value for rank 11?
CREATE TABLE table_name_31 (start VARCHAR, rank VARCHAR)
SELECT start FROM table_name_31 WHERE rank = "11"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (start VARCHAR, rank VARCHAR) Question: What is the start value for rank 11? [/INST] SELECT start FROM table_name_31 WHERE rank = "11" </s>
Which year has 200 laps?
CREATE TABLE table_name_95 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_name_95 WHERE laps = 200
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (year VARCHAR, laps VARCHAR) Question: Which year has 200 laps? [/INST] SELECT year FROM table_name_95 WHERE laps = 200 </s>
What is the finish value for a start of 19?
CREATE TABLE table_name_67 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_67 WHERE start = "19"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (finish VARCHAR, start VARCHAR) Question: What is the finish value for a start of 19? [/INST] SELECT finish FROM table_name_67 WHERE start = "19" </s>
where is the naghsh jahan stadium?
CREATE TABLE table_name_84 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_84 WHERE stadium = "naghsh jahan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (city VARCHAR, stadium VARCHAR) Question: where is the naghsh jahan stadium? [/INST] SELECT city FROM table_name_84 WHERE stadium = "naghsh jahan" </s>
what city has a past season of n/a?
CREATE TABLE table_name_43 (city VARCHAR, past_season VARCHAR)
SELECT city FROM table_name_43 WHERE past_season = "n/a"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (city VARCHAR, past_season VARCHAR) Question: what city has a past season of n/a? [/INST] SELECT city FROM table_name_43 WHERE past_season = "n/a" </s>
where is the pegah team located?
CREATE TABLE table_name_74 (city VARCHAR, team VARCHAR)
SELECT city FROM table_name_74 WHERE team = "pegah"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (city VARCHAR, team VARCHAR) Question: where is the pegah team located? [/INST] SELECT city FROM table_name_74 WHERE team = "pegah" </s>
what stadium has a prior record of 7th?
CREATE TABLE table_name_8 (stadium VARCHAR, past_season VARCHAR)
SELECT stadium FROM table_name_8 WHERE past_season = "7th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (stadium VARCHAR, past_season VARCHAR) Question: what stadium has a prior record of 7th? [/INST] SELECT stadium FROM table_name_8 WHERE past_season = "7th" </s>
What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58?
CREATE TABLE table_name_54 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_54 WHERE lane = 4 AND time = "1:11.58"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (nationality VARCHAR, lane VARCHAR, time VARCHAR) Question: What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58? [/INST] SELECT nationality FROM table_name_54 WHERE lane = 4 AND...
What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2?
CREATE TABLE table_name_97 (lane INTEGER, heat VARCHAR, time VARCHAR)
SELECT MIN(lane) FROM table_name_97 WHERE heat > 2 AND time = "1:10.57"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (lane INTEGER, heat VARCHAR, time VARCHAR) Question: What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2? [/INST] SELECT MIN(lane) FROM table_name_97 WHERE heat > 2 AND t...
What is the Heat for Smiljana Marinović?
CREATE TABLE table_name_88 (heat VARCHAR, name VARCHAR)
SELECT COUNT(heat) FROM table_name_88 WHERE name = "smiljana marinović"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (heat VARCHAR, name VARCHAR) Question: What is the Heat for Smiljana Marinović? [/INST] SELECT COUNT(heat) FROM table_name_88 WHERE name = "smiljana marinović" </s>
In heat 4, what is Byun Hye-young's Nationality?
CREATE TABLE table_name_62 (nationality VARCHAR, heat VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_62 WHERE heat = 4 AND name = "byun hye-young"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (nationality VARCHAR, heat VARCHAR, name VARCHAR) Question: In heat 4, what is Byun Hye-young's Nationality? [/INST] SELECT nationality FROM table_name_62 WHERE heat = 4 AND name = "byun hye-young"...
Which type of song did miriam yeung sing?
CREATE TABLE table_name_66 (kind_of_the_song VARCHAR, singer VARCHAR)
SELECT kind_of_the_song FROM table_name_66 WHERE singer = "miriam yeung"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (kind_of_the_song VARCHAR, singer VARCHAR) Question: Which type of song did miriam yeung sing? [/INST] SELECT kind_of_the_song FROM table_name_66 WHERE singer = "miriam yeung" </s>
What type of song is larger than 8 and named 實情?
CREATE TABLE table_name_50 (kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR)
SELECT kind_of_the_song FROM table_name_50 WHERE number > 8 AND name_of_the_song = "實情"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR) Question: What type of song is larger than 8 and named 實情? [/INST] SELECT kind_of_the_song FROM table_name_50 WHERE number > 8 A...
Which song has a ending theme, and is sung by miriam yeung?
CREATE TABLE table_name_75 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, singer VARCHAR)
SELECT name_of_the_song FROM table_name_75 WHERE kind_of_the_song = "ending theme" AND singer = "miriam yeung"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, singer VARCHAR) Question: Which song has a ending theme, and is sung by miriam yeung? [/INST] SELECT name_of_the_song FROM table_name_75 WHERE k...
What is the number of the song named 實情?
CREATE TABLE table_name_68 (number VARCHAR, name_of_the_song VARCHAR)
SELECT number FROM table_name_68 WHERE name_of_the_song = "實情"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (number VARCHAR, name_of_the_song VARCHAR) Question: What is the number of the song named 實情? [/INST] SELECT number FROM table_name_68 WHERE name_of_the_song = "實情" </s>
Name the total number of start when finish is less than 4
CREATE TABLE table_name_21 (start VARCHAR, finish INTEGER)
SELECT COUNT(start) FROM table_name_21 WHERE finish < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (start VARCHAR, finish INTEGER) Question: Name the total number of start when finish is less than 4 [/INST] SELECT COUNT(start) FROM table_name_21 WHERE finish < 4 </s>
Name the sum of year when start is less than 30
CREATE TABLE table_name_68 (year INTEGER, start INTEGER)
SELECT SUM(year) FROM table_name_68 WHERE start < 30
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (year INTEGER, start INTEGER) Question: Name the sum of year when start is less than 30 [/INST] SELECT SUM(year) FROM table_name_68 WHERE start < 30 </s>
Name the most year with start more than 2
CREATE TABLE table_name_59 (year INTEGER, start INTEGER)
SELECT MAX(year) FROM table_name_59 WHERE start > 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (year INTEGER, start INTEGER) Question: Name the most year with start more than 2 [/INST] SELECT MAX(year) FROM table_name_59 WHERE start > 2 </s>
Name the most year with start less than 2
CREATE TABLE table_name_9 (year INTEGER, start INTEGER)
SELECT MAX(year) FROM table_name_9 WHERE start < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (year INTEGER, start INTEGER) Question: Name the most year with start less than 2 [/INST] SELECT MAX(year) FROM table_name_9 WHERE start < 2 </s>
Name the year when start was 32
CREATE TABLE table_name_78 (year VARCHAR, start VARCHAR)
SELECT year FROM table_name_78 WHERE start = 32
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (year VARCHAR, start VARCHAR) Question: Name the year when start was 32 [/INST] SELECT year FROM table_name_78 WHERE start = 32 </s>
Name the most finish for 2006
CREATE TABLE table_name_9 (finish INTEGER, year VARCHAR)
SELECT MAX(finish) FROM table_name_9 WHERE year = 2006
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (finish INTEGER, year VARCHAR) Question: Name the most finish for 2006 [/INST] SELECT MAX(finish) FROM table_name_9 WHERE year = 2006 </s>
What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?
CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR) Question: What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5? [/INST] SELECT COUNT(attendance...
When did first minister Henry Mcleish enter office?
CREATE TABLE table_name_2 (entered_office VARCHAR, first_minister VARCHAR)
SELECT entered_office FROM table_name_2 WHERE first_minister = "henry mcleish"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (entered_office VARCHAR, first_minister VARCHAR) Question: When did first minister Henry Mcleish enter office? [/INST] SELECT entered_office FROM table_name_2 WHERE first_minister = "henry mcleish" ...
What is the name of the minister that left office on 14 November 2006?
CREATE TABLE table_name_86 (name VARCHAR, left_office VARCHAR)
SELECT name FROM table_name_86 WHERE left_office = "14 november 2006"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (name VARCHAR, left_office VARCHAR) Question: What is the name of the minister that left office on 14 November 2006? [/INST] SELECT name FROM table_name_86 WHERE left_office = "14 november 2006" </...
What is the name of the minister from the party of minister for community safety and legal affairs?
CREATE TABLE table_name_45 (name VARCHAR, party VARCHAR)
SELECT name FROM table_name_45 WHERE party = "minister for community safety and legal affairs"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (name VARCHAR, party VARCHAR) Question: What is the name of the minister from the party of minister for community safety and legal affairs? [/INST] SELECT name FROM table_name_45 WHERE party = "min...
What is the name of the minister who has an entered office of entered office?
CREATE TABLE table_name_80 (name VARCHAR, entered_office VARCHAR)
SELECT name FROM table_name_80 WHERE entered_office = "entered office"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (name VARCHAR, entered_office VARCHAR) Question: What is the name of the minister who has an entered office of entered office? [/INST] SELECT name FROM table_name_80 WHERE entered_office = "entered...
What is the party of the minister who left office on 26 November 2002?
CREATE TABLE table_name_3 (party VARCHAR, left_office VARCHAR)
SELECT party FROM table_name_3 WHERE left_office = "26 november 2002"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (party VARCHAR, left_office VARCHAR) Question: What is the party of the minister who left office on 26 November 2002? [/INST] SELECT party FROM table_name_3 WHERE left_office = "26 november 2002" </...
What is the party of Richard Simpson?
CREATE TABLE table_name_59 (party VARCHAR, name VARCHAR)
SELECT party FROM table_name_59 WHERE name = "richard simpson"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (party VARCHAR, name VARCHAR) Question: What is the party of Richard Simpson? [/INST] SELECT party FROM table_name_59 WHERE name = "richard simpson" </s>
Name the sum of spectators for time more than 20.05 and team #2 of estonia
CREATE TABLE table_name_66 (spectators INTEGER, time___cest__ VARCHAR, team__number2 VARCHAR)
SELECT SUM(spectators) FROM table_name_66 WHERE time___cest__ > 20.05 AND team__number2 = "estonia"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (spectators INTEGER, time___cest__ VARCHAR, team__number2 VARCHAR) Question: Name the sum of spectators for time more than 20.05 and team #2 of estonia [/INST] SELECT SUM(spectators) FROM table_nam...
Name the spectators for 11 november 2011
CREATE TABLE table_name_57 (spectators VARCHAR, date VARCHAR)
SELECT spectators FROM table_name_57 WHERE date = "11 november 2011"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (spectators VARCHAR, date VARCHAR) Question: Name the spectators for 11 november 2011 [/INST] SELECT spectators FROM table_name_57 WHERE date = "11 november 2011" </s>
Which loss has a Record of 54-39?
CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_68 WHERE record = "54-39"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR) Question: Which loss has a Record of 54-39? [/INST] SELECT loss FROM table_name_68 WHERE record = "54-39" </s>
Which opponent has a Record of 54-38?
CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_73 WHERE record = "54-38"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR) Question: Which opponent has a Record of 54-38? [/INST] SELECT opponent FROM table_name_73 WHERE record = "54-38" </s>
Which opponent has a date of July 7?
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_35 WHERE date = "july 7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR) Question: Which opponent has a date of July 7? [/INST] SELECT opponent FROM table_name_35 WHERE date = "july 7" </s>
Which record has a Loss of eichhorn (8-5)?
CREATE TABLE table_name_54 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_54 WHERE loss = "eichhorn (8-5)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (record VARCHAR, loss VARCHAR) Question: Which record has a Loss of eichhorn (8-5)? [/INST] SELECT record FROM table_name_54 WHERE loss = "eichhorn (8-5)" </s>
What is the average attendance San Jose home games?
CREATE TABLE table_name_81 (attendance INTEGER, home VARCHAR)
SELECT AVG(attendance) FROM table_name_81 WHERE home = "san jose"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (attendance INTEGER, home VARCHAR) Question: What is the average attendance San Jose home games? [/INST] SELECT AVG(attendance) FROM table_name_81 WHERE home = "san jose" </s>
What was the record at the game that had a loss of Spillner (1-8)?
CREATE TABLE table_name_13 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_13 WHERE loss = "spillner (1-8)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (record VARCHAR, loss VARCHAR) Question: What was the record at the game that had a loss of Spillner (1-8)? [/INST] SELECT record FROM table_name_13 WHERE loss = "spillner (1-8)" </s>
What was the score of the game that had a loss of Williams (1-1)?
CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_48 WHERE loss = "williams (1-1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR) Question: What was the score of the game that had a loss of Williams (1-1)? [/INST] SELECT score FROM table_name_48 WHERE loss = "williams (1-1)" </s>
What was the loss of the game that had a record of 63-52?
CREATE TABLE table_name_7 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_7 WHERE record = "63-52"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (loss VARCHAR, record VARCHAR) Question: What was the loss of the game that had a record of 63-52? [/INST] SELECT loss FROM table_name_7 WHERE record = "63-52" </s>
What was the score when the Washington Nationals had a record of 11-10?
CREATE TABLE table_name_90 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_90 WHERE record = "11-10"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (score VARCHAR, record VARCHAR) Question: What was the score when the Washington Nationals had a record of 11-10? [/INST] SELECT score FROM table_name_90 WHERE record = "11-10" </s>
Who was the opponent when the Washington Nationals had a record of 8-4?
CREATE TABLE table_name_24 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_24 WHERE record = "8-4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent when the Washington Nationals had a record of 8-4? [/INST] SELECT opponent FROM table_name_24 WHERE record = "8-4" </s>
How many people were in attendance when the Washington Nationals had a score of 7-3 and a loss of Worrell (0-1)?
CREATE TABLE table_name_54 (attendance VARCHAR, score VARCHAR, loss VARCHAR)
SELECT COUNT(attendance) FROM table_name_54 WHERE score = "7-3" AND loss = "worrell (0-1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (attendance VARCHAR, score VARCHAR, loss VARCHAR) Question: How many people were in attendance when the Washington Nationals had a score of 7-3 and a loss of Worrell (0-1)? [/INST] SELECT COUNT(att...
Name the Qual 2 which has the name of katherine legge
CREATE TABLE table_name_40 (qual_2 VARCHAR, name VARCHAR)
SELECT qual_2 FROM table_name_40 WHERE name = "katherine legge"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (qual_2 VARCHAR, name VARCHAR) Question: Name the Qual 2 which has the name of katherine legge [/INST] SELECT qual_2 FROM table_name_40 WHERE name = "katherine legge" </s>
Name the team with best of 58.846
CREATE TABLE table_name_2 (team VARCHAR, best VARCHAR)
SELECT team FROM table_name_2 WHERE best = "58.846"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (team VARCHAR, best VARCHAR) Question: Name the team with best of 58.846 [/INST] SELECT team FROM table_name_2 WHERE best = "58.846" </s>
Tell me the name with best of 58.403
CREATE TABLE table_name_46 (name VARCHAR, best VARCHAR)
SELECT name FROM table_name_46 WHERE best = "58.403"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (name VARCHAR, best VARCHAR) Question: Tell me the name with best of 58.403 [/INST] SELECT name FROM table_name_46 WHERE best = "58.403" </s>
Tell me the qual 1 for jan heylen
CREATE TABLE table_name_13 (qual_1 VARCHAR, name VARCHAR)
SELECT qual_1 FROM table_name_13 WHERE name = "jan heylen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (qual_1 VARCHAR, name VARCHAR) Question: Tell me the qual 1 for jan heylen [/INST] SELECT qual_1 FROM table_name_13 WHERE name = "jan heylen" </s>
When the attendance was 24,406 who lost?
CREATE TABLE table_name_8 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_8 WHERE attendance = "24,406"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (loss VARCHAR, attendance VARCHAR) Question: When the attendance was 24,406 who lost? [/INST] SELECT loss FROM table_name_8 WHERE attendance = "24,406" </s>