instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What is the average number of bronze medals with 1 silver, 5 gold, and over 6 total medals?
|
CREATE TABLE table_name_85 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
|
SELECT AVG(bronze) FROM table_name_85 WHERE silver = 1 AND gold = 5 AND total < 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR) Question: What is the average number of bronze medals with 1 silver, 5 gold, and over 6 total medals? [/INST] SELECT AVG(bronze) FROM table_name_85 WHERE silver = 1 AND gold = 5 AND total < 6 </s>
|
What is the highest rank with less than 2 bronze, more than 1 gold, and less than 1 silver?
|
CREATE TABLE table_name_35 (rank INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
|
SELECT MAX(rank) FROM table_name_35 WHERE bronze < 2 AND gold > 1 AND silver < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (rank INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) Question: What is the highest rank with less than 2 bronze, more than 1 gold, and less than 1 silver? [/INST] SELECT MAX(rank) FROM table_name_35 WHERE bronze < 2 AND gold > 1 AND silver < 1 </s>
|
Who remixed an album of dance remixes?
|
CREATE TABLE table_name_50 (remixed_by VARCHAR, album VARCHAR)
|
SELECT remixed_by FROM table_name_50 WHERE album = "dance remixes"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (remixed_by VARCHAR, album VARCHAR) Question: Who remixed an album of dance remixes? [/INST] SELECT remixed_by FROM table_name_50 WHERE album = "dance remixes" </s>
|
Who remixed a music video in 1985?
|
CREATE TABLE table_name_22 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)
|
SELECT remixed_by FROM table_name_22 WHERE year = 1985 AND version = "music video"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (remixed_by VARCHAR, year VARCHAR, version VARCHAR) Question: Who remixed a music video in 1985? [/INST] SELECT remixed_by FROM table_name_22 WHERE year = 1985 AND version = "music video" </s>
|
What year was Mother's Live remix created?
|
CREATE TABLE table_name_46 (year INTEGER, version VARCHAR)
|
SELECT SUM(year) FROM table_name_46 WHERE version = "mother's live remix"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (year INTEGER, version VARCHAR) Question: What year was Mother's Live remix created? [/INST] SELECT SUM(year) FROM table_name_46 WHERE version = "mother's live remix" </s>
|
Which position ranked 10th overall?
|
CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR)
|
SELECT position FROM table_name_7 WHERE pick = "10th overall"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR) Question: Which position ranked 10th overall? [/INST] SELECT position FROM table_name_7 WHERE pick = "10th overall" </s>
|
Which player played wide receiver after 2008?
|
CREATE TABLE table_name_17 (player VARCHAR, year VARCHAR, position VARCHAR)
|
SELECT player FROM table_name_17 WHERE year > 2008 AND position = "wide receiver"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (player VARCHAR, year VARCHAR, position VARCHAR) Question: Which player played wide receiver after 2008? [/INST] SELECT player FROM table_name_17 WHERE year > 2008 AND position = "wide receiver" </s>
|
Which Player has a Date of 13 july 2007?
|
CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR)
|
SELECT player FROM table_name_41 WHERE date = "13 july 2007"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR) Question: Which Player has a Date of 13 july 2007? [/INST] SELECT player FROM table_name_41 WHERE date = "13 july 2007" </s>
|
Which Player had a Date of 31 jan. 2008, and a Transfer fee of £3.87m?
|
CREATE TABLE table_name_44 (player VARCHAR, date VARCHAR, transfer_fee VARCHAR)
|
SELECT player FROM table_name_44 WHERE date = "31 jan. 2008" AND transfer_fee = "£3.87m"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (player VARCHAR, date VARCHAR, transfer_fee VARCHAR) Question: Which Player had a Date of 31 jan. 2008, and a Transfer fee of £3.87m? [/INST] SELECT player FROM table_name_44 WHERE date = "31 jan. 2008" AND transfer_fee = "£3.87m" </s>
|
Which Date had a Transfer fee of £8.8m?
|
CREATE TABLE table_name_45 (date VARCHAR, transfer_fee VARCHAR)
|
SELECT date FROM table_name_45 WHERE transfer_fee = "£8.8m"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (date VARCHAR, transfer_fee VARCHAR) Question: Which Date had a Transfer fee of £8.8m? [/INST] SELECT date FROM table_name_45 WHERE transfer_fee = "£8.8m" </s>
|
Which From club had a Transfer fee of £3.87m?
|
CREATE TABLE table_name_40 (from_club VARCHAR, transfer_fee VARCHAR)
|
SELECT from_club FROM table_name_40 WHERE transfer_fee = "£3.87m"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (from_club VARCHAR, transfer_fee VARCHAR) Question: Which From club had a Transfer fee of £3.87m? [/INST] SELECT from_club FROM table_name_40 WHERE transfer_fee = "£3.87m" </s>
|
Which Player had a From club of atlético madrid?
|
CREATE TABLE table_name_36 (player VARCHAR, from_club VARCHAR)
|
SELECT player FROM table_name_36 WHERE from_club = "atlético madrid"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (player VARCHAR, from_club VARCHAR) Question: Which Player had a From club of atlético madrid? [/INST] SELECT player FROM table_name_36 WHERE from_club = "atlético madrid" </s>
|
What is the decision of the game larger than 6.
|
CREATE TABLE table_name_82 (decision VARCHAR, game INTEGER)
|
SELECT decision FROM table_name_82 WHERE game > 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (decision VARCHAR, game INTEGER) Question: What is the decision of the game larger than 6. [/INST] SELECT decision FROM table_name_82 WHERE game > 6 </s>
|
On May 8 what series is it?
|
CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR)
|
SELECT series FROM table_name_41 WHERE date = "may 8"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR) Question: On May 8 what series is it? [/INST] SELECT series FROM table_name_41 WHERE date = "may 8" </s>
|
Which KOREAN has a CHINESE of 師子菩提 / shīzǐpútí?
|
CREATE TABLE table_name_51 (korean VARCHAR, chinese VARCHAR)
|
SELECT korean FROM table_name_51 WHERE chinese = "師子菩提 / shīzǐpútí"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (korean VARCHAR, chinese VARCHAR) Question: Which KOREAN has a CHINESE of 師子菩提 / shīzǐpútí? [/INST] SELECT korean FROM table_name_51 WHERE chinese = "師子菩提 / shīzǐpútí" </s>
|
Which JAPANESE has a KOREAN of 상나화수 / sanahwasa?
|
CREATE TABLE table_name_92 (japanese VARCHAR, korean VARCHAR)
|
SELECT japanese FROM table_name_92 WHERE korean = "상나화수 / sanahwasa"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (japanese VARCHAR, korean VARCHAR) Question: Which JAPANESE has a KOREAN of 상나화수 / sanahwasa? [/INST] SELECT japanese FROM table_name_92 WHERE korean = "상나화수 / sanahwasa" </s>
|
Which SANSKRT has a CHINESE of 摩拏羅 / mónáluó?
|
CREATE TABLE table_name_76 (sanskrt VARCHAR, chinese VARCHAR)
|
SELECT sanskrt FROM table_name_76 WHERE chinese = "摩拏羅 / mónáluó"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (sanskrt VARCHAR, chinese VARCHAR) Question: Which SANSKRT has a CHINESE of 摩拏羅 / mónáluó? [/INST] SELECT sanskrt FROM table_name_76 WHERE chinese = "摩拏羅 / mónáluó" </s>
|
Which SANSKRT has a JAPANESE of jayana?
|
CREATE TABLE table_name_38 (sanskrt VARCHAR, japanese VARCHAR)
|
SELECT sanskrt FROM table_name_38 WHERE japanese = "jayana"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (sanskrt VARCHAR, japanese VARCHAR) Question: Which SANSKRT has a JAPANESE of jayana? [/INST] SELECT sanskrt FROM table_name_38 WHERE japanese = "jayana" </s>
|
Which VIETNAMESE has a CHINESE of 婆須密 / póxūmì?
|
CREATE TABLE table_name_35 (vietnamese VARCHAR, chinese VARCHAR)
|
SELECT vietnamese FROM table_name_35 WHERE chinese = "婆須密 / póxūmì"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (vietnamese VARCHAR, chinese VARCHAR) Question: Which VIETNAMESE has a CHINESE of 婆須密 / póxūmì? [/INST] SELECT vietnamese FROM table_name_35 WHERE chinese = "婆須密 / póxūmì" </s>
|
Which VIETNAMESE has a CHINESE of 不如密多 / bùrúmìduō?
|
CREATE TABLE table_name_25 (vietnamese VARCHAR, chinese VARCHAR)
|
SELECT vietnamese FROM table_name_25 WHERE chinese = "不如密多 / bùrúmìduō"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (vietnamese VARCHAR, chinese VARCHAR) Question: Which VIETNAMESE has a CHINESE of 不如密多 / bùrúmìduō? [/INST] SELECT vietnamese FROM table_name_25 WHERE chinese = "不如密多 / bùrúmìduō" </s>
|
What is the mean pick number for Iowa College when the overall is less than 200?
|
CREATE TABLE table_name_77 (pick__number INTEGER, college VARCHAR, overall VARCHAR)
|
SELECT AVG(pick__number) FROM table_name_77 WHERE college = "iowa" AND overall < 200
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (pick__number INTEGER, college VARCHAR, overall VARCHAR) Question: What is the mean pick number for Iowa College when the overall is less than 200? [/INST] SELECT AVG(pick__number) FROM table_name_77 WHERE college = "iowa" AND overall < 200 </s>
|
What was the result on 26 October 1993?
|
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
|
SELECT result FROM table_name_36 WHERE date = "26 october 1993"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR) Question: What was the result on 26 October 1993? [/INST] SELECT result FROM table_name_36 WHERE date = "26 october 1993" </s>
|
Who was the Away team on the result of 1-5 aet?
|
CREATE TABLE table_name_61 (away VARCHAR, result VARCHAR)
|
SELECT away FROM table_name_61 WHERE result = "1-5 aet"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (away VARCHAR, result VARCHAR) Question: Who was the Away team on the result of 1-5 aet? [/INST] SELECT away FROM table_name_61 WHERE result = "1-5 aet" </s>
|
What season had a date of 30 august 1980
|
CREATE TABLE table_name_54 (season VARCHAR, date VARCHAR)
|
SELECT season FROM table_name_54 WHERE date = "30 august 1980"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (season VARCHAR, date VARCHAR) Question: What season had a date of 30 august 1980 [/INST] SELECT season FROM table_name_54 WHERE date = "30 august 1980" </s>
|
What round had a home of FC augsburg with the result of 3-0?
|
CREATE TABLE table_name_9 (round VARCHAR, home VARCHAR, result VARCHAR)
|
SELECT round FROM table_name_9 WHERE home = "fc augsburg" AND result = "3-0"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (round VARCHAR, home VARCHAR, result VARCHAR) Question: What round had a home of FC augsburg with the result of 3-0? [/INST] SELECT round FROM table_name_9 WHERE home = "fc augsburg" AND result = "3-0" </s>
|
What is the office held by member Mark Coulton?
|
CREATE TABLE table_name_58 (in_office VARCHAR, member VARCHAR)
|
SELECT in_office FROM table_name_58 WHERE member = "mark coulton"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (in_office VARCHAR, member VARCHAR) Question: What is the office held by member Mark Coulton? [/INST] SELECT in_office FROM table_name_58 WHERE member = "mark coulton" </s>
|
What office is held by Electorate Hume?
|
CREATE TABLE table_name_71 (in_office VARCHAR, electorate VARCHAR)
|
SELECT in_office FROM table_name_71 WHERE electorate = "hume"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (in_office VARCHAR, electorate VARCHAR) Question: What office is held by Electorate Hume? [/INST] SELECT in_office FROM table_name_71 WHERE electorate = "hume" </s>
|
Which memeber has nt as the state?
|
CREATE TABLE table_name_7 (member VARCHAR, state VARCHAR)
|
SELECT member FROM table_name_7 WHERE state = "nt"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (member VARCHAR, state VARCHAR) Question: Which memeber has nt as the state? [/INST] SELECT member FROM table_name_7 WHERE state = "nt" </s>
|
Which memeber has nsw as the state, a first elected of 1952, and alp as the party?
|
CREATE TABLE table_name_64 (member VARCHAR, party VARCHAR, state VARCHAR, first_elected VARCHAR)
|
SELECT member FROM table_name_64 WHERE state = "nsw" AND first_elected = "1952" AND party = "alp"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (member VARCHAR, party VARCHAR, state VARCHAR, first_elected VARCHAR) Question: Which memeber has nsw as the state, a first elected of 1952, and alp as the party? [/INST] SELECT member FROM table_name_64 WHERE state = "nsw" AND first_elected = "1952" AND party = "alp" </s>
|
Which party has wa as the state, and hon victor garland as the memeber?
|
CREATE TABLE table_name_14 (party VARCHAR, state VARCHAR, member VARCHAR)
|
SELECT party FROM table_name_14 WHERE state = "wa" AND member = "hon victor garland"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (party VARCHAR, state VARCHAR, member VARCHAR) Question: Which party has wa as the state, and hon victor garland as the memeber? [/INST] SELECT party FROM table_name_14 WHERE state = "wa" AND member = "hon victor garland" </s>
|
Which party has a first elected of 1966, qld as the state, and donald milner cameron as the member?
|
CREATE TABLE table_name_25 (party VARCHAR, member VARCHAR, first_elected VARCHAR, state VARCHAR)
|
SELECT party FROM table_name_25 WHERE first_elected = "1966" AND state = "qld" AND member = "donald milner cameron"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (party VARCHAR, member VARCHAR, first_elected VARCHAR, state VARCHAR) Question: Which party has a first elected of 1966, qld as the state, and donald milner cameron as the member? [/INST] SELECT party FROM table_name_25 WHERE first_elected = "1966" AND state = "qld" AND member = "donald milner cameron" </s>
|
Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand?
|
CREATE TABLE table_name_70 (member VARCHAR, electorate VARCHAR, state VARCHAR, first_elected VARCHAR, party VARCHAR)
|
SELECT member FROM table_name_70 WHERE first_elected = "1972" AND party = "alp" AND state = "vic" AND electorate = "gellibrand"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (member VARCHAR, electorate VARCHAR, state VARCHAR, first_elected VARCHAR, party VARCHAR) Question: Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand? [/INST] SELECT member FROM table_name_70 WHERE first_elected = "1972" AND party = "alp" AND state = "vic" AND electorate = "gellibrand" </s>
|
Where was the game played with a 2013 left and Royals nickname?
|
CREATE TABLE table_name_13 (location VARCHAR, left VARCHAR, nickname VARCHAR)
|
SELECT location FROM table_name_13 WHERE left = "2013" AND nickname = "royals"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (location VARCHAR, left VARCHAR, nickname VARCHAR) Question: Where was the game played with a 2013 left and Royals nickname? [/INST] SELECT location FROM table_name_13 WHERE left = "2013" AND nickname = "royals" </s>
|
What joined that was founded prior to year 1856 and whose current conference is the Big South (NCAA Division I)?
|
CREATE TABLE table_name_2 (joined VARCHAR, founded VARCHAR, current_conference VARCHAR)
|
SELECT joined FROM table_name_2 WHERE founded < 1856 AND current_conference = "big south (ncaa division i)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (joined VARCHAR, founded VARCHAR, current_conference VARCHAR) Question: What joined that was founded prior to year 1856 and whose current conference is the Big South (NCAA Division I)? [/INST] SELECT joined FROM table_name_2 WHERE founded < 1856 AND current_conference = "big south (ncaa division i)" </s>
|
What is the total number of teams founded that were left in 1976?
|
CREATE TABLE table_name_47 (founded INTEGER, left VARCHAR)
|
SELECT SUM(founded) FROM table_name_47 WHERE left = "1976"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (founded INTEGER, left VARCHAR) Question: What is the total number of teams founded that were left in 1976? [/INST] SELECT SUM(founded) FROM table_name_47 WHERE left = "1976" </s>
|
What is the Set 1 when the date is 08 jul, and a Set 2 of 25–21?
|
CREATE TABLE table_name_33 (set_1 VARCHAR, date VARCHAR, set_2 VARCHAR)
|
SELECT set_1 FROM table_name_33 WHERE date = "08 jul" AND set_2 = "25–21"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (set_1 VARCHAR, date VARCHAR, set_2 VARCHAR) Question: What is the Set 1 when the date is 08 jul, and a Set 2 of 25–21? [/INST] SELECT set_1 FROM table_name_33 WHERE date = "08 jul" AND set_2 = "25–21" </s>
|
What is the Score for Set 2 of 24–26?
|
CREATE TABLE table_name_71 (score VARCHAR, set_2 VARCHAR)
|
SELECT score FROM table_name_71 WHERE set_2 = "24–26"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (score VARCHAR, set_2 VARCHAR) Question: What is the Score for Set 2 of 24–26? [/INST] SELECT score FROM table_name_71 WHERE set_2 = "24–26" </s>
|
What shows for Report hen there is a set 1 of 19–25?
|
CREATE TABLE table_name_15 (report VARCHAR, set_1 VARCHAR)
|
SELECT report FROM table_name_15 WHERE set_1 = "19–25"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (report VARCHAR, set_1 VARCHAR) Question: What shows for Report hen there is a set 1 of 19–25? [/INST] SELECT report FROM table_name_15 WHERE set_1 = "19–25" </s>
|
What is the Date with a Time of 17:37, and the Set 4 is 25–15?
|
CREATE TABLE table_name_38 (date VARCHAR, time VARCHAR, set_4 VARCHAR)
|
SELECT date FROM table_name_38 WHERE time = "17:37" AND set_4 = "25–15"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (date VARCHAR, time VARCHAR, set_4 VARCHAR) Question: What is the Date with a Time of 17:37, and the Set 4 is 25–15? [/INST] SELECT date FROM table_name_38 WHERE time = "17:37" AND set_4 = "25–15" </s>
|
What is the Report with a Score of 3–1, and Set 1 is 19–25?
|
CREATE TABLE table_name_12 (report VARCHAR, score VARCHAR, set_1 VARCHAR)
|
SELECT report FROM table_name_12 WHERE score = "3–1" AND set_1 = "19–25"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (report VARCHAR, score VARCHAR, set_1 VARCHAR) Question: What is the Report with a Score of 3–1, and Set 1 is 19–25? [/INST] SELECT report FROM table_name_12 WHERE score = "3–1" AND set_1 = "19–25" </s>
|
What is the Report for 08 jul, and a Score of 3–1?
|
CREATE TABLE table_name_79 (report VARCHAR, date VARCHAR, score VARCHAR)
|
SELECT report FROM table_name_79 WHERE date = "08 jul" AND score = "3–1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (report VARCHAR, date VARCHAR, score VARCHAR) Question: What is the Report for 08 jul, and a Score of 3–1? [/INST] SELECT report FROM table_name_79 WHERE date = "08 jul" AND score = "3–1" </s>
|
What is the Nation with a Record that is 7.39?
|
CREATE TABLE table_name_37 (nation VARCHAR, record VARCHAR)
|
SELECT nation FROM table_name_37 WHERE record = "7.39"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (nation VARCHAR, record VARCHAR) Question: What is the Nation with a Record that is 7.39? [/INST] SELECT nation FROM table_name_37 WHERE record = "7.39" </s>
|
What is the Date with a Record that is 7.39?
|
CREATE TABLE table_name_87 (date VARCHAR, record VARCHAR)
|
SELECT date FROM table_name_87 WHERE record = "7.39"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (date VARCHAR, record VARCHAR) Question: What is the Date with a Record that is 7.39? [/INST] SELECT date FROM table_name_87 WHERE record = "7.39" </s>
|
What is Episode, when XII Season is 4 118 160 (26 september 2010)?
|
CREATE TABLE table_name_23 (episode VARCHAR, xii_season VARCHAR)
|
SELECT episode FROM table_name_23 WHERE xii_season = "4 118 160 (26 september 2010)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (episode VARCHAR, xii_season VARCHAR) Question: What is Episode, when XII Season is 4 118 160 (26 september 2010)? [/INST] SELECT episode FROM table_name_23 WHERE xii_season = "4 118 160 (26 september 2010)" </s>
|
What is VII Season, when Episode is 11?
|
CREATE TABLE table_name_29 (vii_season VARCHAR, episode VARCHAR)
|
SELECT vii_season FROM table_name_29 WHERE episode = "11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (vii_season VARCHAR, episode VARCHAR) Question: What is VII Season, when Episode is 11? [/INST] SELECT vii_season FROM table_name_29 WHERE episode = "11" </s>
|
What is XII Season, when Episode is 6?
|
CREATE TABLE table_name_57 (xii_season VARCHAR, episode VARCHAR)
|
SELECT xii_season FROM table_name_57 WHERE episode = "6"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (xii_season VARCHAR, episode VARCHAR) Question: What is XII Season, when Episode is 6? [/INST] SELECT xii_season FROM table_name_57 WHERE episode = "6" </s>
|
What is Episode, when VIII Season is 5 082 535 (19 October 2008)?
|
CREATE TABLE table_name_83 (episode VARCHAR, viii_season VARCHAR)
|
SELECT episode FROM table_name_83 WHERE viii_season = "5 082 535 (19 october 2008)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (episode VARCHAR, viii_season VARCHAR) Question: What is Episode, when VIII Season is 5 082 535 (19 October 2008)? [/INST] SELECT episode FROM table_name_83 WHERE viii_season = "5 082 535 (19 october 2008)" </s>
|
What is XIII Season, when VIII Season is 4 780 743 (2 november 2008)?
|
CREATE TABLE table_name_82 (xiii_season VARCHAR, viii_season VARCHAR)
|
SELECT xiii_season FROM table_name_82 WHERE viii_season = "4 780 743 (2 november 2008)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (xiii_season VARCHAR, viii_season VARCHAR) Question: What is XIII Season, when VIII Season is 4 780 743 (2 november 2008)? [/INST] SELECT xiii_season FROM table_name_82 WHERE viii_season = "4 780 743 (2 november 2008)" </s>
|
Which Lost has Points of 28 and a Drawn smaller than 8?
|
CREATE TABLE table_name_47 (lost INTEGER, points VARCHAR, drawn VARCHAR)
|
SELECT AVG(lost) FROM table_name_47 WHERE points = 28 AND drawn < 8
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (lost INTEGER, points VARCHAR, drawn VARCHAR) Question: Which Lost has Points of 28 and a Drawn smaller than 8? [/INST] SELECT AVG(lost) FROM table_name_47 WHERE points = 28 AND drawn < 8 </s>
|
How many Againsts have Points larger than 31 and a Drawn larger than 6?
|
CREATE TABLE table_name_96 (against VARCHAR, points VARCHAR, drawn VARCHAR)
|
SELECT COUNT(against) FROM table_name_96 WHERE points > 31 AND drawn > 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (against VARCHAR, points VARCHAR, drawn VARCHAR) Question: How many Againsts have Points larger than 31 and a Drawn larger than 6? [/INST] SELECT COUNT(against) FROM table_name_96 WHERE points > 31 AND drawn > 6 </s>
|
What is the highest number of votes for McCain in a county that voted 1.6% for other, 40.5% for McCain, and fewer than 256,299 votes for Obama?
|
CREATE TABLE table_name_47 (mccain_number INTEGER, obama_number VARCHAR, others_percentage VARCHAR, mccain_percentage VARCHAR)
|
SELECT MAX(mccain_number) FROM table_name_47 WHERE others_percentage = "1.6%" AND mccain_percentage = "40.5%" AND obama_number < 256 OFFSET 299 ROWS
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (mccain_number INTEGER, obama_number VARCHAR, others_percentage VARCHAR, mccain_percentage VARCHAR) Question: What is the highest number of votes for McCain in a county that voted 1.6% for other, 40.5% for McCain, and fewer than 256,299 votes for Obama? [/INST] SELECT MAX(mccain_number) FROM table_name_47 WHERE others_percentage = "1.6%" AND mccain_percentage = "40.5%" AND obama_number < 256 OFFSET 299 ROWS </s>
|
What is the Round with 1 Behinds?
|
CREATE TABLE table_name_50 (round VARCHAR, behinds VARCHAR)
|
SELECT round FROM table_name_50 WHERE behinds = 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (round VARCHAR, behinds VARCHAR) Question: What is the Round with 1 Behinds? [/INST] SELECT round FROM table_name_50 WHERE behinds = 1 </s>
|
What is the goals for Round 15?
|
CREATE TABLE table_name_29 (goals VARCHAR, round VARCHAR)
|
SELECT goals FROM table_name_29 WHERE round = "round 15"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (goals VARCHAR, round VARCHAR) Question: What is the goals for Round 15? [/INST] SELECT goals FROM table_name_29 WHERE round = "round 15" </s>
|
What was the Attendance on 31 January 1987?
|
CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR)
|
SELECT COUNT(attendance) FROM table_name_44 WHERE date = "31 january 1987"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR) Question: What was the Attendance on 31 January 1987? [/INST] SELECT COUNT(attendance) FROM table_name_44 WHERE date = "31 january 1987" </s>
|
What was the location and attendance with a score of w 89–86 (ot)?
|
CREATE TABLE table_name_62 (location_attendance VARCHAR, score VARCHAR)
|
SELECT location_attendance FROM table_name_62 WHERE score = "w 89–86 (ot)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (location_attendance VARCHAR, score VARCHAR) Question: What was the location and attendance with a score of w 89–86 (ot)? [/INST] SELECT location_attendance FROM table_name_62 WHERE score = "w 89–86 (ot)" </s>
|
How many games had a score of l 91–95 (ot)?
|
CREATE TABLE table_name_24 (game VARCHAR, score VARCHAR)
|
SELECT COUNT(game) FROM table_name_24 WHERE score = "l 91–95 (ot)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (game VARCHAR, score VARCHAR) Question: How many games had a score of l 91–95 (ot)? [/INST] SELECT COUNT(game) FROM table_name_24 WHERE score = "l 91–95 (ot)" </s>
|
What is the name of the player for the 2010-2011 season, from a Free Agency and is Number 14?
|
CREATE TABLE table_name_13 (name VARCHAR, number VARCHAR, season VARCHAR, acquisition_via VARCHAR)
|
SELECT name FROM table_name_13 WHERE season = "2010-2011" AND acquisition_via = "free agency" AND number = "14"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (name VARCHAR, number VARCHAR, season VARCHAR, acquisition_via VARCHAR) Question: What is the name of the player for the 2010-2011 season, from a Free Agency and is Number 14? [/INST] SELECT name FROM table_name_13 WHERE season = "2010-2011" AND acquisition_via = "free agency" AND number = "14" </s>
|
Which season had a trade with the school/club team La Salle?
|
CREATE TABLE table_name_5 (season VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR)
|
SELECT season FROM table_name_5 WHERE acquisition_via = "trade" AND school_club_team = "la salle"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (season VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR) Question: Which season had a trade with the school/club team La Salle? [/INST] SELECT season FROM table_name_5 WHERE acquisition_via = "trade" AND school_club_team = "la salle" </s>
|
Who is the position for the 2009-2010 season, number 1?
|
CREATE TABLE table_name_26 (position VARCHAR, season VARCHAR, number VARCHAR)
|
SELECT position FROM table_name_26 WHERE season = "2009-2010" AND number = "1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (position VARCHAR, season VARCHAR, number VARCHAR) Question: Who is the position for the 2009-2010 season, number 1? [/INST] SELECT position FROM table_name_26 WHERE season = "2009-2010" AND number = "1" </s>
|
What is the name for the forward in the 2009-2010 season?
|
CREATE TABLE table_name_63 (name VARCHAR, position VARCHAR, season VARCHAR)
|
SELECT name FROM table_name_63 WHERE position = "forward" AND season = "2009-2010"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (name VARCHAR, position VARCHAR, season VARCHAR) Question: What is the name for the forward in the 2009-2010 season? [/INST] SELECT name FROM table_name_63 WHERE position = "forward" AND season = "2009-2010" </s>
|
What is the number for the forward position from the school/club team La Salle?
|
CREATE TABLE table_name_90 (number VARCHAR, position VARCHAR, school_club_team VARCHAR)
|
SELECT number FROM table_name_90 WHERE position = "forward" AND school_club_team = "la salle"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (number VARCHAR, position VARCHAR, school_club_team VARCHAR) Question: What is the number for the forward position from the school/club team La Salle? [/INST] SELECT number FROM table_name_90 WHERE position = "forward" AND school_club_team = "la salle" </s>
|
Who is the position from the school/club Far Eastern?
|
CREATE TABLE table_name_73 (position VARCHAR, school_club_team VARCHAR)
|
SELECT position FROM table_name_73 WHERE school_club_team = "far eastern"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (position VARCHAR, school_club_team VARCHAR) Question: Who is the position from the school/club Far Eastern? [/INST] SELECT position FROM table_name_73 WHERE school_club_team = "far eastern" </s>
|
What is the highest number of games played for teams with 3 draws, 5 losses, and under 39 points?
|
CREATE TABLE table_name_64 (games_played INTEGER, points VARCHAR, draws VARCHAR, loses VARCHAR)
|
SELECT MAX(games_played) FROM table_name_64 WHERE draws = 3 AND loses = 5 AND points < 39
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (games_played INTEGER, points VARCHAR, draws VARCHAR, loses VARCHAR) Question: What is the highest number of games played for teams with 3 draws, 5 losses, and under 39 points? [/INST] SELECT MAX(games_played) FROM table_name_64 WHERE draws = 3 AND loses = 5 AND points < 39 </s>
|
What is the highest number of losses for teams with under 3 draws and 51 points?
|
CREATE TABLE table_name_49 (loses INTEGER, draws VARCHAR, points VARCHAR)
|
SELECT MAX(loses) FROM table_name_49 WHERE draws < 3 AND points = 51
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (loses INTEGER, draws VARCHAR, points VARCHAR) Question: What is the highest number of losses for teams with under 3 draws and 51 points? [/INST] SELECT MAX(loses) FROM table_name_49 WHERE draws < 3 AND points = 51 </s>
|
Tell me the record for a time in seconds smaller than 5.22.
|
CREATE TABLE table_name_45 (record VARCHAR, time__seconds_ INTEGER)
|
SELECT record FROM table_name_45 WHERE time__seconds_ < 5.22
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (record VARCHAR, time__seconds_ INTEGER) Question: Tell me the record for a time in seconds smaller than 5.22. [/INST] SELECT record FROM table_name_45 WHERE time__seconds_ < 5.22 </s>
|
What sport was played on November 14, 2009?
|
CREATE TABLE table_name_27 (sport VARCHAR, date VARCHAR)
|
SELECT sport FROM table_name_27 WHERE date = "november 14, 2009"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (sport VARCHAR, date VARCHAR) Question: What sport was played on November 14, 2009? [/INST] SELECT sport FROM table_name_27 WHERE date = "november 14, 2009" </s>
|
Whose Visitor has a Record of 3–18?
|
CREATE TABLE table_name_20 (visitor VARCHAR, record VARCHAR)
|
SELECT visitor FROM table_name_20 WHERE record = "3–18"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (visitor VARCHAR, record VARCHAR) Question: Whose Visitor has a Record of 3–18? [/INST] SELECT visitor FROM table_name_20 WHERE record = "3–18" </s>
|
When has a Leading scorer of ricky davis (20)?
|
CREATE TABLE table_name_48 (date VARCHAR, leading_scorer VARCHAR)
|
SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (20)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (date VARCHAR, leading_scorer VARCHAR) Question: When has a Leading scorer of ricky davis (20)? [/INST] SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (20)" </s>
|
Which Home has a Leading scorer of dajuan wagner (25) and a Score of 89–82? Question 3
|
CREATE TABLE table_name_79 (home VARCHAR, leading_scorer VARCHAR, score VARCHAR)
|
SELECT home FROM table_name_79 WHERE leading_scorer = "dajuan wagner (25)" AND score = "89–82"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (home VARCHAR, leading_scorer VARCHAR, score VARCHAR) Question: Which Home has a Leading scorer of dajuan wagner (25) and a Score of 89–82? Question 3 [/INST] SELECT home FROM table_name_79 WHERE leading_scorer = "dajuan wagner (25)" AND score = "89–82" </s>
|
When has a Visitor of bulls?
|
CREATE TABLE table_name_1 (date VARCHAR, visitor VARCHAR)
|
SELECT date FROM table_name_1 WHERE visitor = "bulls"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (date VARCHAR, visitor VARCHAR) Question: When has a Visitor of bulls? [/INST] SELECT date FROM table_name_1 WHERE visitor = "bulls" </s>
|
Which Visitor has a Home of bulls?
|
CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR)
|
SELECT visitor FROM table_name_64 WHERE home = "bulls"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR) Question: Which Visitor has a Home of bulls? [/INST] SELECT visitor FROM table_name_64 WHERE home = "bulls" </s>
|
WHich Home is on 14 december 2002?
|
CREATE TABLE table_name_18 (home VARCHAR, date VARCHAR)
|
SELECT home FROM table_name_18 WHERE date = "14 december 2002"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (home VARCHAR, date VARCHAR) Question: WHich Home is on 14 december 2002? [/INST] SELECT home FROM table_name_18 WHERE date = "14 december 2002" </s>
|
What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29?
|
CREATE TABLE table_name_1 (profession VARCHAR, name VARCHAR, entered_the_house VARCHAR, evicted VARCHAR)
|
SELECT profession FROM table_name_1 WHERE entered_the_house = "day 1" AND evicted = "day 29" AND name = "skaj vikler"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (profession VARCHAR, name VARCHAR, entered_the_house VARCHAR, evicted VARCHAR) Question: What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29? [/INST] SELECT profession FROM table_name_1 WHERE entered_the_house = "day 1" AND evicted = "day 29" AND name = "skaj vikler" </s>
|
What is the profession of the housemate from Leskovac city?
|
CREATE TABLE table_name_90 (profession VARCHAR, city VARCHAR)
|
SELECT profession FROM table_name_90 WHERE city = "leskovac"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (profession VARCHAR, city VARCHAR) Question: What is the profession of the housemate from Leskovac city? [/INST] SELECT profession FROM table_name_90 WHERE city = "leskovac" </s>
|
When did slađana pejić, who was evicted on day 29, enter the house?
|
CREATE TABLE table_name_82 (entered_the_house VARCHAR, evicted VARCHAR, name VARCHAR)
|
SELECT entered_the_house FROM table_name_82 WHERE evicted = "day 29" AND name = "slađana pejić"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (entered_the_house VARCHAR, evicted VARCHAR, name VARCHAR) Question: When did slađana pejić, who was evicted on day 29, enter the house? [/INST] SELECT entered_the_house FROM table_name_82 WHERE evicted = "day 29" AND name = "slađana pejić" </s>
|
What is slađana pejić's profession?
|
CREATE TABLE table_name_4 (profession VARCHAR, name VARCHAR)
|
SELECT profession FROM table_name_4 WHERE name = "slađana pejić"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (profession VARCHAR, name VARCHAR) Question: What is slađana pejić's profession? [/INST] SELECT profession FROM table_name_4 WHERE name = "slađana pejić" </s>
|
What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from?
|
CREATE TABLE table_name_84 (city VARCHAR, entered_the_house VARCHAR, profession VARCHAR)
|
SELECT city FROM table_name_84 WHERE entered_the_house = "day 1" AND profession = "tv presenter"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (city VARCHAR, entered_the_house VARCHAR, profession VARCHAR) Question: What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from? [/INST] SELECT city FROM table_name_84 WHERE entered_the_house = "day 1" AND profession = "tv presenter" </s>
|
What is the profession of the housemate from Leskovac city?
|
CREATE TABLE table_name_87 (profession VARCHAR, city VARCHAR)
|
SELECT profession FROM table_name_87 WHERE city = "leskovac"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (profession VARCHAR, city VARCHAR) Question: What is the profession of the housemate from Leskovac city? [/INST] SELECT profession FROM table_name_87 WHERE city = "leskovac" </s>
|
What is the home team of the UEFA cup in the 2000-2001 season with a second round?
|
CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)
|
SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR) Question: What is the home team of the UEFA cup in the 2000-2001 season with a second round? [/INST] SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round" </s>
|
What is the away team of the UEFA champions league?
|
CREATE TABLE table_name_67 (away VARCHAR, competition VARCHAR)
|
SELECT away FROM table_name_67 WHERE competition = "uefa champions league"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (away VARCHAR, competition VARCHAR) Question: What is the away team of the UEFA champions league? [/INST] SELECT away FROM table_name_67 WHERE competition = "uefa champions league" </s>
|
Which Position has a League of southern league premier division, and a Season of 2004–05?
|
CREATE TABLE table_name_90 (position VARCHAR, league VARCHAR, season VARCHAR)
|
SELECT position FROM table_name_90 WHERE league = "southern league premier division" AND season = "2004–05"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (position VARCHAR, league VARCHAR, season VARCHAR) Question: Which Position has a League of southern league premier division, and a Season of 2004–05? [/INST] SELECT position FROM table_name_90 WHERE league = "southern league premier division" AND season = "2004–05" </s>
|
Which Draw has a Season of 2001–02, and Points larger than 47?
|
CREATE TABLE table_name_45 (draw INTEGER, season VARCHAR, points VARCHAR)
|
SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (draw INTEGER, season VARCHAR, points VARCHAR) Question: Which Draw has a Season of 2001–02, and Points larger than 47? [/INST] SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47 </s>
|
Which Lost is the highest one that has a Season of 2001–02, and Points larger than 47?
|
CREATE TABLE table_name_58 (lost INTEGER, season VARCHAR, points VARCHAR)
|
SELECT MAX(lost) FROM table_name_58 WHERE season = "2001–02" AND points > 47
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (lost INTEGER, season VARCHAR, points VARCHAR) Question: Which Lost is the highest one that has a Season of 2001–02, and Points larger than 47? [/INST] SELECT MAX(lost) FROM table_name_58 WHERE season = "2001–02" AND points > 47 </s>
|
How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver?
|
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)
|
SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = "germany" AND silver < 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR) Question: How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver? [/INST] SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = "germany" AND silver < 5 </s>
|
Which Place has Phil Mickelson as the Player?
|
CREATE TABLE table_name_67 (place VARCHAR, player VARCHAR)
|
SELECT place FROM table_name_67 WHERE player = "phil mickelson"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (place VARCHAR, player VARCHAR) Question: Which Place has Phil Mickelson as the Player? [/INST] SELECT place FROM table_name_67 WHERE player = "phil mickelson" </s>
|
What is the To Par for Player Chris Riley?
|
CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR)
|
SELECT to_par FROM table_name_62 WHERE player = "chris riley"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR) Question: What is the To Par for Player Chris Riley? [/INST] SELECT to_par FROM table_name_62 WHERE player = "chris riley" </s>
|
Which Player has a Place of T2 and a Country listed as Fiji?
|
CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, country VARCHAR)
|
SELECT player FROM table_name_33 WHERE place = "t2" AND country = "fiji"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, country VARCHAR) Question: Which Player has a Place of T2 and a Country listed as Fiji? [/INST] SELECT player FROM table_name_33 WHERE place = "t2" AND country = "fiji" </s>
|
What is the average Height when the weight is less than 91 and the position is d, and a Birthdate of july 4, 1975?
|
CREATE TABLE table_name_66 (height__cm_ INTEGER, birthdate VARCHAR, weight__kg_ VARCHAR, position VARCHAR)
|
SELECT AVG(height__cm_) FROM table_name_66 WHERE weight__kg_ < 91 AND position = "d" AND birthdate = "july 4, 1975"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (height__cm_ INTEGER, birthdate VARCHAR, weight__kg_ VARCHAR, position VARCHAR) Question: What is the average Height when the weight is less than 91 and the position is d, and a Birthdate of july 4, 1975? [/INST] SELECT AVG(height__cm_) FROM table_name_66 WHERE weight__kg_ < 91 AND position = "d" AND birthdate = "july 4, 1975" </s>
|
What is the sum of Weight for the person born in virginia, minnesota?
|
CREATE TABLE table_name_39 (weight__kg_ INTEGER, birthplace VARCHAR)
|
SELECT SUM(weight__kg_) FROM table_name_39 WHERE birthplace = "virginia, minnesota"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (weight__kg_ INTEGER, birthplace VARCHAR) Question: What is the sum of Weight for the person born in virginia, minnesota? [/INST] SELECT SUM(weight__kg_) FROM table_name_39 WHERE birthplace = "virginia, minnesota" </s>
|
What is the Birthdate for the person with a height less than 191, and weight of 84 kg?
|
CREATE TABLE table_name_23 (birthdate VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR)
|
SELECT birthdate FROM table_name_23 WHERE height__cm_ < 191 AND weight__kg_ = 84
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (birthdate VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR) Question: What is the Birthdate for the person with a height less than 191, and weight of 84 kg? [/INST] SELECT birthdate FROM table_name_23 WHERE height__cm_ < 191 AND weight__kg_ = 84 </s>
|
What is the Position with a height of less than 183, and a weight of less than 91 kg and born in bloomington, minnesota?
|
CREATE TABLE table_name_73 (position VARCHAR, birthplace VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR)
|
SELECT position FROM table_name_73 WHERE height__cm_ < 183 AND weight__kg_ < 91 AND birthplace = "bloomington, minnesota"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (position VARCHAR, birthplace VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR) Question: What is the Position with a height of less than 183, and a weight of less than 91 kg and born in bloomington, minnesota? [/INST] SELECT position FROM table_name_73 WHERE height__cm_ < 183 AND weight__kg_ < 91 AND birthplace = "bloomington, minnesota" </s>
|
Which claimant's rank is 200?
|
CREATE TABLE table_name_7 (claimant VARCHAR, rank VARCHAR)
|
SELECT claimant FROM table_name_7 WHERE rank = 200
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (claimant VARCHAR, rank VARCHAR) Question: Which claimant's rank is 200? [/INST] SELECT claimant FROM table_name_7 WHERE rank = 200 </s>
|
What is the most points for South Ossetia?
|
CREATE TABLE table_name_46 (highest_point VARCHAR, country VARCHAR)
|
SELECT highest_point FROM table_name_46 WHERE country = "south ossetia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (highest_point VARCHAR, country VARCHAR) Question: What is the most points for South Ossetia? [/INST] SELECT highest_point FROM table_name_46 WHERE country = "south ossetia" </s>
|
Which highest rank belongs to the palestinian territories?
|
CREATE TABLE table_name_85 (rank INTEGER, country VARCHAR)
|
SELECT MAX(rank) FROM table_name_85 WHERE country = "palestinian territories"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (rank INTEGER, country VARCHAR) Question: Which highest rank belongs to the palestinian territories? [/INST] SELECT MAX(rank) FROM table_name_85 WHERE country = "palestinian territories" </s>
|
What is the highest amount of points for rank 95?
|
CREATE TABLE table_name_49 (highest_point VARCHAR, rank VARCHAR)
|
SELECT highest_point FROM table_name_49 WHERE rank = 95
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (highest_point VARCHAR, rank VARCHAR) Question: What is the highest amount of points for rank 95? [/INST] SELECT highest_point FROM table_name_49 WHERE rank = 95 </s>
|
What season had a .439 Win% in the 1996-97 Team?
|
CREATE TABLE table_name_39 (season VARCHAR, win_percentage VARCHAR, team VARCHAR)
|
SELECT season FROM table_name_39 WHERE win_percentage = ".439" AND team = "1996-97"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (season VARCHAR, win_percentage VARCHAR, team VARCHAR) Question: What season had a .439 Win% in the 1996-97 Team? [/INST] SELECT season FROM table_name_39 WHERE win_percentage = ".439" AND team = "1996-97" </s>
|
What conference is the 1973-74 team in the Atlantic Division (Div.)?
|
CREATE TABLE table_name_95 (conference__conf_ VARCHAR, division__div_ VARCHAR, team VARCHAR)
|
SELECT conference__conf_ FROM table_name_95 WHERE division__div_ = "atlantic" AND team = "1973-74"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (conference__conf_ VARCHAR, division__div_ VARCHAR, team VARCHAR) Question: What conference is the 1973-74 team in the Atlantic Division (Div.)? [/INST] SELECT conference__conf_ FROM table_name_95 WHERE division__div_ = "atlantic" AND team = "1973-74" </s>
|
Which season has a .354 Win%?
|
CREATE TABLE table_name_6 (season VARCHAR, win_percentage VARCHAR)
|
SELECT season FROM table_name_6 WHERE win_percentage = ".354"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (season VARCHAR, win_percentage VARCHAR) Question: Which season has a .354 Win%? [/INST] SELECT season FROM table_name_6 WHERE win_percentage = ".354" </s>
|
What is the Win% of the 1989-90 Team?
|
CREATE TABLE table_name_44 (win_percentage VARCHAR, team VARCHAR)
|
SELECT win_percentage FROM table_name_44 WHERE team = "1989-90"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (win_percentage VARCHAR, team VARCHAR) Question: What is the Win% of the 1989-90 Team? [/INST] SELECT win_percentage FROM table_name_44 WHERE team = "1989-90" </s>
|
What is the High rebounds with a Team that is charlotte?
|
CREATE TABLE table_name_68 (high_rebounds VARCHAR, team VARCHAR)
|
SELECT high_rebounds FROM table_name_68 WHERE team = "charlotte"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (high_rebounds VARCHAR, team VARCHAR) Question: What is the High rebounds with a Team that is charlotte? [/INST] SELECT high_rebounds FROM table_name_68 WHERE team = "charlotte" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.