instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What is the total number of earnings for golfers who have 28 events and more than 2 wins? | CREATE TABLE table_name_94 (earnings___ VARCHAR, events VARCHAR, wins VARCHAR) | SELECT COUNT(earnings___) AS $__ FROM table_name_94 WHERE events = 28 AND wins > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (earnings___ VARCHAR, events VARCHAR, wins VARCHAR) Question: What is the total number of earnings for golfers who have 28 events and more than 2 wins? [/INST] SELECT COUNT(earnings___) AS $__ FROM... |
On what Date was The Open Championship in Japan? | CREATE TABLE table_name_99 (date VARCHAR, major VARCHAR, country VARCHAR) | SELECT date FROM table_name_99 WHERE major = "the open championship" AND country = "japan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (date VARCHAR, major VARCHAR, country VARCHAR) Question: On what Date was The Open Championship in Japan? [/INST] SELECT date FROM table_name_99 WHERE major = "the open championship" AND country = ... |
What was Tom Weiskopf's Finish? | CREATE TABLE table_name_54 (finish VARCHAR, player VARCHAR) | SELECT finish FROM table_name_54 WHERE player = "tom weiskopf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (finish VARCHAR, player VARCHAR) Question: What was Tom Weiskopf's Finish? [/INST] SELECT finish FROM table_name_54 WHERE player = "tom weiskopf" </s> |
Which Laps have Points of 29? | CREATE TABLE table_name_23 (laps VARCHAR, points VARCHAR) | SELECT laps FROM table_name_23 WHERE points = 29 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (laps VARCHAR, points VARCHAR) Question: Which Laps have Points of 29? [/INST] SELECT laps FROM table_name_23 WHERE points = 29 </s> |
Which Grid has a Driver of cristiano da matta, and Points smaller than 33? | CREATE TABLE table_name_98 (grid INTEGER, driver VARCHAR, points VARCHAR) | SELECT SUM(grid) FROM table_name_98 WHERE driver = "cristiano da matta" AND points < 33 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (grid INTEGER, driver VARCHAR, points VARCHAR) Question: Which Grid has a Driver of cristiano da matta, and Points smaller than 33? [/INST] SELECT SUM(grid) FROM table_name_98 WHERE driver = "crist... |
Which Team has Laps smaller than 105, and a Grid smaller than 18, and Points of 11? | CREATE TABLE table_name_16 (team VARCHAR, points VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT team FROM table_name_16 WHERE laps < 105 AND grid < 18 AND points = 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (team VARCHAR, points VARCHAR, laps VARCHAR, grid VARCHAR) Question: Which Team has Laps smaller than 105, and a Grid smaller than 18, and Points of 11? [/INST] SELECT team FROM table_name_16 WHERE... |
How many Points have a Team of rusport, and Laps of 45? | CREATE TABLE table_name_7 (points VARCHAR, team VARCHAR, laps VARCHAR) | SELECT COUNT(points) FROM table_name_7 WHERE team = "rusport" AND laps = 45 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (points VARCHAR, team VARCHAR, laps VARCHAR) Question: How many Points have a Team of rusport, and Laps of 45? [/INST] SELECT COUNT(points) FROM table_name_7 WHERE team = "rusport" AND laps = 45 </s... |
What is the players name in the guard position? | CREATE TABLE table_name_95 (name VARCHAR, position VARCHAR) | SELECT name FROM table_name_95 WHERE position = "guard" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (name VARCHAR, position VARCHAR) Question: What is the players name in the guard position? [/INST] SELECT name FROM table_name_95 WHERE position = "guard" </s> |
What is the Overall number for pick 17? | CREATE TABLE table_name_5 (overall VARCHAR, pick VARCHAR) | SELECT overall FROM table_name_5 WHERE pick = 17 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (overall VARCHAR, pick VARCHAR) Question: What is the Overall number for pick 17? [/INST] SELECT overall FROM table_name_5 WHERE pick = 17 </s> |
What number round has an overall of 123? | CREATE TABLE table_name_48 (round VARCHAR, overall VARCHAR) | SELECT round FROM table_name_48 WHERE overall = 123 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (round VARCHAR, overall VARCHAR) Question: What number round has an overall of 123? [/INST] SELECT round FROM table_name_48 WHERE overall = 123 </s> |
What is the Name with an overall of less than 123 for the Detroit Lions? | CREATE TABLE table_name_3 (name VARCHAR, overall VARCHAR, team VARCHAR) | SELECT name FROM table_name_3 WHERE overall < 123 AND team = "detroit lions" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (name VARCHAR, overall VARCHAR, team VARCHAR) Question: What is the Name with an overall of less than 123 for the Detroit Lions? [/INST] SELECT name FROM table_name_3 WHERE overall < 123 AND team = ... |
Who is drafted overall less than 49? | CREATE TABLE table_name_27 (name VARCHAR, overall INTEGER) | SELECT name FROM table_name_27 WHERE overall < 49 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (name VARCHAR, overall INTEGER) Question: Who is drafted overall less than 49? [/INST] SELECT name FROM table_name_27 WHERE overall < 49 </s> |
What position is drafted from Grambling? | CREATE TABLE table_name_47 (position VARCHAR, college VARCHAR) | SELECT position FROM table_name_47 WHERE college = "grambling" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (position VARCHAR, college VARCHAR) Question: What position is drafted from Grambling? [/INST] SELECT position FROM table_name_47 WHERE college = "grambling" </s> |
Which opponent's event was sb 24 - return of the heavyweights 2, and had a method of TKO (knee and punches)? | CREATE TABLE table_name_2 (opponent VARCHAR, event VARCHAR, method VARCHAR) | SELECT opponent FROM table_name_2 WHERE event = "sb 24 - return of the heavyweights 2" AND method = "tko (knee and punches)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (opponent VARCHAR, event VARCHAR, method VARCHAR) Question: Which opponent's event was sb 24 - return of the heavyweights 2, and had a method of TKO (knee and punches)? [/INST] SELECT opponent FROM ... |
Which method had Travis Fulton as an opponent? | CREATE TABLE table_name_68 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_68 WHERE opponent = "travis fulton" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (method VARCHAR, opponent VARCHAR) Question: Which method had Travis Fulton as an opponent? [/INST] SELECT method FROM table_name_68 WHERE opponent = "travis fulton" </s> |
Which opponent had a round of more than 1 and an even of PFP: ring of fire? | CREATE TABLE table_name_45 (opponent VARCHAR, round VARCHAR, event VARCHAR) | SELECT opponent FROM table_name_45 WHERE round > 1 AND event = "pfp: ring of fire" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (opponent VARCHAR, round VARCHAR, event VARCHAR) Question: Which opponent had a round of more than 1 and an even of PFP: ring of fire? [/INST] SELECT opponent FROM table_name_45 WHERE round > 1 AND... |
What's the segment A in episode 42? | CREATE TABLE table_name_87 (segment_a VARCHAR, episode VARCHAR) | SELECT segment_a FROM table_name_87 WHERE episode = 42 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (segment_a VARCHAR, episode VARCHAR) Question: What's the segment A in episode 42? [/INST] SELECT segment_a FROM table_name_87 WHERE episode = 42 </s> |
Sfax has a total ordered number of? | CREATE TABLE table_name_54 (ordered VARCHAR, name VARCHAR) | SELECT COUNT(ordered) FROM table_name_54 WHERE name = "sfax" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (ordered VARCHAR, name VARCHAR) Question: Sfax has a total ordered number of? [/INST] SELECT COUNT(ordered) FROM table_name_54 WHERE name = "sfax" </s> |
What was the score on March 5 at Vancouver? | CREATE TABLE table_name_42 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_42 WHERE date = "march 5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (score VARCHAR, date VARCHAR) Question: What was the score on March 5 at Vancouver? [/INST] SELECT score FROM table_name_42 WHERE date = "march 5" </s> |
Who directed the nominated film 'blood on his hands'? | CREATE TABLE table_name_45 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR) | SELECT director_s_ FROM table_name_45 WHERE rank = "nominated" AND film = "blood on his hands" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR) Question: Who directed the nominated film 'blood on his hands'? [/INST] SELECT director_s_ FROM table_name_45 WHERE rank = "nominated" AND film = "... |
What is the rank of the film, Amelia and Michael? | CREATE TABLE table_name_30 (rank VARCHAR, film VARCHAR) | SELECT rank FROM table_name_30 WHERE film = "amelia and michael" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (rank VARCHAR, film VARCHAR) Question: What is the rank of the film, Amelia and Michael? [/INST] SELECT rank FROM table_name_30 WHERE film = "amelia and michael" </s> |
Who directed the nominated film, Badmouth? | CREATE TABLE table_name_53 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR) | SELECT director_s_ FROM table_name_53 WHERE rank = "nominated" AND film = "badmouth" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR) Question: Who directed the nominated film, Badmouth? [/INST] SELECT director_s_ FROM table_name_53 WHERE rank = "nominated" AND film = "badmouth" <... |
What was the production company for the film directed by Daniel Cormack? | CREATE TABLE table_name_54 (production_company VARCHAR, director_s_ VARCHAR) | SELECT production_company FROM table_name_54 WHERE director_s_ = "daniel cormack" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (production_company VARCHAR, director_s_ VARCHAR) Question: What was the production company for the film directed by Daniel Cormack? [/INST] SELECT production_company FROM table_name_54 WHERE direc... |
What was the production company for the nominated film, Badmouth? | CREATE TABLE table_name_33 (production_company VARCHAR, rank VARCHAR, film VARCHAR) | SELECT production_company FROM table_name_33 WHERE rank = "nominated" AND film = "badmouth" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (production_company VARCHAR, rank VARCHAR, film VARCHAR) Question: What was the production company for the nominated film, Badmouth? [/INST] SELECT production_company FROM table_name_33 WHERE rank ... |
What is the average number of points of the game after January 3 against the Cleveland Barons? | CREATE TABLE table_name_23 (points INTEGER, opponent VARCHAR, january VARCHAR) | SELECT AVG(points) FROM table_name_23 WHERE opponent = "cleveland barons" AND january > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (points INTEGER, opponent VARCHAR, january VARCHAR) Question: What is the average number of points of the game after January 3 against the Cleveland Barons? [/INST] SELECT AVG(points) FROM table_na... |
What is the total number of games of the team against the Los Angeles Kings after January 5? | CREATE TABLE table_name_69 (game VARCHAR, opponent VARCHAR, january VARCHAR) | SELECT COUNT(game) FROM table_name_69 WHERE opponent = "los angeles kings" AND january > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (game VARCHAR, opponent VARCHAR, january VARCHAR) Question: What is the total number of games of the team against the Los Angeles Kings after January 5? [/INST] SELECT COUNT(game) FROM table_name_6... |
Tiger Woods has played less than 21 events and is what rank? | CREATE TABLE table_name_90 (rank VARCHAR, player VARCHAR, events VARCHAR) | SELECT COUNT(rank) FROM table_name_90 WHERE player = "tiger woods" AND events < 21 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (rank VARCHAR, player VARCHAR, events VARCHAR) Question: Tiger Woods has played less than 21 events and is what rank? [/INST] SELECT COUNT(rank) FROM table_name_90 WHERE player = "tiger woods" AND ... |
Score of 108-85 is what lowest game? | CREATE TABLE table_name_77 (game INTEGER, score VARCHAR) | SELECT MIN(game) FROM table_name_77 WHERE score = "108-85" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (game INTEGER, score VARCHAR) Question: Score of 108-85 is what lowest game? [/INST] SELECT MIN(game) FROM table_name_77 WHERE score = "108-85" </s> |
Location of brendan byrne arena had what score? | CREATE TABLE table_name_5 (score VARCHAR, location VARCHAR) | SELECT score FROM table_name_5 WHERE location = "brendan byrne arena" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (score VARCHAR, location VARCHAR) Question: Location of brendan byrne arena had what score? [/INST] SELECT score FROM table_name_5 WHERE location = "brendan byrne arena" </s> |
Opponent of chicago bulls had what location? | CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_83 WHERE opponent = "chicago bulls" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR) Question: Opponent of chicago bulls had what location? [/INST] SELECT location FROM table_name_83 WHERE opponent = "chicago bulls" </s> |
Location of boston garden, and a Record of 58-23 involved what opponent? | CREATE TABLE table_name_34 (opponent VARCHAR, location VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_34 WHERE location = "boston garden" AND record = "58-23" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (opponent VARCHAR, location VARCHAR, record VARCHAR) Question: Location of boston garden, and a Record of 58-23 involved what opponent? [/INST] SELECT opponent FROM table_name_34 WHERE location = "... |
Score of 119-115 (ot) involved what location? | CREATE TABLE table_name_16 (location VARCHAR, score VARCHAR) | SELECT location FROM table_name_16 WHERE score = "119-115 (ot)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (location VARCHAR, score VARCHAR) Question: Score of 119-115 (ot) involved what location? [/INST] SELECT location FROM table_name_16 WHERE score = "119-115 (ot)" </s> |
What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347? | CREATE TABLE table_name_83 (fall_07 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR) | SELECT AVG(fall_07) FROM table_name_83 WHERE fall_05 = 271 AND fall_09 < 347 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (fall_07 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR) Question: What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347? [/INST] SELECT AVG(fall_07) FROM table_name_83 ... |
What was the average value for Fall 07 when Fall 09 is less than 296? | CREATE TABLE table_name_99 (fall_07 INTEGER, fall_09 INTEGER) | SELECT AVG(fall_07) FROM table_name_99 WHERE fall_09 < 296 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (fall_07 INTEGER, fall_09 INTEGER) Question: What was the average value for Fall 07 when Fall 09 is less than 296? [/INST] SELECT AVG(fall_07) FROM table_name_99 WHERE fall_09 < 296 </s> |
What is the sum of all values in Fall 09 in Allegany county with Fall 07 less than 751? | CREATE TABLE table_name_56 (fall_09 INTEGER, maryland_counties VARCHAR, fall_07 VARCHAR) | SELECT SUM(fall_09) FROM table_name_56 WHERE maryland_counties = "allegany" AND fall_07 < 751 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (fall_09 INTEGER, maryland_counties VARCHAR, fall_07 VARCHAR) Question: What is the sum of all values in Fall 09 in Allegany county with Fall 07 less than 751? [/INST] SELECT SUM(fall_09) FROM tabl... |
What is the largest value for Fall 08 when Fall 09 is 792 and Fall 05 is less than 791? | CREATE TABLE table_name_95 (fall_08 INTEGER, fall_09 VARCHAR, fall_05 VARCHAR) | SELECT MAX(fall_08) FROM table_name_95 WHERE fall_09 = 792 AND fall_05 < 791 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (fall_08 INTEGER, fall_09 VARCHAR, fall_05 VARCHAR) Question: What is the largest value for Fall 08 when Fall 09 is 792 and Fall 05 is less than 791? [/INST] SELECT MAX(fall_08) FROM table_name_95 ... |
What is the largest value for Fall 08 when Fall 07 is less than 242? | CREATE TABLE table_name_28 (fall_08 INTEGER, fall_07 INTEGER) | SELECT MAX(fall_08) FROM table_name_28 WHERE fall_07 < 242 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (fall_08 INTEGER, fall_07 INTEGER) Question: What is the largest value for Fall 08 when Fall 07 is less than 242? [/INST] SELECT MAX(fall_08) FROM table_name_28 WHERE fall_07 < 242 </s> |
What is the nationality of the player in round 4? | CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_11 WHERE round = 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR) Question: What is the nationality of the player in round 4? [/INST] SELECT nationality FROM table_name_11 WHERE round = 4 </s> |
What is the round of Jimmy Drolet from Canada? | CREATE TABLE table_name_70 (round VARCHAR, nationality VARCHAR, player VARCHAR) | SELECT round FROM table_name_70 WHERE nationality = "canada" AND player = "jimmy drolet" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (round VARCHAR, nationality VARCHAR, player VARCHAR) Question: What is the round of Jimmy Drolet from Canada? [/INST] SELECT round FROM table_name_70 WHERE nationality = "canada" AND player = "jimm... |
What is the round number of Jessie Rezansoff, who plays right wing? | CREATE TABLE table_name_43 (round INTEGER, position VARCHAR, player VARCHAR) | SELECT SUM(round) FROM table_name_43 WHERE position = "right wing" AND player = "jessie rezansoff" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (round INTEGER, position VARCHAR, player VARCHAR) Question: What is the round number of Jessie Rezansoff, who plays right wing? [/INST] SELECT SUM(round) FROM table_name_43 WHERE position = "right ... |
Which team had a qualifying 2 time of 1:01.093? | CREATE TABLE table_name_11 (team VARCHAR, qual_2 VARCHAR) | SELECT team FROM table_name_11 WHERE qual_2 = "1:01.093" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (team VARCHAR, qual_2 VARCHAR) Question: Which team had a qualifying 2 time of 1:01.093? [/INST] SELECT team FROM table_name_11 WHERE qual_2 = "1:01.093" </s> |
What was the qualifying 2 time for the team with a qualifying 1 time of 1:01.630? | CREATE TABLE table_name_55 (qual_2 VARCHAR, qual_1 VARCHAR) | SELECT qual_2 FROM table_name_55 WHERE qual_1 = "1:01.630" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (qual_2 VARCHAR, qual_1 VARCHAR) Question: What was the qualifying 2 time for the team with a qualifying 1 time of 1:01.630? [/INST] SELECT qual_2 FROM table_name_55 WHERE qual_1 = "1:01.630" </s> |
What was the qualifying 1 time for Rusport and Justin Wilson? | CREATE TABLE table_name_27 (qual_1 VARCHAR, team VARCHAR, name VARCHAR) | SELECT qual_1 FROM table_name_27 WHERE team = "rusport" AND name = "justin wilson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (qual_1 VARCHAR, team VARCHAR, name VARCHAR) Question: What was the qualifying 1 time for Rusport and Justin Wilson? [/INST] SELECT qual_1 FROM table_name_27 WHERE team = "rusport" AND name = "just... |
Which team had a qualifying 1 time of 1:01.342? | CREATE TABLE table_name_40 (team VARCHAR, qual_1 VARCHAR) | SELECT team FROM table_name_40 WHERE qual_1 = "1:01.342" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (team VARCHAR, qual_1 VARCHAR) Question: Which team had a qualifying 1 time of 1:01.342? [/INST] SELECT team FROM table_name_40 WHERE qual_1 = "1:01.342" </s> |
What is the best time of the team that had a qualifying 1 time of 1:01.043? | CREATE TABLE table_name_54 (best VARCHAR, qual_1 VARCHAR) | SELECT best FROM table_name_54 WHERE qual_1 = "1:01.043" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (best VARCHAR, qual_1 VARCHAR) Question: What is the best time of the team that had a qualifying 1 time of 1:01.043? [/INST] SELECT best FROM table_name_54 WHERE qual_1 = "1:01.043" </s> |
How many picks did Mike Zaher have? | CREATE TABLE table_name_17 (pick__number INTEGER, player VARCHAR) | SELECT SUM(pick__number) FROM table_name_17 WHERE player = "mike zaher" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (pick__number INTEGER, player VARCHAR) Question: How many picks did Mike Zaher have? [/INST] SELECT SUM(pick__number) FROM table_name_17 WHERE player = "mike zaher" </s> |
How many pick numbers did Matt Marquess have? | CREATE TABLE table_name_57 (pick__number VARCHAR, player VARCHAR) | SELECT COUNT(pick__number) FROM table_name_57 WHERE player = "matt marquess" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (pick__number VARCHAR, player VARCHAR) Question: How many pick numbers did Matt Marquess have? [/INST] SELECT COUNT(pick__number) FROM table_name_57 WHERE player = "matt marquess" </s> |
Which MLS Team's pick number was 31? | CREATE TABLE table_name_69 (mls_team VARCHAR, pick__number VARCHAR) | SELECT mls_team FROM table_name_69 WHERE pick__number = 31 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (mls_team VARCHAR, pick__number VARCHAR) Question: Which MLS Team's pick number was 31? [/INST] SELECT mls_team FROM table_name_69 WHERE pick__number = 31 </s> |
what day did the team go to toronto | CREATE TABLE table_name_97 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_97 WHERE visitor = "toronto" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (date VARCHAR, visitor VARCHAR) Question: what day did the team go to toronto [/INST] SELECT date FROM table_name_97 WHERE visitor = "toronto" </s> |
what team visited chicago | CREATE TABLE table_name_14 (score VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_14 WHERE visitor = "chicago" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (score VARCHAR, visitor VARCHAR) Question: what team visited chicago [/INST] SELECT score FROM table_name_14 WHERE visitor = "chicago" </s> |
what team played on october 8 | CREATE TABLE table_name_32 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_32 WHERE date = "october 8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (home VARCHAR, date VARCHAR) Question: what team played on october 8 [/INST] SELECT home FROM table_name_32 WHERE date = "october 8" </s> |
Which Position has a Game 1 of noel cleal? | CREATE TABLE table_name_69 (position VARCHAR, game_1 VARCHAR) | SELECT position FROM table_name_69 WHERE game_1 = "noel cleal" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (position VARCHAR, game_1 VARCHAR) Question: Which Position has a Game 1 of noel cleal? [/INST] SELECT position FROM table_name_69 WHERE game_1 = "noel cleal" </s> |
Which Game 3 has a Game 1 of brett kenny? | CREATE TABLE table_name_75 (game_3 VARCHAR, game_1 VARCHAR) | SELECT game_3 FROM table_name_75 WHERE game_1 = "brett kenny" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (game_3 VARCHAR, game_1 VARCHAR) Question: Which Game 3 has a Game 1 of brett kenny? [/INST] SELECT game_3 FROM table_name_75 WHERE game_1 = "brett kenny" </s> |
Opponent of at new york giants had what venue? | CREATE TABLE table_name_36 (venue VARCHAR, opponent VARCHAR) | SELECT venue FROM table_name_36 WHERE opponent = "at new york giants" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (venue VARCHAR, opponent VARCHAR) Question: Opponent of at new york giants had what venue? [/INST] SELECT venue FROM table_name_36 WHERE opponent = "at new york giants" </s> |
Result of l 10-23 occurred in what week? | CREATE TABLE table_name_43 (week VARCHAR, result VARCHAR) | SELECT week FROM table_name_43 WHERE result = "l 10-23" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (week VARCHAR, result VARCHAR) Question: Result of l 10-23 occurred in what week? [/INST] SELECT week FROM table_name_43 WHERE result = "l 10-23" </s> |
Week larger than 5, and an opponent of at new york giants had what record? | CREATE TABLE table_name_69 (record VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_69 WHERE week > 5 AND opponent = "at new york giants" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (record VARCHAR, week VARCHAR, opponent VARCHAR) Question: Week larger than 5, and an opponent of at new york giants had what record? [/INST] SELECT record FROM table_name_69 WHERE week > 5 AND opp... |
Attendance of 35,842 had what date? | CREATE TABLE table_name_77 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_77 WHERE attendance = "35,842" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (date VARCHAR, attendance VARCHAR) Question: Attendance of 35,842 had what date? [/INST] SELECT date FROM table_name_77 WHERE attendance = "35,842" </s> |
Result of w 16-10* o.t. had what attendance? | CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_27 WHERE result = "w 16-10* o.t." | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR) Question: Result of w 16-10* o.t. had what attendance? [/INST] SELECT attendance FROM table_name_27 WHERE result = "w 16-10* o.t." </s> |
What Report has the Date of June 5, 2005? | CREATE TABLE table_name_6 (report VARCHAR, date VARCHAR) | SELECT report FROM table_name_6 WHERE date = "june 5, 2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (report VARCHAR, date VARCHAR) Question: What Report has the Date of June 5, 2005? [/INST] SELECT report FROM table_name_6 WHERE date = "june 5, 2005" </s> |
What Report has the Date September 3, 2005? | CREATE TABLE table_name_8 (report VARCHAR, date VARCHAR) | SELECT report FROM table_name_8 WHERE date = "september 3, 2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (report VARCHAR, date VARCHAR) Question: What Report has the Date September 3, 2005? [/INST] SELECT report FROM table_name_8 WHERE date = "september 3, 2005" </s> |
What was the 3’UTR sequence when Coding was 6a 3 and the GenBank id is nm_001093770.2? | CREATE TABLE table_name_64 (coding VARCHAR, genbank_id VARCHAR) | SELECT 3 AS ’utr_sequence FROM table_name_64 WHERE coding = "6a 3" AND genbank_id = "nm_001093770.2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (coding VARCHAR, genbank_id VARCHAR) Question: What was the 3’UTR sequence when Coding was 6a 3 and the GenBank id is nm_001093770.2? [/INST] SELECT 3 AS ’utr_sequence FROM table_name_64 WHERE codi... |
Which Variant id has the GenBank id of nm_005411.4? | CREATE TABLE table_name_40 (variant_id VARCHAR, genbank_id VARCHAR) | SELECT variant_id FROM table_name_40 WHERE genbank_id = "nm_005411.4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (variant_id VARCHAR, genbank_id VARCHAR) Question: Which Variant id has the GenBank id of nm_005411.4? [/INST] SELECT variant_id FROM table_name_40 WHERE genbank_id = "nm_005411.4" </s> |
Which 5’UTR splice has a Variant ID at sftpa1 variant 2? | CREATE TABLE table_name_46 (variant_id VARCHAR) | SELECT 5 AS ’utr_splice FROM table_name_46 WHERE variant_id = "sftpa1 variant 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (variant_id VARCHAR) Question: Which 5’UTR splice has a Variant ID at sftpa1 variant 2? [/INST] SELECT 5 AS ’utr_splice FROM table_name_46 WHERE variant_id = "sftpa1 variant 2" </s> |
Which 3’UTR sequence has the GenBank ID at hq021440? | CREATE TABLE table_name_87 (genbank_id VARCHAR) | SELECT 3 AS ’utr_sequence FROM table_name_87 WHERE genbank_id = "hq021440" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (genbank_id VARCHAR) Question: Which 3’UTR sequence has the GenBank ID at hq021440? [/INST] SELECT 3 AS ’utr_sequence FROM table_name_87 WHERE genbank_id = "hq021440" </s> |
Which Copa Libertadores 1992 has a Supercopa Sudamericana 1992 of round of 16, and a Team of grêmio? | CREATE TABLE table_name_59 (copa_libertadores_1992 VARCHAR, supercopa_sudamericana_1992 VARCHAR, team VARCHAR) | SELECT copa_libertadores_1992 FROM table_name_59 WHERE supercopa_sudamericana_1992 = "round of 16" AND team = "grêmio" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (copa_libertadores_1992 VARCHAR, supercopa_sudamericana_1992 VARCHAR, team VARCHAR) Question: Which Copa Libertadores 1992 has a Supercopa Sudamericana 1992 of round of 16, and a Team of grêmio? [/... |
Which Team has a Recopa Sudamericana 1992 of runner-up? | CREATE TABLE table_name_28 (team VARCHAR, recopa_sudamericana_1992 VARCHAR) | SELECT team FROM table_name_28 WHERE recopa_sudamericana_1992 = "runner-up" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (team VARCHAR, recopa_sudamericana_1992 VARCHAR) Question: Which Team has a Recopa Sudamericana 1992 of runner-up? [/INST] SELECT team FROM table_name_28 WHERE recopa_sudamericana_1992 = "runner-up... |
Which Supercopa Sudamericana 1992 has a Team of santos? | CREATE TABLE table_name_83 (supercopa_sudamericana_1992 VARCHAR, team VARCHAR) | SELECT supercopa_sudamericana_1992 FROM table_name_83 WHERE team = "santos" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (supercopa_sudamericana_1992 VARCHAR, team VARCHAR) Question: Which Supercopa Sudamericana 1992 has a Team of santos? [/INST] SELECT supercopa_sudamericana_1992 FROM table_name_83 WHERE team = "san... |
When was the game with a record of 54-69? | CREATE TABLE table_name_28 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_28 WHERE record = "54-69" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (date VARCHAR, record VARCHAR) Question: When was the game with a record of 54-69? [/INST] SELECT date FROM table_name_28 WHERE record = "54-69" </s> |
What is the total number of tiers for the postseason of semifinalist? | CREATE TABLE table_name_45 (tier INTEGER, postseason VARCHAR) | SELECT SUM(tier) FROM table_name_45 WHERE postseason = "semifinalist" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (tier INTEGER, postseason VARCHAR) Question: What is the total number of tiers for the postseason of semifinalist? [/INST] SELECT SUM(tier) FROM table_name_45 WHERE postseason = "semifinalist" </s> |
For a year earlier than 1991 and a reynard 91d chassis, what's the highest points? | CREATE TABLE table_name_7 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT MAX(points) FROM table_name_7 WHERE chassis = "reynard 91d" AND year < 1991 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (points INTEGER, chassis VARCHAR, year VARCHAR) Question: For a year earlier than 1991 and a reynard 91d chassis, what's the highest points? [/INST] SELECT MAX(points) FROM table_name_7 WHERE chassi... |
Total points for a bs automotive entrant? | CREATE TABLE table_name_7 (points VARCHAR, entrant VARCHAR) | SELECT COUNT(points) FROM table_name_7 WHERE entrant = "bs automotive" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (points VARCHAR, entrant VARCHAR) Question: Total points for a bs automotive entrant? [/INST] SELECT COUNT(points) FROM table_name_7 WHERE entrant = "bs automotive" </s> |
What is a colt racing entrant engine? | CREATE TABLE table_name_17 (engine VARCHAR, entrant VARCHAR) | SELECT engine FROM table_name_17 WHERE entrant = "colt racing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (engine VARCHAR, entrant VARCHAR) Question: What is a colt racing entrant engine? [/INST] SELECT engine FROM table_name_17 WHERE entrant = "colt racing" </s> |
How many Passengers that have an Airport in indonesia, denpasar? | CREATE TABLE table_name_31 (passengers INTEGER, airport VARCHAR) | SELECT AVG(passengers) FROM table_name_31 WHERE airport = "indonesia, denpasar" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (passengers INTEGER, airport VARCHAR) Question: How many Passengers that have an Airport in indonesia, denpasar? [/INST] SELECT AVG(passengers) FROM table_name_31 WHERE airport = "indonesia, denpas... |
Which Airport has a Carrier of malaysia airlines? | CREATE TABLE table_name_52 (airport VARCHAR, carriers VARCHAR) | SELECT airport FROM table_name_52 WHERE carriers = "malaysia airlines" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (airport VARCHAR, carriers VARCHAR) Question: Which Airport has a Carrier of malaysia airlines? [/INST] SELECT airport FROM table_name_52 WHERE carriers = "malaysia airlines" </s> |
Which tier has a division of LEB 2 and Cup Competitions of Copa LEB Plata runner-up? | CREATE TABLE table_name_91 (tier VARCHAR, division VARCHAR, cup_competitions VARCHAR) | SELECT tier FROM table_name_91 WHERE division = "leb 2" AND cup_competitions = "copa leb plata runner-up" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (tier VARCHAR, division VARCHAR, cup_competitions VARCHAR) Question: Which tier has a division of LEB 2 and Cup Competitions of Copa LEB Plata runner-up? [/INST] SELECT tier FROM table_name_91 WHER... |
How many positions have a Postseason of relegation playoffs and a tier of 3? | CREATE TABLE table_name_11 (pos VARCHAR, postseason VARCHAR, tier VARCHAR) | SELECT COUNT(pos) FROM table_name_11 WHERE postseason = "relegation playoffs" AND tier = 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (pos VARCHAR, postseason VARCHAR, tier VARCHAR) Question: How many positions have a Postseason of relegation playoffs and a tier of 3? [/INST] SELECT COUNT(pos) FROM table_name_11 WHERE postseason ... |
What is the lowest tier for a postseason result of quarterfinalist? | CREATE TABLE table_name_68 (tier INTEGER, postseason VARCHAR) | SELECT MIN(tier) FROM table_name_68 WHERE postseason = "quarterfinalist" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (tier INTEGER, postseason VARCHAR) Question: What is the lowest tier for a postseason result of quarterfinalist? [/INST] SELECT MIN(tier) FROM table_name_68 WHERE postseason = "quarterfinalist" </s... |
What format has 080 360-2 as the catalog? | CREATE TABLE table_name_84 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_84 WHERE catalog = "080 360-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (format VARCHAR, catalog VARCHAR) Question: What format has 080 360-2 as the catalog? [/INST] SELECT format FROM table_name_84 WHERE catalog = "080 360-2" </s> |
What label has 887 448-2 as the catalog? | CREATE TABLE table_name_4 (label VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_4 WHERE catalog = "887 448-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (label VARCHAR, catalog VARCHAR) Question: What label has 887 448-2 as the catalog? [/INST] SELECT label FROM table_name_4 WHERE catalog = "887 448-2" </s> |
What label has cd single as the format? | CREATE TABLE table_name_20 (label VARCHAR, format VARCHAR) | SELECT label FROM table_name_20 WHERE format = "cd single" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (label VARCHAR, format VARCHAR) Question: What label has cd single as the format? [/INST] SELECT label FROM table_name_20 WHERE format = "cd single" </s> |
What catalog has june 1990 as the date? | CREATE TABLE table_name_73 (catalog VARCHAR, date VARCHAR) | SELECT catalog FROM table_name_73 WHERE date = "june 1990" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (catalog VARCHAR, date VARCHAR) Question: What catalog has june 1990 as the date? [/INST] SELECT catalog FROM table_name_73 WHERE date = "june 1990" </s> |
Which building has 26 storeys? | CREATE TABLE table_name_42 (building VARCHAR, storeys VARCHAR) | SELECT building FROM table_name_42 WHERE storeys = 26 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (building VARCHAR, storeys VARCHAR) Question: Which building has 26 storeys? [/INST] SELECT building FROM table_name_42 WHERE storeys = 26 </s> |
What is the height for less than 45 storeys in Scotia Centre? | CREATE TABLE table_name_34 (height VARCHAR, storeys VARCHAR, building VARCHAR) | SELECT height FROM table_name_34 WHERE storeys < 45 AND building = "scotia centre" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (height VARCHAR, storeys VARCHAR, building VARCHAR) Question: What is the height for less than 45 storeys in Scotia Centre? [/INST] SELECT height FROM table_name_34 WHERE storeys < 45 AND building ... |
How many storeys in Calgary during 1975-1976? | CREATE TABLE table_name_46 (storeys VARCHAR, city VARCHAR, years VARCHAR) | SELECT storeys FROM table_name_46 WHERE city = "calgary" AND years = "1975-1976" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (storeys VARCHAR, city VARCHAR, years VARCHAR) Question: How many storeys in Calgary during 1975-1976? [/INST] SELECT storeys FROM table_name_46 WHERE city = "calgary" AND years = "1975-1976" </s> |
Which city had years 1971-1974? | CREATE TABLE table_name_97 (city VARCHAR, years VARCHAR) | SELECT city FROM table_name_97 WHERE years = "1971-1974" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (city VARCHAR, years VARCHAR) Question: Which city had years 1971-1974? [/INST] SELECT city FROM table_name_97 WHERE years = "1971-1974" </s> |
Which city contains Telus Plaza South? | CREATE TABLE table_name_66 (city VARCHAR, building VARCHAR) | SELECT city FROM table_name_66 WHERE building = "telus plaza south" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (city VARCHAR, building VARCHAR) Question: Which city contains Telus Plaza South? [/INST] SELECT city FROM table_name_66 WHERE building = "telus plaza south" </s> |
What is the lowest number played with 2 losses and more than 13 points? | CREATE TABLE table_name_30 (played INTEGER, lost VARCHAR, points VARCHAR) | SELECT MIN(played) FROM table_name_30 WHERE lost = 2 AND points > 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (played INTEGER, lost VARCHAR, points VARCHAR) Question: What is the lowest number played with 2 losses and more than 13 points? [/INST] SELECT MIN(played) FROM table_name_30 WHERE lost = 2 AND poi... |
What is the smallest positioned with more than 9 played? | CREATE TABLE table_name_4 (position INTEGER, played INTEGER) | SELECT MIN(position) FROM table_name_4 WHERE played > 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (position INTEGER, played INTEGER) Question: What is the smallest positioned with more than 9 played? [/INST] SELECT MIN(position) FROM table_name_4 WHERE played > 9 </s> |
How many draws took place for team Corinthians with more than 5 losses? | CREATE TABLE table_name_81 (drawn VARCHAR, team VARCHAR, lost VARCHAR) | SELECT COUNT(drawn) FROM table_name_81 WHERE team = "corinthians" AND lost > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (drawn VARCHAR, team VARCHAR, lost VARCHAR) Question: How many draws took place for team Corinthians with more than 5 losses? [/INST] SELECT COUNT(drawn) FROM table_name_81 WHERE team = "corinthian... |
Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80? | CREATE TABLE table_name_91 (Id VARCHAR) | SELECT MIN(2007) FROM table_name_91 WHERE 2004 = 78 AND 2006 < 80 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (Id VARCHAR) Question: Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80? [/INST] SELECT MIN(2007) FROM table_name_91 WHERE 2004 = 78 AND 2006 < 80 </s> |
Which 2005 is the lowest one that has a Grade smaller than 6, and a 2008 smaller than 80, and a 2006 larger than 72? | CREATE TABLE table_name_32 (grade VARCHAR) | SELECT MIN(2005) FROM table_name_32 WHERE grade < 6 AND 2008 < 80 AND 2006 > 72 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (grade VARCHAR) Question: Which 2005 is the lowest one that has a Grade smaller than 6, and a 2008 smaller than 80, and a 2006 larger than 72? [/INST] SELECT MIN(2005) FROM table_name_32 WHERE grad... |
Position of member, and a Nationality of india is what sum of term ending? | CREATE TABLE table_name_67 (term_ending INTEGER, position VARCHAR, nationality VARCHAR) | SELECT SUM(term_ending) FROM table_name_67 WHERE position = "member" AND nationality = "india" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (term_ending INTEGER, position VARCHAR, nationality VARCHAR) Question: Position of member, and a Nationality of india is what sum of term ending? [/INST] SELECT SUM(term_ending) FROM table_name_67 ... |
Name of xue hanqin has what highest term ending? | CREATE TABLE table_name_89 (term_ending INTEGER, name VARCHAR) | SELECT MAX(term_ending) FROM table_name_89 WHERE name = "xue hanqin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (term_ending INTEGER, name VARCHAR) Question: Name of xue hanqin has what highest term ending? [/INST] SELECT MAX(term_ending) FROM table_name_89 WHERE name = "xue hanqin" </s> |
Position of member, and a Tenure Began of 2010, and a Name of xue hanqin has what lowest term ending? | CREATE TABLE table_name_54 (term_ending INTEGER, name VARCHAR, position VARCHAR, tenure_began VARCHAR) | SELECT MIN(term_ending) FROM table_name_54 WHERE position = "member" AND tenure_began = 2010 AND name = "xue hanqin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (term_ending INTEGER, name VARCHAR, position VARCHAR, tenure_began VARCHAR) Question: Position of member, and a Tenure Began of 2010, and a Name of xue hanqin has what lowest term ending? [/INST] S... |
Term Ending smaller than 2018, and a Nationality of new zealand what is the name? | CREATE TABLE table_name_85 (name VARCHAR, term_ending VARCHAR, nationality VARCHAR) | SELECT name FROM table_name_85 WHERE term_ending < 2018 AND nationality = "new zealand" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (name VARCHAR, term_ending VARCHAR, nationality VARCHAR) Question: Term Ending smaller than 2018, and a Nationality of new zealand what is the name? [/INST] SELECT name FROM table_name_85 WHERE ter... |
Which episode aired in the USA on 20 May 2005? | CREATE TABLE table_name_75 (episode VARCHAR, airdate__usa_ VARCHAR) | SELECT episode FROM table_name_75 WHERE airdate__usa_ = "20 may 2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (episode VARCHAR, airdate__usa_ VARCHAR) Question: Which episode aired in the USA on 20 May 2005? [/INST] SELECT episode FROM table_name_75 WHERE airdate__usa_ = "20 may 2005" </s> |
What is the total number of episodes aired in Canada on 22 October 2004? | CREATE TABLE table_name_18 (episode VARCHAR, airdate__canada_ VARCHAR) | SELECT COUNT(episode) FROM table_name_18 WHERE airdate__canada_ = "22 october 2004" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (episode VARCHAR, airdate__canada_ VARCHAR) Question: What is the total number of episodes aired in Canada on 22 October 2004? [/INST] SELECT COUNT(episode) FROM table_name_18 WHERE airdate__canada... |
What is the CBS airdate of the episode with a number under 70 with a USA airdate of 1 April 2005? | CREATE TABLE table_name_26 (cbs_airdate VARCHAR, episode VARCHAR, airdate__usa_ VARCHAR) | SELECT cbs_airdate FROM table_name_26 WHERE episode < 70 AND airdate__usa_ = "1 april 2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (cbs_airdate VARCHAR, episode VARCHAR, airdate__usa_ VARCHAR) Question: What is the CBS airdate of the episode with a number under 70 with a USA airdate of 1 April 2005? [/INST] SELECT cbs_airdate ... |
what song is a genre of glam | CREATE TABLE table_name_26 (song_title VARCHAR, genre VARCHAR) | SELECT song_title FROM table_name_26 WHERE genre = "glam" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (song_title VARCHAR, genre VARCHAR) Question: what song is a genre of glam [/INST] SELECT song_title FROM table_name_26 WHERE genre = "glam" </s> |
Which score is the Seattle team? | CREATE TABLE table_name_38 (score VARCHAR, team VARCHAR) | SELECT score FROM table_name_38 WHERE team = "seattle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (score VARCHAR, team VARCHAR) Question: Which score is the Seattle team? [/INST] SELECT score FROM table_name_38 WHERE team = "seattle" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.