instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
The driver in class A with 125 laps is in what position?
CREATE TABLE table_name_92 (position VARCHAR, class VARCHAR, laps VARCHAR)
SELECT position FROM table_name_92 WHERE class = "a" AND laps = 125
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (position VARCHAR, class VARCHAR, laps VARCHAR) Question: The driver in class A with 125 laps is in what position? [/INST] SELECT position FROM table_name_92 WHERE class = "a" AND laps = 125 </s>
Peter Hopwood has how many laps in all?
CREATE TABLE table_name_53 (laps VARCHAR, entrant VARCHAR)
SELECT COUNT(laps) FROM table_name_53 WHERE entrant = "peter hopwood"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (laps VARCHAR, entrant VARCHAR) Question: Peter Hopwood has how many laps in all? [/INST] SELECT COUNT(laps) FROM table_name_53 WHERE entrant = "peter hopwood" </s>
For what class is the laps 66?
CREATE TABLE table_name_65 (class VARCHAR, laps VARCHAR)
SELECT class FROM table_name_65 WHERE laps = 66
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (class VARCHAR, laps VARCHAR) Question: For what class is the laps 66? [/INST] SELECT class FROM table_name_65 WHERE laps = 66 </s>
What is the number of matches with an average larger than 6.33, with a rank of 1?
CREATE TABLE table_name_78 (matches INTEGER, average VARCHAR, rank VARCHAR)
SELECT SUM(matches) FROM table_name_78 WHERE average > 6.33 AND rank = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (matches INTEGER, average VARCHAR, rank VARCHAR) Question: What is the number of matches with an average larger than 6.33, with a rank of 1? [/INST] SELECT SUM(matches) FROM table_name_78 WHERE ave...
What is the total when matches is less than 3, and rank is smaller than 2?
CREATE TABLE table_name_41 (total INTEGER, matches VARCHAR, rank VARCHAR)
SELECT MIN(total) FROM table_name_41 WHERE matches < 3 AND rank < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (total INTEGER, matches VARCHAR, rank VARCHAR) Question: What is the total when matches is less than 3, and rank is smaller than 2? [/INST] SELECT MIN(total) FROM table_name_41 WHERE matches < 3 AN...
What is the average when the tally is 3–11, with more than 4 matches??
CREATE TABLE table_name_27 (average VARCHAR, tally VARCHAR, matches VARCHAR)
SELECT COUNT(average) FROM table_name_27 WHERE tally = "3–11" AND matches > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (average VARCHAR, tally VARCHAR, matches VARCHAR) Question: What is the average when the tally is 3–11, with more than 4 matches?? [/INST] SELECT COUNT(average) FROM table_name_27 WHERE tally = "3–...
What rank has an average of 6.33?
CREATE TABLE table_name_23 (rank INTEGER, average VARCHAR)
SELECT AVG(rank) FROM table_name_23 WHERE average = 6.33
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (rank INTEGER, average VARCHAR) Question: What rank has an average of 6.33? [/INST] SELECT AVG(rank) FROM table_name_23 WHERE average = 6.33 </s>
What is the average number of laps with a dnf pos.?
CREATE TABLE table_name_6 (laps INTEGER, pos VARCHAR)
SELECT AVG(laps) FROM table_name_6 WHERE pos = "dnf"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (laps INTEGER, pos VARCHAR) Question: What is the average number of laps with a dnf pos.? [/INST] SELECT AVG(laps) FROM table_name_6 WHERE pos = "dnf" </s>
What is the lowest Rank for a Guam Player?
CREATE TABLE table_name_77 (rank INTEGER, country VARCHAR)
SELECT MIN(rank) FROM table_name_77 WHERE country = "guam"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (rank INTEGER, country VARCHAR) Question: What is the lowest Rank for a Guam Player? [/INST] SELECT MIN(rank) FROM table_name_77 WHERE country = "guam" </s>
What is the Rank of the Guam Player?
CREATE TABLE table_name_83 (rank INTEGER, country VARCHAR)
SELECT AVG(rank) FROM table_name_83 WHERE country = "guam"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (rank INTEGER, country VARCHAR) Question: What is the Rank of the Guam Player? [/INST] SELECT AVG(rank) FROM table_name_83 WHERE country = "guam" </s>
Which Week has a Result of l 20–13, and an Attendance larger than 49,598?
CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_8 WHERE result = "l 20–13" AND attendance > 49 OFFSET 598 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, attendance VARCHAR) Question: Which Week has a Result of l 20–13, and an Attendance larger than 49,598? [/INST] SELECT MAX(week) FROM table_name_8 WHERE result = "l 20...
How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354?
CREATE TABLE table_name_12 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_12 WHERE opponent = "at san francisco 49ers" AND attendance < 34 OFFSET 354 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) Question: How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354? [/INST] SELECT COUNT(week) FROM tabl...
Which Result has an Opponent of washington redskins?
CREATE TABLE table_name_3 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_3 WHERE opponent = "washington redskins"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (result VARCHAR, opponent VARCHAR) Question: Which Result has an Opponent of washington redskins? [/INST] SELECT result FROM table_name_3 WHERE opponent = "washington redskins" </s>
What week did the dallas cowboys play?
CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR)
SELECT SUM(week) FROM table_name_78 WHERE opponent = "dallas cowboys"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR) Question: What week did the dallas cowboys play? [/INST] SELECT SUM(week) FROM table_name_78 WHERE opponent = "dallas cowboys" </s>
Name the average React of the Time smaller than 20.05 in jamaica with a Lane larger than 5?
CREATE TABLE table_name_53 (react INTEGER, lane VARCHAR, time VARCHAR, nationality VARCHAR)
SELECT AVG(react) FROM table_name_53 WHERE time < 20.05 AND nationality = "jamaica" AND lane > 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (react INTEGER, lane VARCHAR, time VARCHAR, nationality VARCHAR) Question: Name the average React of the Time smaller than 20.05 in jamaica with a Lane larger than 5? [/INST] SELECT AVG(react) FROM...
Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1
CREATE TABLE table_name_61 (fencing_victories__pts_ VARCHAR, shooting_score__pts_ VARCHAR, total VARCHAR)
SELECT fencing_victories__pts_ FROM table_name_61 WHERE shooting_score__pts_ = "187 (1180)" AND total < 5640
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (fencing_victories__pts_ VARCHAR, shooting_score__pts_ VARCHAR, total VARCHAR) Question: Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Questi...
Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?
CREATE TABLE table_name_3 (equestrian_time__pts_ VARCHAR, athlete VARCHAR)
SELECT equestrian_time__pts_ FROM table_name_3 WHERE athlete = "omnia fakhry ( egy )"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (equestrian_time__pts_ VARCHAR, athlete VARCHAR) Question: Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )? [/INST] SELECT equestrian_time__pts_ FROM table_name_3 WHERE athlete = ...
Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?
CREATE TABLE table_name_7 (shooting_score__pts_ VARCHAR, total VARCHAR, athlete VARCHAR)
SELECT shooting_score__pts_ FROM table_name_7 WHERE total > 5464 AND athlete = "heather fell ( gbr )"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (shooting_score__pts_ VARCHAR, total VARCHAR, athlete VARCHAR) Question: Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )? [/INST] SELECT shooting_score_...
Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?
CREATE TABLE table_name_78 (fencing_victories__pts_ VARCHAR, equestrian_time__pts_ VARCHAR)
SELECT fencing_victories__pts_ FROM table_name_78 WHERE equestrian_time__pts_ = "67.88 (1144)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (fencing_victories__pts_ VARCHAR, equestrian_time__pts_ VARCHAR) Question: Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)? [/INST] SELECT fencing_victories__pts_ FRO...
Which Fencing Victories (pts) has a Total of 5640?
CREATE TABLE table_name_68 (fencing_victories__pts_ VARCHAR, total VARCHAR)
SELECT fencing_victories__pts_ FROM table_name_68 WHERE total = 5640
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (fencing_victories__pts_ VARCHAR, total VARCHAR) Question: Which Fencing Victories (pts) has a Total of 5640? [/INST] SELECT fencing_victories__pts_ FROM table_name_68 WHERE total = 5640 </s>
What position did the player from Rice College play who was picked under 15?
CREATE TABLE table_name_24 (position VARCHAR, pick VARCHAR, college VARCHAR)
SELECT position FROM table_name_24 WHERE pick < 15 AND college = "rice"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (position VARCHAR, pick VARCHAR, college VARCHAR) Question: What position did the player from Rice College play who was picked under 15? [/INST] SELECT position FROM table_name_24 WHERE pick < 15 A...
What position did pick 14 play?
CREATE TABLE table_name_72 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_72 WHERE pick = 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (position VARCHAR, pick VARCHAR) Question: What position did pick 14 play? [/INST] SELECT position FROM table_name_72 WHERE pick = 14 </s>
What pick number did the linebacker from the denver broncos get?
CREATE TABLE table_name_34 (pick VARCHAR, position VARCHAR, team VARCHAR)
SELECT pick FROM table_name_34 WHERE position = "linebacker" AND team = "denver broncos"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (pick VARCHAR, position VARCHAR, team VARCHAR) Question: What pick number did the linebacker from the denver broncos get? [/INST] SELECT pick FROM table_name_34 WHERE position = "linebacker" AND te...
What college was the quarterback from?
CREATE TABLE table_name_3 (college VARCHAR, position VARCHAR)
SELECT college FROM table_name_3 WHERE position = "quarterback"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (college VARCHAR, position VARCHAR) Question: What college was the quarterback from? [/INST] SELECT college FROM table_name_3 WHERE position = "quarterback" </s>
What is the lowest number pick from san diego chargers?
CREATE TABLE table_name_3 (pick INTEGER, team VARCHAR)
SELECT MIN(pick) FROM table_name_3 WHERE team = "san diego chargers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (pick INTEGER, team VARCHAR) Question: What is the lowest number pick from san diego chargers? [/INST] SELECT MIN(pick) FROM table_name_3 WHERE team = "san diego chargers" </s>
Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?
CREATE TABLE table_name_72 (years VARCHAR, type_code VARCHAR)
SELECT years FROM table_name_72 WHERE type_code = "cubic centimetres (cuin) v8 ( m273 )"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (years VARCHAR, type_code VARCHAR) Question: Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )? [/INST] SELECT years FROM table_name_72 WHERE type_code = "cubic centimetres (cuin)...
What is the total heat number of sun yang, who has a lane less than 2?
CREATE TABLE table_name_37 (heat VARCHAR, name VARCHAR, lane VARCHAR)
SELECT COUNT(heat) FROM table_name_37 WHERE name = "sun yang" AND lane < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (heat VARCHAR, name VARCHAR, lane VARCHAR) Question: What is the total heat number of sun yang, who has a lane less than 2? [/INST] SELECT COUNT(heat) FROM table_name_37 WHERE name = "sun yang" AND...
Who has a time of 3:50.90?
CREATE TABLE table_name_35 (name VARCHAR, time VARCHAR)
SELECT name FROM table_name_35 WHERE time = "3:50.90"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (name VARCHAR, time VARCHAR) Question: Who has a time of 3:50.90? [/INST] SELECT name FROM table_name_35 WHERE time = "3:50.90" </s>
What is the time of lane 3 in heat 5?
CREATE TABLE table_name_47 (time VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT time FROM table_name_47 WHERE heat = 5 AND lane = 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (time VARCHAR, heat VARCHAR, lane VARCHAR) Question: What is the time of lane 3 in heat 5? [/INST] SELECT time FROM table_name_47 WHERE heat = 5 AND lane = 3 </s>
What is the heat with a time of 3:45.57 in lane 3?
CREATE TABLE table_name_77 (heat VARCHAR, lane VARCHAR, time VARCHAR)
SELECT heat FROM table_name_77 WHERE lane = 3 AND time = "3:45.57"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (heat VARCHAR, lane VARCHAR, time VARCHAR) Question: What is the heat with a time of 3:45.57 in lane 3? [/INST] SELECT heat FROM table_name_77 WHERE lane = 3 AND time = "3:45.57" </s>
Who are the Rowers with a Time of 6:39.49?
CREATE TABLE table_name_31 (rowers VARCHAR, time VARCHAR)
SELECT rowers FROM table_name_31 WHERE time = "6:39.49"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (rowers VARCHAR, time VARCHAR) Question: Who are the Rowers with a Time of 6:39.49? [/INST] SELECT rowers FROM table_name_31 WHERE time = "6:39.49" </s>
What is the Country of the rowers with a Rank of 4?
CREATE TABLE table_name_11 (country VARCHAR, rank VARCHAR)
SELECT country FROM table_name_11 WHERE rank = 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (country VARCHAR, rank VARCHAR) Question: What is the Country of the rowers with a Rank of 4? [/INST] SELECT country FROM table_name_11 WHERE rank = 4 </s>
What counties mascot are the Red Ramblers?
CREATE TABLE table_name_85 (county VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_85 WHERE mascot = "red ramblers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (county VARCHAR, mascot VARCHAR) Question: What counties mascot are the Red Ramblers? [/INST] SELECT county FROM table_name_85 WHERE mascot = "red ramblers" </s>
What is the IHSAA class when the county was 83 vermillion?
CREATE TABLE table_name_40 (ihsaa_class VARCHAR, county VARCHAR)
SELECT ihsaa_class FROM table_name_40 WHERE county = "83 vermillion"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (ihsaa_class VARCHAR, county VARCHAR) Question: What is the IHSAA class when the county was 83 vermillion? [/INST] SELECT ihsaa_class FROM table_name_40 WHERE county = "83 vermillion" </s>
What is the enrollment number for Rockville?
CREATE TABLE table_name_27 (enrollment VARCHAR, location VARCHAR)
SELECT COUNT(enrollment) FROM table_name_27 WHERE location = "rockville"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (enrollment VARCHAR, location VARCHAR) Question: What is the enrollment number for Rockville? [/INST] SELECT COUNT(enrollment) FROM table_name_27 WHERE location = "rockville" </s>
What is the Attendance of the game against Minnesota Vikings?
CREATE TABLE table_name_87 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_87 WHERE opponent = "minnesota vikings"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (attendance VARCHAR, opponent VARCHAR) Question: What is the Attendance of the game against Minnesota Vikings? [/INST] SELECT COUNT(attendance) FROM table_name_87 WHERE opponent = "minnesota viking...
what is the average score for søren kjeldsen?
CREATE TABLE table_name_71 (score INTEGER, player VARCHAR)
SELECT AVG(score) FROM table_name_71 WHERE player = "søren kjeldsen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (score INTEGER, player VARCHAR) Question: what is the average score for søren kjeldsen? [/INST] SELECT AVG(score) FROM table_name_71 WHERE player = "søren kjeldsen" </s>
What's the against of South Warrnambool when the draw is less than 0?
CREATE TABLE table_name_31 (against INTEGER, club VARCHAR, draws VARCHAR)
SELECT SUM(against) FROM table_name_31 WHERE club = "south warrnambool" AND draws < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (against INTEGER, club VARCHAR, draws VARCHAR) Question: What's the against of South Warrnambool when the draw is less than 0? [/INST] SELECT SUM(against) FROM table_name_31 WHERE club = "south war...
What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?
CREATE TABLE table_name_29 (draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR)
SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = "warrnambool" AND losses < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR) Question: What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2...
What's the against when the draw was more than 0 and had 13 losses?
CREATE TABLE table_name_47 (against VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT COUNT(against) FROM table_name_47 WHERE losses = 13 AND draws > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (against VARCHAR, losses VARCHAR, draws VARCHAR) Question: What's the against when the draw was more than 0 and had 13 losses? [/INST] SELECT COUNT(against) FROM table_name_47 WHERE losses = 13 AND...
What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0?
CREATE TABLE table_name_86 (against INTEGER, draws VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT AVG(against) FROM table_name_86 WHERE losses > 2 AND wins > 3 AND draws > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (against INTEGER, draws VARCHAR, losses VARCHAR, wins VARCHAR) Question: What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0? [/INST] SELECT AVG(against) ...
What's the highest amount of losses of Camperdown when the against was less than 945?
CREATE TABLE table_name_81 (losses INTEGER, club VARCHAR, against VARCHAR)
SELECT MAX(losses) FROM table_name_81 WHERE club = "camperdown" AND against < 945
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (losses INTEGER, club VARCHAR, against VARCHAR) Question: What's the highest amount of losses of Camperdown when the against was less than 945? [/INST] SELECT MAX(losses) FROM table_name_81 WHERE c...
what is the sum of league goals when the fa cup goals is more than 0?
CREATE TABLE table_name_51 (league_goals INTEGER, fa_cup_goals INTEGER)
SELECT SUM(league_goals) FROM table_name_51 WHERE fa_cup_goals > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (league_goals INTEGER, fa_cup_goals INTEGER) Question: what is the sum of league goals when the fa cup goals is more than 0? [/INST] SELECT SUM(league_goals) FROM table_name_51 WHERE fa_cup_goals >...
what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?
CREATE TABLE table_name_98 (league_cup_goals INTEGER, total_apps VARCHAR, fa_cup_apps VARCHAR, league_cup_apps VARCHAR, league_goals VARCHAR)
SELECT AVG(league_cup_goals) FROM table_name_98 WHERE league_cup_apps = 4 AND league_goals < 4 AND fa_cup_apps = "1" AND total_apps = "35"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (league_cup_goals INTEGER, total_apps VARCHAR, fa_cup_apps VARCHAR, league_cup_apps VARCHAR, league_goals VARCHAR) Question: what is the average league cup goals when the league cup apps is 4, leag...
what is the average league cup goals when the position is df and total goals is more than 4?
CREATE TABLE table_name_78 (league_cup_goals INTEGER, position VARCHAR, total_goals VARCHAR)
SELECT AVG(league_cup_goals) FROM table_name_78 WHERE position = "df" AND total_goals > 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (league_cup_goals INTEGER, position VARCHAR, total_goals VARCHAR) Question: what is the average league cup goals when the position is df and total goals is more than 4? [/INST] SELECT AVG(league_cu...
what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is df?
CREATE TABLE table_name_80 (fa_cup_goals INTEGER, position VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT AVG(fa_cup_goals) FROM table_name_80 WHERE fa_cup_apps = "0" AND total_goals < 1 AND position = "df"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (fa_cup_goals INTEGER, position VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR) Question: what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is d...
What year had a score of 0.586?
CREATE TABLE table_name_67 (year VARCHAR, score VARCHAR)
SELECT COUNT(year) FROM table_name_67 WHERE score = "0.586"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (year VARCHAR, score VARCHAR) Question: What year had a score of 0.586? [/INST] SELECT COUNT(year) FROM table_name_67 WHERE score = "0.586" </s>
What's the n Africa in 2012 with an N/A as the CPLP?
CREATE TABLE table_name_54 (n_africa_rank VARCHAR, year VARCHAR, cplp_rank VARCHAR)
SELECT n_africa_rank FROM table_name_54 WHERE year = 2012 AND cplp_rank = "n/a"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (n_africa_rank VARCHAR, year VARCHAR, cplp_rank VARCHAR) Question: What's the n Africa in 2012 with an N/A as the CPLP? [/INST] SELECT n_africa_rank FROM table_name_54 WHERE year = 2012 AND cplp_ra...
What was the final venue for 82 delegates?
CREATE TABLE table_name_23 (finals_venue VARCHAR, number_of_delegates VARCHAR)
SELECT finals_venue FROM table_name_23 WHERE number_of_delegates = "82"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (finals_venue VARCHAR, number_of_delegates VARCHAR) Question: What was the final venue for 82 delegates? [/INST] SELECT finals_venue FROM table_name_23 WHERE number_of_delegates = "82" </s>
Which Artist has a Record label of vertigo?
CREATE TABLE table_name_86 (artist VARCHAR, record_label VARCHAR)
SELECT artist FROM table_name_86 WHERE record_label = "vertigo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (artist VARCHAR, record_label VARCHAR) Question: Which Artist has a Record label of vertigo? [/INST] SELECT artist FROM table_name_86 WHERE record_label = "vertigo" </s>
Who is the president when c-span 2009 is 21?
CREATE TABLE table_name_57 (president VARCHAR, c_span_2009 VARCHAR)
SELECT president FROM table_name_57 WHERE c_span_2009 = "21"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (president VARCHAR, c_span_2009 VARCHAR) Question: Who is the president when c-span 2009 is 21? [/INST] SELECT president FROM table_name_57 WHERE c_span_2009 = "21" </s>
what is c-span 2009 when times 2008** is 08?
CREATE TABLE table_name_80 (c_span_2009 VARCHAR, times_2008 VARCHAR)
SELECT c_span_2009 FROM table_name_80 WHERE times_2008 * * = "08"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (c_span_2009 VARCHAR, times_2008 VARCHAR) Question: what is c-span 2009 when times 2008** is 08? [/INST] SELECT c_span_2009 FROM table_name_80 WHERE times_2008 * * = "08" </s>
what is siena 2002 when the president is andrew jackson?
CREATE TABLE table_name_96 (siena_2002 VARCHAR, president VARCHAR)
SELECT siena_2002 FROM table_name_96 WHERE president = "andrew jackson"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (siena_2002 VARCHAR, president VARCHAR) Question: what is siena 2002 when the president is andrew jackson? [/INST] SELECT siena_2002 FROM table_name_96 WHERE president = "andrew jackson" </s>
Which Location has a Home Ground of Mong kok stadium?
CREATE TABLE table_name_14 (location VARCHAR, home_ground VARCHAR)
SELECT location FROM table_name_14 WHERE home_ground = "mong kok stadium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (location VARCHAR, home_ground VARCHAR) Question: Which Location has a Home Ground of Mong kok stadium? [/INST] SELECT location FROM table_name_14 WHERE home_ground = "mong kok stadium" </s>
Which club is in the First division?
CREATE TABLE table_name_14 (club VARCHAR, league_division VARCHAR)
SELECT club FROM table_name_14 WHERE league_division = "first division"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (club VARCHAR, league_division VARCHAR) Question: Which club is in the First division? [/INST] SELECT club FROM table_name_14 WHERE league_division = "first division" </s>
What is the Home Ground with the Location n/a for the Club kcdrsc?
CREATE TABLE table_name_39 (home_ground VARCHAR, location VARCHAR, club VARCHAR)
SELECT home_ground FROM table_name_39 WHERE location = "n/a" AND club = "kcdrsc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (home_ground VARCHAR, location VARCHAR, club VARCHAR) Question: What is the Home Ground with the Location n/a for the Club kcdrsc? [/INST] SELECT home_ground FROM table_name_39 WHERE location = "n/...
What League/Division has a Location of n/a?
CREATE TABLE table_name_29 (league_division VARCHAR, location VARCHAR)
SELECT league_division FROM table_name_29 WHERE location = "n/a"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (league_division VARCHAR, location VARCHAR) Question: What League/Division has a Location of n/a? [/INST] SELECT league_division FROM table_name_29 WHERE location = "n/a" </s>
What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13?
CREATE TABLE table_name_67 (location VARCHAR, league_division VARCHAR, position_in_2012_13 VARCHAR)
SELECT location FROM table_name_67 WHERE league_division = "second division" AND position_in_2012_13 = "4th, third division (promoted)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (location VARCHAR, league_division VARCHAR, position_in_2012_13 VARCHAR) Question: What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13? [/INST]...
What was the rank of the team who raced at a time of 7:16.13?
CREATE TABLE table_name_76 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_76 WHERE time = "7:16.13"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (rank VARCHAR, time VARCHAR) Question: What was the rank of the team who raced at a time of 7:16.13? [/INST] SELECT rank FROM table_name_76 WHERE time = "7:16.13" </s>
What is the total number of rank for the country of greece?
CREATE TABLE table_name_19 (rank VARCHAR, country VARCHAR)
SELECT COUNT(rank) FROM table_name_19 WHERE country = "greece"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (rank VARCHAR, country VARCHAR) Question: What is the total number of rank for the country of greece? [/INST] SELECT COUNT(rank) FROM table_name_19 WHERE country = "greece" </s>
What country were the athletes where ranked smaller than 5 with notes listed as fb?
CREATE TABLE table_name_67 (country VARCHAR, rank VARCHAR, notes VARCHAR)
SELECT country FROM table_name_67 WHERE rank < 5 AND notes = "fb"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (country VARCHAR, rank VARCHAR, notes VARCHAR) Question: What country were the athletes where ranked smaller than 5 with notes listed as fb? [/INST] SELECT country FROM table_name_67 WHERE rank < 5...
What is the time for the race with the United States?
CREATE TABLE table_name_63 (time VARCHAR, country VARCHAR)
SELECT time FROM table_name_63 WHERE country = "united states"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (time VARCHAR, country VARCHAR) Question: What is the time for the race with the United States? [/INST] SELECT time FROM table_name_63 WHERE country = "united states" </s>
What shirt No has a Birth Date of April 12, 1986 (age27)?
CREATE TABLE table_name_63 (shirt_no INTEGER, birth_date VARCHAR)
SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = "april 12, 1986 (age27)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (shirt_no INTEGER, birth_date VARCHAR) Question: What shirt No has a Birth Date of April 12, 1986 (age27)? [/INST] SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = "april 12, 1986 (age27)...
What position that has a Height larger than 179, and Player is Ezgi Arslan?
CREATE TABLE table_name_54 (position VARCHAR, height VARCHAR, player VARCHAR)
SELECT position FROM table_name_54 WHERE height > 179 AND player = "ezgi arslan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (position VARCHAR, height VARCHAR, player VARCHAR) Question: What position that has a Height larger than 179, and Player is Ezgi Arslan? [/INST] SELECT position FROM table_name_54 WHERE height > 17...
What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172?
CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT SUM(shirt_no) FROM table_name_11 WHERE position = "setter" AND nationality = "italy" AND height > 172
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR) Question: What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172? [/INST] SELEC...
What player that has a position of middle blocker, a Nationality of Turkey, and shirt no is 8?
CREATE TABLE table_name_36 (player VARCHAR, shirt_no VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT player FROM table_name_36 WHERE position = "middle blocker" AND nationality = "turkey" AND shirt_no = 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (player VARCHAR, shirt_no VARCHAR, position VARCHAR, nationality VARCHAR) Question: What player that has a position of middle blocker, a Nationality of Turkey, and shirt no is 8? [/INST] SELECT pla...
What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)?
CREATE TABLE table_name_90 (player VARCHAR, birth_date VARCHAR, shirt_no VARCHAR, nationality VARCHAR, height VARCHAR)
SELECT player FROM table_name_90 WHERE nationality = "turkey" AND height < 183 AND shirt_no < 19 AND birth_date = "june 27, 1993 (age20)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (player VARCHAR, birth_date VARCHAR, shirt_no VARCHAR, nationality VARCHAR, height VARCHAR) Question: What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller tha...
Which nation won 29 gold medals?
CREATE TABLE table_name_3 (nation VARCHAR, gold VARCHAR)
SELECT nation FROM table_name_3 WHERE gold = 29
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (nation VARCHAR, gold VARCHAR) Question: Which nation won 29 gold medals? [/INST] SELECT nation FROM table_name_3 WHERE gold = 29 </s>
What is the fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall?
CREATE TABLE table_name_51 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR)
SELECT MIN(bronze) FROM table_name_51 WHERE total = 1 AND rank = "12" AND gold < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR) Question: What is the fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall? [/INST]...
What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico?
CREATE TABLE table_name_98 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_98 WHERE frequency_mhz > 89.3 AND city_of_license = "portales, new mexico"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) Question: What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico? [/INST] SELECT ...
Which ship was launched from Devonport, Devon?
CREATE TABLE table_name_30 (ship VARCHAR, location VARCHAR)
SELECT ship FROM table_name_30 WHERE location = "devonport, devon"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (ship VARCHAR, location VARCHAR) Question: Which ship was launched from Devonport, Devon? [/INST] SELECT ship FROM table_name_30 WHERE location = "devonport, devon" </s>
What country was the Pegasus, build by Royal Dockyard, from?
CREATE TABLE table_name_41 (country VARCHAR, builder VARCHAR, ship VARCHAR)
SELECT country FROM table_name_41 WHERE builder = "royal dockyard" AND ship = "pegasus"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (country VARCHAR, builder VARCHAR, ship VARCHAR) Question: What country was the Pegasus, build by Royal Dockyard, from? [/INST] SELECT country FROM table_name_41 WHERE builder = "royal dockyard" AN...
Who was the builder of Gannet from the United Kingdom?
CREATE TABLE table_name_60 (builder VARCHAR, country VARCHAR, ship VARCHAR)
SELECT builder FROM table_name_60 WHERE country = "united kingdom" AND ship = "gannet"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (builder VARCHAR, country VARCHAR, ship VARCHAR) Question: Who was the builder of Gannet from the United Kingdom? [/INST] SELECT builder FROM table_name_60 WHERE country = "united kingdom" AND ship...
Who was the builder of Nor?
CREATE TABLE table_name_12 (builder VARCHAR, ship VARCHAR)
SELECT builder FROM table_name_12 WHERE ship = "nor"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (builder VARCHAR, ship VARCHAR) Question: Who was the builder of Nor? [/INST] SELECT builder FROM table_name_12 WHERE ship = "nor" </s>
Who was the builder of Brage from Norway?
CREATE TABLE table_name_37 (builder VARCHAR, country VARCHAR, ship VARCHAR)
SELECT builder FROM table_name_37 WHERE country = "norway" AND ship = "brage"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (builder VARCHAR, country VARCHAR, ship VARCHAR) Question: Who was the builder of Brage from Norway? [/INST] SELECT builder FROM table_name_37 WHERE country = "norway" AND ship = "brage" </s>
What country was Brage, built by karljohansverns verft, from?
CREATE TABLE table_name_23 (country VARCHAR, builder VARCHAR, ship VARCHAR)
SELECT country FROM table_name_23 WHERE builder = "karljohansverns verft" AND ship = "brage"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (country VARCHAR, builder VARCHAR, ship VARCHAR) Question: What country was Brage, built by karljohansverns verft, from? [/INST] SELECT country FROM table_name_23 WHERE builder = "karljohansverns v...
Which Silver has a Total of 11, and a Gold smaller than 8?
CREATE TABLE table_name_31 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT MIN(silver) FROM table_name_31 WHERE total = 11 AND gold < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (silver INTEGER, total VARCHAR, gold VARCHAR) Question: Which Silver has a Total of 11, and a Gold smaller than 8? [/INST] SELECT MIN(silver) FROM table_name_31 WHERE total = 11 AND gold < 8 </s>
Which Silver has a Total of 1, and a Rank of 12?
CREATE TABLE table_name_37 (silver INTEGER, total VARCHAR, rank VARCHAR)
SELECT MIN(silver) FROM table_name_37 WHERE total = 1 AND rank = "12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (silver INTEGER, total VARCHAR, rank VARCHAR) Question: Which Silver has a Total of 1, and a Rank of 12? [/INST] SELECT MIN(silver) FROM table_name_37 WHERE total = 1 AND rank = "12" </s>
Which IHSAA Football Class has a School of wood memorial?
CREATE TABLE table_name_71 (ihsaa_football_class VARCHAR, school VARCHAR)
SELECT ihsaa_football_class FROM table_name_71 WHERE school = "wood memorial"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (ihsaa_football_class VARCHAR, school VARCHAR) Question: Which IHSAA Football Class has a School of wood memorial? [/INST] SELECT ihsaa_football_class FROM table_name_71 WHERE school = "wood memori...
Which IHSAA Football Class has a County of 77 sullivan, and a School of union dugger?
CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, county VARCHAR, school VARCHAR)
SELECT ihsaa_football_class FROM table_name_14 WHERE county = "77 sullivan" AND school = "union dugger"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (ihsaa_football_class VARCHAR, county VARCHAR, school VARCHAR) Question: Which IHSAA Football Class has a County of 77 sullivan, and a School of union dugger? [/INST] SELECT ihsaa_football_class FR...
Which IHSAA Football Class has an Enrollment of 406?
CREATE TABLE table_name_17 (ihsaa_football_class VARCHAR, enrollment VARCHAR)
SELECT ihsaa_football_class FROM table_name_17 WHERE enrollment = 406
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (ihsaa_football_class VARCHAR, enrollment VARCHAR) Question: Which IHSAA Football Class has an Enrollment of 406? [/INST] SELECT ihsaa_football_class FROM table_name_17 WHERE enrollment = 406 </s>
Which Size has a County of 62 perry?
CREATE TABLE table_name_69 (size INTEGER, county VARCHAR)
SELECT MAX(size) FROM table_name_69 WHERE county = "62 perry"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (size INTEGER, county VARCHAR) Question: Which Size has a County of 62 perry? [/INST] SELECT MAX(size) FROM table_name_69 WHERE county = "62 perry" </s>
Which IHSAA Class has a Size larger than 511?
CREATE TABLE table_name_84 (ihsaa_class VARCHAR, size INTEGER)
SELECT ihsaa_class FROM table_name_84 WHERE size > 511
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (ihsaa_class VARCHAR, size INTEGER) Question: Which IHSAA Class has a Size larger than 511? [/INST] SELECT ihsaa_class FROM table_name_84 WHERE size > 511 </s>
Which IHSAA Class has a School of mitchell?
CREATE TABLE table_name_4 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_4 WHERE school = "mitchell"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (ihsaa_class VARCHAR, school VARCHAR) Question: Which IHSAA Class has a School of mitchell? [/INST] SELECT ihsaa_class FROM table_name_4 WHERE school = "mitchell" </s>
Which County has a Size larger than 258, and a Mascot of commodores?
CREATE TABLE table_name_95 (county VARCHAR, size VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_95 WHERE size > 258 AND mascot = "commodores"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (county VARCHAR, size VARCHAR, mascot VARCHAR) Question: Which County has a Size larger than 258, and a Mascot of commodores? [/INST] SELECT county FROM table_name_95 WHERE size > 258 AND mascot = ...
What was her place in the lineup on match 2?
CREATE TABLE table_name_33 (lineup VARCHAR, match VARCHAR)
SELECT lineup FROM table_name_33 WHERE match = "2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (lineup VARCHAR, match VARCHAR) Question: What was her place in the lineup on match 2? [/INST] SELECT lineup FROM table_name_33 WHERE match = "2" </s>
What is the record of the game played on 2/17/1974?
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_55 WHERE date = "2/17/1974"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) Question: What is the record of the game played on 2/17/1974? [/INST] SELECT record FROM table_name_55 WHERE date = "2/17/1974" </s>
Which stadium had the opposition of 79,122?
CREATE TABLE table_name_91 (stadium VARCHAR, opposition VARCHAR)
SELECT stadium FROM table_name_91 WHERE opposition = "79,122"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (stadium VARCHAR, opposition VARCHAR) Question: Which stadium had the opposition of 79,122? [/INST] SELECT stadium FROM table_name_91 WHERE opposition = "79,122" </s>
What are the notes of the number 1 rank?
CREATE TABLE table_name_52 (notes VARCHAR, rank VARCHAR)
SELECT notes FROM table_name_52 WHERE rank = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (notes VARCHAR, rank VARCHAR) Question: What are the notes of the number 1 rank? [/INST] SELECT notes FROM table_name_52 WHERE rank = 1 </s>
What's the rank if the time was 5:54.57 and FB in notes?
CREATE TABLE table_name_30 (rank VARCHAR, notes VARCHAR, time VARCHAR)
SELECT rank FROM table_name_30 WHERE notes = "fb" AND time = "5:54.57"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (rank VARCHAR, notes VARCHAR, time VARCHAR) Question: What's the rank if the time was 5:54.57 and FB in notes? [/INST] SELECT rank FROM table_name_30 WHERE notes = "fb" AND time = "5:54.57" </s>
Who are the rowers with the time of 5:54.57?
CREATE TABLE table_name_96 (rowers VARCHAR, time VARCHAR)
SELECT rowers FROM table_name_96 WHERE time = "5:54.57"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (rowers VARCHAR, time VARCHAR) Question: Who are the rowers with the time of 5:54.57? [/INST] SELECT rowers FROM table_name_96 WHERE time = "5:54.57" </s>
What are the notes of the United States?
CREATE TABLE table_name_31 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_31 WHERE country = "united states"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (notes VARCHAR, country VARCHAR) Question: What are the notes of the United States? [/INST] SELECT notes FROM table_name_31 WHERE country = "united states" </s>
What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3?
CREATE TABLE table_name_28 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT gold FROM table_name_28 WHERE bronze > 1 AND total < 10 AND silver = 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR) Question: What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3? [/INST] SELECT gold FROM table_...
What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?
CREATE TABLE table_name_23 (total INTEGER, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_23 WHERE silver > 2 AND gold > 1 AND nation = "total"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (total INTEGER, nation VARCHAR, silver VARCHAR, gold VARCHAR) Question: What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total? [/INST] SELECT A...
When the rank is 11, and bronze a smaller than 1 what is the lowest total?
CREATE TABLE table_name_5 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_5 WHERE rank = "11" AND bronze < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (total INTEGER, rank VARCHAR, bronze VARCHAR) Question: When the rank is 11, and bronze a smaller than 1 what is the lowest total? [/INST] SELECT MIN(total) FROM table_name_5 WHERE rank = "11" AND b...
What was the A Score when the B Score was 9.05, and position was larger than 6?
CREATE TABLE table_name_50 (a_score INTEGER, b_score VARCHAR, position VARCHAR)
SELECT AVG(a_score) FROM table_name_50 WHERE b_score = 9.05 AND position > 6
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (a_score INTEGER, b_score VARCHAR, position VARCHAR) Question: What was the A Score when the B Score was 9.05, and position was larger than 6? [/INST] SELECT AVG(a_score) FROM table_name_50 WHERE b...
What is the total when the B Score was 9.15 for Cheng Fei ( chn )?
CREATE TABLE table_name_70 (total INTEGER, b_score VARCHAR, gymnast VARCHAR)
SELECT AVG(total) FROM table_name_70 WHERE b_score = 9.15 AND gymnast = "cheng fei ( chn )"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (total INTEGER, b_score VARCHAR, gymnast VARCHAR) Question: What is the total when the B Score was 9.15 for Cheng Fei ( chn )? [/INST] SELECT AVG(total) FROM table_name_70 WHERE b_score = 9.15 AND ...
What was their position when the score of B was less than 9.05, a total was 15.275, and A Score larger than 6.4?
CREATE TABLE table_name_47 (position INTEGER, a_score VARCHAR, b_score VARCHAR, total VARCHAR)
SELECT AVG(position) FROM table_name_47 WHERE b_score < 9.05 AND total = 15.275 AND a_score > 6.4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (position INTEGER, a_score VARCHAR, b_score VARCHAR, total VARCHAR) Question: What was their position when the score of B was less than 9.05, a total was 15.275, and A Score larger than 6.4? [/INST...
What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )?
CREATE TABLE table_name_57 (position VARCHAR, b_score VARCHAR, gymnast VARCHAR)
SELECT position FROM table_name_57 WHERE b_score > 8.975 AND gymnast = "ekaterina kramarenko ( rus )"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (position VARCHAR, b_score VARCHAR, gymnast VARCHAR) Question: What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )? [/INST] SELECT position FROM table_name_5...
What year had Third-Person Shooter?
CREATE TABLE table_name_16 (year INTEGER, genre VARCHAR)
SELECT AVG(year) FROM table_name_16 WHERE genre = "third-person shooter"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (year INTEGER, genre VARCHAR) Question: What year had Third-Person Shooter? [/INST] SELECT AVG(year) FROM table_name_16 WHERE genre = "third-person shooter" </s>