instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
How many times was the viewer target group 0.63?
|
CREATE TABLE table_2639433_4 (market_share__target_group_14_49_ VARCHAR, viewers__in_millions_target_group_14_49_ VARCHAR)
|
SELECT COUNT(market_share__target_group_14_49_) FROM table_2639433_4 WHERE viewers__in_millions_target_group_14_49_ = "0.63"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2639433_4 (market_share__target_group_14_49_ VARCHAR, viewers__in_millions_target_group_14_49_ VARCHAR) Question: How many times was the viewer target group 0.63? [/INST] SELECT COUNT(market_share__target_group_14_49_) FROM table_2639433_4 WHERE viewers__in_millions_target_group_14_49_ = "0.63" </s>
|
Name the role for pick number 17
|
CREATE TABLE table_26397277_3 (role_s_ VARCHAR, pick__number VARCHAR)
|
SELECT role_s_ FROM table_26397277_3 WHERE pick__number = 17
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26397277_3 (role_s_ VARCHAR, pick__number VARCHAR) Question: Name the role for pick number 17 [/INST] SELECT role_s_ FROM table_26397277_3 WHERE pick__number = 17 </s>
|
Name the brand for pick number 15
|
CREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR)
|
SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 15
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR) Question: Name the brand for pick number 15 [/INST] SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 15 </s>
|
Name the employee real name for raw and superstar
|
CREATE TABLE table_26397277_3 (employee__real_name_ VARCHAR, brand__from_ VARCHAR, role_s_ VARCHAR)
|
SELECT employee__real_name_ FROM table_26397277_3 WHERE brand__from_ = "Raw" AND role_s_ = "Superstar"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26397277_3 (employee__real_name_ VARCHAR, brand__from_ VARCHAR, role_s_ VARCHAR) Question: Name the employee real name for raw and superstar [/INST] SELECT employee__real_name_ FROM table_26397277_3 WHERE brand__from_ = "Raw" AND role_s_ = "Superstar" </s>
|
What smallest amount in the weeks at peak column?
|
CREATE TABLE table_26399982_2 (weeks_at_peak INTEGER)
|
SELECT MIN(weeks_at_peak) FROM table_26399982_2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26399982_2 (weeks_at_peak INTEGER) Question: What smallest amount in the weeks at peak column? [/INST] SELECT MIN(weeks_at_peak) FROM table_26399982_2 </s>
|
In which series did Lecor Sports participate?
|
CREATE TABLE table_26400438_1 (series VARCHAR, team VARCHAR)
|
SELECT series FROM table_26400438_1 WHERE team = "Lecor Sports"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26400438_1 (series VARCHAR, team VARCHAR) Question: In which series did Lecor Sports participate? [/INST] SELECT series FROM table_26400438_1 WHERE team = "Lecor Sports" </s>
|
How many times did he hold 12 poles?
|
CREATE TABLE table_26400438_1 (f_laps VARCHAR, poles VARCHAR)
|
SELECT COUNT(f_laps) FROM table_26400438_1 WHERE poles = 12
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26400438_1 (f_laps VARCHAR, poles VARCHAR) Question: How many times did he hold 12 poles? [/INST] SELECT COUNT(f_laps) FROM table_26400438_1 WHERE poles = 12 </s>
|
In how many races did he have 8 podium finishes?
|
CREATE TABLE table_26400438_1 (races VARCHAR, podiums VARCHAR)
|
SELECT COUNT(races) FROM table_26400438_1 WHERE podiums = 8
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26400438_1 (races VARCHAR, podiums VARCHAR) Question: In how many races did he have 8 podium finishes? [/INST] SELECT COUNT(races) FROM table_26400438_1 WHERE podiums = 8 </s>
|
how many seasons did he race in team Carlin?
|
CREATE TABLE table_26400438_1 (podiums VARCHAR, team VARCHAR)
|
SELECT COUNT(podiums) FROM table_26400438_1 WHERE team = "Carlin"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26400438_1 (podiums VARCHAR, team VARCHAR) Question: how many seasons did he race in team Carlin? [/INST] SELECT COUNT(podiums) FROM table_26400438_1 WHERE team = "Carlin" </s>
|
How many entries are in the ranking for jacqueline kohl?
|
CREATE TABLE table_26427332_17 (place VARCHAR, contestant VARCHAR)
|
SELECT COUNT(place) FROM table_26427332_17 WHERE contestant = "Jacqueline Kohl"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26427332_17 (place VARCHAR, contestant VARCHAR) Question: How many entries are in the ranking for jacqueline kohl? [/INST] SELECT COUNT(place) FROM table_26427332_17 WHERE contestant = "Jacqueline Kohl" </s>
|
what measurement does the contestant from sindelfingen have?
|
CREATE TABLE table_26427332_17 (measurements__in_cm_ VARCHAR, city VARCHAR)
|
SELECT measurements__in_cm_ FROM table_26427332_17 WHERE city = "Sindelfingen"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26427332_17 (measurements__in_cm_ VARCHAR, city VARCHAR) Question: what measurement does the contestant from sindelfingen have? [/INST] SELECT measurements__in_cm_ FROM table_26427332_17 WHERE city = "Sindelfingen" </s>
|
for how many federal states is the city of lahnstein listed in the ranking?
|
CREATE TABLE table_26427332_17 (federal_state VARCHAR, city VARCHAR)
|
SELECT COUNT(federal_state) FROM table_26427332_17 WHERE city = "Lahnstein"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26427332_17 (federal_state VARCHAR, city VARCHAR) Question: for how many federal states is the city of lahnstein listed in the ranking? [/INST] SELECT COUNT(federal_state) FROM table_26427332_17 WHERE city = "Lahnstein" </s>
|
who are the participants from hanover?
|
CREATE TABLE table_26427332_17 (contestant VARCHAR, city VARCHAR)
|
SELECT contestant FROM table_26427332_17 WHERE city = "Hanover"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26427332_17 (contestant VARCHAR, city VARCHAR) Question: who are the participants from hanover? [/INST] SELECT contestant FROM table_26427332_17 WHERE city = "Hanover" </s>
|
What is the highest numbred district that has brian w. thomas as an incumbent?
|
CREATE TABLE table_26416704_2 (district INTEGER, incumbent VARCHAR)
|
SELECT MAX(district) FROM table_26416704_2 WHERE incumbent = "Brian W. Thomas"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26416704_2 (district INTEGER, incumbent VARCHAR) Question: What is the highest numbred district that has brian w. thomas as an incumbent? [/INST] SELECT MAX(district) FROM table_26416704_2 WHERE incumbent = "Brian W. Thomas" </s>
|
What was the status of the election featuring incumbent margaret kaiser?
|
CREATE TABLE table_26416704_2 (status VARCHAR, incumbent VARCHAR)
|
SELECT status FROM table_26416704_2 WHERE incumbent = "Margaret Kaiser"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26416704_2 (status VARCHAR, incumbent VARCHAR) Question: What was the status of the election featuring incumbent margaret kaiser? [/INST] SELECT status FROM table_26416704_2 WHERE incumbent = "Margaret Kaiser" </s>
|
How many episodes were directed by Arlene Sanford?
|
CREATE TABLE table_26429658_1 (written_by VARCHAR, directed_by VARCHAR)
|
SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = "Arlene Sanford"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26429658_1 (written_by VARCHAR, directed_by VARCHAR) Question: How many episodes were directed by Arlene Sanford? [/INST] SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = "Arlene Sanford" </s>
|
What was the title of the episode with a production code of 2010?
|
CREATE TABLE table_26429658_1 (title VARCHAR, production_code VARCHAR)
|
SELECT title FROM table_26429658_1 WHERE production_code = 2010
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26429658_1 (title VARCHAR, production_code VARCHAR) Question: What was the title of the episode with a production code of 2010? [/INST] SELECT title FROM table_26429658_1 WHERE production_code = 2010 </s>
|
How many production codes had a US viewership of 4.43 million?
|
CREATE TABLE table_26429658_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
|
SELECT COUNT(production_code) FROM table_26429658_1 WHERE us_viewers__millions_ = "4.43"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26429658_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR) Question: How many production codes had a US viewership of 4.43 million? [/INST] SELECT COUNT(production_code) FROM table_26429658_1 WHERE us_viewers__millions_ = "4.43" </s>
|
How many times is the opponents in the final is beti sekulovski cindy watson?
|
CREATE TABLE table_26458137_2 (score VARCHAR, opponents_in_the_final VARCHAR)
|
SELECT COUNT(score) FROM table_26458137_2 WHERE opponents_in_the_final = "Beti Sekulovski Cindy Watson"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26458137_2 (score VARCHAR, opponents_in_the_final VARCHAR) Question: How many times is the opponents in the final is beti sekulovski cindy watson? [/INST] SELECT COUNT(score) FROM table_26458137_2 WHERE opponents_in_the_final = "Beti Sekulovski Cindy Watson" </s>
|
Who is the partner when the opponents in the final is stephanie dubois olga savchuk?
|
CREATE TABLE table_26458137_2 (partner VARCHAR, opponents_in_the_final VARCHAR)
|
SELECT partner FROM table_26458137_2 WHERE opponents_in_the_final = "Stephanie Dubois Olga Savchuk"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26458137_2 (partner VARCHAR, opponents_in_the_final VARCHAR) Question: Who is the partner when the opponents in the final is stephanie dubois olga savchuk? [/INST] SELECT partner FROM table_26458137_2 WHERE opponents_in_the_final = "Stephanie Dubois Olga Savchuk" </s>
|
Which artist had a result of 4?
|
CREATE TABLE table_26485957_1 (artist VARCHAR, result VARCHAR)
|
SELECT artist FROM table_26485957_1 WHERE result = "4"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26485957_1 (artist VARCHAR, result VARCHAR) Question: Which artist had a result of 4? [/INST] SELECT artist FROM table_26485957_1 WHERE result = "4" </s>
|
What is the minimum score given in judging panel points?
|
CREATE TABLE table_26485957_1 (judging_panel_points INTEGER)
|
SELECT MIN(judging_panel_points) FROM table_26485957_1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26485957_1 (judging_panel_points INTEGER) Question: What is the minimum score given in judging panel points? [/INST] SELECT MIN(judging_panel_points) FROM table_26485957_1 </s>
|
For the game whose developer was Ailive, is it a Move-only release?
|
CREATE TABLE table_26538035_1 (move_only VARCHAR, developer VARCHAR)
|
SELECT move_only FROM table_26538035_1 WHERE developer = "AiLive"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26538035_1 (move_only VARCHAR, developer VARCHAR) Question: For the game whose developer was Ailive, is it a Move-only release? [/INST] SELECT move_only FROM table_26538035_1 WHERE developer = "AiLive" </s>
|
How many titles/sources have a developer of Clover Studio?
|
CREATE TABLE table_26538035_1 (title_and_source VARCHAR, developer VARCHAR)
|
SELECT COUNT(title_and_source) FROM table_26538035_1 WHERE developer = "Clover Studio"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26538035_1 (title_and_source VARCHAR, developer VARCHAR) Question: How many titles/sources have a developer of Clover Studio? [/INST] SELECT COUNT(title_and_source) FROM table_26538035_1 WHERE developer = "Clover Studio" </s>
|
What is the title and source for the game developed by Hydravision Entertainment?
|
CREATE TABLE table_26538035_1 (title_and_source VARCHAR, developer VARCHAR)
|
SELECT title_and_source FROM table_26538035_1 WHERE developer = "Hydravision Entertainment"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26538035_1 (title_and_source VARCHAR, developer VARCHAR) Question: What is the title and source for the game developed by Hydravision Entertainment? [/INST] SELECT title_and_source FROM table_26538035_1 WHERE developer = "Hydravision Entertainment" </s>
|
What is the series # on airdate September 21, 2002?
|
CREATE TABLE table_2655016_9 (series__number VARCHAR, original_air_date VARCHAR)
|
SELECT series__number FROM table_2655016_9 WHERE original_air_date = "September 21, 2002"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2655016_9 (series__number VARCHAR, original_air_date VARCHAR) Question: What is the series # on airdate September 21, 2002? [/INST] SELECT series__number FROM table_2655016_9 WHERE original_air_date = "September 21, 2002" </s>
|
what was the name of episode 5?
|
CREATE TABLE table_26565917_2 (title VARCHAR, no_in_season VARCHAR)
|
SELECT title FROM table_26565917_2 WHERE no_in_season = 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26565917_2 (title VARCHAR, no_in_season VARCHAR) Question: what was the name of episode 5? [/INST] SELECT title FROM table_26565917_2 WHERE no_in_season = 5 </s>
|
when did 14.55 people watch?
|
CREATE TABLE table_26565917_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
|
SELECT original_air_date FROM table_26565917_2 WHERE us_viewers__millions_ = "14.55"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26565917_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) Question: when did 14.55 people watch? [/INST] SELECT original_air_date FROM table_26565917_2 WHERE us_viewers__millions_ = "14.55" </s>
|
What is the smallest top 10 figure?
|
CREATE TABLE table_26609690_1 (top_10 INTEGER)
|
SELECT MIN(top_10) FROM table_26609690_1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26609690_1 (top_10 INTEGER) Question: What is the smallest top 10 figure? [/INST] SELECT MIN(top_10) FROM table_26609690_1 </s>
|
What is the earliest year on the chart?
|
CREATE TABLE table_26609690_1 (year INTEGER)
|
SELECT MIN(year) FROM table_26609690_1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26609690_1 (year INTEGER) Question: What is the earliest year on the chart? [/INST] SELECT MIN(year) FROM table_26609690_1 </s>
|
Which team had $15,785 in winnings?
|
CREATE TABLE table_26609690_1 (team_s_ VARCHAR, winnings VARCHAR)
|
SELECT team_s_ FROM table_26609690_1 WHERE winnings = "$15,785"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26609690_1 (team_s_ VARCHAR, winnings VARCHAR) Question: Which team had $15,785 in winnings? [/INST] SELECT team_s_ FROM table_26609690_1 WHERE winnings = "$15,785" </s>
|
How many positions are there for RB1 Motorsports?
|
CREATE TABLE table_26609690_1 (position VARCHAR, team_s_ VARCHAR)
|
SELECT COUNT(position) FROM table_26609690_1 WHERE team_s_ = "RB1 Motorsports"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26609690_1 (position VARCHAR, team_s_ VARCHAR) Question: How many positions are there for RB1 Motorsports? [/INST] SELECT COUNT(position) FROM table_26609690_1 WHERE team_s_ = "RB1 Motorsports" </s>
|
What is the highest number of wins?
|
CREATE TABLE table_26609690_1 (wins INTEGER)
|
SELECT MAX(wins) FROM table_26609690_1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26609690_1 (wins INTEGER) Question: What is the highest number of wins? [/INST] SELECT MAX(wins) FROM table_26609690_1 </s>
|
Who is the captain of Cardiff City?
|
CREATE TABLE table_26593762_2 (team VARCHAR)
|
SELECT team AS captain FROM table_26593762_2 WHERE team = "Cardiff City"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26593762_2 (team VARCHAR) Question: Who is the captain of Cardiff City? [/INST] SELECT team AS captain FROM table_26593762_2 WHERE team = "Cardiff City" </s>
|
Who is the captain of Neil Warnock's team?
|
CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR)
|
SELECT team AS captain FROM table_26593762_2 WHERE manager = "Neil Warnock"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR) Question: Who is the captain of Neil Warnock's team? [/INST] SELECT team AS captain FROM table_26593762_2 WHERE manager = "Neil Warnock" </s>
|
Who is the captain of Dave Jones' team?
|
CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR)
|
SELECT team AS captain FROM table_26593762_2 WHERE manager = "Dave Jones"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR) Question: Who is the captain of Dave Jones' team? [/INST] SELECT team AS captain FROM table_26593762_2 WHERE manager = "Dave Jones" </s>
|
Who is the chairman of Mark Robins team?
|
CREATE TABLE table_26593762_2 (chairman VARCHAR, manager VARCHAR)
|
SELECT chairman FROM table_26593762_2 WHERE manager = "Mark Robins"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26593762_2 (chairman VARCHAR, manager VARCHAR) Question: Who is the chairman of Mark Robins team? [/INST] SELECT chairman FROM table_26593762_2 WHERE manager = "Mark Robins" </s>
|
Name the release date xbox 360 for sea wolf
|
CREATE TABLE table_26631526_1 (release_date___xbox360__ VARCHAR, artist VARCHAR)
|
SELECT release_date___xbox360__ FROM table_26631526_1 WHERE artist = "Sea Wolf"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26631526_1 (release_date___xbox360__ VARCHAR, artist VARCHAR) Question: Name the release date xbox 360 for sea wolf [/INST] SELECT release_date___xbox360__ FROM table_26631526_1 WHERE artist = "Sea Wolf" </s>
|
What party was represented by incumbent Richard Coulter ?
|
CREATE TABLE table_2668243_20 (party VARCHAR, incumbent VARCHAR)
|
SELECT party FROM table_2668243_20 WHERE incumbent = "Richard Coulter"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668243_20 (party VARCHAR, incumbent VARCHAR) Question: What party was represented by incumbent Richard Coulter ? [/INST] SELECT party FROM table_2668243_20 WHERE incumbent = "Richard Coulter" </s>
|
What was the result for Henry Daniel's race?
|
CREATE TABLE table_2668243_8 (result VARCHAR, incumbent VARCHAR)
|
SELECT result FROM table_2668243_8 WHERE incumbent = "Henry Daniel"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668243_8 (result VARCHAR, incumbent VARCHAR) Question: What was the result for Henry Daniel's race? [/INST] SELECT result FROM table_2668243_8 WHERE incumbent = "Henry Daniel" </s>
|
When was Henry Daniel first elected?
|
CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR)
|
SELECT first_elected FROM table_2668243_8 WHERE incumbent = "Henry Daniel"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR) Question: When was Henry Daniel first elected? [/INST] SELECT first_elected FROM table_2668243_8 WHERE incumbent = "Henry Daniel" </s>
|
How many first elected years are provided for Thomas P. Moore?
|
CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR)
|
SELECT COUNT(first_elected) FROM table_2668243_8 WHERE incumbent = "Thomas P. Moore"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR) Question: How many first elected years are provided for Thomas P. Moore? [/INST] SELECT COUNT(first_elected) FROM table_2668243_8 WHERE incumbent = "Thomas P. Moore" </s>
|
What district is Joseph Lecompte in office in?
|
CREATE TABLE table_2668243_8 (district VARCHAR, incumbent VARCHAR)
|
SELECT district FROM table_2668243_8 WHERE incumbent = "Joseph Lecompte"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668243_8 (district VARCHAR, incumbent VARCHAR) Question: What district is Joseph Lecompte in office in? [/INST] SELECT district FROM table_2668243_8 WHERE incumbent = "Joseph Lecompte" </s>
|
What party does joel r. poinsett represent?
|
CREATE TABLE table_2668264_22 (party VARCHAR, incumbent VARCHAR)
|
SELECT party FROM table_2668264_22 WHERE incumbent = "Joel R. Poinsett"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668264_22 (party VARCHAR, incumbent VARCHAR) Question: What party does joel r. poinsett represent? [/INST] SELECT party FROM table_2668264_22 WHERE incumbent = "Joel R. Poinsett" </s>
|
What was the first elected year that featured incumbent andrew r. govan?
|
CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)
|
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR) Question: What was the first elected year that featured incumbent andrew r. govan? [/INST] SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan" </s>
|
In what district is the incumbent Charles Fisher?
|
CREATE TABLE table_2668336_17 (district VARCHAR, incumbent VARCHAR)
|
SELECT district FROM table_2668336_17 WHERE incumbent = "Charles Fisher"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_17 (district VARCHAR, incumbent VARCHAR) Question: In what district is the incumbent Charles Fisher? [/INST] SELECT district FROM table_2668336_17 WHERE incumbent = "Charles Fisher" </s>
|
First elected in 1807 1817 in what district?
|
CREATE TABLE table_2668336_17 (district VARCHAR, first_elected VARCHAR)
|
SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_17 (district VARCHAR, first_elected VARCHAR) Question: First elected in 1807 1817 in what district? [/INST] SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817" </s>
|
The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent?
|
CREATE TABLE table_2668336_17 (incumbent VARCHAR, candidates VARCHAR)
|
SELECT incumbent FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_17 (incumbent VARCHAR, candidates VARCHAR) Question: The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent? [/INST] SELECT incumbent FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%" </s>
|
In district North Carolina 10, what are the candidates?
|
CREATE TABLE table_2668336_17 (candidates VARCHAR, district VARCHAR)
|
SELECT candidates FROM table_2668336_17 WHERE district = "North Carolina 10"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_17 (candidates VARCHAR, district VARCHAR) Question: In district North Carolina 10, what are the candidates? [/INST] SELECT candidates FROM table_2668336_17 WHERE district = "North Carolina 10" </s>
|
Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result?
|
CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR)
|
SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR) Question: Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result? [/INST] SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%" </s>
|
Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold?
|
CREATE TABLE table_2668336_19 (incumbent VARCHAR, candidates VARCHAR, result VARCHAR)
|
SELECT incumbent FROM table_2668336_19 WHERE candidates = "John Murray (DR) 50.4% George Denison (DR) 49.6%" AND result = "Retired Democratic-Republican hold"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_19 (incumbent VARCHAR, candidates VARCHAR, result VARCHAR) Question: Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold? [/INST] SELECT incumbent FROM table_2668336_19 WHERE candidates = "John Murray (DR) 50.4% George Denison (DR) 49.6%" AND result = "Retired Democratic-Republican hold" </s>
|
Who were the incumbent(s) when the result was a retired democratic-republican hold and the first elected representative was in 1816>
|
CREATE TABLE table_2668336_19 (incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
|
SELECT incumbent FROM table_2668336_19 WHERE result = "Retired Democratic-Republican hold" AND first_elected = "1816"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_19 (incumbent VARCHAR, result VARCHAR, first_elected VARCHAR) Question: Who were the incumbent(s) when the result was a retired democratic-republican hold and the first elected representative was in 1816> [/INST] SELECT incumbent FROM table_2668336_19 WHERE result = "Retired Democratic-Republican hold" AND first_elected = "1816" </s>
|
Who were the candidates in the election where william wilson was the incumbent?
|
CREATE TABLE table_2668336_19 (candidates VARCHAR, incumbent VARCHAR)
|
SELECT candidates FROM table_2668336_19 WHERE incumbent = "William Wilson"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668336_19 (candidates VARCHAR, incumbent VARCHAR) Question: Who were the candidates in the election where william wilson was the incumbent? [/INST] SELECT candidates FROM table_2668336_19 WHERE incumbent = "William Wilson" </s>
|
Name the result for pennsylvania 8
|
CREATE TABLE table_2668352_14 (result VARCHAR, district VARCHAR)
|
SELECT result FROM table_2668352_14 WHERE district = "Pennsylvania 8"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668352_14 (result VARCHAR, district VARCHAR) Question: Name the result for pennsylvania 8 [/INST] SELECT result FROM table_2668352_14 WHERE district = "Pennsylvania 8" </s>
|
Name the result for 1810
|
CREATE TABLE table_2668352_14 (result VARCHAR, first_elected VARCHAR)
|
SELECT result FROM table_2668352_14 WHERE first_elected = "1810"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668352_14 (result VARCHAR, first_elected VARCHAR) Question: Name the result for 1810 [/INST] SELECT result FROM table_2668352_14 WHERE first_elected = "1810" </s>
|
Name the district for hugh glasgow
|
CREATE TABLE table_2668352_14 (district VARCHAR, incumbent VARCHAR)
|
SELECT district FROM table_2668352_14 WHERE incumbent = "Hugh Glasgow"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668352_14 (district VARCHAR, incumbent VARCHAR) Question: Name the district for hugh glasgow [/INST] SELECT district FROM table_2668352_14 WHERE incumbent = "Hugh Glasgow" </s>
|
Name the incumbent for lost re-election democratic-republican hold
|
CREATE TABLE table_2668352_14 (incumbent VARCHAR, result VARCHAR)
|
SELECT incumbent FROM table_2668352_14 WHERE result = "Lost re-election Democratic-Republican hold"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668352_14 (incumbent VARCHAR, result VARCHAR) Question: Name the incumbent for lost re-election democratic-republican hold [/INST] SELECT incumbent FROM table_2668352_14 WHERE result = "Lost re-election Democratic-Republican hold" </s>
|
Name the district for first elected 1810
|
CREATE TABLE table_2668352_14 (district VARCHAR, first_elected VARCHAR)
|
SELECT district FROM table_2668352_14 WHERE first_elected = "1810"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668352_14 (district VARCHAR, first_elected VARCHAR) Question: Name the district for first elected 1810 [/INST] SELECT district FROM table_2668352_14 WHERE first_elected = "1810" </s>
|
What party does James Pleasants belong to?
|
CREATE TABLE table_2668352_19 (party VARCHAR, incumbent VARCHAR)
|
SELECT party FROM table_2668352_19 WHERE incumbent = "James Pleasants"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668352_19 (party VARCHAR, incumbent VARCHAR) Question: What party does James Pleasants belong to? [/INST] SELECT party FROM table_2668352_19 WHERE incumbent = "James Pleasants" </s>
|
When was William Kennedy first elected?
|
CREATE TABLE table_2668374_11 (first_elected VARCHAR, incumbent VARCHAR)
|
SELECT first_elected FROM table_2668374_11 WHERE incumbent = "William Kennedy"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668374_11 (first_elected VARCHAR, incumbent VARCHAR) Question: When was William Kennedy first elected? [/INST] SELECT first_elected FROM table_2668374_11 WHERE incumbent = "William Kennedy" </s>
|
what was the section where the winner is william hoge
|
CREATE TABLE table_2668378_13 (district VARCHAR, incumbent VARCHAR)
|
SELECT district FROM table_2668378_13 WHERE incumbent = "William Hoge"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668378_13 (district VARCHAR, incumbent VARCHAR) Question: what was the section where the winner is william hoge [/INST] SELECT district FROM table_2668378_13 WHERE incumbent = "William Hoge" </s>
|
who was running where the winner is daniel montgomery
|
CREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR)
|
SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR) Question: who was running where the winner is daniel montgomery [/INST] SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery" </s>
|
who was running in the section pennsylvania 5
|
CREATE TABLE table_2668378_13 (candidates VARCHAR, district VARCHAR)
|
SELECT candidates FROM table_2668378_13 WHERE district = "Pennsylvania 5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668378_13 (candidates VARCHAR, district VARCHAR) Question: who was running in the section pennsylvania 5 [/INST] SELECT candidates FROM table_2668378_13 WHERE district = "Pennsylvania 5" </s>
|
Who was the incumbent in the district that first elected someone in 1807?
|
CREATE TABLE table_2668378_18 (incumbent VARCHAR, first_elected VARCHAR)
|
SELECT incumbent FROM table_2668378_18 WHERE first_elected = "1807"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668378_18 (incumbent VARCHAR, first_elected VARCHAR) Question: Who was the incumbent in the district that first elected someone in 1807? [/INST] SELECT incumbent FROM table_2668378_18 WHERE first_elected = "1807" </s>
|
When was someone first elected in the district with incumbent john smith?
|
CREATE TABLE table_2668378_18 (first_elected VARCHAR, incumbent VARCHAR)
|
SELECT first_elected FROM table_2668378_18 WHERE incumbent = "John Smith"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668378_18 (first_elected VARCHAR, incumbent VARCHAR) Question: When was someone first elected in the district with incumbent john smith? [/INST] SELECT first_elected FROM table_2668378_18 WHERE incumbent = "John Smith" </s>
|
What party represents the district with incumbent matthew clay?
|
CREATE TABLE table_2668378_18 (party VARCHAR, incumbent VARCHAR)
|
SELECT party FROM table_2668378_18 WHERE incumbent = "Matthew Clay"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668378_18 (party VARCHAR, incumbent VARCHAR) Question: What party represents the district with incumbent matthew clay? [/INST] SELECT party FROM table_2668378_18 WHERE incumbent = "Matthew Clay" </s>
|
What party represents the district with john g. jackson?
|
CREATE TABLE table_2668378_18 (party VARCHAR, incumbent VARCHAR)
|
SELECT party FROM table_2668378_18 WHERE incumbent = "John G. Jackson"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668378_18 (party VARCHAR, incumbent VARCHAR) Question: What party represents the district with john g. jackson? [/INST] SELECT party FROM table_2668378_18 WHERE incumbent = "John G. Jackson" </s>
|
How many times was the incumbent john dawson redistricted from the 15th district?
|
CREATE TABLE table_2668393_18 (candidates VARCHAR, incumbent VARCHAR)
|
SELECT COUNT(candidates) FROM table_2668393_18 WHERE incumbent = "John Dawson Redistricted from the 15th district"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668393_18 (candidates VARCHAR, incumbent VARCHAR) Question: How many times was the incumbent john dawson redistricted from the 15th district? [/INST] SELECT COUNT(candidates) FROM table_2668393_18 WHERE incumbent = "John Dawson Redistricted from the 15th district" </s>
|
What is the party for the candidates edwin gray (dr)?
|
CREATE TABLE table_2668393_18 (party VARCHAR, candidates VARCHAR)
|
SELECT party FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668393_18 (party VARCHAR, candidates VARCHAR) Question: What is the party for the candidates edwin gray (dr)? [/INST] SELECT party FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)" </s>
|
What is the result in the virginia 11 district?
|
CREATE TABLE table_2668393_18 (result VARCHAR, district VARCHAR)
|
SELECT result FROM table_2668393_18 WHERE district = "Virginia 11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668393_18 (result VARCHAR, district VARCHAR) Question: What is the result in the virginia 11 district? [/INST] SELECT result FROM table_2668393_18 WHERE district = "Virginia 11" </s>
|
What is the district with the candidates edwin gray (dr)?
|
CREATE TABLE table_2668393_18 (district VARCHAR, candidates VARCHAR)
|
SELECT district FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668393_18 (district VARCHAR, candidates VARCHAR) Question: What is the district with the candidates edwin gray (dr)? [/INST] SELECT district FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)" </s>
|
How many incumbents were first elected in 1797 with the candidates abram trigg (dr)?
|
CREATE TABLE table_2668393_18 (incumbent VARCHAR, first_elected VARCHAR, candidates VARCHAR)
|
SELECT COUNT(incumbent) FROM table_2668393_18 WHERE first_elected = "1797" AND candidates = "Abram Trigg (DR)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668393_18 (incumbent VARCHAR, first_elected VARCHAR, candidates VARCHAR) Question: How many incumbents were first elected in 1797 with the candidates abram trigg (dr)? [/INST] SELECT COUNT(incumbent) FROM table_2668393_18 WHERE first_elected = "1797" AND candidates = "Abram Trigg (DR)" </s>
|
What is the production code when the u.s. viewers (million) is 11.76?
|
CREATE TABLE table_26702204_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
|
SELECT production_code FROM table_26702204_1 WHERE us_viewers__million_ = "11.76"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26702204_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) Question: What is the production code when the u.s. viewers (million) is 11.76? [/INST] SELECT production_code FROM table_26702204_1 WHERE us_viewers__million_ = "11.76" </s>
|
What was the u.s. viewers (millions) when the production code was 4alh19?
|
CREATE TABLE table_26702204_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)
|
SELECT us_viewers__million_ FROM table_26702204_1 WHERE production_code = "4ALH19"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26702204_1 (us_viewers__million_ VARCHAR, production_code VARCHAR) Question: What was the u.s. viewers (millions) when the production code was 4alh19? [/INST] SELECT us_viewers__million_ FROM table_26702204_1 WHERE production_code = "4ALH19" </s>
|
What is the operator name when the distance is 3105km?
|
CREATE TABLE table_26745820_1 (operator_name VARCHAR, distance VARCHAR)
|
SELECT operator_name FROM table_26745820_1 WHERE distance = "3105km"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26745820_1 (operator_name VARCHAR, distance VARCHAR) Question: What is the operator name when the distance is 3105km? [/INST] SELECT operator_name FROM table_26745820_1 WHERE distance = "3105km" </s>
|
what is the no when the distance is 4168km?
|
CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR)
|
SELECT no FROM table_26745820_1 WHERE distance = "4168km"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR) Question: what is the no when the distance is 4168km? [/INST] SELECT no FROM table_26745820_1 WHERE distance = "4168km" </s>
|
How many people wrote the episode with 3.40 million U.S viewers?
|
CREATE TABLE table_26748252_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
|
SELECT COUNT(written_by) FROM table_26748252_1 WHERE us_viewers__in_millions_ = "3.40"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26748252_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR) Question: How many people wrote the episode with 3.40 million U.S viewers? [/INST] SELECT COUNT(written_by) FROM table_26748252_1 WHERE us_viewers__in_millions_ = "3.40" </s>
|
How many MotoGP winners were there when the circuit was Catalunya?
|
CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR)
|
SELECT COUNT(motogp_winner) FROM table_26781017_1 WHERE circuit = "Catalunya"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR) Question: How many MotoGP winners were there when the circuit was Catalunya? [/INST] SELECT COUNT(motogp_winner) FROM table_26781017_1 WHERE circuit = "Catalunya" </s>
|
Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix?
|
CREATE TABLE table_26781017_1 (moto2_winner VARCHAR, grand_prix VARCHAR)
|
SELECT moto2_winner FROM table_26781017_1 WHERE grand_prix = "Shell Advance Malaysian grand_prix"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26781017_1 (moto2_winner VARCHAR, grand_prix VARCHAR) Question: Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix? [/INST] SELECT moto2_winner FROM table_26781017_1 WHERE grand_prix = "Shell Advance Malaysian grand_prix" </s>
|
Who are all the motogp winners when the circuit was Catalunya?
|
CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR)
|
SELECT motogp_winner FROM table_26781017_1 WHERE circuit = "Catalunya"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR) Question: Who are all the motogp winners when the circuit was Catalunya? [/INST] SELECT motogp_winner FROM table_26781017_1 WHERE circuit = "Catalunya" </s>
|
What was the area (km²) (per sqmi) of the country Colombia?
|
CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR)
|
SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE country_or_territory_with_flag = "Colombia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR) Question: What was the area (km²) (per sqmi) of the country Colombia? [/INST] SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE country_or_territory_with_flag = "Colombia" </s>
|
What was the maximum population of the country with Quito as capital?
|
CREATE TABLE table_26769_1 (population__july_2009_est_ INTEGER, capital VARCHAR)
|
SELECT MAX(population__july_2009_est_) FROM table_26769_1 WHERE capital = "Quito"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26769_1 (population__july_2009_est_ INTEGER, capital VARCHAR) Question: What was the maximum population of the country with Quito as capital? [/INST] SELECT MAX(population__july_2009_est_) FROM table_26769_1 WHERE capital = "Quito" </s>
|
What was the population of a country with a population density of 14.3/km² (/sqmi)?
|
CREATE TABLE table_26769_1 (population__july_2009_est_ VARCHAR, population_density_per_km² VARCHAR)
|
SELECT population__july_2009_est_ FROM table_26769_1 WHERE population_density_per_km² = "14.3/km² (/sqmi)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26769_1 (population__july_2009_est_ VARCHAR, population_density_per_km² VARCHAR) Question: What was the population of a country with a population density of 14.3/km² (/sqmi)? [/INST] SELECT population__july_2009_est_ FROM table_26769_1 WHERE population_density_per_km² = "14.3/km² (/sqmi)" </s>
|
What was the area (km²) (per sqmi) of a country with a population density per km² of 8.4/km² (/sqmi)?
|
CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, population_density_per_km² VARCHAR)
|
SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE population_density_per_km² = "8.4/km² (/sqmi)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, population_density_per_km² VARCHAR) Question: What was the area (km²) (per sqmi) of a country with a population density per km² of 8.4/km² (/sqmi)? [/INST] SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE population_density_per_km² = "8.4/km² (/sqmi)" </s>
|
What was the country with a population density per km² of 3.5/km² (/sqmi)?
|
CREATE TABLE table_26769_1 (country_or_territory_with_flag VARCHAR, population_density_per_km² VARCHAR)
|
SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = "3.5/km² (/sqmi)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26769_1 (country_or_territory_with_flag VARCHAR, population_density_per_km² VARCHAR) Question: What was the country with a population density per km² of 3.5/km² (/sqmi)? [/INST] SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = "3.5/km² (/sqmi)" </s>
|
What is the capital of the country with a population density per km² of 15.6/km² (/sqmi)?
|
CREATE TABLE table_26769_1 (capital VARCHAR, population_density_per_km² VARCHAR)
|
SELECT capital FROM table_26769_1 WHERE population_density_per_km² = "15.6/km² (/sqmi)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26769_1 (capital VARCHAR, population_density_per_km² VARCHAR) Question: What is the capital of the country with a population density per km² of 15.6/km² (/sqmi)? [/INST] SELECT capital FROM table_26769_1 WHERE population_density_per_km² = "15.6/km² (/sqmi)" </s>
|
what is the position for pick # 103?
|
CREATE TABLE table_2679061_6 (position VARCHAR, pick__number VARCHAR)
|
SELECT position FROM table_2679061_6 WHERE pick__number = 103
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_6 (position VARCHAR, pick__number VARCHAR) Question: what is the position for pick # 103? [/INST] SELECT position FROM table_2679061_6 WHERE pick__number = 103 </s>
|
What is the pick # for nhl team vancouver canucks?
|
CREATE TABLE table_2679061_6 (pick__number INTEGER, nhl_team VARCHAR)
|
SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = "Vancouver Canucks"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_6 (pick__number INTEGER, nhl_team VARCHAR) Question: What is the pick # for nhl team vancouver canucks? [/INST] SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = "Vancouver Canucks" </s>
|
What is the nationality of the player kevin stevens?
|
CREATE TABLE table_2679061_6 (nationality VARCHAR, player VARCHAR)
|
SELECT nationality FROM table_2679061_6 WHERE player = "Kevin Stevens"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_6 (nationality VARCHAR, player VARCHAR) Question: What is the nationality of the player kevin stevens? [/INST] SELECT nationality FROM table_2679061_6 WHERE player = "Kevin Stevens" </s>
|
What is the highest pick number for player don barber?
|
CREATE TABLE table_2679061_6 (pick__number INTEGER, player VARCHAR)
|
SELECT MAX(pick__number) FROM table_2679061_6 WHERE player = "Don Barber"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_6 (pick__number INTEGER, player VARCHAR) Question: What is the highest pick number for player don barber? [/INST] SELECT MAX(pick__number) FROM table_2679061_6 WHERE player = "Don Barber" </s>
|
What is the college/junior/club team for player don barber?
|
CREATE TABLE table_2679061_6 (college_junior_club_team VARCHAR, player VARCHAR)
|
SELECT college_junior_club_team FROM table_2679061_6 WHERE player = "Don Barber"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_6 (college_junior_club_team VARCHAR, player VARCHAR) Question: What is the college/junior/club team for player don barber? [/INST] SELECT college_junior_club_team FROM table_2679061_6 WHERE player = "Don Barber" </s>
|
What is the nhl team for the position centre and nationality united states?
|
CREATE TABLE table_2679061_6 (nhl_team VARCHAR, position VARCHAR, nationality VARCHAR)
|
SELECT nhl_team FROM table_2679061_6 WHERE position = "Centre" AND nationality = "United States"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_6 (nhl_team VARCHAR, position VARCHAR, nationality VARCHAR) Question: What is the nhl team for the position centre and nationality united states? [/INST] SELECT nhl_team FROM table_2679061_6 WHERE position = "Centre" AND nationality = "United States" </s>
|
What country do the Winnipeg Jets come from?
|
CREATE TABLE table_2679061_7 (nationality VARCHAR, nhl_team VARCHAR)
|
SELECT nationality FROM table_2679061_7 WHERE nhl_team = "Winnipeg Jets"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_7 (nationality VARCHAR, nhl_team VARCHAR) Question: What country do the Winnipeg Jets come from? [/INST] SELECT nationality FROM table_2679061_7 WHERE nhl_team = "Winnipeg Jets" </s>
|
How many teams got pick number 130?
|
CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, pick__number VARCHAR)
|
SELECT COUNT(college_junior_club_team) FROM table_2679061_7 WHERE pick__number = 130
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, pick__number VARCHAR) Question: How many teams got pick number 130? [/INST] SELECT COUNT(college_junior_club_team) FROM table_2679061_7 WHERE pick__number = 130 </s>
|
Where are the Buffalo Sabres from?
|
CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
|
SELECT college_junior_club_team FROM table_2679061_7 WHERE nhl_team = "Buffalo Sabres"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR) Question: Where are the Buffalo Sabres from? [/INST] SELECT college_junior_club_team FROM table_2679061_7 WHERE nhl_team = "Buffalo Sabres" </s>
|
When harvey laidman is the director what is the season number?
|
CREATE TABLE table_26804862_1 (season__number VARCHAR, directed_by VARCHAR)
|
SELECT season__number FROM table_26804862_1 WHERE directed_by = "Harvey Laidman"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26804862_1 (season__number VARCHAR, directed_by VARCHAR) Question: When harvey laidman is the director what is the season number? [/INST] SELECT season__number FROM table_26804862_1 WHERE directed_by = "Harvey Laidman" </s>
|
When 3.89 is the production code how many season numbers are there?
|
CREATE TABLE table_26804862_1 (season__number VARCHAR, production_code VARCHAR)
|
SELECT COUNT(season__number) FROM table_26804862_1 WHERE production_code = "3.89"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26804862_1 (season__number VARCHAR, production_code VARCHAR) Question: When 3.89 is the production code how many season numbers are there? [/INST] SELECT COUNT(season__number) FROM table_26804862_1 WHERE production_code = "3.89" </s>
|
How many episodes is episode number 4 in the series?
|
CREATE TABLE table_26808178_1 (title VARCHAR, series__number VARCHAR)
|
SELECT COUNT(title) FROM table_26808178_1 WHERE series__number = 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26808178_1 (title VARCHAR, series__number VARCHAR) Question: How many episodes is episode number 4 in the series? [/INST] SELECT COUNT(title) FROM table_26808178_1 WHERE series__number = 4 </s>
|
How many million viewers watched episode 3 in the series?
|
CREATE TABLE table_26808178_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
|
SELECT us_viewers__millions_ FROM table_26808178_1 WHERE series__number = 3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26808178_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR) Question: How many million viewers watched episode 3 in the series? [/INST] SELECT us_viewers__millions_ FROM table_26808178_1 WHERE series__number = 3 </s>
|
What is the maximum home attendance if the average is 11,322?
|
CREATE TABLE table_26816495_26 (home_att INTEGER, avg VARCHAR)
|
SELECT MAX(home_att) FROM table_26816495_26 WHERE avg = "11,322"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_26816495_26 (home_att INTEGER, avg VARCHAR) Question: What is the maximum home attendance if the average is 11,322? [/INST] SELECT MAX(home_att) FROM table_26816495_26 WHERE avg = "11,322" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.