instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
In 1912 when the U.S used sapphire, what was the Hindu birthstone? | CREATE TABLE table_name_77 (hindu VARCHAR, us__1912_ VARCHAR) | SELECT hindu FROM table_name_77 WHERE us__1912_ = "sapphire" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (hindu VARCHAR, us__1912_ VARCHAR) Question: In 1912 when the U.S used sapphire, what was the Hindu birthstone? [/INST] SELECT hindu FROM table_name_77 WHERE us__1912_ = "sapphire" </s> |
What's the hometown of rachel muyot soriano? | CREATE TABLE table_name_67 (hometown VARCHAR, delegate VARCHAR) | SELECT hometown FROM table_name_67 WHERE delegate = "rachel muyot soriano" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (hometown VARCHAR, delegate VARCHAR) Question: What's the hometown of rachel muyot soriano? [/INST] SELECT hometown FROM table_name_67 WHERE delegate = "rachel muyot soriano" </s> |
What's the latest year the miss internet www pageant had a result of second runner-up? | CREATE TABLE table_name_80 (year INTEGER, pageant VARCHAR, result VARCHAR) | SELECT MAX(year) FROM table_name_80 WHERE pageant = "miss internet www" AND result = "second runner-up" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (year INTEGER, pageant VARCHAR, result VARCHAR) Question: What's the latest year the miss internet www pageant had a result of second runner-up? [/INST] SELECT MAX(year) FROM table_name_80 WHERE pa... |
On what Date is Tie no 19? | CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_36 WHERE tie_no = "19" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR) Question: On what Date is Tie no 19? [/INST] SELECT date FROM table_name_36 WHERE tie_no = "19" </s> |
What is the Ti no of the Walsall Home game? | CREATE TABLE table_name_38 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_38 WHERE home_team = "walsall" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (tie_no VARCHAR, home_team VARCHAR) Question: What is the Ti no of the Walsall Home game? [/INST] SELECT tie_no FROM table_name_38 WHERE home_team = "walsall" </s> |
What is the Date of Tie no 21? | CREATE TABLE table_name_13 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_13 WHERE tie_no = "21" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (date VARCHAR, tie_no VARCHAR) Question: What is the Date of Tie no 21? [/INST] SELECT date FROM table_name_13 WHERE tie_no = "21" </s> |
Which race happened in 1948? | CREATE TABLE table_name_26 (race_title VARCHAR, year VARCHAR) | SELECT race_title FROM table_name_26 WHERE year = 1948 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (race_title VARCHAR, year VARCHAR) Question: Which race happened in 1948? [/INST] SELECT race_title FROM table_name_26 WHERE year = 1948 </s> |
Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship? | CREATE TABLE table_name_77 (championship VARCHAR, drivers VARCHAR, year VARCHAR, race_title VARCHAR) | SELECT championship FROM table_name_77 WHERE year < 1952 AND race_title = "grand prix watkins glen" AND drivers = "miles collier" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (championship VARCHAR, drivers VARCHAR, year VARCHAR, race_title VARCHAR) Question: Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship? [/INST] SELECT championsh... |
Who drove in races in 1949? | CREATE TABLE table_name_21 (drivers VARCHAR, year VARCHAR) | SELECT drivers FROM table_name_21 WHERE year = 1949 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (drivers VARCHAR, year VARCHAR) Question: Who drove in races in 1949? [/INST] SELECT drivers FROM table_name_21 WHERE year = 1949 </s> |
What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73? | CREATE TABLE table_name_99 (total INTEGER, silver VARCHAR, gold VARCHAR) | SELECT MIN(total) FROM table_name_99 WHERE silver > 7 AND gold > 73 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (total INTEGER, silver VARCHAR, gold VARCHAR) Question: What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73? [/INST] SELECT MIN(total) FROM table_name_99 WHERE... |
What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is "4"? | CREATE TABLE table_name_81 (total VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT total FROM table_name_81 WHERE silver < 65 AND bronze > "4" AND rank = "4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (total VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR) Question: What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is "4"? [/INST] SELECT total FROM ta... |
What is the average Silver, when Gold is less than 0? | CREATE TABLE table_name_47 (silver INTEGER, gold INTEGER) | SELECT AVG(silver) FROM table_name_47 WHERE gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (silver INTEGER, gold INTEGER) Question: What is the average Silver, when Gold is less than 0? [/INST] SELECT AVG(silver) FROM table_name_47 WHERE gold < 0 </s> |
What is Height, when Name is "Manuela Zanchi"? | CREATE TABLE table_name_95 (height VARCHAR, name VARCHAR) | SELECT height FROM table_name_95 WHERE name = "manuela zanchi" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (height VARCHAR, name VARCHAR) Question: What is Height, when Name is "Manuela Zanchi"? [/INST] SELECT height FROM table_name_95 WHERE name = "manuela zanchi" </s> |
What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"? | CREATE TABLE table_name_53 (pos VARCHAR, height VARCHAR, name VARCHAR) | SELECT pos FROM table_name_53 WHERE height = "m (ft 6in)" AND name = "martina miceli" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (pos VARCHAR, height VARCHAR, name VARCHAR) Question: What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"? [/INST] SELECT pos FROM table_name_53 WHERE height = "m (ft 6in)"... |
How many kills did basobas, florentino have? | CREATE TABLE table_name_34 (killed INTEGER, perpetrator VARCHAR) | SELECT MAX(killed) FROM table_name_34 WHERE perpetrator = "basobas, florentino" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (killed INTEGER, perpetrator VARCHAR) Question: How many kills did basobas, florentino have? [/INST] SELECT MAX(killed) FROM table_name_34 WHERE perpetrator = "basobas, florentino" </s> |
What is the average number of people killed with a Perpetrator of wirjo, 42? | CREATE TABLE table_name_54 (killed INTEGER, perpetrator VARCHAR) | SELECT AVG(killed) FROM table_name_54 WHERE perpetrator = "wirjo, 42" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (killed INTEGER, perpetrator VARCHAR) Question: What is the average number of people killed with a Perpetrator of wirjo, 42? [/INST] SELECT AVG(killed) FROM table_name_54 WHERE perpetrator = "wirjo... |
How many are injured in Borneo? | CREATE TABLE table_name_68 (injured VARCHAR, location VARCHAR) | SELECT injured FROM table_name_68 WHERE location = "borneo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (injured VARCHAR, location VARCHAR) Question: How many are injured in Borneo? [/INST] SELECT injured FROM table_name_68 WHERE location = "borneo" </s> |
How many points were scored by the player with 79 goals and who played 38 games? | CREATE TABLE table_name_32 (points VARCHAR, goals VARCHAR, games VARCHAR) | SELECT points FROM table_name_32 WHERE goals = "79" AND games = "38" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (points VARCHAR, goals VARCHAR, games VARCHAR) Question: How many points were scored by the player with 79 goals and who played 38 games? [/INST] SELECT points FROM table_name_32 WHERE goals = "79"... |
How many games were played by the player with 127 assists? | CREATE TABLE table_name_61 (games VARCHAR, assists VARCHAR) | SELECT games FROM table_name_61 WHERE assists = "127" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (games VARCHAR, assists VARCHAR) Question: How many games were played by the player with 127 assists? [/INST] SELECT games FROM table_name_61 WHERE assists = "127" </s> |
How many games were played by the player who had 22 penalty minutes? | CREATE TABLE table_name_52 (games VARCHAR, pen_min VARCHAR) | SELECT games FROM table_name_52 WHERE pen_min = "22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (games VARCHAR, pen_min VARCHAR) Question: How many games were played by the player who had 22 penalty minutes? [/INST] SELECT games FROM table_name_52 WHERE pen_min = "22" </s> |
How many assists did the player with 54 penalty minutes have? | CREATE TABLE table_name_45 (assists VARCHAR, pen_min VARCHAR) | SELECT assists FROM table_name_45 WHERE pen_min = "54" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (assists VARCHAR, pen_min VARCHAR) Question: How many assists did the player with 54 penalty minutes have? [/INST] SELECT assists FROM table_name_45 WHERE pen_min = "54" </s> |
What is John Davis's home town? | CREATE TABLE table_name_95 (hometown VARCHAR, name VARCHAR) | SELECT hometown FROM table_name_95 WHERE name = "john davis" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (hometown VARCHAR, name VARCHAR) Question: What is John Davis's home town? [/INST] SELECT hometown FROM table_name_95 WHERE name = "john davis" </s> |
What is the date of the 1500m freestyle event? | CREATE TABLE table_name_91 (date VARCHAR, event VARCHAR) | SELECT date FROM table_name_91 WHERE event = "1500m freestyle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (date VARCHAR, event VARCHAR) Question: What is the date of the 1500m freestyle event? [/INST] SELECT date FROM table_name_91 WHERE event = "1500m freestyle" </s> |
What is the nationality of the event with a 1:51.51 time? | CREATE TABLE table_name_66 (nationality VARCHAR, time VARCHAR) | SELECT nationality FROM table_name_66 WHERE time = "1:51.51" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (nationality VARCHAR, time VARCHAR) Question: What is the nationality of the event with a 1:51.51 time? [/INST] SELECT nationality FROM table_name_66 WHERE time = "1:51.51" </s> |
What is the time of the 100m freestyle event? | CREATE TABLE table_name_54 (time VARCHAR, event VARCHAR) | SELECT time FROM table_name_54 WHERE event = "100m freestyle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (time VARCHAR, event VARCHAR) Question: What is the time of the 100m freestyle event? [/INST] SELECT time FROM table_name_54 WHERE event = "100m freestyle" </s> |
What is the date of the event with a 1:54.00 time? | CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR) | SELECT date FROM table_name_25 WHERE time = "1:54.00" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR) Question: What is the date of the event with a 1:54.00 time? [/INST] SELECT date FROM table_name_25 WHERE time = "1:54.00" </s> |
What event is on 18 December 2009? | CREATE TABLE table_name_59 (event VARCHAR, date VARCHAR) | SELECT event FROM table_name_59 WHERE date = "18 december 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (event VARCHAR, date VARCHAR) Question: What event is on 18 December 2009? [/INST] SELECT event FROM table_name_59 WHERE date = "18 december 2009" </s> |
Jimmie Lee Sloas was the composer for what album? | CREATE TABLE table_name_44 (album VARCHAR, composer_s_ VARCHAR) | SELECT album FROM table_name_44 WHERE composer_s_ = "jimmie lee sloas" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (album VARCHAR, composer_s_ VARCHAR) Question: Jimmie Lee Sloas was the composer for what album? [/INST] SELECT album FROM table_name_44 WHERE composer_s_ = "jimmie lee sloas" </s> |
Which composer had a CHR chart peak at #2? | CREATE TABLE table_name_93 (composer_s_ VARCHAR, chr_chart_peak VARCHAR) | SELECT composer_s_ FROM table_name_93 WHERE chr_chart_peak = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (composer_s_ VARCHAR, chr_chart_peak VARCHAR) Question: Which composer had a CHR chart peak at #2? [/INST] SELECT composer_s_ FROM table_name_93 WHERE chr_chart_peak = 2 </s> |
What was the date for Westport? | CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_33 WHERE venue = "westport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR) Question: What was the date for Westport? [/INST] SELECT date FROM table_name_33 WHERE venue = "westport" </s> |
What is the home team in week 1? | CREATE TABLE table_name_61 (home_team VARCHAR, week VARCHAR) | SELECT home_team FROM table_name_61 WHERE week = "1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (home_team VARCHAR, week VARCHAR) Question: What is the home team in week 1? [/INST] SELECT home_team FROM table_name_61 WHERE week = "1" </s> |
In what week was the away team Auckland? | CREATE TABLE table_name_92 (week VARCHAR, away_team VARCHAR) | SELECT week FROM table_name_92 WHERE away_team = "auckland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (week VARCHAR, away_team VARCHAR) Question: In what week was the away team Auckland? [/INST] SELECT week FROM table_name_92 WHERE away_team = "auckland" </s> |
What is the venue for week 1? | CREATE TABLE table_name_58 (venue VARCHAR, week VARCHAR) | SELECT venue FROM table_name_58 WHERE week = "1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (venue VARCHAR, week VARCHAR) Question: What is the venue for week 1? [/INST] SELECT venue FROM table_name_58 WHERE week = "1" </s> |
What is the title in 1991? | CREATE TABLE table_name_79 (title VARCHAR, year VARCHAR) | SELECT title FROM table_name_79 WHERE year = "1991" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (title VARCHAR, year VARCHAR) Question: What is the title in 1991? [/INST] SELECT title FROM table_name_79 WHERE year = "1991" </s> |
In what City/State did the ATCC Round 4 series take place? | CREATE TABLE table_name_42 (city___state VARCHAR, series VARCHAR) | SELECT city___state FROM table_name_42 WHERE series = "atcc round 4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (city___state VARCHAR, series VARCHAR) Question: In what City/State did the ATCC Round 4 series take place? [/INST] SELECT city___state FROM table_name_42 WHERE series = "atcc round 4" </s> |
In what City/State did the ATCC Round 4 series take place? | CREATE TABLE table_name_62 (city___state VARCHAR, series VARCHAR) | SELECT city___state FROM table_name_62 WHERE series = "atcc round 4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (city___state VARCHAR, series VARCHAR) Question: In what City/State did the ATCC Round 4 series take place? [/INST] SELECT city___state FROM table_name_62 WHERE series = "atcc round 4" </s> |
Which series was won by Paul Morris? | CREATE TABLE table_name_16 (series VARCHAR, winner VARCHAR) | SELECT series FROM table_name_16 WHERE winner = "paul morris" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (series VARCHAR, winner VARCHAR) Question: Which series was won by Paul Morris? [/INST] SELECT series FROM table_name_16 WHERE winner = "paul morris" </s> |
On which date did the Winfield Triple Challenge series take place? | CREATE TABLE table_name_61 (date VARCHAR, series VARCHAR) | SELECT date FROM table_name_61 WHERE series = "winfield triple challenge" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (date VARCHAR, series VARCHAR) Question: On which date did the Winfield Triple Challenge series take place? [/INST] SELECT date FROM table_name_61 WHERE series = "winfield triple challenge" </s> |
What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series? | CREATE TABLE table_name_64 (circuit VARCHAR, team VARCHAR, series VARCHAR) | SELECT circuit FROM table_name_64 WHERE team = "peter jackson racing" AND series = "atcc round 4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (circuit VARCHAR, team VARCHAR, series VARCHAR) Question: What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series? [/INST] SELECT circuit FROM table_name_64 WHERE team = "pete... |
Which Player has a Team from of south shore kings? | CREATE TABLE table_name_11 (player VARCHAR, team_from VARCHAR) | SELECT player FROM table_name_11 WHERE team_from = "south shore kings" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (player VARCHAR, team_from VARCHAR) Question: Which Player has a Team from of south shore kings? [/INST] SELECT player FROM table_name_11 WHERE team_from = "south shore kings" </s> |
Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars? | CREATE TABLE table_name_97 (nhl_team VARCHAR, team_from VARCHAR, league_from VARCHAR, pick__number VARCHAR) | SELECT nhl_team FROM table_name_97 WHERE league_from = "western hockey league" AND pick__number < 23 AND team_from = "prince george cougars" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (nhl_team VARCHAR, team_from VARCHAR, league_from VARCHAR, pick__number VARCHAR) Question: Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of ... |
Which Position has a Pick # smaller than 26 and a Player of jack campbell? | CREATE TABLE table_name_61 (position VARCHAR, pick__number VARCHAR, player VARCHAR) | SELECT position FROM table_name_61 WHERE pick__number < 26 AND player = "jack campbell" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (position VARCHAR, pick__number VARCHAR, player VARCHAR) Question: Which Position has a Pick # smaller than 26 and a Player of jack campbell? [/INST] SELECT position FROM table_name_61 WHERE pick__... |
How much money did Willie Klein take home from the game in which he had a to par score larger than 13? | CREATE TABLE table_name_5 (money___ INTEGER, player VARCHAR, to_par VARCHAR) | SELECT SUM(money___) AS $__ FROM table_name_5 WHERE player = "willie klein" AND to_par > 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (money___ INTEGER, player VARCHAR, to_par VARCHAR) Question: How much money did Willie Klein take home from the game in which he had a to par score larger than 13? [/INST] SELECT SUM(money___) AS $_... |
What was the attendance on September 11, 1988? | CREATE TABLE table_name_21 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_21 WHERE date = "september 11, 1988" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (attendance INTEGER, date VARCHAR) Question: What was the attendance on September 11, 1988? [/INST] SELECT AVG(attendance) FROM table_name_21 WHERE date = "september 11, 1988" </s> |
What was the attendance on week 1? | CREATE TABLE table_name_41 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_41 WHERE week = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (attendance VARCHAR, week VARCHAR) Question: What was the attendance on week 1? [/INST] SELECT attendance FROM table_name_41 WHERE week = 1 </s> |
What was the lowest win when there were 34 points and more than 13 draws? | CREATE TABLE table_name_2 (wins INTEGER, points VARCHAR, draws VARCHAR) | SELECT MIN(wins) FROM table_name_2 WHERE points = 34 AND draws > 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (wins INTEGER, points VARCHAR, draws VARCHAR) Question: What was the lowest win when there were 34 points and more than 13 draws? [/INST] SELECT MIN(wins) FROM table_name_2 WHERE points = 34 AND dra... |
What was the highest win when there were more than 64 goals scored and a position smaller than 2? | CREATE TABLE table_name_87 (wins INTEGER, goals_scored VARCHAR, position VARCHAR) | SELECT MAX(wins) FROM table_name_87 WHERE goals_scored > 64 AND position < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (wins INTEGER, goals_scored VARCHAR, position VARCHAR) Question: What was the highest win when there were more than 64 goals scored and a position smaller than 2? [/INST] SELECT MAX(wins) FROM tabl... |
Who is the Outgoing Manager replaced by Sandy Clark? | CREATE TABLE table_name_66 (outgoing_manager VARCHAR, replaced_by VARCHAR) | SELECT outgoing_manager FROM table_name_66 WHERE replaced_by = "sandy clark" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (outgoing_manager VARCHAR, replaced_by VARCHAR) Question: Who is the Outgoing Manager replaced by Sandy Clark? [/INST] SELECT outgoing_manager FROM table_name_66 WHERE replaced_by = "sandy clark" <... |
What is the Date of vacancy for Tommy McLean? | CREATE TABLE table_name_80 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) | SELECT date_of_vacancy FROM table_name_80 WHERE outgoing_manager = "tommy mclean" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) Question: What is the Date of vacancy for Tommy McLean? [/INST] SELECT date_of_vacancy FROM table_name_80 WHERE outgoing_manager = "tommy mclean"... |
What is the total number of Goals scored that has more than 45 Points? | CREATE TABLE table_name_74 (goals_scored VARCHAR, points INTEGER) | SELECT COUNT(goals_scored) FROM table_name_74 WHERE points > 45 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (goals_scored VARCHAR, points INTEGER) Question: What is the total number of Goals scored that has more than 45 Points? [/INST] SELECT COUNT(goals_scored) FROM table_name_74 WHERE points > 45 </s> |
What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins? | CREATE TABLE table_name_47 (goals_conceded VARCHAR, wins VARCHAR, draws VARCHAR, loses VARCHAR) | SELECT COUNT(goals_conceded) FROM table_name_47 WHERE draws < 5 AND loses > 4 AND wins > 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (goals_conceded VARCHAR, wins VARCHAR, draws VARCHAR, loses VARCHAR) Question: What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 win... |
What is the sum of Goals scored when there was less than 20 Games played? | CREATE TABLE table_name_79 (goals_scored INTEGER, games_played INTEGER) | SELECT SUM(goals_scored) FROM table_name_79 WHERE games_played < 20 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (goals_scored INTEGER, games_played INTEGER) Question: What is the sum of Goals scored when there was less than 20 Games played? [/INST] SELECT SUM(goals_scored) FROM table_name_79 WHERE games_play... |
Which Country has a To par of –2, and a Player of jim thorpe? | CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT country FROM table_name_32 WHERE to_par = "–2" AND player = "jim thorpe" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR) Question: Which Country has a To par of –2, and a Player of jim thorpe? [/INST] SELECT country FROM table_name_32 WHERE to_par = "–2" AND player = ... |
Name the Place which has To par of –5, in united states? | CREATE TABLE table_name_95 (place VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT place FROM table_name_95 WHERE country = "united states" AND to_par = "–5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (place VARCHAR, country VARCHAR, to_par VARCHAR) Question: Name the Place which has To par of –5, in united states? [/INST] SELECT place FROM table_name_95 WHERE country = "united states" AND to_p... |
Name the To par of payne stewart? | CREATE TABLE table_name_4 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_4 WHERE player = "payne stewart" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (to_par VARCHAR, player VARCHAR) Question: Name the To par of payne stewart? [/INST] SELECT to_par FROM table_name_4 WHERE player = "payne stewart" </s> |
WHo has a Country of united states and a To par of –3? | CREATE TABLE table_name_39 (player VARCHAR, country VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_39 WHERE country = "united states" AND to_par = "–3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (player VARCHAR, country VARCHAR, to_par VARCHAR) Question: WHo has a Country of united states and a To par of –3? [/INST] SELECT player FROM table_name_39 WHERE country = "united states" AND to_pa... |
What power plant was commissioned in 2008? | CREATE TABLE table_name_97 (power_plant VARCHAR, year_of_commission VARCHAR) | SELECT power_plant FROM table_name_97 WHERE year_of_commission = 2008 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (power_plant VARCHAR, year_of_commission VARCHAR) Question: What power plant was commissioned in 2008? [/INST] SELECT power_plant FROM table_name_97 WHERE year_of_commission = 2008 </s> |
What is the Nominated work of popularity award (actor in a motion picture)? | CREATE TABLE table_name_29 (nominated_work VARCHAR, category VARCHAR) | SELECT nominated_work FROM table_name_29 WHERE category = "popularity award (actor in a motion picture)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (nominated_work VARCHAR, category VARCHAR) Question: What is the Nominated work of popularity award (actor in a motion picture)? [/INST] SELECT nominated_work FROM table_name_29 WHERE category = "p... |
What is the game site of the game with the san diego chargers as the opponent? | CREATE TABLE table_name_83 (game_site VARCHAR, opponent VARCHAR) | SELECT game_site FROM table_name_83 WHERE opponent = "san diego chargers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (game_site VARCHAR, opponent VARCHAR) Question: What is the game site of the game with the san diego chargers as the opponent? [/INST] SELECT game_site FROM table_name_83 WHERE opponent = "san dieg... |
What is the first round when team 1 was toulouse fc (d1)? | CREATE TABLE table_name_44 (team_1 VARCHAR) | SELECT 1 AS st_round FROM table_name_44 WHERE team_1 = "toulouse fc (d1)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (team_1 VARCHAR) Question: What is the first round when team 1 was toulouse fc (d1)? [/INST] SELECT 1 AS st_round FROM table_name_44 WHERE team_1 = "toulouse fc (d1)" </s> |
What is Shahar Pe'er's record? | CREATE TABLE table_name_57 (record VARCHAR, player VARCHAR) | SELECT record FROM table_name_57 WHERE player = "shahar pe'er" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (record VARCHAR, player VARCHAR) Question: What is Shahar Pe'er's record? [/INST] SELECT record FROM table_name_57 WHERE player = "shahar pe'er" </s> |
Which country placed t3 and had the player Fred Couples? | CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_37 WHERE place = "t3" AND player = "fred couples" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR) Question: Which country placed t3 and had the player Fred Couples? [/INST] SELECT country FROM table_name_37 WHERE place = "t3" AND player = "fred c... |
What is the to par for Fred Couples when the score is 68-66=134? | CREATE TABLE table_name_74 (to_par VARCHAR, player VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_74 WHERE score = 68 - 66 = 134 AND player = "fred couples" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (to_par VARCHAR, player VARCHAR, score VARCHAR) Question: What is the to par for Fred Couples when the score is 68-66=134? [/INST] SELECT to_par FROM table_name_74 WHERE score = 68 - 66 = 134 AND p... |
Which country scored 66-68=134? | CREATE TABLE table_name_60 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_60 WHERE score = 66 - 68 = 134 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (country VARCHAR, score VARCHAR) Question: Which country scored 66-68=134? [/INST] SELECT country FROM table_name_60 WHERE score = 66 - 68 = 134 </s> |
What did Fred Couples place? | CREATE TABLE table_name_61 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_61 WHERE player = "fred couples" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (place VARCHAR, player VARCHAR) Question: What did Fred Couples place? [/INST] SELECT place FROM table_name_61 WHERE player = "fred couples" </s> |
What player scored 68-66=134? | CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_50 WHERE score = 68 - 66 = 134 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR) Question: What player scored 68-66=134? [/INST] SELECT player FROM table_name_50 WHERE score = 68 - 66 = 134 </s> |
What Player has a To par of +5 with a Score of 70-70-71-74=285? | CREATE TABLE table_name_12 (player VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT player FROM table_name_12 WHERE to_par = "+5" AND score = 70 - 70 - 71 - 74 = 285 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (player VARCHAR, to_par VARCHAR, score VARCHAR) Question: What Player has a To par of +5 with a Score of 70-70-71-74=285? [/INST] SELECT player FROM table_name_12 WHERE to_par = "+5" AND score = 70... |
What is the Place of the Player with a Score of 73-67-74-71=285? | CREATE TABLE table_name_88 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_88 WHERE score = 73 - 67 - 74 - 71 = 285 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (place VARCHAR, score VARCHAR) Question: What is the Place of the Player with a Score of 73-67-74-71=285? [/INST] SELECT place FROM table_name_88 WHERE score = 73 - 67 - 74 - 71 = 285 </s> |
What T9 Place Player had a Score of 73-67-74-71=285? | CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_92 WHERE place = "t9" AND score = 73 - 67 - 74 - 71 = 285 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, score VARCHAR) Question: What T9 Place Player had a Score of 73-67-74-71=285? [/INST] SELECT player FROM table_name_92 WHERE place = "t9" AND score = 73 - 67 - 74 - ... |
Who is the player with a t8 place? | CREATE TABLE table_name_53 (player VARCHAR, place VARCHAR) | SELECT player FROM table_name_53 WHERE place = "t8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (player VARCHAR, place VARCHAR) Question: Who is the player with a t8 place? [/INST] SELECT player FROM table_name_53 WHERE place = "t8" </s> |
What is the average amount of money of players in t8 place with a 68-71-69-72=280 score? | CREATE TABLE table_name_53 (money___ INTEGER, place VARCHAR, score VARCHAR) | SELECT AVG(money___) AS $__ FROM table_name_53 WHERE place = "t8" AND score = 68 - 71 - 69 - 72 = 280 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (money___ INTEGER, place VARCHAR, score VARCHAR) Question: What is the average amount of money of players in t8 place with a 68-71-69-72=280 score? [/INST] SELECT AVG(money___) AS $__ FROM table_na... |
What is the country of player vijay singh? | CREATE TABLE table_name_59 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_59 WHERE player = "vijay singh" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (country VARCHAR, player VARCHAR) Question: What is the country of player vijay singh? [/INST] SELECT country FROM table_name_59 WHERE player = "vijay singh" </s> |
What is the Result F-A that was the quarter-final first leg round with a H/A of h? | CREATE TABLE table_name_96 (result_f_a VARCHAR, h___a VARCHAR, round VARCHAR) | SELECT result_f_a FROM table_name_96 WHERE h___a = "h" AND round = "quarter-final first leg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (result_f_a VARCHAR, h___a VARCHAR, round VARCHAR) Question: What is the Result F-A that was the quarter-final first leg round with a H/A of h? [/INST] SELECT result_f_a FROM table_name_96 WHERE h_... |
What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1? | CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR, score VARCHAR, decision VARCHAR) | SELECT opponent FROM table_name_13 WHERE score = "3 - 2" AND decision = "raycroft" AND record = "25-29-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR, score VARCHAR, decision VARCHAR) Question: What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1? [/INST] SELEC... |
Which Position has a League from of western hockey league, and a Team from of everett silvertips? | CREATE TABLE table_name_90 (position VARCHAR, league_from VARCHAR, team_from VARCHAR) | SELECT position FROM table_name_90 WHERE league_from = "western hockey league" AND team_from = "everett silvertips" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (position VARCHAR, league_from VARCHAR, team_from VARCHAR) Question: Which Position has a League from of western hockey league, and a Team from of everett silvertips? [/INST] SELECT position FROM t... |
Which Player has a Position of rw, and a League from of western hockey league? | CREATE TABLE table_name_13 (player VARCHAR, position VARCHAR, league_from VARCHAR) | SELECT player FROM table_name_13 WHERE position = "rw" AND league_from = "western hockey league" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (player VARCHAR, position VARCHAR, league_from VARCHAR) Question: Which Player has a Position of rw, and a League from of western hockey league? [/INST] SELECT player FROM table_name_13 WHERE posit... |
Which Pick # has a Nationality of canada, and a Team from of sudbury wolves? | CREATE TABLE table_name_44 (pick__number INTEGER, nationality VARCHAR, team_from VARCHAR) | SELECT MIN(pick__number) FROM table_name_44 WHERE nationality = "canada" AND team_from = "sudbury wolves" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (pick__number INTEGER, nationality VARCHAR, team_from VARCHAR) Question: Which Pick # has a Nationality of canada, and a Team from of sudbury wolves? [/INST] SELECT MIN(pick__number) FROM table_nam... |
Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion? | CREATE TABLE table_name_61 (pick__number VARCHAR, team_from VARCHAR, league_from VARCHAR, nationality VARCHAR) | SELECT COUNT(pick__number) FROM table_name_61 WHERE league_from = "ontario hockey league" AND nationality = "united states" AND team_from = "brampton battalion" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (pick__number VARCHAR, team_from VARCHAR, league_from VARCHAR, nationality VARCHAR) Question: Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team fro... |
Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross? | CREATE TABLE table_name_95 (league_from VARCHAR, player VARCHAR, position VARCHAR, pick__number VARCHAR) | SELECT league_from FROM table_name_95 WHERE position = "lw" AND pick__number > 34 AND player = "bradley ross" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (league_from VARCHAR, player VARCHAR, position VARCHAR, pick__number VARCHAR) Question: Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross? [/INST] SELECT... |
Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47? | CREATE TABLE table_name_99 (position VARCHAR, team_from VARCHAR, pick__number VARCHAR) | SELECT position FROM table_name_99 WHERE team_from = "ottawa 67's" AND pick__number < 47 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (position VARCHAR, team_from VARCHAR, pick__number VARCHAR) Question: Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47? [/INST] SELECT position FROM table_name_99 WHERE t... |
Who is the republican Incumbent for Pennsylvania 9? | CREATE TABLE table_name_10 (incumbent VARCHAR, party VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_10 WHERE party = "republican" AND district = "pennsylvania 9" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (incumbent VARCHAR, party VARCHAR, district VARCHAR) Question: Who is the republican Incumbent for Pennsylvania 9? [/INST] SELECT incumbent FROM table_name_10 WHERE party = "republican" AND distric... |
What are the results for Bill Shuster? | CREATE TABLE table_name_71 (results VARCHAR, incumbent VARCHAR) | SELECT results FROM table_name_71 WHERE incumbent = "bill shuster" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (results VARCHAR, incumbent VARCHAR) Question: What are the results for Bill Shuster? [/INST] SELECT results FROM table_name_71 WHERE incumbent = "bill shuster" </s> |
What is the greatest first elected for Pennsylvania 10? | CREATE TABLE table_name_56 (first_elected INTEGER, district VARCHAR) | SELECT MAX(first_elected) FROM table_name_56 WHERE district = "pennsylvania 10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (first_elected INTEGER, district VARCHAR) Question: What is the greatest first elected for Pennsylvania 10? [/INST] SELECT MAX(first_elected) FROM table_name_56 WHERE district = "pennsylvania 10" <... |
What country had a Finish of t8? | CREATE TABLE table_name_59 (country VARCHAR, finish VARCHAR) | SELECT country FROM table_name_59 WHERE finish = "t8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (country VARCHAR, finish VARCHAR) Question: What country had a Finish of t8? [/INST] SELECT country FROM table_name_59 WHERE finish = "t8" </s> |
What Player had a To Par of +2? | CREATE TABLE table_name_78 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_78 WHERE to_par = "+2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (player VARCHAR, to_par VARCHAR) Question: What Player had a To Par of +2? [/INST] SELECT player FROM table_name_78 WHERE to_par = "+2" </s> |
What is the To Par of the player with a t8 Finish? | CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR) | SELECT to_par FROM table_name_32 WHERE finish = "t8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR) Question: What is the To Par of the player with a t8 Finish? [/INST] SELECT to_par FROM table_name_32 WHERE finish = "t8" </s> |
How tall is the building built in 1985 with 22 floors? | CREATE TABLE table_name_44 (height_ft__m_ VARCHAR, floors VARCHAR, year VARCHAR) | SELECT height_ft__m_ FROM table_name_44 WHERE floors = 22 AND year = 1985 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (height_ft__m_ VARCHAR, floors VARCHAR, year VARCHAR) Question: How tall is the building built in 1985 with 22 floors? [/INST] SELECT height_ft__m_ FROM table_name_44 WHERE floors = 22 AND year = 1... |
How tall is the building ranked #13? | CREATE TABLE table_name_5 (height_ft__m_ VARCHAR, rank VARCHAR) | SELECT height_ft__m_ FROM table_name_5 WHERE rank = "13" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (height_ft__m_ VARCHAR, rank VARCHAR) Question: How tall is the building ranked #13? [/INST] SELECT height_ft__m_ FROM table_name_5 WHERE rank = "13" </s> |
Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World? | CREATE TABLE table_name_82 (miss_universe_philippines VARCHAR, first_runner_up VARCHAR, binibining_pilipinas_world VARCHAR) | SELECT miss_universe_philippines FROM table_name_82 WHERE first_runner_up = "danielle castaño" AND binibining_pilipinas_world = "janina san miguel" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (miss_universe_philippines VARCHAR, first_runner_up VARCHAR, binibining_pilipinas_world VARCHAR) Question: Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina... |
Who won Miss Universe Philippines when Regina Hahn was second runner-up? | CREATE TABLE table_name_86 (miss_universe_philippines VARCHAR, second_runner_up VARCHAR) | SELECT miss_universe_philippines FROM table_name_86 WHERE second_runner_up = "regina hahn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (miss_universe_philippines VARCHAR, second_runner_up VARCHAR) Question: Who won Miss Universe Philippines when Regina Hahn was second runner-up? [/INST] SELECT miss_universe_philippines FROM table_... |
When Bianca Manalo won Miss Universe Philippines who was the second runner-up? | CREATE TABLE table_name_46 (second_runner_up VARCHAR, miss_universe_philippines VARCHAR) | SELECT second_runner_up FROM table_name_46 WHERE miss_universe_philippines = "bianca manalo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (second_runner_up VARCHAR, miss_universe_philippines VARCHAR) Question: When Bianca Manalo won Miss Universe Philippines who was the second runner-up? [/INST] SELECT second_runner_up FROM table_nam... |
What order has the title Deacon of SS. Cosma E Damiano? | CREATE TABLE table_name_18 (order VARCHAR, title VARCHAR) | SELECT order FROM table_name_18 WHERE title = "deacon of ss. cosma e damiano" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (order VARCHAR, title VARCHAR) Question: What order has the title Deacon of SS. Cosma E Damiano? [/INST] SELECT order FROM table_name_18 WHERE title = "deacon of ss. cosma e damiano" </s> |
What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"? | CREATE TABLE table_name_25 (tournament VARCHAR) | SELECT 2009 FROM table_name_25 WHERE 2008 = "a" AND 2011 = "a" AND tournament = "paris masters" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (tournament VARCHAR) Question: What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"? [/INST] SELECT 2009 FROM table_name_25 WHERE 2008 = "a" AND 2011 = "a" AND t... |
What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"? | CREATE TABLE table_name_91 (tournament VARCHAR) | SELECT 2008 FROM table_name_91 WHERE 2009 = "a" AND tournament = "madrid masters" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (tournament VARCHAR) Question: What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"? [/INST] SELECT 2008 FROM table_name_91 WHERE 2009 = "a" AND tournament = "madrid masters" </s... |
What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"? | CREATE TABLE table_name_16 (tournament VARCHAR) | SELECT tournament FROM table_name_16 WHERE 2012 = "a" AND 2011 = "a" AND 2008 = "a" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (tournament VARCHAR) Question: What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"? [/INST] SELECT tournament FROM table_name_16 WHERE 2012 = "a" AND 2011 = "a" AND 2008 = ... |
What is 2009, when 2011 is "Q2"? | CREATE TABLE table_name_62 (Id VARCHAR) | SELECT 2009 FROM table_name_62 WHERE 2011 = "q2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (Id VARCHAR) Question: What is 2009, when 2011 is "Q2"? [/INST] SELECT 2009 FROM table_name_62 WHERE 2011 = "q2" </s> |
What is 2011, when Tournament is "Year-End Ranking"? | CREATE TABLE table_name_39 (tournament VARCHAR) | SELECT 2011 FROM table_name_39 WHERE tournament = "year-end ranking" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (tournament VARCHAR) Question: What is 2011, when Tournament is "Year-End Ranking"? [/INST] SELECT 2011 FROM table_name_39 WHERE tournament = "year-end ranking" </s> |
What was Mark O'Meara's total? | CREATE TABLE table_name_40 (total VARCHAR, player VARCHAR) | SELECT total FROM table_name_40 WHERE player = "mark o'meara" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (total VARCHAR, player VARCHAR) Question: What was Mark O'Meara's total? [/INST] SELECT total FROM table_name_40 WHERE player = "mark o'meara" </s> |
What year did Tom Watson win? | CREATE TABLE table_name_87 (year_s__won VARCHAR, player VARCHAR) | SELECT year_s__won FROM table_name_87 WHERE player = "tom watson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (year_s__won VARCHAR, player VARCHAR) Question: What year did Tom Watson win? [/INST] SELECT year_s__won FROM table_name_87 WHERE player = "tom watson" </s> |
Who was the 1st member elected in 1511/12? | CREATE TABLE table_name_53 (elected VARCHAR) | SELECT 1 AS st_member FROM table_name_53 WHERE elected = "1511/12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (elected VARCHAR) Question: Who was the 1st member elected in 1511/12? [/INST] SELECT 1 AS st_member FROM table_name_53 WHERE elected = "1511/12" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.