instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What are the numbers for GDP (nominal) per capita and USD (2012) of the area with Phnom Penh as capital?
|
CREATE TABLE table_28741_1 (_usd__2012_ VARCHAR, gdp__nominal__per_capita VARCHAR, capital VARCHAR)
|
SELECT COUNT(gdp__nominal__per_capita), _usd__2012_ FROM table_28741_1 WHERE capital = "Phnom Penh"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28741_1 (_usd__2012_ VARCHAR, gdp__nominal__per_capita VARCHAR, capital VARCHAR) Question: What are the numbers for GDP (nominal) per capita and USD (2012) of the area with Phnom Penh as capital? [/INST] SELECT COUNT(gdp__nominal__per_capita), _usd__2012_ FROM table_28741_1 WHERE capital = "Phnom Penh" </s>
|
What is the distance of jockey Jason Titley?
|
CREATE TABLE table_28750142_1 (distance VARCHAR, jockey VARCHAR)
|
SELECT distance FROM table_28750142_1 WHERE jockey = "Jason Titley"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28750142_1 (distance VARCHAR, jockey VARCHAR) Question: What is the distance of jockey Jason Titley? [/INST] SELECT distance FROM table_28750142_1 WHERE jockey = "Jason Titley" </s>
|
What is the name of the jockey for Pink Gin?
|
CREATE TABLE table_28750142_1 (jockey VARCHAR, name VARCHAR)
|
SELECT jockey FROM table_28750142_1 WHERE name = "Pink Gin"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28750142_1 (jockey VARCHAR, name VARCHAR) Question: What is the name of the jockey for Pink Gin? [/INST] SELECT jockey FROM table_28750142_1 WHERE name = "Pink Gin" </s>
|
The location attendance is ford center 17,021 on what dates?
|
CREATE TABLE table_28768469_10 (date VARCHAR, location_attendance VARCHAR)
|
SELECT date FROM table_28768469_10 WHERE location_attendance = "Ford Center 17,021"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28768469_10 (date VARCHAR, location_attendance VARCHAR) Question: The location attendance is ford center 17,021 on what dates? [/INST] SELECT date FROM table_28768469_10 WHERE location_attendance = "Ford Center 17,021" </s>
|
In game 73, what were the total number of high assists?
|
CREATE TABLE table_28768469_10 (high_assists VARCHAR, game VARCHAR)
|
SELECT COUNT(high_assists) FROM table_28768469_10 WHERE game = 73
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28768469_10 (high_assists VARCHAR, game VARCHAR) Question: In game 73, what were the total number of high assists? [/INST] SELECT COUNT(high_assists) FROM table_28768469_10 WHERE game = 73 </s>
|
What is the location for the game on October 20 with it's corresponding attendance?
|
CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR)
|
SELECT location_attendance FROM table_28768469_2 WHERE date = "October 20"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR) Question: What is the location for the game on October 20 with it's corresponding attendance? [/INST] SELECT location_attendance FROM table_28768469_2 WHERE date = "October 20" </s>
|
Who directed episode 11 of the season?
|
CREATE TABLE table_28785738_1 (director VARCHAR, no_in_season VARCHAR)
|
SELECT director FROM table_28785738_1 WHERE no_in_season = 11
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28785738_1 (director VARCHAR, no_in_season VARCHAR) Question: Who directed episode 11 of the season? [/INST] SELECT director FROM table_28785738_1 WHERE no_in_season = 11 </s>
|
How many episode titles does episode 19 in the season have?
|
CREATE TABLE table_28802668_3 (title VARCHAR, no_in_season VARCHAR)
|
SELECT COUNT(title) FROM table_28802668_3 WHERE no_in_season = 19
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28802668_3 (title VARCHAR, no_in_season VARCHAR) Question: How many episode titles does episode 19 in the season have? [/INST] SELECT COUNT(title) FROM table_28802668_3 WHERE no_in_season = 19 </s>
|
if the bbi is 4/39 what is the average
|
CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR)
|
SELECT average FROM table_28798161_3 WHERE bbi = "4/39"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR) Question: if the bbi is 4/39 what is the average [/INST] SELECT average FROM table_28798161_3 WHERE bbi = "4/39" </s>
|
if the economy is 3.63 what is the bbi
|
CREATE TABLE table_28798161_3 (bbi VARCHAR, economy VARCHAR)
|
SELECT bbi FROM table_28798161_3 WHERE economy = "3.63"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28798161_3 (bbi VARCHAR, economy VARCHAR) Question: if the economy is 3.63 what is the bbi [/INST] SELECT bbi FROM table_28798161_3 WHERE economy = "3.63" </s>
|
What is the poor law union on Marshalstown?
|
CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR)
|
SELECT poor_law_union FROM table_28802165_1 WHERE townland = "Marshalstown"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR) Question: What is the poor law union on Marshalstown? [/INST] SELECT poor_law_union FROM table_28802165_1 WHERE townland = "Marshalstown" </s>
|
What is the maximum acres in Castledermot?
|
CREATE TABLE table_28802165_1 (s_acre INTEGER, civil_parish VARCHAR)
|
SELECT MAX(s_acre) FROM table_28802165_1 WHERE civil_parish = "Castledermot"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28802165_1 (s_acre INTEGER, civil_parish VARCHAR) Question: What is the maximum acres in Castledermot? [/INST] SELECT MAX(s_acre) FROM table_28802165_1 WHERE civil_parish = "Castledermot" </s>
|
What is the civil parish of Aghafullim?
|
CREATE TABLE table_28802165_1 (civil_parish VARCHAR, townland VARCHAR)
|
SELECT civil_parish FROM table_28802165_1 WHERE townland = "Aghafullim"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28802165_1 (civil_parish VARCHAR, townland VARCHAR) Question: What is the civil parish of Aghafullim? [/INST] SELECT civil_parish FROM table_28802165_1 WHERE townland = "Aghafullim" </s>
|
How many acres is the townland of Maddenstown Middle?
|
CREATE TABLE table_28802165_1 (s_acre VARCHAR, townland VARCHAR)
|
SELECT s_acre FROM table_28802165_1 WHERE townland = "Maddenstown Middle"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28802165_1 (s_acre VARCHAR, townland VARCHAR) Question: How many acres is the townland of Maddenstown Middle? [/INST] SELECT s_acre FROM table_28802165_1 WHERE townland = "Maddenstown Middle" </s>
|
How many original air dates did the episode directed by Bethany rooney have?
|
CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR)
|
SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR) Question: How many original air dates did the episode directed by Bethany rooney have? [/INST] SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney" </s>
|
What is the production code for the episode that aired on October 15, 2004?
|
CREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR)
|
SELECT production_code FROM table_28859177_3 WHERE original_air_date = "October 15, 2004"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR) Question: What is the production code for the episode that aired on October 15, 2004? [/INST] SELECT production_code FROM table_28859177_3 WHERE original_air_date = "October 15, 2004" </s>
|
What is the original air date for episode graeme clifford directed and lindsay sturman wrote?
|
CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
|
SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) Question: What is the original air date for episode graeme clifford directed and lindsay sturman wrote? [/INST] SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman" </s>
|
Who was the player that was picked by Los Angeles Kings?
|
CREATE TABLE table_2886617_6 (player VARCHAR, nhl_team VARCHAR)
|
SELECT player FROM table_2886617_6 WHERE nhl_team = "Los Angeles Kings"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_6 (player VARCHAR, nhl_team VARCHAR) Question: Who was the player that was picked by Los Angeles Kings? [/INST] SELECT player FROM table_2886617_6 WHERE nhl_team = "Los Angeles Kings" </s>
|
What nationality was peter slamiar?
|
CREATE TABLE table_2886617_6 (nationality VARCHAR, player VARCHAR)
|
SELECT nationality FROM table_2886617_6 WHERE player = "Peter Slamiar"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_6 (nationality VARCHAR, player VARCHAR) Question: What nationality was peter slamiar? [/INST] SELECT nationality FROM table_2886617_6 WHERE player = "Peter Slamiar" </s>
|
What team did the New York Rangers recruit a player from?
|
CREATE TABLE table_2886617_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
|
SELECT college_junior_club_team FROM table_2886617_4 WHERE nhl_team = "New York Rangers"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR) Question: What team did the New York Rangers recruit a player from? [/INST] SELECT college_junior_club_team FROM table_2886617_4 WHERE nhl_team = "New York Rangers" </s>
|
How many countries had players named Marc Savard get picked?
|
CREATE TABLE table_2886617_4 (nationality VARCHAR, player VARCHAR)
|
SELECT COUNT(nationality) FROM table_2886617_4 WHERE player = "Marc Savard"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_4 (nationality VARCHAR, player VARCHAR) Question: How many countries had players named Marc Savard get picked? [/INST] SELECT COUNT(nationality) FROM table_2886617_4 WHERE player = "Marc Savard" </s>
|
What country does the player who joined the Vancouver Canucks originally hail from?
|
CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)
|
SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR) Question: What country does the player who joined the Vancouver Canucks originally hail from? [/INST] SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks" </s>
|
How many times did Alyn McCauley get picked?
|
CREATE TABLE table_2886617_4 (pick VARCHAR, player VARCHAR)
|
SELECT COUNT(pick) FROM table_2886617_4 WHERE player = "Alyn McCauley"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_4 (pick VARCHAR, player VARCHAR) Question: How many times did Alyn McCauley get picked? [/INST] SELECT COUNT(pick) FROM table_2886617_4 WHERE player = "Alyn McCauley" </s>
|
Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)?
|
CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)
|
SELECT nationality FROM table_2886617_3 WHERE position = "Left Wing" AND college_junior_club_team = "Portland Winterhawks (WHL)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR) Question: Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)? [/INST] SELECT nationality FROM table_2886617_3 WHERE position = "Left Wing" AND college_junior_club_team = "Portland Winterhawks (WHL)" </s>
|
Which nhl team has the player kevin mckay?
|
CREATE TABLE table_2886617_3 (nhl_team VARCHAR, player VARCHAR)
|
SELECT nhl_team FROM table_2886617_3 WHERE player = "Kevin McKay"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_3 (nhl_team VARCHAR, player VARCHAR) Question: Which nhl team has the player kevin mckay? [/INST] SELECT nhl_team FROM table_2886617_3 WHERE player = "Kevin McKay" </s>
|
How many picks have canada as the nationality and larry courville is the player?
|
CREATE TABLE table_2886617_3 (pick VARCHAR, nationality VARCHAR, player VARCHAR)
|
SELECT COUNT(pick) FROM table_2886617_3 WHERE nationality = "Canada" AND player = "Larry Courville"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_3 (pick VARCHAR, nationality VARCHAR, player VARCHAR) Question: How many picks have canada as the nationality and larry courville is the player? [/INST] SELECT COUNT(pick) FROM table_2886617_3 WHERE nationality = "Canada" AND player = "Larry Courville" </s>
|
Which pick has marko makinen as the player?
|
CREATE TABLE table_2886617_3 (pick VARCHAR, player VARCHAR)
|
SELECT pick FROM table_2886617_3 WHERE player = "Marko Makinen"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_3 (pick VARCHAR, player VARCHAR) Question: Which pick has marko makinen as the player? [/INST] SELECT pick FROM table_2886617_3 WHERE player = "Marko Makinen" </s>
|
What college club team did the Dallas Stars choose their draft pick from?
|
CREATE TABLE table_2886617_9 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
|
SELECT college_junior_club_team FROM table_2886617_9 WHERE nhl_team = "Dallas Stars"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_9 (college_junior_club_team VARCHAR, nhl_team VARCHAR) Question: What college club team did the Dallas Stars choose their draft pick from? [/INST] SELECT college_junior_club_team FROM table_2886617_9 WHERE nhl_team = "Dallas Stars" </s>
|
Who was picked for the draft by St. Louis Blues?
|
CREATE TABLE table_2886617_9 (player VARCHAR, nhl_team VARCHAR)
|
SELECT player FROM table_2886617_9 WHERE nhl_team = "St. Louis Blues"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2886617_9 (player VARCHAR, nhl_team VARCHAR) Question: Who was picked for the draft by St. Louis Blues? [/INST] SELECT player FROM table_2886617_9 WHERE nhl_team = "St. Louis Blues" </s>
|
Which stadium is located in Adelaide, South Australia?
|
CREATE TABLE table_28885977_1 (stadium VARCHAR, location VARCHAR)
|
SELECT stadium FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28885977_1 (stadium VARCHAR, location VARCHAR) Question: Which stadium is located in Adelaide, South Australia? [/INST] SELECT stadium FROM table_28885977_1 WHERE location = "Adelaide, South Australia" </s>
|
In what location was a stadium built for the St Kilda Football Club?
|
CREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR)
|
SELECT location FROM table_28885977_1 WHERE built_for = "St Kilda Football Club"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR) Question: In what location was a stadium built for the St Kilda Football Club? [/INST] SELECT location FROM table_28885977_1 WHERE built_for = "St Kilda Football Club" </s>
|
What is the location of the Moorabbin Oval stadium?
|
CREATE TABLE table_28885977_1 (location VARCHAR, stadium VARCHAR)
|
SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28885977_1 (location VARCHAR, stadium VARCHAR) Question: What is the location of the Moorabbin Oval stadium? [/INST] SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval" </s>
|
What was the stadium in Adelaide, South Australia built for?
|
CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)
|
SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR) Question: What was the stadium in Adelaide, South Australia built for? [/INST] SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia" </s>
|
What was the stadium in Moorabbin, Victoria built for?
|
CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)
|
SELECT built_for FROM table_28885977_1 WHERE location = "Moorabbin, Victoria"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR) Question: What was the stadium in Moorabbin, Victoria built for? [/INST] SELECT built_for FROM table_28885977_1 WHERE location = "Moorabbin, Victoria" </s>
|
What was the capacity at construction of the stadium in Gold Coast, Queensland?
|
CREATE TABLE table_28885977_1 (capacity_at_construction VARCHAR, location VARCHAR)
|
SELECT capacity_at_construction FROM table_28885977_1 WHERE location = "Gold Coast, Queensland"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28885977_1 (capacity_at_construction VARCHAR, location VARCHAR) Question: What was the capacity at construction of the stadium in Gold Coast, Queensland? [/INST] SELECT capacity_at_construction FROM table_28885977_1 WHERE location = "Gold Coast, Queensland" </s>
|
how many total number of moto2/250cc when country is united states
|
CREATE TABLE table_2889810_2 (moto2_250cc VARCHAR, country VARCHAR)
|
SELECT COUNT(moto2_250cc) FROM table_2889810_2 WHERE country = "United States"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2889810_2 (moto2_250cc VARCHAR, country VARCHAR) Question: how many total number of moto2/250cc when country is united states [/INST] SELECT COUNT(moto2_250cc) FROM table_2889810_2 WHERE country = "United States" </s>
|
how many country has moto3/125cc with 15
|
CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR)
|
SELECT country FROM table_2889810_2 WHERE moto3_125cc = 15
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR) Question: how many country has moto3/125cc with 15 [/INST] SELECT country FROM table_2889810_2 WHERE moto3_125cc = 15 </s>
|
When arthur collins is the winner what is the reason?
|
CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR)
|
SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR) Question: When arthur collins is the winner what is the reason? [/INST] SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins" </s>
|
When ihaia tainui is the incumbent what is the date?
|
CREATE TABLE table_28898948_3 (date VARCHAR, incumbent VARCHAR)
|
SELECT date FROM table_28898948_3 WHERE incumbent = "Ihaia Tainui"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28898948_3 (date VARCHAR, incumbent VARCHAR) Question: When ihaia tainui is the incumbent what is the date? [/INST] SELECT date FROM table_28898948_3 WHERE incumbent = "Ihaia Tainui" </s>
|
When rangitikei is the electorate who is the winner?
|
CREATE TABLE table_28898948_3 (winner VARCHAR, electorate VARCHAR)
|
SELECT winner FROM table_28898948_3 WHERE electorate = "Rangitikei"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28898948_3 (winner VARCHAR, electorate VARCHAR) Question: When rangitikei is the electorate who is the winner? [/INST] SELECT winner FROM table_28898948_3 WHERE electorate = "Rangitikei" </s>
|
When waikaia is the electorate what is the highest by-election?
|
CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR)
|
SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR) Question: When waikaia is the electorate what is the highest by-election? [/INST] SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia" </s>
|
When 1881 is the by-election and death is the reason who is the incumbent?
|
CREATE TABLE table_28898948_3 (incumbent VARCHAR, reason VARCHAR, by_election VARCHAR)
|
SELECT incumbent FROM table_28898948_3 WHERE reason = "Death" AND by_election = 1881
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28898948_3 (incumbent VARCHAR, reason VARCHAR, by_election VARCHAR) Question: When 1881 is the by-election and death is the reason who is the incumbent? [/INST] SELECT incumbent FROM table_28898948_3 WHERE reason = "Death" AND by_election = 1881 </s>
|
What is the name of the partner that has a winner outcome and a hard surface?
|
CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR)
|
SELECT partner FROM table_28948937_3 WHERE outcome = "Winner" AND surface = "Hard"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR) Question: What is the name of the partner that has a winner outcome and a hard surface? [/INST] SELECT partner FROM table_28948937_3 WHERE outcome = "Winner" AND surface = "Hard" </s>
|
How many week 2 scores have a week 7 score of 40 + 40 = 80?
|
CREATE TABLE table_28946565_2 (week_2 VARCHAR, week_7 VARCHAR)
|
SELECT COUNT(week_2) FROM table_28946565_2 WHERE week_7 = 40 + 40 = 80
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28946565_2 (week_2 VARCHAR, week_7 VARCHAR) Question: How many week 2 scores have a week 7 score of 40 + 40 = 80? [/INST] SELECT COUNT(week_2) FROM table_28946565_2 WHERE week_7 = 40 + 40 = 80 </s>
|
What is the smallest week 3 score?
|
CREATE TABLE table_28946565_2 (week_3 INTEGER)
|
SELECT MIN(week_3) FROM table_28946565_2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28946565_2 (week_3 INTEGER) Question: What is the smallest week 3 score? [/INST] SELECT MIN(week_3) FROM table_28946565_2 </s>
|
Which couple had a week 2 score of exactly 23?
|
CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR)
|
SELECT couple FROM table_28946565_2 WHERE week_2 = 23
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR) Question: Which couple had a week 2 score of exactly 23? [/INST] SELECT couple FROM table_28946565_2 WHERE week_2 = 23 </s>
|
when 68 is the episode number what is the series number?
|
CREATE TABLE table_28967275_3 (series__number VARCHAR, episode__number VARCHAR)
|
SELECT series__number FROM table_28967275_3 WHERE episode__number = 68
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28967275_3 (series__number VARCHAR, episode__number VARCHAR) Question: when 68 is the episode number what is the series number? [/INST] SELECT series__number FROM table_28967275_3 WHERE episode__number = 68 </s>
|
when 69 is the episode number what is the air date?
|
CREATE TABLE table_28967275_3 (original_air_date VARCHAR, episode__number VARCHAR)
|
SELECT original_air_date FROM table_28967275_3 WHERE episode__number = 69
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_28967275_3 (original_air_date VARCHAR, episode__number VARCHAR) Question: when 69 is the episode number what is the air date? [/INST] SELECT original_air_date FROM table_28967275_3 WHERE episode__number = 69 </s>
|
What draft pick is a goaltender?
|
CREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR)
|
SELECT pick__number FROM table_2897457_1 WHERE position = "Goaltender"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR) Question: What draft pick is a goaltender? [/INST] SELECT pick__number FROM table_2897457_1 WHERE position = "Goaltender" </s>
|
What position does Olaf Kolzig play?
|
CREATE TABLE table_2897457_1 (position VARCHAR, player VARCHAR)
|
SELECT position FROM table_2897457_1 WHERE player = "Olaf Kolzig"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2897457_1 (position VARCHAR, player VARCHAR) Question: What position does Olaf Kolzig play? [/INST] SELECT position FROM table_2897457_1 WHERE player = "Olaf Kolzig" </s>
|
What team drafted a player from Sweden?
|
CREATE TABLE table_2897457_1 (nhl_team VARCHAR, nationality VARCHAR)
|
SELECT nhl_team FROM table_2897457_1 WHERE nationality = "Sweden"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2897457_1 (nhl_team VARCHAR, nationality VARCHAR) Question: What team drafted a player from Sweden? [/INST] SELECT nhl_team FROM table_2897457_1 WHERE nationality = "Sweden" </s>
|
How many company commanders were commissioned or elected on November 12, 1861?
|
CREATE TABLE table_29023680_2 (company VARCHAR, date_of_election_commission VARCHAR)
|
SELECT COUNT(company) AS Commander FROM table_29023680_2 WHERE date_of_election_commission = "November 12, 1861"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29023680_2 (company VARCHAR, date_of_election_commission VARCHAR) Question: How many company commanders were commissioned or elected on November 12, 1861? [/INST] SELECT COUNT(company) AS Commander FROM table_29023680_2 WHERE date_of_election_commission = "November 12, 1861" </s>
|
In the 250 series on clay what were the scores?
|
CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR)
|
SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR) Question: In the 250 series on clay what were the scores? [/INST] SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series" </s>
|
what is the most amount of cattle where they live in british columbia
|
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
|
SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "British Columbia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR) Question: what is the most amount of cattle where they live in british columbia [/INST] SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "British Columbia" </s>
|
what is the most number where cattle is 13000
|
CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR)
|
SELECT COUNT(province) FROM table_29012710_1 WHERE number_of_dairy_cows = 13000
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR) Question: what is the most number where cattle is 13000 [/INST] SELECT COUNT(province) FROM table_29012710_1 WHERE number_of_dairy_cows = 13000 </s>
|
what is the amount where the area is new brunswick
|
CREATE TABLE table_29012710_1 (production__hectolitres_ VARCHAR, province VARCHAR)
|
SELECT production__hectolitres_ FROM table_29012710_1 WHERE province = "New Brunswick"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29012710_1 (production__hectolitres_ VARCHAR, province VARCHAR) Question: what is the amount where the area is new brunswick [/INST] SELECT production__hectolitres_ FROM table_29012710_1 WHERE province = "New Brunswick" </s>
|
what is the location where there are over 200 cattle businesses
|
CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR)
|
SELECT province FROM table_29012710_1 WHERE number_of_dairy_farms = 200
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR) Question: what is the location where there are over 200 cattle businesses [/INST] SELECT province FROM table_29012710_1 WHERE number_of_dairy_farms = 200 </s>
|
what is the least amount of cattle head
|
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER)
|
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER) Question: what is the least amount of cattle head [/INST] SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 </s>
|
what is the least amount of milk cattle in ontario
|
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
|
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "Ontario"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR) Question: what is the least amount of milk cattle in ontario [/INST] SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "Ontario" </s>
|
What is the production code of the episode that was watched by 3.81 million U.S. viewers?
|
CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
|
SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) Question: What is the production code of the episode that was watched by 3.81 million U.S. viewers? [/INST] SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81" </s>
|
Who wrote the episode with a production code of 116?
|
CREATE TABLE table_29087004_2 (written_by VARCHAR, production_code VARCHAR)
|
SELECT written_by FROM table_29087004_2 WHERE production_code = 116
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29087004_2 (written_by VARCHAR, production_code VARCHAR) Question: Who wrote the episode with a production code of 116? [/INST] SELECT written_by FROM table_29087004_2 WHERE production_code = 116 </s>
|
What number episode in the series had and original United States air date of December 24, 2010?
|
CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)
|
SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR) Question: What number episode in the series had and original United States air date of December 24, 2010? [/INST] SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010" </s>
|
Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011?
|
CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR)
|
SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR) Question: Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011? [/INST] SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011" </s>
|
What is the original United States air date of the episode written by Mike Ferris?
|
CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR)
|
SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = "Mike Ferris"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR) Question: What is the original United States air date of the episode written by Mike Ferris? [/INST] SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = "Mike Ferris" </s>
|
Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe?
|
CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)
|
SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Joe Calzaghe"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR) Question: Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe? [/INST] SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Joe Calzaghe" </s>
|
What were the scores when Jamie and Johns guest was Phillips Idowu?
|
CREATE TABLE table_29141354_2 (scores VARCHAR, jamie_and_johns_guest VARCHAR)
|
SELECT scores FROM table_29141354_2 WHERE jamie_and_johns_guest = "Phillips Idowu"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29141354_2 (scores VARCHAR, jamie_and_johns_guest VARCHAR) Question: What were the scores when Jamie and Johns guest was Phillips Idowu? [/INST] SELECT scores FROM table_29141354_2 WHERE jamie_and_johns_guest = "Phillips Idowu" </s>
|
When was episode 02x02 first broadcast?
|
CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR)
|
SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x02"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR) Question: When was episode 02x02 first broadcast? [/INST] SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x02" </s>
|
Who was Andrew and Georgies guest when Jamie and Johns guest was Jessica Ennis?
|
CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)
|
SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Jessica Ennis"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR) Question: Who was Andrew and Georgies guest when Jamie and Johns guest was Jessica Ennis? [/INST] SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Jessica Ennis" </s>
|
When was episode 02x07 first broadcast?
|
CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR)
|
SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x07"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR) Question: When was episode 02x07 first broadcast? [/INST] SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x07" </s>
|
List all the MCs with peak ranking of 6 who were inducted in 2007.
|
CREATE TABLE table_29160596_1 (top_mc VARCHAR, year_inducted VARCHAR, peak_ranking VARCHAR)
|
SELECT top_mc FROM table_29160596_1 WHERE year_inducted = 2007 AND peak_ranking = 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29160596_1 (top_mc VARCHAR, year_inducted VARCHAR, peak_ranking VARCHAR) Question: List all the MCs with peak ranking of 6 who were inducted in 2007. [/INST] SELECT top_mc FROM table_29160596_1 WHERE year_inducted = 2007 AND peak_ranking = 6 </s>
|
List all the MCs with 5 appearances who were inducted in 2007?
|
CREATE TABLE table_29160596_1 (top_mc VARCHAR, appearances VARCHAR, year_inducted VARCHAR)
|
SELECT top_mc FROM table_29160596_1 WHERE appearances = 5 AND year_inducted = 2007
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29160596_1 (top_mc VARCHAR, appearances VARCHAR, year_inducted VARCHAR) Question: List all the MCs with 5 appearances who were inducted in 2007? [/INST] SELECT top_mc FROM table_29160596_1 WHERE appearances = 5 AND year_inducted = 2007 </s>
|
How many appearances by Meek Mill?
|
CREATE TABLE table_29160596_1 (appearances INTEGER, top_mc VARCHAR)
|
SELECT MAX(appearances) FROM table_29160596_1 WHERE top_mc = "Meek Mill"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29160596_1 (appearances INTEGER, top_mc VARCHAR) Question: How many appearances by Meek Mill? [/INST] SELECT MAX(appearances) FROM table_29160596_1 WHERE top_mc = "Meek Mill" </s>
|
What are the championship venues where the score was 6β7 (4β7) , 3β6?
|
CREATE TABLE table_29163303_1 (championship VARCHAR, score VARCHAR)
|
SELECT championship FROM table_29163303_1 WHERE score = "6β7 (4β7) , 3β6"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29163303_1 (championship VARCHAR, score VARCHAR) Question: What are the championship venues where the score was 6β7 (4β7) , 3β6? [/INST] SELECT championship FROM table_29163303_1 WHERE score = "6β7 (4β7) , 3β6" </s>
|
On what surface was the Australian Open (6) played on?
|
CREATE TABLE table_29163303_1 (surface VARCHAR, championship VARCHAR)
|
SELECT surface FROM table_29163303_1 WHERE championship = "Australian Open (6)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29163303_1 (surface VARCHAR, championship VARCHAR) Question: On what surface was the Australian Open (6) played on? [/INST] SELECT surface FROM table_29163303_1 WHERE championship = "Australian Open (6)" </s>
|
Who was Bob Bryan's partner/s on a hard surface in 2003?
|
CREATE TABLE table_29163303_1 (partner VARCHAR, year VARCHAR, surface VARCHAR)
|
SELECT partner FROM table_29163303_1 WHERE year = 2003 AND surface = "Hard"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29163303_1 (partner VARCHAR, year VARCHAR, surface VARCHAR) Question: Who was Bob Bryan's partner/s on a hard surface in 2003? [/INST] SELECT partner FROM table_29163303_1 WHERE year = 2003 AND surface = "Hard" </s>
|
which vessel area was called for on november 30, 1970
|
CREATE TABLE table_291768_1 (shipyard VARCHAR, commissioned VARCHAR)
|
SELECT shipyard FROM table_291768_1 WHERE commissioned = "November 30, 1970"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_291768_1 (shipyard VARCHAR, commissioned VARCHAR) Question: which vessel area was called for on november 30, 1970 [/INST] SELECT shipyard FROM table_291768_1 WHERE commissioned = "November 30, 1970" </s>
|
what project was initially started before september 20, 1968
|
CREATE TABLE table_291768_1 (commissioned VARCHAR, launched VARCHAR)
|
SELECT commissioned FROM table_291768_1 WHERE launched = "September 20, 1968"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_291768_1 (commissioned VARCHAR, launched VARCHAR) Question: what project was initially started before september 20, 1968 [/INST] SELECT commissioned FROM table_291768_1 WHERE launched = "September 20, 1968" </s>
|
when was the first start date that actually began on august 6, 1969
|
CREATE TABLE table_291768_1 (launched VARCHAR, commissioned VARCHAR)
|
SELECT launched FROM table_291768_1 WHERE commissioned = "August 6, 1969"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_291768_1 (launched VARCHAR, commissioned VARCHAR) Question: when was the first start date that actually began on august 6, 1969 [/INST] SELECT launched FROM table_291768_1 WHERE commissioned = "August 6, 1969" </s>
|
Who directed the episode with production code ip01003?
|
CREATE TABLE table_29273057_1 (directed_by VARCHAR, production_code VARCHAR)
|
SELECT directed_by FROM table_29273057_1 WHERE production_code = "IP01003"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29273057_1 (directed_by VARCHAR, production_code VARCHAR) Question: Who directed the episode with production code ip01003? [/INST] SELECT directed_by FROM table_29273057_1 WHERE production_code = "IP01003" </s>
|
How many poles does the European F3 Open series have?
|
CREATE TABLE table_29434211_1 (poles VARCHAR, series VARCHAR)
|
SELECT poles FROM table_29434211_1 WHERE series = "European F3 Open"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29434211_1 (poles VARCHAR, series VARCHAR) Question: How many poles does the European F3 Open series have? [/INST] SELECT poles FROM table_29434211_1 WHERE series = "European F3 Open" </s>
|
What is the maximum season that has exactly 2 podiums?
|
CREATE TABLE table_29434211_1 (season INTEGER, podiums VARCHAR)
|
SELECT MAX(season) FROM table_29434211_1 WHERE podiums = 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29434211_1 (season INTEGER, podiums VARCHAR) Question: What is the maximum season that has exactly 2 podiums? [/INST] SELECT MAX(season) FROM table_29434211_1 WHERE podiums = 2 </s>
|
Who wrote episode 23 of the season?
|
CREATE TABLE table_29436007_1 (written_by VARCHAR, no_in_season VARCHAR)
|
SELECT written_by FROM table_29436007_1 WHERE no_in_season = 23
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29436007_1 (written_by VARCHAR, no_in_season VARCHAR) Question: Who wrote episode 23 of the season? [/INST] SELECT written_by FROM table_29436007_1 WHERE no_in_season = 23 </s>
|
How many seasons are there for the 3rd position?
|
CREATE TABLE table_29471472_1 (season VARCHAR, position VARCHAR)
|
SELECT COUNT(season) FROM table_29471472_1 WHERE position = "3rd"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29471472_1 (season VARCHAR, position VARCHAR) Question: How many seasons are there for the 3rd position? [/INST] SELECT COUNT(season) FROM table_29471472_1 WHERE position = "3rd" </s>
|
What season was the team autosport academy?
|
CREATE TABLE table_29471472_1 (season INTEGER, team VARCHAR)
|
SELECT MAX(season) FROM table_29471472_1 WHERE team = "Autosport Academy"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29471472_1 (season INTEGER, team VARCHAR) Question: What season was the team autosport academy? [/INST] SELECT MAX(season) FROM table_29471472_1 WHERE team = "Autosport Academy" </s>
|
What is the series for race 7
|
CREATE TABLE table_29471472_1 (series VARCHAR, races VARCHAR)
|
SELECT series FROM table_29471472_1 WHERE races = 7
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29471472_1 (series VARCHAR, races VARCHAR) Question: What is the series for race 7 [/INST] SELECT series FROM table_29471472_1 WHERE races = 7 </s>
|
What season shows podium 7?
|
CREATE TABLE table_29471472_1 (season INTEGER, podiums VARCHAR)
|
SELECT MIN(season) FROM table_29471472_1 WHERE podiums = 7
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29471472_1 (season INTEGER, podiums VARCHAR) Question: What season shows podium 7? [/INST] SELECT MIN(season) FROM table_29471472_1 WHERE podiums = 7 </s>
|
How many French heads of state have a head of mission of Xavier Daufresne de la Chevalerie?
|
CREATE TABLE table_29474481_4 (french_head_of_state VARCHAR, head_of_mission VARCHAR)
|
SELECT COUNT(french_head_of_state) FROM table_29474481_4 WHERE head_of_mission = "Xavier Daufresne de la Chevalerie"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29474481_4 (french_head_of_state VARCHAR, head_of_mission VARCHAR) Question: How many French heads of state have a head of mission of Xavier Daufresne de la Chevalerie? [/INST] SELECT COUNT(french_head_of_state) FROM table_29474481_4 WHERE head_of_mission = "Xavier Daufresne de la Chevalerie" </s>
|
What city is Tiffin University located in?
|
CREATE TABLE table_29483673_1 (location___city VARCHAR, institution VARCHAR)
|
SELECT location___city FROM table_29483673_1 WHERE institution = "Tiffin University"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29483673_1 (location___city VARCHAR, institution VARCHAR) Question: What city is Tiffin University located in? [/INST] SELECT location___city FROM table_29483673_1 WHERE institution = "Tiffin University" </s>
|
What is the enrollment at the private university?
|
CREATE TABLE table_29483673_1 (enrollment VARCHAR, affiliation VARCHAR)
|
SELECT enrollment FROM table_29483673_1 WHERE affiliation = "Private"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29483673_1 (enrollment VARCHAR, affiliation VARCHAR) Question: What is the enrollment at the private university? [/INST] SELECT enrollment FROM table_29483673_1 WHERE affiliation = "Private" </s>
|
What is the original air date when the director is Rowan Woods and the writer is Peter Duncan?
|
CREATE TABLE table_29494395_3 (originalair_date VARCHAR, director VARCHAR, writer VARCHAR)
|
SELECT originalair_date FROM table_29494395_3 WHERE director = "Rowan Woods" AND writer = "Peter Duncan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29494395_3 (originalair_date VARCHAR, director VARCHAR, writer VARCHAR) Question: What is the original air date when the director is Rowan Woods and the writer is Peter Duncan? [/INST] SELECT originalair_date FROM table_29494395_3 WHERE director = "Rowan Woods" AND writer = "Peter Duncan" </s>
|
How many sources are there for south africa?
|
CREATE TABLE table_29487895_2 (source_s_ VARCHAR, country___region VARCHAR)
|
SELECT COUNT(source_s_) FROM table_29487895_2 WHERE country___region = "South Africa"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29487895_2 (source_s_ VARCHAR, country___region VARCHAR) Question: How many sources are there for south africa? [/INST] SELECT COUNT(source_s_) FROM table_29487895_2 WHERE country___region = "South Africa" </s>
|
What is the premiere date of the american disney xd tron uprising site?
|
CREATE TABLE table_29487895_2 (series_premiere VARCHAR, source_s_ VARCHAR)
|
SELECT series_premiere FROM table_29487895_2 WHERE source_s_ = "American Disney XD Tron Uprising Site"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29487895_2 (series_premiere VARCHAR, source_s_ VARCHAR) Question: What is the premiere date of the american disney xd tron uprising site? [/INST] SELECT series_premiere FROM table_29487895_2 WHERE source_s_ = "American Disney XD Tron Uprising Site" </s>
|
What country is in the region of France?
|
CREATE TABLE table_29487895_2 (title_in_country VARCHAR, country___region VARCHAR)
|
SELECT title_in_country FROM table_29487895_2 WHERE country___region = "France"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29487895_2 (title_in_country VARCHAR, country___region VARCHAR) Question: What country is in the region of France? [/INST] SELECT title_in_country FROM table_29487895_2 WHERE country___region = "France" </s>
|
What is the title in Canada?
|
CREATE TABLE table_29487895_2 (title_in_country VARCHAR, country___region VARCHAR)
|
SELECT title_in_country FROM table_29487895_2 WHERE country___region = "Canada"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29487895_2 (title_in_country VARCHAR, country___region VARCHAR) Question: What is the title in Canada? [/INST] SELECT title_in_country FROM table_29487895_2 WHERE country___region = "Canada" </s>
|
What was the best finish for 206 on the money list?
|
CREATE TABLE table_29499399_2 (best_finish VARCHAR, money_list_rank VARCHAR)
|
SELECT best_finish FROM table_29499399_2 WHERE money_list_rank = "206"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29499399_2 (best_finish VARCHAR, money_list_rank VARCHAR) Question: What was the best finish for 206 on the money list? [/INST] SELECT best_finish FROM table_29499399_2 WHERE money_list_rank = "206" </s>
|
How many ranks on the money list had a best finish of t10?
|
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, best_finish VARCHAR)
|
SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE best_finish = "T10"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, best_finish VARCHAR) Question: How many ranks on the money list had a best finish of t10? [/INST] SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE best_finish = "T10" </s>
|
Which money list ranks had a best finish of 2?
|
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, best_finish VARCHAR)
|
SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE best_finish = "2"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, best_finish VARCHAR) Question: Which money list ranks had a best finish of 2? [/INST] SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE best_finish = "2" </s>
|
What is Jonathan Kaye's money list ranking?
|
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, player VARCHAR)
|
SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE player = "Jonathan Kaye"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, player VARCHAR) Question: What is Jonathan Kaye's money list ranking? [/INST] SELECT COUNT(money_list_rank) FROM table_29499399_2 WHERE player = "Jonathan Kaye" </s>
|
Where is Cameron Beckman's rank on the money list?
|
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, player VARCHAR)
|
SELECT money_list_rank FROM table_29499399_2 WHERE player = "Cameron Beckman"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, player VARCHAR) Question: Where is Cameron Beckman's rank on the money list? [/INST] SELECT money_list_rank FROM table_29499399_2 WHERE player = "Cameron Beckman" </s>
|
When 6 is the w what is the pa?
|
CREATE TABLE table_29565541_2 (pa VARCHAR, w VARCHAR)
|
SELECT pa FROM table_29565541_2 WHERE w = 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_29565541_2 (pa VARCHAR, w VARCHAR) Question: When 6 is the w what is the pa? [/INST] SELECT pa FROM table_29565541_2 WHERE w = 6 </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.