instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What Location has a Team Nickname called the Fighting Missionaries?
|
CREATE TABLE table_name_13 (location VARCHAR, team_nickname VARCHAR)
|
SELECT location FROM table_name_13 WHERE team_nickname = "fighting missionaries"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (location VARCHAR, team_nickname VARCHAR) Question: What Location has a Team Nickname called the Fighting Missionaries? [/INST] SELECT location FROM table_name_13 WHERE team_nickname = "fighting missionaries" </s>
|
The Loggers are part of what Primary Conference?
|
CREATE TABLE table_name_60 (primary_conference VARCHAR, team_nickname VARCHAR)
|
SELECT primary_conference FROM table_name_60 WHERE team_nickname = "loggers"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (primary_conference VARCHAR, team_nickname VARCHAR) Question: The Loggers are part of what Primary Conference? [/INST] SELECT primary_conference FROM table_name_60 WHERE team_nickname = "loggers" </s>
|
What is the Enrollment at Whitman College Founded after 1859?
|
CREATE TABLE table_name_6 (enrollment INTEGER, institution VARCHAR, founded VARCHAR)
|
SELECT AVG(enrollment) FROM table_name_6 WHERE institution = "whitman college" AND founded > 1859
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (enrollment INTEGER, institution VARCHAR, founded VARCHAR) Question: What is the Enrollment at Whitman College Founded after 1859? [/INST] SELECT AVG(enrollment) FROM table_name_6 WHERE institution = "whitman college" AND founded > 1859 </s>
|
What was the attendance when the opponent was virginia?
|
CREATE TABLE table_name_96 (attendance INTEGER, opponent VARCHAR)
|
SELECT SUM(attendance) FROM table_name_96 WHERE opponent = "virginia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (attendance INTEGER, opponent VARCHAR) Question: What was the attendance when the opponent was virginia? [/INST] SELECT SUM(attendance) FROM table_name_96 WHERE opponent = "virginia" </s>
|
What was the date when the opponent was at South carolina?
|
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
|
SELECT date FROM table_name_8 WHERE opponent = "at south carolina"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) Question: What was the date when the opponent was at South carolina? [/INST] SELECT date FROM table_name_8 WHERE opponent = "at south carolina" </s>
|
What was the highest attendance when the result was L 6-28?
|
CREATE TABLE table_name_40 (attendance INTEGER, result VARCHAR)
|
SELECT MAX(attendance) FROM table_name_40 WHERE result = "l 6-28"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (attendance INTEGER, result VARCHAR) Question: What was the highest attendance when the result was L 6-28? [/INST] SELECT MAX(attendance) FROM table_name_40 WHERE result = "l 6-28" </s>
|
What was the earliest week the Titans played at Ford Field?
|
CREATE TABLE table_name_62 (week INTEGER, game_site VARCHAR)
|
SELECT MIN(week) FROM table_name_62 WHERE game_site = "ford field"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (week INTEGER, game_site VARCHAR) Question: What was the earliest week the Titans played at Ford Field? [/INST] SELECT MIN(week) FROM table_name_62 WHERE game_site = "ford field" </s>
|
When did the Titans play the Houston Texans at LP Field before Week 13?
|
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
|
SELECT date FROM table_name_68 WHERE week < 13 AND game_site = "lp field" AND opponent = "houston texans"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR) Question: When did the Titans play the Houston Texans at LP Field before Week 13? [/INST] SELECT date FROM table_name_68 WHERE week < 13 AND game_site = "lp field" AND opponent = "houston texans" </s>
|
What is the highest average for a long less than 24, a GP-GS of 2-0, and less than 7 yards?
|
CREATE TABLE table_name_93 (avg_g INTEGER, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)
|
SELECT MAX(avg_g) FROM table_name_93 WHERE long < 24 AND gp_gs = "2-0" AND yards < 7
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (avg_g INTEGER, yards VARCHAR, long VARCHAR, gp_gs VARCHAR) Question: What is the highest average for a long less than 24, a GP-GS of 2-0, and less than 7 yards? [/INST] SELECT MAX(avg_g) FROM table_name_93 WHERE long < 24 AND gp_gs = "2-0" AND yards < 7 </s>
|
What is the sum for the long that has 926 yards and an avg/g less than 84.2?
|
CREATE TABLE table_name_47 (long INTEGER, yards VARCHAR, avg_g VARCHAR)
|
SELECT SUM(long) FROM table_name_47 WHERE yards = 926 AND avg_g < 84.2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (long INTEGER, yards VARCHAR, avg_g VARCHAR) Question: What is the sum for the long that has 926 yards and an avg/g less than 84.2? [/INST] SELECT SUM(long) FROM table_name_47 WHERE yards = 926 AND avg_g < 84.2 </s>
|
What is the total number of avg/g with a long of 50, a gp-gs of 3-0, and 926 yards?
|
CREATE TABLE table_name_72 (avg_g VARCHAR, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)
|
SELECT COUNT(avg_g) FROM table_name_72 WHERE long = 50 AND gp_gs = "3-0" AND yards > 926
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (avg_g VARCHAR, yards VARCHAR, long VARCHAR, gp_gs VARCHAR) Question: What is the total number of avg/g with a long of 50, a gp-gs of 3-0, and 926 yards? [/INST] SELECT COUNT(avg_g) FROM table_name_72 WHERE long = 50 AND gp_gs = "3-0" AND yards > 926 </s>
|
Which motorway is in brod-posavina county and has a scheduled completion in 2013?
|
CREATE TABLE table_name_68 (motorway VARCHAR, scheduled_completion VARCHAR, county VARCHAR)
|
SELECT motorway FROM table_name_68 WHERE scheduled_completion = "2013" AND county = "brod-posavina"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (motorway VARCHAR, scheduled_completion VARCHAR, county VARCHAR) Question: Which motorway is in brod-posavina county and has a scheduled completion in 2013? [/INST] SELECT motorway FROM table_name_68 WHERE scheduled_completion = "2013" AND county = "brod-posavina" </s>
|
Which built by HM Dockyard has September 1830 as the laid down?
|
CREATE TABLE table_name_43 (built_by_hm_dockyard VARCHAR, laid_down VARCHAR)
|
SELECT built_by_hm_dockyard FROM table_name_43 WHERE laid_down = "september 1830"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (built_by_hm_dockyard VARCHAR, laid_down VARCHAR) Question: Which built by HM Dockyard has September 1830 as the laid down? [/INST] SELECT built_by_hm_dockyard FROM table_name_43 WHERE laid_down = "september 1830" </s>
|
What is the name that has July 1823 as the Laid down, and portsmouth as the built by hm dockyard?
|
CREATE TABLE table_name_96 (name VARCHAR, laid_down VARCHAR, built_by_hm_dockyard VARCHAR)
|
SELECT name FROM table_name_96 WHERE laid_down = "july 1823" AND built_by_hm_dockyard = "portsmouth"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (name VARCHAR, laid_down VARCHAR, built_by_hm_dockyard VARCHAR) Question: What is the name that has July 1823 as the Laid down, and portsmouth as the built by hm dockyard? [/INST] SELECT name FROM table_name_96 WHERE laid_down = "july 1823" AND built_by_hm_dockyard = "portsmouth" </s>
|
What ordered has helena as the name?
|
CREATE TABLE table_name_87 (ordered VARCHAR, name VARCHAR)
|
SELECT ordered FROM table_name_87 WHERE name = "helena"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (ordered VARCHAR, name VARCHAR) Question: What ordered has helena as the name? [/INST] SELECT ordered FROM table_name_87 WHERE name = "helena" </s>
|
What ordered has algerine (2nd of name) as the name?
|
CREATE TABLE table_name_73 (ordered VARCHAR, name VARCHAR)
|
SELECT ordered FROM table_name_73 WHERE name = "algerine (2nd of name)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (ordered VARCHAR, name VARCHAR) Question: What ordered has algerine (2nd of name) as the name? [/INST] SELECT ordered FROM table_name_73 WHERE name = "algerine (2nd of name)" </s>
|
What name has pembroke as the built by hm dockyard, and may 1825 as the laid down?
|
CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR)
|
SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = "pembroke" AND laid_down = "may 1825"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR) Question: What name has pembroke as the built by hm dockyard, and may 1825 as the laid down? [/INST] SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = "pembroke" AND laid_down = "may 1825" </s>
|
How many match values have points under 14 and 0 draws?
|
CREATE TABLE table_name_23 (match VARCHAR, points VARCHAR, draw VARCHAR)
|
SELECT COUNT(match) FROM table_name_23 WHERE points < 14 AND draw < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (match VARCHAR, points VARCHAR, draw VARCHAR) Question: How many match values have points under 14 and 0 draws? [/INST] SELECT COUNT(match) FROM table_name_23 WHERE points < 14 AND draw < 0 </s>
|
What is the sum of losses for teams with under 10 matches?
|
CREATE TABLE table_name_5 (lost INTEGER, match INTEGER)
|
SELECT SUM(lost) FROM table_name_5 WHERE match < 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (lost INTEGER, match INTEGER) Question: What is the sum of losses for teams with under 10 matches? [/INST] SELECT SUM(lost) FROM table_name_5 WHERE match < 10 </s>
|
What is the average number of draws for teams with more than 10 matches?
|
CREATE TABLE table_name_47 (draw INTEGER, match INTEGER)
|
SELECT AVG(draw) FROM table_name_47 WHERE match > 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (draw INTEGER, match INTEGER) Question: What is the average number of draws for teams with more than 10 matches? [/INST] SELECT AVG(draw) FROM table_name_47 WHERE match > 10 </s>
|
What is the sum of points for teams with more than 10 matches, more than 0 draws, and 7 losses?
|
CREATE TABLE table_name_86 (points INTEGER, match VARCHAR, draw VARCHAR, lost VARCHAR)
|
SELECT SUM(points) FROM table_name_86 WHERE draw > 0 AND lost = 7 AND match > 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (points INTEGER, match VARCHAR, draw VARCHAR, lost VARCHAR) Question: What is the sum of points for teams with more than 10 matches, more than 0 draws, and 7 losses? [/INST] SELECT SUM(points) FROM table_name_86 WHERE draw > 0 AND lost = 7 AND match > 10 </s>
|
Which season's average was 37.5?
|
CREATE TABLE table_name_31 (season VARCHAR, average VARCHAR)
|
SELECT season FROM table_name_31 WHERE average = 37.5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (season VARCHAR, average VARCHAR) Question: Which season's average was 37.5? [/INST] SELECT season FROM table_name_31 WHERE average = 37.5 </s>
|
How many ranks had marcin mroczek as the celebrity in a season more recent than 4?
|
CREATE TABLE table_name_13 (rank VARCHAR, celebrity VARCHAR, season VARCHAR)
|
SELECT COUNT(rank) FROM table_name_13 WHERE celebrity = "marcin mroczek" AND season > 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (rank VARCHAR, celebrity VARCHAR, season VARCHAR) Question: How many ranks had marcin mroczek as the celebrity in a season more recent than 4? [/INST] SELECT COUNT(rank) FROM table_name_13 WHERE celebrity = "marcin mroczek" AND season > 4 </s>
|
What is the highest population in 1991 in Baden Bei Wien, and a 2007 population larger than 25,284?
|
CREATE TABLE table_name_13 (population_1991 INTEGER, name VARCHAR, population_2007 VARCHAR)
|
SELECT MAX(population_1991) FROM table_name_13 WHERE name = "baden bei wien" AND population_2007 > 25 OFFSET 284 ROWS
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (population_1991 INTEGER, name VARCHAR, population_2007 VARCHAR) Question: What is the highest population in 1991 in Baden Bei Wien, and a 2007 population larger than 25,284? [/INST] SELECT MAX(population_1991) FROM table_name_13 WHERE name = "baden bei wien" AND population_2007 > 25 OFFSET 284 ROWS </s>
|
What is the Director for the episode titled “some lapse of time”?
|
CREATE TABLE table_name_85 (director VARCHAR, title VARCHAR)
|
SELECT director FROM table_name_85 WHERE title = "“some lapse of time”"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (director VARCHAR, title VARCHAR) Question: What is the Director for the episode titled “some lapse of time”? [/INST] SELECT director FROM table_name_85 WHERE title = "“some lapse of time”" </s>
|
What is the Airdate for the episode titled “thirteen to centaurus” Adapted by stanley miller?
|
CREATE TABLE table_name_30 (airdate VARCHAR, adapted_by VARCHAR, title VARCHAR)
|
SELECT airdate FROM table_name_30 WHERE adapted_by = "stanley miller" AND title = "“thirteen to centaurus”"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (airdate VARCHAR, adapted_by VARCHAR, title VARCHAR) Question: What is the Airdate for the episode titled “thirteen to centaurus” Adapted by stanley miller? [/INST] SELECT airdate FROM table_name_30 WHERE adapted_by = "stanley miller" AND title = "“thirteen to centaurus”" </s>
|
What 2007 number when the million CZK shows operating revenues?
|
CREATE TABLE table_name_47 (million_czk VARCHAR)
|
SELECT COUNT(2007) FROM table_name_47 WHERE million_czk = "operating revenues"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (million_czk VARCHAR) Question: What 2007 number when the million CZK shows operating revenues? [/INST] SELECT COUNT(2007) FROM table_name_47 WHERE million_czk = "operating revenues" </s>
|
What is the lowest Year with an Album that is live love in London?
|
CREATE TABLE table_name_34 (year INTEGER, album VARCHAR)
|
SELECT MIN(year) FROM table_name_34 WHERE album = "live love in london"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (year INTEGER, album VARCHAR) Question: What is the lowest Year with an Album that is live love in London? [/INST] SELECT MIN(year) FROM table_name_34 WHERE album = "live love in london" </s>
|
What is the U.S. Christian with a Year that is 1989?
|
CREATE TABLE table_name_92 (us VARCHAR, year VARCHAR)
|
SELECT us AS Christian FROM table_name_92 WHERE year = 1989
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (us VARCHAR, year VARCHAR) Question: What is the U.S. Christian with a Year that is 1989? [/INST] SELECT us AS Christian FROM table_name_92 WHERE year = 1989 </s>
|
What is the Theme when Fontella Bass was the original artist?
|
CREATE TABLE table_name_73 (theme VARCHAR, original_artist VARCHAR)
|
SELECT theme FROM table_name_73 WHERE original_artist = "fontella bass"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (theme VARCHAR, original_artist VARCHAR) Question: What is the Theme when Fontella Bass was the original artist? [/INST] SELECT theme FROM table_name_73 WHERE original_artist = "fontella bass" </s>
|
What is the Week # when the Beatles were the original artist and the theme was The Beatles?
|
CREATE TABLE table_name_18 (week__number VARCHAR, original_artist VARCHAR, theme VARCHAR)
|
SELECT week__number FROM table_name_18 WHERE original_artist = "the beatles" AND theme = "the beatles"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (week__number VARCHAR, original_artist VARCHAR, theme VARCHAR) Question: What is the Week # when the Beatles were the original artist and the theme was The Beatles? [/INST] SELECT week__number FROM table_name_18 WHERE original_artist = "the beatles" AND theme = "the beatles" </s>
|
What is the total number of top-25 in the Masters Tournament, which has 0 top-10 and more than 0 top-5?
|
CREATE TABLE table_name_16 (top_25 VARCHAR, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
|
SELECT COUNT(top_25) FROM table_name_16 WHERE top_10 = 0 AND tournament = "masters tournament" AND top_5 > 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (top_25 VARCHAR, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR) Question: What is the total number of top-25 in the Masters Tournament, which has 0 top-10 and more than 0 top-5? [/INST] SELECT COUNT(top_25) FROM table_name_16 WHERE top_10 = 0 AND tournament = "masters tournament" AND top_5 > 0 </s>
|
What is the total top-25 of the U.S. Open, which has less than 7 cuts?
|
CREATE TABLE table_name_84 (top_25 INTEGER, tournament VARCHAR, cuts_made VARCHAR)
|
SELECT SUM(top_25) FROM table_name_84 WHERE tournament = "u.s. open" AND cuts_made < 7
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (top_25 INTEGER, tournament VARCHAR, cuts_made VARCHAR) Question: What is the total top-25 of the U.S. Open, which has less than 7 cuts? [/INST] SELECT SUM(top_25) FROM table_name_84 WHERE tournament = "u.s. open" AND cuts_made < 7 </s>
|
What is the lowest top-5 of the tournament with less than 1 top-10 and less than 1 top-25?
|
CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR)
|
SELECT MIN(top_5) FROM table_name_74 WHERE top_10 < 1 AND top_25 < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR) Question: What is the lowest top-5 of the tournament with less than 1 top-10 and less than 1 top-25? [/INST] SELECT MIN(top_5) FROM table_name_74 WHERE top_10 < 1 AND top_25 < 1 </s>
|
What is the highest top-25 of the tournament with less than 22 events and more than 1 top-10?
|
CREATE TABLE table_name_11 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
|
SELECT MAX(top_25) FROM table_name_11 WHERE events < 22 AND top_10 > 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR) Question: What is the highest top-25 of the tournament with less than 22 events and more than 1 top-10? [/INST] SELECT MAX(top_25) FROM table_name_11 WHERE events < 22 AND top_10 > 1 </s>
|
What is the average amount of appearances for the Bronze Meals less than 0?
|
CREATE TABLE table_name_58 (appearances INTEGER, bronze_medals INTEGER)
|
SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (appearances INTEGER, bronze_medals INTEGER) Question: What is the average amount of appearances for the Bronze Meals less than 0? [/INST] SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0 </s>
|
How many years have HMOs been 27% and POS plans 18%?
|
CREATE TABLE table_name_54 (year VARCHAR, hmos VARCHAR, pos_plans VARCHAR)
|
SELECT COUNT(year) FROM table_name_54 WHERE hmos = "27%" AND pos_plans = "18%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (year VARCHAR, hmos VARCHAR, pos_plans VARCHAR) Question: How many years have HMOs been 27% and POS plans 18%? [/INST] SELECT COUNT(year) FROM table_name_54 WHERE hmos = "27%" AND pos_plans = "18%" </s>
|
Which conventional plan has a POS of 13%?
|
CREATE TABLE table_name_55 (conventional_plans VARCHAR, pos_plans VARCHAR)
|
SELECT conventional_plans FROM table_name_55 WHERE pos_plans = "13%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (conventional_plans VARCHAR, pos_plans VARCHAR) Question: Which conventional plan has a POS of 13%? [/INST] SELECT conventional_plans FROM table_name_55 WHERE pos_plans = "13%" </s>
|
How many years have a conventional plan of 7%?
|
CREATE TABLE table_name_24 (year INTEGER, conventional_plans VARCHAR)
|
SELECT SUM(year) FROM table_name_24 WHERE conventional_plans = "7%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (year INTEGER, conventional_plans VARCHAR) Question: How many years have a conventional plan of 7%? [/INST] SELECT SUM(year) FROM table_name_24 WHERE conventional_plans = "7%" </s>
|
Which conventional plan has a POS plan of 21%?
|
CREATE TABLE table_name_14 (conventional_plans VARCHAR, pos_plans VARCHAR)
|
SELECT conventional_plans FROM table_name_14 WHERE pos_plans = "21%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (conventional_plans VARCHAR, pos_plans VARCHAR) Question: Which conventional plan has a POS plan of 21%? [/INST] SELECT conventional_plans FROM table_name_14 WHERE pos_plans = "21%" </s>
|
Which HMO has a conventional plan of 3% in 2005?
|
CREATE TABLE table_name_96 (hmos VARCHAR, conventional_plans VARCHAR, year VARCHAR)
|
SELECT hmos FROM table_name_96 WHERE conventional_plans = "3%" AND year = 2005
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (hmos VARCHAR, conventional_plans VARCHAR, year VARCHAR) Question: Which HMO has a conventional plan of 3% in 2005? [/INST] SELECT hmos FROM table_name_96 WHERE conventional_plans = "3%" AND year = 2005 </s>
|
How many are on the administrative panel with an agricultural panel of fewer than 11 and an industrial and commercial panel of 3, with fewer than 4 on the labor panel?
|
CREATE TABLE table_name_7 (administrative_panel INTEGER, labour_panel VARCHAR, agricultural_panel VARCHAR, industrial_and_commercial_panel VARCHAR)
|
SELECT AVG(administrative_panel) FROM table_name_7 WHERE agricultural_panel < 11 AND industrial_and_commercial_panel = 3 AND labour_panel < 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (administrative_panel INTEGER, labour_panel VARCHAR, agricultural_panel VARCHAR, industrial_and_commercial_panel VARCHAR) Question: How many are on the administrative panel with an agricultural panel of fewer than 11 and an industrial and commercial panel of 3, with fewer than 4 on the labor panel? [/INST] SELECT AVG(administrative_panel) FROM table_name_7 WHERE agricultural_panel < 11 AND industrial_and_commercial_panel = 3 AND labour_panel < 4 </s>
|
Who read the unabridged book written by Gary Paulsen?
|
CREATE TABLE table_name_9 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR)
|
SELECT read_by FROM table_name_9 WHERE un__abridged = "unabridged" AND author = "gary paulsen"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR) Question: Who read the unabridged book written by Gary Paulsen? [/INST] SELECT read_by FROM table_name_9 WHERE un__abridged = "unabridged" AND author = "gary paulsen" </s>
|
Who read the unabridged novel written by John D. Fitzgerald?
|
CREATE TABLE table_name_55 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR)
|
SELECT read_by FROM table_name_55 WHERE un__abridged = "unabridged" AND author = "john d. fitzgerald"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (read_by VARCHAR, un__abridged VARCHAR, author VARCHAR) Question: Who read the unabridged novel written by John D. Fitzgerald? [/INST] SELECT read_by FROM table_name_55 WHERE un__abridged = "unabridged" AND author = "john d. fitzgerald" </s>
|
In which week was the Theme 1960s?
|
CREATE TABLE table_name_44 (week__number VARCHAR, theme VARCHAR)
|
SELECT week__number FROM table_name_44 WHERE theme = "1960s"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (week__number VARCHAR, theme VARCHAR) Question: In which week was the Theme 1960s? [/INST] SELECT week__number FROM table_name_44 WHERE theme = "1960s" </s>
|
When the week # is listed as Hollywood, and the Theme is N/A, what song is listed?
|
CREATE TABLE table_name_82 (song_choice VARCHAR, theme VARCHAR, week__number VARCHAR)
|
SELECT song_choice FROM table_name_82 WHERE theme = "n/a" AND week__number = "hollywood"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (song_choice VARCHAR, theme VARCHAR, week__number VARCHAR) Question: When the week # is listed as Hollywood, and the Theme is N/A, what song is listed? [/INST] SELECT song_choice FROM table_name_82 WHERE theme = "n/a" AND week__number = "hollywood" </s>
|
Which Theme has a Result of eliminated?
|
CREATE TABLE table_name_95 (theme VARCHAR, result VARCHAR)
|
SELECT theme FROM table_name_95 WHERE result = "eliminated"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (theme VARCHAR, result VARCHAR) Question: Which Theme has a Result of eliminated? [/INST] SELECT theme FROM table_name_95 WHERE result = "eliminated" </s>
|
Which song choice was originally performed by Bonnie Tyler?
|
CREATE TABLE table_name_23 (song_choice VARCHAR, original_artist VARCHAR)
|
SELECT song_choice FROM table_name_23 WHERE original_artist = "bonnie tyler"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (song_choice VARCHAR, original_artist VARCHAR) Question: Which song choice was originally performed by Bonnie Tyler? [/INST] SELECT song_choice FROM table_name_23 WHERE original_artist = "bonnie tyler" </s>
|
Which call sign, broadcast at less than 103.5MHz, has an ERP W of 50?
|
CREATE TABLE table_name_43 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)
|
SELECT call_sign FROM table_name_43 WHERE erp_w = 50 AND frequency_mhz < 103.5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) Question: Which call sign, broadcast at less than 103.5MHz, has an ERP W of 50? [/INST] SELECT call_sign FROM table_name_43 WHERE erp_w = 50 AND frequency_mhz < 103.5 </s>
|
What is the frequency of the call sign licensed in Albany, New York?
|
CREATE TABLE table_name_7 (frequency_mhz VARCHAR, city_of_license VARCHAR)
|
SELECT frequency_mhz FROM table_name_7 WHERE city_of_license = "albany, new york"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (frequency_mhz VARCHAR, city_of_license VARCHAR) Question: What is the frequency of the call sign licensed in Albany, New York? [/INST] SELECT frequency_mhz FROM table_name_7 WHERE city_of_license = "albany, new york" </s>
|
Which Chart peak was Recorded on 2/19/69?
|
CREATE TABLE table_name_64 (chart_peak VARCHAR, recorded VARCHAR)
|
SELECT chart_peak FROM table_name_64 WHERE recorded = "2/19/69"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (chart_peak VARCHAR, recorded VARCHAR) Question: Which Chart peak was Recorded on 2/19/69? [/INST] SELECT chart_peak FROM table_name_64 WHERE recorded = "2/19/69" </s>
|
Which Chart peak has a Time of 3:11?
|
CREATE TABLE table_name_30 (chart_peak VARCHAR, time VARCHAR)
|
SELECT chart_peak FROM table_name_30 WHERE time = "3:11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (chart_peak VARCHAR, time VARCHAR) Question: Which Chart peak has a Time of 3:11? [/INST] SELECT chart_peak FROM table_name_30 WHERE time = "3:11" </s>
|
Which Catalogue has a Writer(s) of mark james?
|
CREATE TABLE table_name_60 (catalogue VARCHAR, writer_s_ VARCHAR)
|
SELECT catalogue FROM table_name_60 WHERE writer_s_ = "mark james"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (catalogue VARCHAR, writer_s_ VARCHAR) Question: Which Catalogue has a Writer(s) of mark james? [/INST] SELECT catalogue FROM table_name_60 WHERE writer_s_ = "mark james" </s>
|
Which Track has a Writer(s) of mac davis?
|
CREATE TABLE table_name_48 (track INTEGER, writer_s_ VARCHAR)
|
SELECT AVG(track) FROM table_name_48 WHERE writer_s_ = "mac davis"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (track INTEGER, writer_s_ VARCHAR) Question: Which Track has a Writer(s) of mac davis? [/INST] SELECT AVG(track) FROM table_name_48 WHERE writer_s_ = "mac davis" </s>
|
What is the name of the country when the television service is italia 1?
|
CREATE TABLE table_name_95 (country VARCHAR, television_service VARCHAR)
|
SELECT country FROM table_name_95 WHERE television_service = "italia 1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (country VARCHAR, television_service VARCHAR) Question: What is the name of the country when the television service is italia 1? [/INST] SELECT country FROM table_name_95 WHERE television_service = "italia 1" </s>
|
What is the HDTV when the content is general television?
|
CREATE TABLE table_name_50 (hdtv VARCHAR, content VARCHAR)
|
SELECT hdtv FROM table_name_50 WHERE content = "general television"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (hdtv VARCHAR, content VARCHAR) Question: What is the HDTV when the content is general television? [/INST] SELECT hdtv FROM table_name_50 WHERE content = "general television" </s>
|
What is the Country when the Content was general television, and a Television service of rai 1?
|
CREATE TABLE table_name_87 (country VARCHAR, content VARCHAR, television_service VARCHAR)
|
SELECT country FROM table_name_87 WHERE content = "general television" AND television_service = "rai 1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (country VARCHAR, content VARCHAR, television_service VARCHAR) Question: What is the Country when the Content was general television, and a Television service of rai 1? [/INST] SELECT country FROM table_name_87 WHERE content = "general television" AND television_service = "rai 1" </s>
|
What is the Language that has sky tg 24 active as the Television service?
|
CREATE TABLE table_name_83 (language VARCHAR, television_service VARCHAR)
|
SELECT language FROM table_name_83 WHERE television_service = "sky tg 24 active"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (language VARCHAR, television_service VARCHAR) Question: What is the Language that has sky tg 24 active as the Television service? [/INST] SELECT language FROM table_name_83 WHERE television_service = "sky tg 24 active" </s>
|
What was the location of the fight when Sara McMann's record was 1-0?
|
CREATE TABLE table_name_42 (location VARCHAR, record VARCHAR)
|
SELECT location FROM table_name_42 WHERE record = "1-0"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (location VARCHAR, record VARCHAR) Question: What was the location of the fight when Sara McMann's record was 1-0? [/INST] SELECT location FROM table_name_42 WHERE record = "1-0" </s>
|
What was the record when there was a fight that lasted 5:00?
|
CREATE TABLE table_name_96 (record VARCHAR, time VARCHAR)
|
SELECT record FROM table_name_96 WHERE time = "5:00"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (record VARCHAR, time VARCHAR) Question: What was the record when there was a fight that lasted 5:00? [/INST] SELECT record FROM table_name_96 WHERE time = "5:00" </s>
|
What is the method of resolution for the fight that had a time of 5:00 and a record of 5-0?
|
CREATE TABLE table_name_57 (method VARCHAR, time VARCHAR, record VARCHAR)
|
SELECT method FROM table_name_57 WHERE time = "5:00" AND record = "5-0"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (method VARCHAR, time VARCHAR, record VARCHAR) Question: What is the method of resolution for the fight that had a time of 5:00 and a record of 5-0? [/INST] SELECT method FROM table_name_57 WHERE time = "5:00" AND record = "5-0" </s>
|
What's the average Week with the Result l 23–3?
|
CREATE TABLE table_name_49 (week INTEGER, result VARCHAR)
|
SELECT AVG(week) FROM table_name_49 WHERE result = "l 23–3"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (week INTEGER, result VARCHAR) Question: What's the average Week with the Result l 23–3? [/INST] SELECT AVG(week) FROM table_name_49 WHERE result = "l 23–3" </s>
|
With the date of October 28, 1962, and the week greater than 4, what was the lowest attendance?
|
CREATE TABLE table_name_12 (attendance INTEGER, week VARCHAR, date VARCHAR)
|
SELECT MIN(attendance) FROM table_name_12 WHERE week > 4 AND date = "october 28, 1962"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (attendance INTEGER, week VARCHAR, date VARCHAR) Question: With the date of October 28, 1962, and the week greater than 4, what was the lowest attendance? [/INST] SELECT MIN(attendance) FROM table_name_12 WHERE week > 4 AND date = "october 28, 1962" </s>
|
What Belarusian has a status of Raion a foundation of 1514 and a 2010 population of 8100?
|
CREATE TABLE table_name_73 (belarusian__bgn_pcgn_ VARCHAR, population__2010_ VARCHAR, status VARCHAR, foundation VARCHAR)
|
SELECT belarusian__bgn_pcgn_ FROM table_name_73 WHERE status = "raion" AND foundation = "1514" AND population__2010_ = "8100"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (belarusian__bgn_pcgn_ VARCHAR, population__2010_ VARCHAR, status VARCHAR, foundation VARCHAR) Question: What Belarusian has a status of Raion a foundation of 1514 and a 2010 population of 8100? [/INST] SELECT belarusian__bgn_pcgn_ FROM table_name_73 WHERE status = "raion" AND foundation = "1514" AND population__2010_ = "8100" </s>
|
Which model number has an order part number of TMSMT37BQX5LD?
|
CREATE TABLE table_name_57 (model_number VARCHAR, order_part_number VARCHAR)
|
SELECT model_number FROM table_name_57 WHERE order_part_number = "tmsmt37bqx5ld"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (model_number VARCHAR, order_part_number VARCHAR) Question: Which model number has an order part number of TMSMT37BQX5LD? [/INST] SELECT model_number FROM table_name_57 WHERE order_part_number = "tmsmt37bqx5ld" </s>
|
Which model number has an order part number of TMDML44BKX5LD?
|
CREATE TABLE table_name_32 (model_number VARCHAR, order_part_number VARCHAR)
|
SELECT model_number FROM table_name_32 WHERE order_part_number = "tmdml44bkx5ld"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (model_number VARCHAR, order_part_number VARCHAR) Question: Which model number has an order part number of TMDML44BKX5LD? [/INST] SELECT model_number FROM table_name_32 WHERE order_part_number = "tmdml44bkx5ld" </s>
|
What is the socket related to the processor released on June 22, 2005, having a frequency of 1600MHz and voltage under 1.35V?
|
CREATE TABLE table_name_7 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)
|
SELECT socket FROM table_name_7 WHERE frequency = "1600mhz" AND release_date = "june 22, 2005" AND voltage < 1.35
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR) Question: What is the socket related to the processor released on June 22, 2005, having a frequency of 1600MHz and voltage under 1.35V? [/INST] SELECT socket FROM table_name_7 WHERE frequency = "1600mhz" AND release_date = "june 22, 2005" AND voltage < 1.35 </s>
|
What is the highest rank for PSV - FC Barcelona?
|
CREATE TABLE table_name_64 (rank INTEGER, team VARCHAR)
|
SELECT MAX(rank) FROM table_name_64 WHERE team = "psv - fc barcelona"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (rank INTEGER, team VARCHAR) Question: What is the highest rank for PSV - FC Barcelona? [/INST] SELECT MAX(rank) FROM table_name_64 WHERE team = "psv - fc barcelona" </s>
|
What rank was Peter Schmeichel?
|
CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR)
|
SELECT SUM(rank) FROM table_name_89 WHERE name = "peter schmeichel"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR) Question: What rank was Peter Schmeichel? [/INST] SELECT SUM(rank) FROM table_name_89 WHERE name = "peter schmeichel" </s>
|
What is the highest Super G that had an 11 Downhill and an overall less than 16?
|
CREATE TABLE table_name_6 (super_g INTEGER, downhill VARCHAR, overall VARCHAR)
|
SELECT MAX(super_g) FROM table_name_6 WHERE downhill = "11" AND overall < 16
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (super_g INTEGER, downhill VARCHAR, overall VARCHAR) Question: What is the highest Super G that had an 11 Downhill and an overall less than 16? [/INST] SELECT MAX(super_g) FROM table_name_6 WHERE downhill = "11" AND overall < 16 </s>
|
What is the combined of the overalls less than 34?
|
CREATE TABLE table_name_82 (combined VARCHAR, overall INTEGER)
|
SELECT combined FROM table_name_82 WHERE overall < 34
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (combined VARCHAR, overall INTEGER) Question: What is the combined of the overalls less than 34? [/INST] SELECT combined FROM table_name_82 WHERE overall < 34 </s>
|
What is the combined of the 14 Super G?
|
CREATE TABLE table_name_60 (combined VARCHAR, super_g VARCHAR)
|
SELECT combined FROM table_name_60 WHERE super_g = 14
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (combined VARCHAR, super_g VARCHAR) Question: What is the combined of the 14 Super G? [/INST] SELECT combined FROM table_name_60 WHERE super_g = 14 </s>
|
What album had the reunion label in 2006?
|
CREATE TABLE table_name_21 (album VARCHAR, label VARCHAR, year VARCHAR)
|
SELECT album FROM table_name_21 WHERE label = "reunion" AND year = 2006
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (album VARCHAR, label VARCHAR, year VARCHAR) Question: What album had the reunion label in 2006? [/INST] SELECT album FROM table_name_21 WHERE label = "reunion" AND year = 2006 </s>
|
Who was the artist for the album, Christmas under the reunion label with the guitar?
|
CREATE TABLE table_name_67 (artist VARCHAR, album VARCHAR, label VARCHAR, credit VARCHAR)
|
SELECT artist FROM table_name_67 WHERE label = "reunion" AND credit = "guitar" AND album = "christmas"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (artist VARCHAR, album VARCHAR, label VARCHAR, credit VARCHAR) Question: Who was the artist for the album, Christmas under the reunion label with the guitar? [/INST] SELECT artist FROM table_name_67 WHERE label = "reunion" AND credit = "guitar" AND album = "christmas" </s>
|
What is the most recent year for an album listed with a piano credited?
|
CREATE TABLE table_name_4 (year INTEGER, credit VARCHAR)
|
SELECT MAX(year) FROM table_name_4 WHERE credit = "piano"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (year INTEGER, credit VARCHAR) Question: What is the most recent year for an album listed with a piano credited? [/INST] SELECT MAX(year) FROM table_name_4 WHERE credit = "piano" </s>
|
What is Volume:Issue, when Artist is Elton John, and when Weeks on Top is 4?
|
CREATE TABLE table_name_86 (volume VARCHAR, artist VARCHAR, weeks_on_top VARCHAR)
|
SELECT volume AS :issue FROM table_name_86 WHERE artist = "elton john" AND weeks_on_top = 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (volume VARCHAR, artist VARCHAR, weeks_on_top VARCHAR) Question: What is Volume:Issue, when Artist is Elton John, and when Weeks on Top is 4? [/INST] SELECT volume AS :issue FROM table_name_86 WHERE artist = "elton john" AND weeks_on_top = 4 </s>
|
What is the value in 2008-09 for the Autumn Gold event?
|
CREATE TABLE table_name_9 (event VARCHAR)
|
SELECT 2008 AS _09 FROM table_name_9 WHERE event = "autumn gold"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (event VARCHAR) Question: What is the value in 2008-09 for the Autumn Gold event? [/INST] SELECT 2008 AS _09 FROM table_name_9 WHERE event = "autumn gold" </s>
|
What is the total number of bronze medals of the nation with 4 total medals and 1 silver?
|
CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
|
SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR) Question: What is the total number of bronze medals of the nation with 4 total medals and 1 silver? [/INST] SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1 </s>
|
What is the sum of silver medals of the nation Cuba, which has less than 0 gold?
|
CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR, gold VARCHAR)
|
SELECT SUM(silver) FROM table_name_7 WHERE nation = "cuba" AND gold < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR, gold VARCHAR) Question: What is the sum of silver medals of the nation Cuba, which has less than 0 gold? [/INST] SELECT SUM(silver) FROM table_name_7 WHERE nation = "cuba" AND gold < 0 </s>
|
What is the total weight of players who play the G position for the Los Angeles D-Fenders?
|
CREATE TABLE table_name_80 (weight VARCHAR, pos VARCHAR, team VARCHAR)
|
SELECT COUNT(weight) FROM table_name_80 WHERE pos = "g" AND team = "los angeles d-fenders"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (weight VARCHAR, pos VARCHAR, team VARCHAR) Question: What is the total weight of players who play the G position for the Los Angeles D-Fenders? [/INST] SELECT COUNT(weight) FROM table_name_80 WHERE pos = "g" AND team = "los angeles d-fenders" </s>
|
What team does Bill Walker play for?
|
CREATE TABLE table_name_1 (team VARCHAR, player VARCHAR)
|
SELECT team FROM table_name_1 WHERE player = "bill walker"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (team VARCHAR, player VARCHAR) Question: What team does Bill Walker play for? [/INST] SELECT team FROM table_name_1 WHERE player = "bill walker" </s>
|
What was the lowest heat for Germany with a rank smaller than 9 for Mike Fenner and a time smaller than 13.52?
|
CREATE TABLE table_name_51 (heat INTEGER, time VARCHAR, name VARCHAR, nationality VARCHAR, rank VARCHAR)
|
SELECT MIN(heat) FROM table_name_51 WHERE nationality = "germany" AND rank < 9 AND name = "mike fenner" AND time < 13.52
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (heat INTEGER, time VARCHAR, name VARCHAR, nationality VARCHAR, rank VARCHAR) Question: What was the lowest heat for Germany with a rank smaller than 9 for Mike Fenner and a time smaller than 13.52? [/INST] SELECT MIN(heat) FROM table_name_51 WHERE nationality = "germany" AND rank < 9 AND name = "mike fenner" AND time < 13.52 </s>
|
What is the lowest FA cup that has mohd faizal desa as the player, with a total greater than 0?
|
CREATE TABLE table_name_22 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
|
SELECT MIN(fa_cup) FROM table_name_22 WHERE player = "mohd faizal desa" AND total > 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (fa_cup INTEGER, player VARCHAR, total VARCHAR) Question: What is the lowest FA cup that has mohd faizal desa as the player, with a total greater than 0? [/INST] SELECT MIN(fa_cup) FROM table_name_22 WHERE player = "mohd faizal desa" AND total > 0 </s>
|
What is the lowest FA cup that has a league greater than 0, with a Malaysia cup greater than 5?
|
CREATE TABLE table_name_9 (fa_cup INTEGER, league VARCHAR, malaysia_cup VARCHAR)
|
SELECT MIN(fa_cup) FROM table_name_9 WHERE league > 0 AND malaysia_cup > 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (fa_cup INTEGER, league VARCHAR, malaysia_cup VARCHAR) Question: What is the lowest FA cup that has a league greater than 0, with a Malaysia cup greater than 5? [/INST] SELECT MIN(fa_cup) FROM table_name_9 WHERE league > 0 AND malaysia_cup > 5 </s>
|
How many Malaysia Cups have a total less than 0?
|
CREATE TABLE table_name_5 (malaysia_cup VARCHAR, total INTEGER)
|
SELECT COUNT(malaysia_cup) FROM table_name_5 WHERE total < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (malaysia_cup VARCHAR, total INTEGER) Question: How many Malaysia Cups have a total less than 0? [/INST] SELECT COUNT(malaysia_cup) FROM table_name_5 WHERE total < 0 </s>
|
What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0?
|
CREATE TABLE table_name_56 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR)
|
SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR) Question: What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0? [/INST] SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0 </s>
|
How many Malaysia Cups have 0 for the total with a league greater than 0?
|
CREATE TABLE table_name_2 (malaysia_cup VARCHAR, total VARCHAR, league VARCHAR)
|
SELECT COUNT(malaysia_cup) FROM table_name_2 WHERE total = 0 AND league > 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (malaysia_cup VARCHAR, total VARCHAR, league VARCHAR) Question: How many Malaysia Cups have 0 for the total with a league greater than 0? [/INST] SELECT COUNT(malaysia_cup) FROM table_name_2 WHERE total = 0 AND league > 0 </s>
|
What is High Assists, when High Points is Keon Clark (19)?
|
CREATE TABLE table_name_57 (high_assists VARCHAR, high_points VARCHAR)
|
SELECT high_assists FROM table_name_57 WHERE high_points = "keon clark (19)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (high_assists VARCHAR, high_points VARCHAR) Question: What is High Assists, when High Points is Keon Clark (19)? [/INST] SELECT high_assists FROM table_name_57 WHERE high_points = "keon clark (19)" </s>
|
What is Location Attendance, when High Assists is Alvin Williams (9)?
|
CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR)
|
SELECT location_attendance FROM table_name_29 WHERE high_assists = "alvin williams (9)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR) Question: What is Location Attendance, when High Assists is Alvin Williams (9)? [/INST] SELECT location_attendance FROM table_name_29 WHERE high_assists = "alvin williams (9)" </s>
|
What is High Points, when Location Attendance is Staples Center 18,964?
|
CREATE TABLE table_name_56 (high_points VARCHAR, location_attendance VARCHAR)
|
SELECT high_points FROM table_name_56 WHERE location_attendance = "staples center 18,964"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (high_points VARCHAR, location_attendance VARCHAR) Question: What is High Points, when Location Attendance is Staples Center 18,964? [/INST] SELECT high_points FROM table_name_56 WHERE location_attendance = "staples center 18,964" </s>
|
What is High Points, when Team is @ Phoenix?
|
CREATE TABLE table_name_73 (high_points VARCHAR, team VARCHAR)
|
SELECT high_points FROM table_name_73 WHERE team = "@ phoenix"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (high_points VARCHAR, team VARCHAR) Question: What is High Points, when Team is @ Phoenix? [/INST] SELECT high_points FROM table_name_73 WHERE team = "@ phoenix" </s>
|
What name has 100 w. pender st. as the address?
|
CREATE TABLE table_name_6 (name VARCHAR, street_address VARCHAR)
|
SELECT name FROM table_name_6 WHERE street_address = "100 w. pender st."
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (name VARCHAR, street_address VARCHAR) Question: What name has 100 w. pender st. as the address? [/INST] SELECT name FROM table_name_6 WHERE street_address = "100 w. pender st." </s>
|
How many floors have 207 w. hastings st. as the address?
|
CREATE TABLE table_name_1 (floors VARCHAR, street_address VARCHAR)
|
SELECT COUNT(floors) FROM table_name_1 WHERE street_address = "207 w. hastings st."
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (floors VARCHAR, street_address VARCHAR) Question: How many floors have 207 w. hastings st. as the address? [/INST] SELECT COUNT(floors) FROM table_name_1 WHERE street_address = "207 w. hastings st." </s>
|
What is the height m/ft where 207 w. hastings st. is the address?
|
CREATE TABLE table_name_64 (height_m___ft VARCHAR, street_address VARCHAR)
|
SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st."
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (height_m___ft VARCHAR, street_address VARCHAR) Question: What is the height m/ft where 207 w. hastings st. is the address? [/INST] SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st." </s>
|
What is the completed list entry number more than 1356460?
|
CREATE TABLE table_name_58 (completed VARCHAR, list_entry_number INTEGER)
|
SELECT completed FROM table_name_58 WHERE list_entry_number > 1356460
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (completed VARCHAR, list_entry_number INTEGER) Question: What is the completed list entry number more than 1356460? [/INST] SELECT completed FROM table_name_58 WHERE list_entry_number > 1356460 </s>
|
Which type has a list entry number more than 1356436, named Albion Congregational Church?
|
CREATE TABLE table_name_64 (type VARCHAR, list_entry_number VARCHAR, name VARCHAR)
|
SELECT type FROM table_name_64 WHERE list_entry_number > 1356436 AND name = "albion congregational church"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (type VARCHAR, list_entry_number VARCHAR, name VARCHAR) Question: Which type has a list entry number more than 1356436, named Albion Congregational Church? [/INST] SELECT type FROM table_name_64 WHERE list_entry_number > 1356436 AND name = "albion congregational church" </s>
|
What is the entry number on the list for Fairfield Moravian Church?
|
CREATE TABLE table_name_13 (list_entry_number VARCHAR, name VARCHAR)
|
SELECT list_entry_number FROM table_name_13 WHERE name = "fairfield moravian church"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (list_entry_number VARCHAR, name VARCHAR) Question: What is the entry number on the list for Fairfield Moravian Church? [/INST] SELECT list_entry_number FROM table_name_13 WHERE name = "fairfield moravian church" </s>
|
What was the Average Attendance during the Year in which there were 9 Home Games?
|
CREATE TABLE table_name_12 (average_attendance INTEGER, _number_of_home_games VARCHAR)
|
SELECT MAX(average_attendance) FROM table_name_12 WHERE _number_of_home_games = 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (average_attendance INTEGER, _number_of_home_games VARCHAR) Question: What was the Average Attendance during the Year in which there were 9 Home Games? [/INST] SELECT MAX(average_attendance) FROM table_name_12 WHERE _number_of_home_games = 9 </s>
|
Before 2012, what was the greatest # of Home Games with a Canada - USA Rank of 52nd, and an Average Attendance less than 992?
|
CREATE TABLE table_name_41 (_number_of_home_games INTEGER, average_attendance VARCHAR, year VARCHAR, canada___usa_rank VARCHAR)
|
SELECT MAX(_number_of_home_games) FROM table_name_41 WHERE year < 2012 AND canada___usa_rank = "52nd" AND average_attendance < 992
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (_number_of_home_games INTEGER, average_attendance VARCHAR, year VARCHAR, canada___usa_rank VARCHAR) Question: Before 2012, what was the greatest # of Home Games with a Canada - USA Rank of 52nd, and an Average Attendance less than 992? [/INST] SELECT MAX(_number_of_home_games) FROM table_name_41 WHERE year < 2012 AND canada___usa_rank = "52nd" AND average_attendance < 992 </s>
|
After the year 2011, when the Canada - USA Rank was 46th, what was the League Rank?
|
CREATE TABLE table_name_54 (league VARCHAR, year VARCHAR, canada___usa_rank VARCHAR)
|
SELECT league AS Rank FROM table_name_54 WHERE year > 2011 AND canada___usa_rank = "46th"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (league VARCHAR, year VARCHAR, canada___usa_rank VARCHAR) Question: After the year 2011, when the Canada - USA Rank was 46th, what was the League Rank? [/INST] SELECT league AS Rank FROM table_name_54 WHERE year > 2011 AND canada___usa_rank = "46th" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.