instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Which Tournament has a Margin of victory of 1 stroke, and a Date of oct 7, 1990? | CREATE TABLE table_name_39 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_39 WHERE margin_of_victory = "1 stroke" AND date = "oct 7, 1990" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR) Question: Which Tournament has a Margin of victory of 1 stroke, and a Date of oct 7, 1990? [/INST] SELECT tournament FROM table_name_39... |
Which Date has a Winning score of 69-68-68-70=275? | CREATE TABLE table_name_31 (date VARCHAR, winning_score VARCHAR) | SELECT date FROM table_name_31 WHERE winning_score = 69 - 68 - 68 - 70 = 275 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (date VARCHAR, winning_score VARCHAR) Question: Which Date has a Winning score of 69-68-68-70=275? [/INST] SELECT date FROM table_name_31 WHERE winning_score = 69 - 68 - 68 - 70 = 275 </s> |
Which To par has a Winning score of 64-68-66-63=261? | CREATE TABLE table_name_22 (to_par VARCHAR, winning_score VARCHAR) | SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (to_par VARCHAR, winning_score VARCHAR) Question: Which To par has a Winning score of 64-68-66-63=261? [/INST] SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261 </s> |
Which Winning score has a Tournament of walt disney world/oldsmobile classic? | CREATE TABLE table_name_67 (winning_score VARCHAR, tournament VARCHAR) | SELECT winning_score FROM table_name_67 WHERE tournament = "walt disney world/oldsmobile classic" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (winning_score VARCHAR, tournament VARCHAR) Question: Which Winning score has a Tournament of walt disney world/oldsmobile classic? [/INST] SELECT winning_score FROM table_name_67 WHERE tournament ... |
What is the number in total of silver with a gold smaller than 0? | CREATE TABLE table_name_91 (silver VARCHAR, gold INTEGER) | SELECT COUNT(silver) FROM table_name_91 WHERE gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (silver VARCHAR, gold INTEGER) Question: What is the number in total of silver with a gold smaller than 0? [/INST] SELECT COUNT(silver) FROM table_name_91 WHERE gold < 0 </s> |
What is the sum of gold with a rank that is 3 and a silver larger than 7? | CREATE TABLE table_name_98 (gold INTEGER, rank VARCHAR, silver VARCHAR) | SELECT SUM(gold) FROM table_name_98 WHERE rank = "3" AND silver > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (gold INTEGER, rank VARCHAR, silver VARCHAR) Question: What is the sum of gold with a rank that is 3 and a silver larger than 7? [/INST] SELECT SUM(gold) FROM table_name_98 WHERE rank = "3" AND sil... |
What is the average total with a nation of thailand with a gold smaller than 17? | CREATE TABLE table_name_54 (total INTEGER, nation VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 17 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (total INTEGER, nation VARCHAR, gold VARCHAR) Question: What is the average total with a nation of thailand with a gold smaller than 17? [/INST] SELECT AVG(total) FROM table_name_54 WHERE nation = ... |
What is the average gold with a bronze smaller than 5 with a rank of 8? | CREATE TABLE table_name_17 (gold INTEGER, bronze VARCHAR, rank VARCHAR) | SELECT AVG(gold) FROM table_name_17 WHERE bronze < 5 AND rank = "8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (gold INTEGER, bronze VARCHAR, rank VARCHAR) Question: What is the average gold with a bronze smaller than 5 with a rank of 8? [/INST] SELECT AVG(gold) FROM table_name_17 WHERE bronze < 5 AND rank ... |
What is the earliest launch that was from Beijing? | CREATE TABLE table_name_58 (launch INTEGER, origin VARCHAR) | SELECT MIN(launch) FROM table_name_58 WHERE origin = "beijing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (launch INTEGER, origin VARCHAR) Question: What is the earliest launch that was from Beijing? [/INST] SELECT MIN(launch) FROM table_name_58 WHERE origin = "beijing" </s> |
With a Hanzi of 深圳卫视, what is the name? | CREATE TABLE table_name_19 (name VARCHAR, hanzi VARCHAR) | SELECT name FROM table_name_19 WHERE hanzi = "深圳卫视" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (name VARCHAR, hanzi VARCHAR) Question: With a Hanzi of 深圳卫视, what is the name? [/INST] SELECT name FROM table_name_19 WHERE hanzi = "深圳卫视" </s> |
Who is the owner of the object launched after 1997 and a Hanzi of 厦门卫视? | CREATE TABLE table_name_30 (owner VARCHAR, launch VARCHAR, hanzi VARCHAR) | SELECT owner FROM table_name_30 WHERE launch > 1997 AND hanzi = "厦门卫视" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (owner VARCHAR, launch VARCHAR, hanzi VARCHAR) Question: Who is the owner of the object launched after 1997 and a Hanzi of 厦门卫视? [/INST] SELECT owner FROM table_name_30 WHERE launch > 1997 AND han... |
What was the latest week that had a game on November 18, 1951? | CREATE TABLE table_name_91 (week INTEGER, date VARCHAR) | SELECT MAX(week) FROM table_name_91 WHERE date = "november 18, 1951" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (week INTEGER, date VARCHAR) Question: What was the latest week that had a game on November 18, 1951? [/INST] SELECT MAX(week) FROM table_name_91 WHERE date = "november 18, 1951" </s> |
Who was the opponent on November 11, 1951? | CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_18 WHERE date = "november 11, 1951" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) Question: Who was the opponent on November 11, 1951? [/INST] SELECT opponent FROM table_name_18 WHERE date = "november 11, 1951" </s> |
What was the total attendance with a result of W 31-21 before week 9? | CREATE TABLE table_name_13 (attendance VARCHAR, result VARCHAR, week VARCHAR) | SELECT COUNT(attendance) FROM table_name_13 WHERE result = "w 31-21" AND week < 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (attendance VARCHAR, result VARCHAR, week VARCHAR) Question: What was the total attendance with a result of W 31-21 before week 9? [/INST] SELECT COUNT(attendance) FROM table_name_13 WHERE result =... |
What lifespan has a majors greater than 1, and fuzzy zoeller as the name? | CREATE TABLE table_name_37 (lifespan VARCHAR, majors VARCHAR, name VARCHAR) | SELECT lifespan FROM table_name_37 WHERE majors > 1 AND name = "fuzzy zoeller" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (lifespan VARCHAR, majors VARCHAR, name VARCHAR) Question: What lifespan has a majors greater than 1, and fuzzy zoeller as the name? [/INST] SELECT lifespan FROM table_name_37 WHERE majors > 1 AND ... |
what visitor came on november 27 | CREATE TABLE table_name_15 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_15 WHERE date = "november 27" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (visitor VARCHAR, date VARCHAR) Question: what visitor came on november 27 [/INST] SELECT visitor FROM table_name_15 WHERE date = "november 27" </s> |
what team was the visitor in the chicago game | CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR) | SELECT visitor FROM table_name_33 WHERE home = "chicago" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR) Question: what team was the visitor in the chicago game [/INST] SELECT visitor FROM table_name_33 WHERE home = "chicago" </s> |
what game was in chicago | CREATE TABLE table_name_40 (record VARCHAR, home VARCHAR) | SELECT record FROM table_name_40 WHERE home = "chicago" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (record VARCHAR, home VARCHAR) Question: what game was in chicago [/INST] SELECT record FROM table_name_40 WHERE home = "chicago" </s> |
Which player is associated with the date May 10, 1999? | CREATE TABLE table_name_24 (player VARCHAR, date VARCHAR) | SELECT player FROM table_name_24 WHERE date = "may 10, 1999" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (player VARCHAR, date VARCHAR) Question: Which player is associated with the date May 10, 1999? [/INST] SELECT player FROM table_name_24 WHERE date = "may 10, 1999" </s> |
Which player is associated with the date July 6, 1949? | CREATE TABLE table_name_93 (player VARCHAR, date VARCHAR) | SELECT player FROM table_name_93 WHERE date = "july 6, 1949" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (player VARCHAR, date VARCHAR) Question: Which player is associated with the date July 6, 1949? [/INST] SELECT player FROM table_name_93 WHERE date = "july 6, 1949" </s> |
Which date is associated with the player Wilbert Robinson? | CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR) | SELECT date FROM table_name_40 WHERE player = "wilbert robinson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR) Question: Which date is associated with the player Wilbert Robinson? [/INST] SELECT date FROM table_name_40 WHERE player = "wilbert robinson" </s> |
Which player is associated with the date June 14, 1969? | CREATE TABLE table_name_63 (player VARCHAR, date VARCHAR) | SELECT player FROM table_name_63 WHERE date = "june 14, 1969" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (player VARCHAR, date VARCHAR) Question: Which player is associated with the date June 14, 1969? [/INST] SELECT player FROM table_name_63 WHERE date = "june 14, 1969" </s> |
When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs? | CREATE TABLE table_name_79 (rbis INTEGER, team VARCHAR, date VARCHAR) | SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (rbis INTEGER, team VARCHAR, date VARCHAR) Question: When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs? [/INST] SELECT AVG(rbis) FROM table_name_79 WHERE ... |
What is the sum of games for a record of 33-13-3? | CREATE TABLE table_name_77 (game INTEGER, record VARCHAR) | SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (game INTEGER, record VARCHAR) Question: What is the sum of games for a record of 33-13-3? [/INST] SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-3" </s> |
What was the sum of January values with a record of 27-12-3 for a game less than 42? | CREATE TABLE table_name_36 (january INTEGER, record VARCHAR, game VARCHAR) | SELECT SUM(january) FROM table_name_36 WHERE record = "27-12-3" AND game < 42 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (january INTEGER, record VARCHAR, game VARCHAR) Question: What was the sum of January values with a record of 27-12-3 for a game less than 42? [/INST] SELECT SUM(january) FROM table_name_36 WHERE r... |
What is the number in January for Philadelphia Flyers as opponents? | CREATE TABLE table_name_30 (january VARCHAR, opponent VARCHAR) | SELECT COUNT(january) FROM table_name_30 WHERE opponent = "philadelphia flyers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (january VARCHAR, opponent VARCHAR) Question: What is the number in January for Philadelphia Flyers as opponents? [/INST] SELECT COUNT(january) FROM table_name_30 WHERE opponent = "philadelphia fly... |
What is the lowest game for a record of 32-12-3? | CREATE TABLE table_name_48 (game INTEGER, record VARCHAR) | SELECT MIN(game) FROM table_name_48 WHERE record = "32-12-3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (game INTEGER, record VARCHAR) Question: What is the lowest game for a record of 32-12-3? [/INST] SELECT MIN(game) FROM table_name_48 WHERE record = "32-12-3" </s> |
What was the lowest attendance at the game with a record of 50-36? | CREATE TABLE table_name_95 (attendance INTEGER, record VARCHAR) | SELECT MIN(attendance) FROM table_name_95 WHERE record = "50-36" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (attendance INTEGER, record VARCHAR) Question: What was the lowest attendance at the game with a record of 50-36? [/INST] SELECT MIN(attendance) FROM table_name_95 WHERE record = "50-36" </s> |
Who was the opponent at the game that had a loss of Westbrook (2-2)? | CREATE TABLE table_name_74 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_74 WHERE loss = "westbrook (2-2)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (opponent VARCHAR, loss VARCHAR) Question: Who was the opponent at the game that had a loss of Westbrook (2-2)? [/INST] SELECT opponent FROM table_name_74 WHERE loss = "westbrook (2-2)" </s> |
How many copies of scouting for girls were sold? | CREATE TABLE table_name_31 (sales VARCHAR, album_title VARCHAR) | SELECT COUNT(sales) FROM table_name_31 WHERE album_title = "scouting for girls" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (sales VARCHAR, album_title VARCHAR) Question: How many copies of scouting for girls were sold? [/INST] SELECT COUNT(sales) FROM table_name_31 WHERE album_title = "scouting for girls" </s> |
What is the agg of team 2 Dynamo Moscow? | CREATE TABLE table_name_2 (agg VARCHAR, team_2 VARCHAR) | SELECT agg FROM table_name_2 WHERE team_2 = "dynamo moscow" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (agg VARCHAR, team_2 VARCHAR) Question: What is the agg of team 2 Dynamo Moscow? [/INST] SELECT agg FROM table_name_2 WHERE team_2 = "dynamo moscow" </s> |
What is the 1st leg for team 2 Portol Drac Palma Mallorca? | CREATE TABLE table_name_27 (team_2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_27 WHERE team_2 = "portol drac palma mallorca" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (team_2 VARCHAR) Question: What is the 1st leg for team 2 Portol Drac Palma Mallorca? [/INST] SELECT 1 AS st_leg FROM table_name_27 WHERE team_2 = "portol drac palma mallorca" </s> |
Who was the guest at Stadion Prljanije? | CREATE TABLE table_name_16 (guest VARCHAR, venue VARCHAR) | SELECT guest FROM table_name_16 WHERE venue = "stadion prljanije" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (guest VARCHAR, venue VARCHAR) Question: Who was the guest at Stadion Prljanije? [/INST] SELECT guest FROM table_name_16 WHERE venue = "stadion prljanije" </s> |
Who was the guest when attendance was 3? | CREATE TABLE table_name_98 (guest VARCHAR, attendance VARCHAR) | SELECT guest FROM table_name_98 WHERE attendance = 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (guest VARCHAR, attendance VARCHAR) Question: Who was the guest when attendance was 3? [/INST] SELECT guest FROM table_name_98 WHERE attendance = 3 </s> |
In what venue did FK Crvena Stijena play at home? | CREATE TABLE table_name_24 (venue VARCHAR, home VARCHAR) | SELECT venue FROM table_name_24 WHERE home = "fk crvena stijena" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (venue VARCHAR, home VARCHAR) Question: In what venue did FK Crvena Stijena play at home? [/INST] SELECT venue FROM table_name_24 WHERE home = "fk crvena stijena" </s> |
What is the sum of attendance when the score was 2:0? | CREATE TABLE table_name_80 (attendance INTEGER, score VARCHAR) | SELECT SUM(attendance) FROM table_name_80 WHERE score = "2:0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (attendance INTEGER, score VARCHAR) Question: What is the sum of attendance when the score was 2:0? [/INST] SELECT SUM(attendance) FROM table_name_80 WHERE score = "2:0" </s> |
How many were in attendance with a score of 0:1? | CREATE TABLE table_name_82 (attendance VARCHAR, score VARCHAR) | SELECT attendance FROM table_name_82 WHERE score = "0:1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (attendance VARCHAR, score VARCHAR) Question: How many were in attendance with a score of 0:1? [/INST] SELECT attendance FROM table_name_82 WHERE score = "0:1" </s> |
Who was at home when the score was 2:2? | CREATE TABLE table_name_88 (home VARCHAR, score VARCHAR) | SELECT home FROM table_name_88 WHERE score = "2:2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (home VARCHAR, score VARCHAR) Question: Who was at home when the score was 2:2? [/INST] SELECT home FROM table_name_88 WHERE score = "2:2" </s> |
What Score has an Opponent of @ Blue Jays with a Date of June 7? | CREATE TABLE table_name_16 (score VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT score FROM table_name_16 WHERE opponent = "@ blue jays" AND date = "june 7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (score VARCHAR, opponent VARCHAR, date VARCHAR) Question: What Score has an Opponent of @ Blue Jays with a Date of June 7? [/INST] SELECT score FROM table_name_16 WHERE opponent = "@ blue jays" AND... |
What Time is listed for the Loss of Okajima (1-2)? | CREATE TABLE table_name_72 (time VARCHAR, loss VARCHAR) | SELECT time FROM table_name_72 WHERE loss = "okajima (1-2)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (time VARCHAR, loss VARCHAR) Question: What Time is listed for the Loss of Okajima (1-2)? [/INST] SELECT time FROM table_name_72 WHERE loss = "okajima (1-2)" </s> |
What Loss is recorded for the Date June 2? | CREATE TABLE table_name_56 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_56 WHERE date = "june 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (loss VARCHAR, date VARCHAR) Question: What Loss is recorded for the Date June 2? [/INST] SELECT loss FROM table_name_56 WHERE date = "june 2" </s> |
What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3? | CREATE TABLE table_name_78 (win__percentage VARCHAR, appearances VARCHAR, losses VARCHAR) | SELECT COUNT(win__percentage) FROM table_name_78 WHERE appearances = 4 AND losses > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (win__percentage VARCHAR, appearances VARCHAR, losses VARCHAR) Question: What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3? [/INST] SELECT COUNT(win__percen... |
What's listed as the lowest Appearances with a Win % of 0.706? | CREATE TABLE table_name_30 (appearances INTEGER, win__percentage VARCHAR) | SELECT MIN(appearances) FROM table_name_30 WHERE win__percentage = 0.706 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (appearances INTEGER, win__percentage VARCHAR) Question: What's listed as the lowest Appearances with a Win % of 0.706? [/INST] SELECT MIN(appearances) FROM table_name_30 WHERE win__percentage = 0.... |
What's the lowest Losses recorded wiht a Wins of 1, Team of Dallas Stars, and a Win % that's smaller than 0.25? | CREATE TABLE table_name_60 (losses INTEGER, win__percentage VARCHAR, wins VARCHAR, team VARCHAR) | SELECT MIN(losses) FROM table_name_60 WHERE wins = 1 AND team = "dallas stars" AND win__percentage < 0.25 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (losses INTEGER, win__percentage VARCHAR, wins VARCHAR, team VARCHAR) Question: What's the lowest Losses recorded wiht a Wins of 1, Team of Dallas Stars, and a Win % that's smaller than 0.25? [/INS... |
What district has benjamin eggleston for incumbent? | CREATE TABLE table_name_52 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_52 WHERE incumbent = "benjamin eggleston" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (district VARCHAR, incumbent VARCHAR) Question: What district has benjamin eggleston for incumbent? [/INST] SELECT district FROM table_name_52 WHERE incumbent = "benjamin eggleston" </s> |
Which party is tobias a. plants the incumbent? | CREATE TABLE table_name_11 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_name_11 WHERE incumbent = "tobias a. plants" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (party VARCHAR, incumbent VARCHAR) Question: Which party is tobias a. plants the incumbent? [/INST] SELECT party FROM table_name_11 WHERE incumbent = "tobias a. plants" </s> |
wWhich district has a retired republican hold with an incumbent of rufus p. spalding? | CREATE TABLE table_name_89 (district VARCHAR, result VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_89 WHERE result = "retired republican hold" AND incumbent = "rufus p. spalding" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (district VARCHAR, result VARCHAR, incumbent VARCHAR) Question: wWhich district has a retired republican hold with an incumbent of rufus p. spalding? [/INST] SELECT district FROM table_name_89 WHER... |
Which district has a retired republican hold and an incumbent of rufus p. spalding? | CREATE TABLE table_name_67 (district VARCHAR, result VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_67 WHERE result = "retired republican hold" AND incumbent = "rufus p. spalding" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (district VARCHAR, result VARCHAR, incumbent VARCHAR) Question: Which district has a retired republican hold and an incumbent of rufus p. spalding? [/INST] SELECT district FROM table_name_67 WHERE ... |
Which tournament had a 2012 of a and a 2011 of 2r? | CREATE TABLE table_name_25 (tournament VARCHAR) | SELECT tournament FROM table_name_25 WHERE 2012 = "a" AND 2011 = "2r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (tournament VARCHAR) Question: Which tournament had a 2012 of a and a 2011 of 2r? [/INST] SELECT tournament FROM table_name_25 WHERE 2012 = "a" AND 2011 = "2r" </s> |
Which 2009's 2010 featured the wta premier 5 tournaments? | CREATE TABLE table_name_72 (Id VARCHAR) | SELECT 2009 FROM table_name_72 WHERE 2010 = "wta premier 5 tournaments" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (Id VARCHAR) Question: Which 2009's 2010 featured the wta premier 5 tournaments? [/INST] SELECT 2009 FROM table_name_72 WHERE 2010 = "wta premier 5 tournaments" </s> |
Which 2011's tournament was Indian Wells? | CREATE TABLE table_name_24 (tournament VARCHAR) | SELECT 2011 FROM table_name_24 WHERE tournament = "indian wells" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (tournament VARCHAR) Question: Which 2011's tournament was Indian Wells? [/INST] SELECT 2011 FROM table_name_24 WHERE tournament = "indian wells" </s> |
Which 2010 stat featured the tournament of the Olympic Games? | CREATE TABLE table_name_2 (tournament VARCHAR) | SELECT 2010 FROM table_name_2 WHERE tournament = "olympic games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (tournament VARCHAR) Question: Which 2010 stat featured the tournament of the Olympic Games? [/INST] SELECT 2010 FROM table_name_2 WHERE tournament = "olympic games" </s> |
When did the Indians play a game with 15,105 people in attendance? | CREATE TABLE table_name_5 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_5 WHERE attendance = "15,105" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (date VARCHAR, attendance VARCHAR) Question: When did the Indians play a game with 15,105 people in attendance? [/INST] SELECT date FROM table_name_5 WHERE attendance = "15,105" </s> |
Who did the Indians play on April 23? | CREATE TABLE table_name_89 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_89 WHERE date = "april 23" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (opponent VARCHAR, date VARCHAR) Question: Who did the Indians play on April 23? [/INST] SELECT opponent FROM table_name_89 WHERE date = "april 23" </s> |
What is the lowest number of laps for Marco Simoncelli on a grid higher than 11? | CREATE TABLE table_name_86 (laps INTEGER, rider VARCHAR, grid VARCHAR) | SELECT MIN(laps) FROM table_name_86 WHERE rider = "marco simoncelli" AND grid > 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (laps INTEGER, rider VARCHAR, grid VARCHAR) Question: What is the lowest number of laps for Marco Simoncelli on a grid higher than 11? [/INST] SELECT MIN(laps) FROM table_name_86 WHERE rider = "mar... |
Who is the rider who did less than 20 laps on a grid number greater than 23? | CREATE TABLE table_name_67 (rider VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_67 WHERE laps < 20 AND grid > 23 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (rider VARCHAR, laps VARCHAR, grid VARCHAR) Question: Who is the rider who did less than 20 laps on a grid number greater than 23? [/INST] SELECT rider FROM table_name_67 WHERE laps < 20 AND grid >... |
What is the lowest grid number that had a rider with KTM as the manufacturer who did more than 20 laps? | CREATE TABLE table_name_74 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_74 WHERE manufacturer = "ktm" AND laps > 20 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR) Question: What is the lowest grid number that had a rider with KTM as the manufacturer who did more than 20 laps? [/INST] SELECT MIN(grid) FROM ta... |
What is the tournament on 22 October 2012? | CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_46 WHERE date = "22 october 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR) Question: What is the tournament on 22 October 2012? [/INST] SELECT tournament FROM table_name_46 WHERE date = "22 october 2012" </s> |
What is the date of the tournament with Alena Tarasova as the opponent? | CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_56 WHERE opponent = "alena tarasova" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR) Question: What is the date of the tournament with Alena Tarasova as the opponent? [/INST] SELECT date FROM table_name_56 WHERE opponent = "alena tarasova" </s> |
Which Hereditary peers have a Total of 1? | CREATE TABLE table_name_15 (hereditary_peers VARCHAR, total VARCHAR) | SELECT hereditary_peers FROM table_name_15 WHERE total = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (hereditary_peers VARCHAR, total VARCHAR) Question: Which Hereditary peers have a Total of 1? [/INST] SELECT hereditary_peers FROM table_name_15 WHERE total = 1 </s> |
Which Total has a Hereditary peer of –, and a Lords spiritual of –, and a Life peers of 2, and an Affiliation of plaid cymru? | CREATE TABLE table_name_17 (total VARCHAR, affiliation VARCHAR, life_peers VARCHAR, hereditary_peers VARCHAR, lords_spiritual VARCHAR) | SELECT COUNT(total) FROM table_name_17 WHERE hereditary_peers = "–" AND lords_spiritual = "–" AND life_peers = "2" AND affiliation = "plaid cymru" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (total VARCHAR, affiliation VARCHAR, life_peers VARCHAR, hereditary_peers VARCHAR, lords_spiritual VARCHAR) Question: Which Total has a Hereditary peer of –, and a Lords spiritual of –, and a Life ... |
Which Elector is hungarian? | CREATE TABLE table_name_68 (elector VARCHAR, nationality VARCHAR) | SELECT elector FROM table_name_68 WHERE nationality = "hungarian" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (elector VARCHAR, nationality VARCHAR) Question: Which Elector is hungarian? [/INST] SELECT elector FROM table_name_68 WHERE nationality = "hungarian" </s> |
Which Cardinalatial Title has an Elevator of pope eugenius iv? | CREATE TABLE table_name_77 (cardinalatial_title VARCHAR, elevator VARCHAR) | SELECT cardinalatial_title FROM table_name_77 WHERE elevator = "pope eugenius iv" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (cardinalatial_title VARCHAR, elevator VARCHAR) Question: Which Cardinalatial Title has an Elevator of pope eugenius iv? [/INST] SELECT cardinalatial_title FROM table_name_77 WHERE elevator = "pope... |
Which Works number has a Number larger than 807, and a Type of 0-6-0, and a Date of 1920? | CREATE TABLE table_name_1 (works_number INTEGER, date VARCHAR, number VARCHAR, type VARCHAR) | SELECT AVG(works_number) FROM table_name_1 WHERE number > 807 AND type = "0-6-0" AND date = 1920 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (works_number INTEGER, date VARCHAR, number VARCHAR, type VARCHAR) Question: Which Works number has a Number larger than 807, and a Type of 0-6-0, and a Date of 1920? [/INST] SELECT AVG(works_number... |
Which Type has a Date smaller than 1943, and a Builder of alco schenectady, and a Number larger than 822, and Works number of 59867? | CREATE TABLE table_name_46 (type VARCHAR, works_number VARCHAR, number VARCHAR, date VARCHAR, builder VARCHAR) | SELECT type FROM table_name_46 WHERE date < 1943 AND builder = "alco schenectady" AND number > 822 AND works_number = 59867 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (type VARCHAR, works_number VARCHAR, number VARCHAR, date VARCHAR, builder VARCHAR) Question: Which Type has a Date smaller than 1943, and a Builder of alco schenectady, and a Number larger than 82... |
Which Date has a Builder of alco schenectady, and a Number larger than 835, and Works number of 56566? | CREATE TABLE table_name_19 (date INTEGER, works_number VARCHAR, builder VARCHAR, number VARCHAR) | SELECT AVG(date) FROM table_name_19 WHERE builder = "alco schenectady" AND number > 835 AND works_number = 56566 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (date INTEGER, works_number VARCHAR, builder VARCHAR, number VARCHAR) Question: Which Date has a Builder of alco schenectady, and a Number larger than 835, and Works number of 56566? [/INST] SELECT... |
When was the Election of 1953? | CREATE TABLE table_name_46 (date VARCHAR, election VARCHAR) | SELECT date FROM table_name_46 WHERE election = "1953" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (date VARCHAR, election VARCHAR) Question: When was the Election of 1953? [/INST] SELECT date FROM table_name_46 WHERE election = "1953" </s> |
On what date were there 50,324 votes? | CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR) | SELECT date FROM table_name_78 WHERE votes = "50,324" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR) Question: On what date were there 50,324 votes? [/INST] SELECT date FROM table_name_78 WHERE votes = "50,324" </s> |
How many votes were there on November 10? | CREATE TABLE table_name_32 (votes VARCHAR, date VARCHAR) | SELECT votes FROM table_name_32 WHERE date = "november 10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (votes VARCHAR, date VARCHAR) Question: How many votes were there on November 10? [/INST] SELECT votes FROM table_name_32 WHERE date = "november 10" </s> |
What date has 79-48 as the record? | CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_47 WHERE record = "79-48" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR) Question: What date has 79-48 as the record? [/INST] SELECT date FROM table_name_47 WHERE record = "79-48" </s> |
What is the average attendance that has 83-52 as the record? | CREATE TABLE table_name_86 (attendance INTEGER, record VARCHAR) | SELECT AVG(attendance) FROM table_name_86 WHERE record = "83-52" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (attendance INTEGER, record VARCHAR) Question: What is the average attendance that has 83-52 as the record? [/INST] SELECT AVG(attendance) FROM table_name_86 WHERE record = "83-52" </s> |
Name the segment D for umbrellas | CREATE TABLE table_name_60 (segment_d VARCHAR, segment_a VARCHAR) | SELECT segment_d FROM table_name_60 WHERE segment_a = "umbrellas" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (segment_d VARCHAR, segment_a VARCHAR) Question: Name the segment D for umbrellas [/INST] SELECT segment_d FROM table_name_60 WHERE segment_a = "umbrellas" </s> |
Name the segment A for netflix of s05e01 | CREATE TABLE table_name_89 (segment_a VARCHAR, netflix VARCHAR) | SELECT segment_a FROM table_name_89 WHERE netflix = "s05e01" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (segment_a VARCHAR, netflix VARCHAR) Question: Name the segment A for netflix of s05e01 [/INST] SELECT segment_a FROM table_name_89 WHERE netflix = "s05e01" </s> |
Name the series ep for darts | CREATE TABLE table_name_27 (series_ep VARCHAR, segment_d VARCHAR) | SELECT series_ep FROM table_name_27 WHERE segment_d = "darts" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (series_ep VARCHAR, segment_d VARCHAR) Question: Name the series ep for darts [/INST] SELECT series_ep FROM table_name_27 WHERE segment_d = "darts" </s> |
Name the series ep for segment c of luxury cars (part 1) | CREATE TABLE table_name_63 (series_ep VARCHAR, segment_c VARCHAR) | SELECT series_ep FROM table_name_63 WHERE segment_c = "luxury cars (part 1)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (series_ep VARCHAR, segment_c VARCHAR) Question: Name the series ep for segment c of luxury cars (part 1) [/INST] SELECT series_ep FROM table_name_63 WHERE segment_c = "luxury cars (part 1)" </s> |
What school is located in rossville? | CREATE TABLE table_name_79 (school VARCHAR, location VARCHAR) | SELECT school FROM table_name_79 WHERE location = "rossville" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (school VARCHAR, location VARCHAR) Question: What school is located in rossville? [/INST] SELECT school FROM table_name_79 WHERE location = "rossville" </s> |
How many people enrolled a the school with an IHSAA Class of a, and the trojans as their mascot? | CREATE TABLE table_name_73 (enrollment INTEGER, ihsaa_class VARCHAR, mascot VARCHAR) | SELECT MIN(enrollment) FROM table_name_73 WHERE ihsaa_class = "a" AND mascot = "trojans" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (enrollment INTEGER, ihsaa_class VARCHAR, mascot VARCHAR) Question: How many people enrolled a the school with an IHSAA Class of a, and the trojans as their mascot? [/INST] SELECT MIN(enrollment) F... |
What IHSAA clas is the school with a county number of 12 clinton and the hornets as their mascot? | CREATE TABLE table_name_80 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR) | SELECT ihsaa_class FROM table_name_80 WHERE _number___county = "12 clinton" AND mascot = "hornets" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR) Question: What IHSAA clas is the school with a county number of 12 clinton and the hornets as their mascot? [/INST] SELECT ihsaa_clas... |
What is the score when a loss was listed with Lannan (4-8)? | CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_48 WHERE loss = "lannan (4-8)" | <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 is the score when a loss was listed with Lannan (4-8)? [/INST] SELECT score FROM table_name_48 WHERE loss = "lannan (4-8)" </s> |
What was the date when the Twins had a record of 44-37? | CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_93 WHERE record = "44-37" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR) Question: What was the date when the Twins had a record of 44-37? [/INST] SELECT date FROM table_name_93 WHERE record = "44-37" </s> |
Which Opponents in Final has a Date of september 16, 1990? | CREATE TABLE table_name_25 (opponents_in_final VARCHAR, date VARCHAR) | SELECT opponents_in_final FROM table_name_25 WHERE date = "september 16, 1990" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (opponents_in_final VARCHAR, date VARCHAR) Question: Which Opponents in Final has a Date of september 16, 1990? [/INST] SELECT opponents_in_final FROM table_name_25 WHERE date = "september 16, 1990... |
Which Partner has a Date of june 18, 1989? | CREATE TABLE table_name_87 (partner VARCHAR, date VARCHAR) | SELECT partner FROM table_name_87 WHERE date = "june 18, 1989" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (partner VARCHAR, date VARCHAR) Question: Which Partner has a Date of june 18, 1989? [/INST] SELECT partner FROM table_name_87 WHERE date = "june 18, 1989" </s> |
Which Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994? | CREATE TABLE table_name_15 (opponents_in_final VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR) | SELECT opponents_in_final FROM table_name_15 WHERE outcome = "winner" AND surface = "hard" AND date = "april 17, 1994" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (opponents_in_final VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR) Question: Which Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994? [/INST... |
Which Opponents in Final has a Score in Final of 7–5, 1–6 4–6? | CREATE TABLE table_name_19 (opponents_in_final VARCHAR, score_in_final VARCHAR) | SELECT opponents_in_final FROM table_name_19 WHERE score_in_final = "7–5, 1–6 4–6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (opponents_in_final VARCHAR, score_in_final VARCHAR) Question: Which Opponents in Final has a Score in Final of 7–5, 1–6 4–6? [/INST] SELECT opponents_in_final FROM table_name_19 WHERE score_in_fin... |
Which Partner has a Score in Final of 6–1, 6–2? | CREATE TABLE table_name_94 (partner VARCHAR, score_in_final VARCHAR) | SELECT partner FROM table_name_94 WHERE score_in_final = "6–1, 6–2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (partner VARCHAR, score_in_final VARCHAR) Question: Which Partner has a Score in Final of 6–1, 6–2? [/INST] SELECT partner FROM table_name_94 WHERE score_in_final = "6–1, 6–2" </s> |
What is the total Points for the Opponent of @ New Jersey Devils and a Game bigger than 7? | CREATE TABLE table_name_29 (points INTEGER, opponent VARCHAR, game VARCHAR) | SELECT SUM(points) FROM table_name_29 WHERE opponent = "@ new jersey devils" AND game > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (points INTEGER, opponent VARCHAR, game VARCHAR) Question: What is the total Points for the Opponent of @ New Jersey Devils and a Game bigger than 7? [/INST] SELECT SUM(points) FROM table_name_29 W... |
What was the time of the NJKF Titans Neo X event? | CREATE TABLE table_name_83 (time VARCHAR, event VARCHAR) | SELECT time FROM table_name_83 WHERE event = "njkf titans neo x" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (time VARCHAR, event VARCHAR) Question: What was the time of the NJKF Titans Neo X event? [/INST] SELECT time FROM table_name_83 WHERE event = "njkf titans neo x" </s> |
What was the record after the NJKF Magnam 16 event that lasted 2:06? | CREATE TABLE table_name_72 (record VARCHAR, time VARCHAR, event VARCHAR) | SELECT record FROM table_name_72 WHERE time = "2:06" AND event = "njkf magnam 16" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (record VARCHAR, time VARCHAR, event VARCHAR) Question: What was the record after the NJKF Magnam 16 event that lasted 2:06? [/INST] SELECT record FROM table_name_72 WHERE time = "2:06" AND event =... |
Which opponent led to a 6-3 record? | CREATE TABLE table_name_14 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_14 WHERE record = "6-3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (opponent VARCHAR, record VARCHAR) Question: Which opponent led to a 6-3 record? [/INST] SELECT opponent FROM table_name_14 WHERE record = "6-3" </s> |
How many Picks have a Round larger than 2, and a Name of lawrence sidbury, and an Overall smaller than 125? | CREATE TABLE table_name_69 (pick__number VARCHAR, overall VARCHAR, round VARCHAR, name VARCHAR) | SELECT COUNT(pick__number) FROM table_name_69 WHERE round > 2 AND name = "lawrence sidbury" AND overall < 125 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (pick__number VARCHAR, overall VARCHAR, round VARCHAR, name VARCHAR) Question: How many Picks have a Round larger than 2, and a Name of lawrence sidbury, and an Overall smaller than 125? [/INST] SE... |
Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5? | CREATE TABLE table_name_32 (pick__number INTEGER, name VARCHAR, round VARCHAR) | SELECT MAX(pick__number) FROM table_name_32 WHERE name = "william middleton" AND round > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (pick__number INTEGER, name VARCHAR, round VARCHAR) Question: Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5? [/INST] SELECT MAX(pick__number) FROM ... |
Which Overall is the lowest one that has a Position of offensive tackle? | CREATE TABLE table_name_33 (overall INTEGER, position VARCHAR) | SELECT MIN(overall) FROM table_name_33 WHERE position = "offensive tackle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (overall INTEGER, position VARCHAR) Question: Which Overall is the lowest one that has a Position of offensive tackle? [/INST] SELECT MIN(overall) FROM table_name_33 WHERE position = "offensive tac... |
Which Overall is the average one that has a Name of vance walker? | CREATE TABLE table_name_95 (overall INTEGER, name VARCHAR) | SELECT AVG(overall) FROM table_name_95 WHERE name = "vance walker" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (overall INTEGER, name VARCHAR) Question: Which Overall is the average one that has a Name of vance walker? [/INST] SELECT AVG(overall) FROM table_name_95 WHERE name = "vance walker" </s> |
Which Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4? | CREATE TABLE table_name_86 (pick__number INTEGER, name VARCHAR, round VARCHAR) | SELECT MAX(pick__number) FROM table_name_86 WHERE name = "lawrence sidbury" AND round < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (pick__number INTEGER, name VARCHAR, round VARCHAR) Question: Which Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4? [/INST] SELECT MAX(pick__number) FROM ... |
What is the February number of the game played against the St. Louis Blues with a game number less than 58? | CREATE TABLE table_name_35 (february INTEGER, opponent VARCHAR, game VARCHAR) | SELECT AVG(february) FROM table_name_35 WHERE opponent = "st. louis blues" AND game < 58 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (february INTEGER, opponent VARCHAR, game VARCHAR) Question: What is the February number of the game played against the St. Louis Blues with a game number less than 58? [/INST] SELECT AVG(february)... |
Who is the opponent of the game that had a record of 24-26-4? | CREATE TABLE table_name_50 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_50 WHERE record = "24-26-4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (opponent VARCHAR, record VARCHAR) Question: Who is the opponent of the game that had a record of 24-26-4? [/INST] SELECT opponent FROM table_name_50 WHERE record = "24-26-4" </s> |
What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55? | CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR) | SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR) Question: What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55? [/INST] SELECT COU... |
What nationality is Larry McMorran? | CREATE TABLE table_name_59 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_59 WHERE player = "larry mcmorran" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (nationality VARCHAR, player VARCHAR) Question: What nationality is Larry McMorran? [/INST] SELECT nationality FROM table_name_59 WHERE player = "larry mcmorran" </s> |
what team scored 17 | CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_71 WHERE game = 17 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR) Question: what team scored 17 [/INST] SELECT date FROM table_name_71 WHERE game = 17 </s> |
What was their record on July 22? | CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_58 WHERE date = "july 22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR) Question: What was their record on July 22? [/INST] SELECT record FROM table_name_58 WHERE date = "july 22" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.