instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Name the miles for jeff gordon
CREATE TABLE table_2144863_1 (miles__km_ VARCHAR, driver VARCHAR)
SELECT miles__km_ FROM table_2144863_1 WHERE driver = "Jeff Gordon"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2144863_1 (miles__km_ VARCHAR, driver VARCHAR) Question: Name the miles for jeff gordon [/INST] SELECT miles__km_ FROM table_2144863_1 WHERE driver = "Jeff Gordon" </s>
Name the laps for ryan newman
CREATE TABLE table_2144863_1 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_2144863_1 WHERE driver = "Ryan Newman"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2144863_1 (laps VARCHAR, driver VARCHAR) Question: Name the laps for ryan newman [/INST] SELECT laps FROM table_2144863_1 WHERE driver = "Ryan Newman" </s>
What is the theme of the song by Soul Brothers Six
CREATE TABLE table_21501518_1 (theme VARCHAR, original_artist VARCHAR)
SELECT theme FROM table_21501518_1 WHERE original_artist = "Soul Brothers Six"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21501518_1 (theme VARCHAR, original_artist VARCHAR) Question: What is the theme of the song by Soul Brothers Six [/INST] SELECT theme FROM table_21501518_1 WHERE original_artist = "Soul Brothers Six" </s>
Which week is the theme First Solo
CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR)
SELECT week__number FROM table_21501518_1 WHERE theme = "First Solo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR) Question: Which week is the theme First Solo [/INST] SELECT week__number FROM table_21501518_1 WHERE theme = "First Solo" </s>
Which week is the theme n/a
CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR)
SELECT week__number FROM table_21501518_1 WHERE theme = "N/A"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR) Question: Which week is the theme n/a [/INST] SELECT week__number FROM table_21501518_1 WHERE theme = "N/A" </s>
How many total songs has the order #1
CREATE TABLE table_21501518_1 (song_choice VARCHAR, order__number VARCHAR)
SELECT COUNT(song_choice) FROM table_21501518_1 WHERE order__number = "1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21501518_1 (song_choice VARCHAR, order__number VARCHAR) Question: How many total songs has the order #1 [/INST] SELECT COUNT(song_choice) FROM table_21501518_1 WHERE order__number = "1" </s>
Which order #1 has a result of bottom 2
CREATE TABLE table_21501518_1 (order__number VARCHAR, result VARCHAR)
SELECT order__number FROM table_21501518_1 WHERE result = "Bottom 2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21501518_1 (order__number VARCHAR, result VARCHAR) Question: Which order #1 has a result of bottom 2 [/INST] SELECT order__number FROM table_21501518_1 WHERE result = "Bottom 2" </s>
Whats the song of name with an original artist Garth Brooks
CREATE TABLE table_21501518_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT song_choice FROM table_21501518_1 WHERE original_artist = "Garth Brooks"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21501518_1 (song_choice VARCHAR, original_artist VARCHAR) Question: Whats the song of name with an original artist Garth Brooks [/INST] SELECT song_choice FROM table_21501518_1 WHERE original_artist = "Garth Brooks" </s>
What was the date when Terry McAuliffe won 19%?
CREATE TABLE table_21535453_1 (dates_administered VARCHAR, terry_mcauliffe VARCHAR)
SELECT dates_administered FROM table_21535453_1 WHERE terry_mcauliffe = "19%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21535453_1 (dates_administered VARCHAR, terry_mcauliffe VARCHAR) Question: What was the date when Terry McAuliffe won 19%? [/INST] SELECT dates_administered FROM table_21535453_1 WHERE terry_mcauliffe = "19%" </s>
What was the source of the poll that gave McAuliffe 30% on June 8?
CREATE TABLE table_21535453_1 (source VARCHAR, terry_mcauliffe VARCHAR, dates_administered VARCHAR)
SELECT source FROM table_21535453_1 WHERE terry_mcauliffe = "30%" AND dates_administered = "June 8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21535453_1 (source VARCHAR, terry_mcauliffe VARCHAR, dates_administered VARCHAR) Question: What was the source of the poll that gave McAuliffe 30% on June 8? [/INST] SELECT source FROM table_21535453_1 WHERE terry_mcauliffe = "30%" AND dates_administered = "June 8" </s>
What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%?
CREATE TABLE table_21535453_1 (brian_moran VARCHAR, source VARCHAR, creigh_deeds VARCHAR)
SELECT brian_moran FROM table_21535453_1 WHERE source = "Survey USA" AND creigh_deeds = "26%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21535453_1 (brian_moran VARCHAR, source VARCHAR, creigh_deeds VARCHAR) Question: What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%? [/INST] SELECT brian_moran FROM table_21535453_1 WHERE source = "Survey USA" AND creigh_deeds = "26%" </s>
What source showed Brian Moran at 19%?
CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR)
SELECT source FROM table_21535453_1 WHERE brian_moran = "19%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR) Question: What source showed Brian Moran at 19%? [/INST] SELECT source FROM table_21535453_1 WHERE brian_moran = "19%" </s>
What was Brian Moran's share of the votes when Creigh Deeds had 30%?
CREATE TABLE table_21535453_1 (brian_moran VARCHAR, creigh_deeds VARCHAR)
SELECT brian_moran FROM table_21535453_1 WHERE creigh_deeds = "30%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21535453_1 (brian_moran VARCHAR, creigh_deeds VARCHAR) Question: What was Brian Moran's share of the votes when Creigh Deeds had 30%? [/INST] SELECT brian_moran FROM table_21535453_1 WHERE creigh_deeds = "30%" </s>
What source gave 26% of the votes to Brian Moran?
CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR)
SELECT source FROM table_21535453_1 WHERE brian_moran = "26%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR) Question: What source gave 26% of the votes to Brian Moran? [/INST] SELECT source FROM table_21535453_1 WHERE brian_moran = "26%" </s>
How many insurgents have 602 as the total per period?
CREATE TABLE table_21636599_1 (insurgents INTEGER, total_per_period VARCHAR)
SELECT MAX(insurgents) FROM table_21636599_1 WHERE total_per_period = 602
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21636599_1 (insurgents INTEGER, total_per_period VARCHAR) Question: How many insurgents have 602 as the total per period? [/INST] SELECT MAX(insurgents) FROM table_21636599_1 WHERE total_per_period = 602 </s>
How many security forces?
CREATE TABLE table_21636599_1 (security_forces INTEGER)
SELECT MAX(security_forces) FROM table_21636599_1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21636599_1 (security_forces INTEGER) Question: How many security forces? [/INST] SELECT MAX(security_forces) FROM table_21636599_1 </s>
How many insurgents have 2003 as a period?
CREATE TABLE table_21636599_1 (insurgents VARCHAR, period VARCHAR)
SELECT COUNT(insurgents) FROM table_21636599_1 WHERE period = "2003"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21636599_1 (insurgents VARCHAR, period VARCHAR) Question: How many insurgents have 2003 as a period? [/INST] SELECT COUNT(insurgents) FROM table_21636599_1 WHERE period = "2003" </s>
What position did he finish in the year his average start was 16.8?
CREATE TABLE table_2169966_2 (position VARCHAR, avg_start VARCHAR)
SELECT position FROM table_2169966_2 WHERE avg_start = "16.8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2169966_2 (position VARCHAR, avg_start VARCHAR) Question: What position did he finish in the year his average start was 16.8? [/INST] SELECT position FROM table_2169966_2 WHERE avg_start = "16.8" </s>
What were his winnings when he had 14 top 10s?
CREATE TABLE table_2169966_2 (winnings VARCHAR, top_10 VARCHAR)
SELECT winnings FROM table_2169966_2 WHERE top_10 = 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2169966_2 (winnings VARCHAR, top_10 VARCHAR) Question: What were his winnings when he had 14 top 10s? [/INST] SELECT winnings FROM table_2169966_2 WHERE top_10 = 14 </s>
How many years did he have an average start of 20.7?
CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR)
SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = "20.7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR) Question: How many years did he have an average start of 20.7? [/INST] SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = "20.7" </s>
What was his average finish when his average start was 27.7?
CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR)
SELECT avg_finish FROM table_2169966_2 WHERE avg_start = "27.7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR) Question: What was his average finish when his average start was 27.7? [/INST] SELECT avg_finish FROM table_2169966_2 WHERE avg_start = "27.7" </s>
What is the maturity that has a coupon of exactly 0.726?
CREATE TABLE table_21692771_1 (maturity VARCHAR, coupon VARCHAR)
SELECT maturity FROM table_21692771_1 WHERE coupon = "0.726"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21692771_1 (maturity VARCHAR, coupon VARCHAR) Question: What is the maturity that has a coupon of exactly 0.726? [/INST] SELECT maturity FROM table_21692771_1 WHERE coupon = "0.726" </s>
What is the coupon that has an issuer of Commerzbank AG?
CREATE TABLE table_21692771_1 (coupon VARCHAR, issuer VARCHAR)
SELECT coupon FROM table_21692771_1 WHERE issuer = "COMMERZBANK AG"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21692771_1 (coupon VARCHAR, issuer VARCHAR) Question: What is the coupon that has an issuer of Commerzbank AG? [/INST] SELECT coupon FROM table_21692771_1 WHERE issuer = "COMMERZBANK AG" </s>
What is the maturity date of the ISIN labeled DE000A0BVBN3?
CREATE TABLE table_21692771_1 (maturity VARCHAR, isin VARCHAR)
SELECT maturity FROM table_21692771_1 WHERE isin = "DE000A0BVBN3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21692771_1 (maturity VARCHAR, isin VARCHAR) Question: What is the maturity date of the ISIN labeled DE000A0BVBN3? [/INST] SELECT maturity FROM table_21692771_1 WHERE isin = "DE000A0BVBN3" </s>
What is the ISIN associated with the maturity date of 3/11/2011?
CREATE TABLE table_21692771_1 (isin VARCHAR, maturity VARCHAR)
SELECT isin FROM table_21692771_1 WHERE maturity = "3/11/2011"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21692771_1 (isin VARCHAR, maturity VARCHAR) Question: What is the ISIN associated with the maturity date of 3/11/2011? [/INST] SELECT isin FROM table_21692771_1 WHERE maturity = "3/11/2011" </s>
What was the report when the average speed (mph) was 87.599?
CREATE TABLE table_2175685_1 (report VARCHAR, average_speed__mph_ VARCHAR)
SELECT report FROM table_2175685_1 WHERE average_speed__mph_ = "87.599"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2175685_1 (report VARCHAR, average_speed__mph_ VARCHAR) Question: What was the report when the average speed (mph) was 87.599? [/INST] SELECT report FROM table_2175685_1 WHERE average_speed__mph_ = "87.599" </s>
What team won when the race time was 3:12:30?
CREATE TABLE table_2175685_1 (team VARCHAR, race_time VARCHAR)
SELECT team FROM table_2175685_1 WHERE race_time = "3:12:30"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2175685_1 (team VARCHAR, race_time VARCHAR) Question: What team won when the race time was 3:12:30? [/INST] SELECT team FROM table_2175685_1 WHERE race_time = "3:12:30" </s>
How many miles (km) were driven when the average speed (mph) was 103.145?
CREATE TABLE table_2175685_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR)
SELECT miles__km_ FROM table_2175685_1 WHERE average_speed__mph_ = "103.145"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2175685_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR) Question: How many miles (km) were driven when the average speed (mph) was 103.145? [/INST] SELECT miles__km_ FROM table_2175685_1 WHERE average_speed__mph_ = "103.145" </s>
If the position is 12th, what was the series?
CREATE TABLE table_21795846_1 (series VARCHAR, position VARCHAR)
SELECT series FROM table_21795846_1 WHERE position = "12th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795846_1 (series VARCHAR, position VARCHAR) Question: If the position is 12th, what was the series? [/INST] SELECT series FROM table_21795846_1 WHERE position = "12th" </s>
If the position is 9th, what is the total podiums number?
CREATE TABLE table_21795846_1 (podiums VARCHAR, position VARCHAR)
SELECT COUNT(podiums) FROM table_21795846_1 WHERE position = "9th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795846_1 (podiums VARCHAR, position VARCHAR) Question: If the position is 9th, what is the total podiums number? [/INST] SELECT COUNT(podiums) FROM table_21795846_1 WHERE position = "9th" </s>
If there is 16 points, what was the position?
CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR)
SELECT position FROM table_21795846_1 WHERE points = 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR) Question: If there is 16 points, what was the position? [/INST] SELECT position FROM table_21795846_1 WHERE points = 16 </s>
What is the point total for the Formula Renault 2.0 Italy series?
CREATE TABLE table_21795650_1 (points VARCHAR, series VARCHAR)
SELECT COUNT(points) FROM table_21795650_1 WHERE series = "Formula Renault 2.0 Italy"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795650_1 (points VARCHAR, series VARCHAR) Question: What is the point total for the Formula Renault 2.0 Italy series? [/INST] SELECT COUNT(points) FROM table_21795650_1 WHERE series = "Formula Renault 2.0 Italy" </s>
What is the minimum number of f/laps in the Italian Formula Renault 2.0 Winter Series?
CREATE TABLE table_21795650_1 (f_laps INTEGER, series VARCHAR)
SELECT MIN(f_laps) FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795650_1 (f_laps INTEGER, series VARCHAR) Question: What is the minimum number of f/laps in the Italian Formula Renault 2.0 Winter Series? [/INST] SELECT MIN(f_laps) FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series" </s>
How many poles were there in the Italian Formula Renault 2.0 Winter Series?
CREATE TABLE table_21795650_1 (poles VARCHAR, series VARCHAR)
SELECT poles FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795650_1 (poles VARCHAR, series VARCHAR) Question: How many poles were there in the Italian Formula Renault 2.0 Winter Series? [/INST] SELECT poles FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series" </s>
How many podiums were there in the Italian Formula Renault 2.0 Winter Series?
CREATE TABLE table_21795650_1 (podiums VARCHAR, series VARCHAR)
SELECT podiums FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795650_1 (podiums VARCHAR, series VARCHAR) Question: How many podiums were there in the Italian Formula Renault 2.0 Winter Series? [/INST] SELECT podiums FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series" </s>
What was the highest position for the person who performed in 16 races?
CREATE TABLE table_21795650_1 (position VARCHAR, races VARCHAR)
SELECT position FROM table_21795650_1 WHERE races = 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795650_1 (position VARCHAR, races VARCHAR) Question: What was the highest position for the person who performed in 16 races? [/INST] SELECT position FROM table_21795650_1 WHERE races = 16 </s>
What team had 4 podiums?
CREATE TABLE table_21795650_1 (team VARCHAR, podiums VARCHAR)
SELECT team FROM table_21795650_1 WHERE podiums = 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21795650_1 (team VARCHAR, podiums VARCHAR) Question: What team had 4 podiums? [/INST] SELECT team FROM table_21795650_1 WHERE podiums = 4 </s>
Name the year for is my magic
CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = "My Magic"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR) Question: Name the year for is my magic [/INST] SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = "My Magic" </s>
Name the year for japanese
CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, language_s_ VARCHAR)
SELECT year__ceremony_ FROM table_21790203_1 WHERE language_s_ = "Japanese"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, language_s_ VARCHAR) Question: Name the year for japanese [/INST] SELECT year__ceremony_ FROM table_21790203_1 WHERE language_s_ = "Japanese" </s>
Name the result for already famous
CREATE TABLE table_21790203_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21790203_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) Question: Name the result for already famous [/INST] SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous" </s>
Name the result for japanese
CREATE TABLE table_21790203_1 (result VARCHAR, language_s_ VARCHAR)
SELECT result FROM table_21790203_1 WHERE language_s_ = "Japanese"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21790203_1 (result VARCHAR, language_s_ VARCHAR) Question: Name the result for japanese [/INST] SELECT result FROM table_21790203_1 WHERE language_s_ = "Japanese" </s>
What was the best top five result when the average start is 28.5?
CREATE TABLE table_2182573_2 (top_5 INTEGER, avg_start VARCHAR)
SELECT MAX(top_5) FROM table_2182573_2 WHERE avg_start = "28.5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2182573_2 (top_5 INTEGER, avg_start VARCHAR) Question: What was the best top five result when the average start is 28.5? [/INST] SELECT MAX(top_5) FROM table_2182573_2 WHERE avg_start = "28.5" </s>
What was the average finish in 2007?
CREATE TABLE table_2182573_2 (avg_finish VARCHAR, year VARCHAR)
SELECT avg_finish FROM table_2182573_2 WHERE year = 2007
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2182573_2 (avg_finish VARCHAR, year VARCHAR) Question: What was the average finish in 2007? [/INST] SELECT avg_finish FROM table_2182573_2 WHERE year = 2007 </s>
How many poles were there in 1996?
CREATE TABLE table_2182573_2 (poles INTEGER, year VARCHAR)
SELECT MIN(poles) FROM table_2182573_2 WHERE year = 1996
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2182573_2 (poles INTEGER, year VARCHAR) Question: How many poles were there in 1996? [/INST] SELECT MIN(poles) FROM table_2182573_2 WHERE year = 1996 </s>
With team #21/#07 ss-green light racing, what was the average finish number?
CREATE TABLE table_2190919_3 (avg_finish VARCHAR, team_s_ VARCHAR)
SELECT avg_finish FROM table_2190919_3 WHERE team_s_ = "#21/#07 SS-Green Light Racing"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2190919_3 (avg_finish VARCHAR, team_s_ VARCHAR) Question: With team #21/#07 ss-green light racing, what was the average finish number? [/INST] SELECT avg_finish FROM table_2190919_3 WHERE team_s_ = "#21/#07 SS-Green Light Racing" </s>
What was the maximum amount of the poles?
CREATE TABLE table_2190919_3 (poles INTEGER)
SELECT MAX(poles) FROM table_2190919_3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2190919_3 (poles INTEGER) Question: What was the maximum amount of the poles? [/INST] SELECT MAX(poles) FROM table_2190919_3 </s>
If the average start is 11.8, what was the team name?
CREATE TABLE table_2190919_3 (team_s_ VARCHAR, avg_start VARCHAR)
SELECT team_s_ FROM table_2190919_3 WHERE avg_start = "11.8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2190919_3 (team_s_ VARCHAR, avg_start VARCHAR) Question: If the average start is 11.8, what was the team name? [/INST] SELECT team_s_ FROM table_2190919_3 WHERE avg_start = "11.8" </s>
If the winnings was $250,667, what is the top 5 total number?
CREATE TABLE table_2190919_3 (top_5 VARCHAR, winnings VARCHAR)
SELECT COUNT(top_5) FROM table_2190919_3 WHERE winnings = "$250,667"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2190919_3 (top_5 VARCHAR, winnings VARCHAR) Question: If the winnings was $250,667, what is the top 5 total number? [/INST] SELECT COUNT(top_5) FROM table_2190919_3 WHERE winnings = "$250,667" </s>
With an average finish of 29.0, what was the average start?
CREATE TABLE table_2190919_3 (avg_start VARCHAR, avg_finish VARCHAR)
SELECT avg_start FROM table_2190919_3 WHERE avg_finish = "29.0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2190919_3 (avg_start VARCHAR, avg_finish VARCHAR) Question: With an average finish of 29.0, what was the average start? [/INST] SELECT avg_start FROM table_2190919_3 WHERE avg_finish = "29.0" </s>
what is the total number of reasons for change where the date the successor was seated is june 8, 1876?
CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT COUNT(reason_for_change) FROM table_2192067_4 WHERE date_successor_seated = "June 8, 1876"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR) Question: what is the total number of reasons for change where the date the successor was seated is june 8, 1876? [/INST] SELECT COUNT(reason_for_change) FROM table_2192067_4 WHERE date_successor_seated = "June 8, 1876" </s>
what is the reason for change where the date the successor was seated was july 28, 1876?
CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = "July 28, 1876"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR) Question: what is the reason for change where the date the successor was seated was july 28, 1876? [/INST] SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = "July 28, 1876" </s>
what is the district where the vacator is vacant?
CREATE TABLE table_2192067_4 (district VARCHAR, vacator VARCHAR)
SELECT district FROM table_2192067_4 WHERE vacator = "Vacant"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2192067_4 (district VARCHAR, vacator VARCHAR) Question: what is the district where the vacator is vacant? [/INST] SELECT district FROM table_2192067_4 WHERE vacator = "Vacant" </s>
Who was the manufacturer for Matt Kenseth on March 7?
CREATE TABLE table_2196127_1 (manufacturer VARCHAR, driver VARCHAR, date VARCHAR)
SELECT manufacturer FROM table_2196127_1 WHERE driver = "Matt Kenseth" AND date = "March 7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2196127_1 (manufacturer VARCHAR, driver VARCHAR, date VARCHAR) Question: Who was the manufacturer for Matt Kenseth on March 7? [/INST] SELECT manufacturer FROM table_2196127_1 WHERE driver = "Matt Kenseth" AND date = "March 7" </s>
What was the average speed for a racetime of 3:08:08?
CREATE TABLE table_2196127_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)
SELECT average_speed__mph_ FROM table_2196127_1 WHERE race_time = "3:08:08"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2196127_1 (average_speed__mph_ VARCHAR, race_time VARCHAR) Question: What was the average speed for a racetime of 3:08:08? [/INST] SELECT average_speed__mph_ FROM table_2196127_1 WHERE race_time = "3:08:08" </s>
How many laps were there in 2002?
CREATE TABLE table_2196127_1 (laps VARCHAR, year VARCHAR)
SELECT laps FROM table_2196127_1 WHERE year = "2002"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2196127_1 (laps VARCHAR, year VARCHAR) Question: How many laps were there in 2002? [/INST] SELECT laps FROM table_2196127_1 WHERE year = "2002" </s>
How many numbers were recorded under miles for the 3:00:46 race time?
CREATE TABLE table_2196127_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = "3:00:46"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2196127_1 (miles__km_ VARCHAR, race_time VARCHAR) Question: How many numbers were recorded under miles for the 3:00:46 race time? [/INST] SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = "3:00:46" </s>
What was the race time for Jeff Gordon?
CREATE TABLE table_2196127_1 (race_time VARCHAR, driver VARCHAR)
SELECT race_time FROM table_2196127_1 WHERE driver = "Jeff Gordon"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2196127_1 (race_time VARCHAR, driver VARCHAR) Question: What was the race time for Jeff Gordon? [/INST] SELECT race_time FROM table_2196127_1 WHERE driver = "Jeff Gordon" </s>
What is the latest year?
CREATE TABLE table_2199290_1 (year INTEGER)
SELECT MAX(year) FROM table_2199290_1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2199290_1 (year INTEGER) Question: What is the latest year? [/INST] SELECT MAX(year) FROM table_2199290_1 </s>
What is every total for the University of the Cordilleras UC Dance Squad?
CREATE TABLE table_21995420_6 (total VARCHAR, school VARCHAR)
SELECT total FROM table_21995420_6 WHERE school = "University of the Cordilleras UC Dance Squad"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21995420_6 (total VARCHAR, school VARCHAR) Question: What is every total for the University of the Cordilleras UC Dance Squad? [/INST] SELECT total FROM table_21995420_6 WHERE school = "University of the Cordilleras UC Dance Squad" </s>
What is every school with basic elements of 52?
CREATE TABLE table_21995420_6 (school VARCHAR, basic_elements VARCHAR)
SELECT school FROM table_21995420_6 WHERE basic_elements = 52
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21995420_6 (school VARCHAR, basic_elements VARCHAR) Question: What is every school with basic elements of 52? [/INST] SELECT school FROM table_21995420_6 WHERE basic_elements = 52 </s>
How many stunts have a total of 201.5?
CREATE TABLE table_21995420_6 (stunts VARCHAR, total VARCHAR)
SELECT COUNT(stunts) FROM table_21995420_6 WHERE total = "201.5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21995420_6 (stunts VARCHAR, total VARCHAR) Question: How many stunts have a total of 201.5? [/INST] SELECT COUNT(stunts) FROM table_21995420_6 WHERE total = "201.5" </s>
What is every school with stunts of 48?
CREATE TABLE table_21995420_6 (school VARCHAR, stunts VARCHAR)
SELECT school FROM table_21995420_6 WHERE stunts = "48"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21995420_6 (school VARCHAR, stunts VARCHAR) Question: What is every school with stunts of 48? [/INST] SELECT school FROM table_21995420_6 WHERE stunts = "48" </s>
What is every deduction for pyramids of 49?
CREATE TABLE table_21995420_6 (deductions VARCHAR, pyramids VARCHAR)
SELECT deductions FROM table_21995420_6 WHERE pyramids = "49"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_21995420_6 (deductions VARCHAR, pyramids VARCHAR) Question: What is every deduction for pyramids of 49? [/INST] SELECT deductions FROM table_21995420_6 WHERE pyramids = "49" </s>
In what year was the partner Wesley Moodie?
CREATE TABLE table_2199290_2 (year INTEGER, partner VARCHAR)
SELECT MAX(year) FROM table_2199290_2 WHERE partner = "Wesley Moodie"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2199290_2 (year INTEGER, partner VARCHAR) Question: In what year was the partner Wesley Moodie? [/INST] SELECT MAX(year) FROM table_2199290_2 WHERE partner = "Wesley Moodie" </s>
What was the outcome when the final score was 7–6(9), 7–6(1)?
CREATE TABLE table_2199290_2 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_2199290_2 WHERE score_in_the_final = "7–6(9), 7–6(1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2199290_2 (outcome VARCHAR, score_in_the_final VARCHAR) Question: What was the outcome when the final score was 7–6(9), 7–6(1)? [/INST] SELECT outcome FROM table_2199290_2 WHERE score_in_the_final = "7–6(9), 7–6(1)" </s>
What are the scores in matches against Tony Roche?
CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR)
SELECT score_in_the_final FROM table_2201724_1 WHERE opponent_in_the_final = "Tony Roche"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR) Question: What are the scores in matches against Tony Roche? [/INST] SELECT score_in_the_final FROM table_2201724_1 WHERE opponent_in_the_final = "Tony Roche" </s>
Which championship has a final score of 3–6, 4–6, 2–6?
CREATE TABLE table_2201724_1 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT championship FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2201724_1 (championship VARCHAR, score_in_the_final VARCHAR) Question: Which championship has a final score of 3–6, 4–6, 2–6? [/INST] SELECT championship FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6" </s>
What is Fred Stolle's final year of competing in a championship?
CREATE TABLE table_2201724_1 (year INTEGER)
SELECT MAX(year) FROM table_2201724_1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2201724_1 (year INTEGER) Question: What is Fred Stolle's final year of competing in a championship? [/INST] SELECT MAX(year) FROM table_2201724_1 </s>
List the total number of years that have a score of 3–6, 4–6, 2–6.
CREATE TABLE table_2201724_1 (year VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(year) FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2201724_1 (year VARCHAR, score_in_the_final VARCHAR) Question: List the total number of years that have a score of 3–6, 4–6, 2–6. [/INST] SELECT COUNT(year) FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6" </s>
List the final score of Wimbledon (2/2).
CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT score_in_the_final FROM table_2201724_1 WHERE championship = "Wimbledon (2/2)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, championship VARCHAR) Question: List the final score of Wimbledon (2/2). [/INST] SELECT score_in_the_final FROM table_2201724_1 WHERE championship = "Wimbledon (2/2)" </s>
What is the winner in event number 15h?
CREATE TABLE table_22050544_1 (winner VARCHAR, event__number VARCHAR)
SELECT winner FROM table_22050544_1 WHERE event__number = "15H"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22050544_1 (winner VARCHAR, event__number VARCHAR) Question: What is the winner in event number 15h? [/INST] SELECT winner FROM table_22050544_1 WHERE event__number = "15H" </s>
Who is the winner with an elapsed time of 12 h 42 min?
CREATE TABLE table_22050544_1 (winner VARCHAR, elapsed_time VARCHAR)
SELECT winner FROM table_22050544_1 WHERE elapsed_time = "12 h 42 min"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22050544_1 (winner VARCHAR, elapsed_time VARCHAR) Question: Who is the winner with an elapsed time of 12 h 42 min? [/INST] SELECT winner FROM table_22050544_1 WHERE elapsed_time = "12 h 42 min" </s>
What is the prize for the elapsed time of 10 h 10 min?
CREATE TABLE table_22050544_1 (prize VARCHAR, elapsed_time VARCHAR)
SELECT prize FROM table_22050544_1 WHERE elapsed_time = "10 h 10 min"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22050544_1 (prize VARCHAR, elapsed_time VARCHAR) Question: What is the prize for the elapsed time of 10 h 10 min? [/INST] SELECT prize FROM table_22050544_1 WHERE elapsed_time = "10 h 10 min" </s>
Who is the winner of event # 1h and dateca is Apr 2?
CREATE TABLE table_22050544_1 (winner VARCHAR, dateca VARCHAR, event__number VARCHAR)
SELECT winner FROM table_22050544_1 WHERE dateca = "Apr 2" AND event__number = "1H"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22050544_1 (winner VARCHAR, dateca VARCHAR, event__number VARCHAR) Question: Who is the winner of event # 1h and dateca is Apr 2? [/INST] SELECT winner FROM table_22050544_1 WHERE dateca = "Apr 2" AND event__number = "1H" </s>
What is the event # when the winner is what is 7x6?
CREATE TABLE table_22050544_1 (event__number VARCHAR, winner VARCHAR)
SELECT event__number FROM table_22050544_1 WHERE winner = "what is 7x6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22050544_1 (event__number VARCHAR, winner VARCHAR) Question: What is the event # when the winner is what is 7x6? [/INST] SELECT event__number FROM table_22050544_1 WHERE winner = "what is 7x6" </s>
Which positions are the poles 2?
CREATE TABLE table_22056184_1 (position VARCHAR, poles VARCHAR)
SELECT position FROM table_22056184_1 WHERE poles = 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22056184_1 (position VARCHAR, poles VARCHAR) Question: Which positions are the poles 2? [/INST] SELECT position FROM table_22056184_1 WHERE poles = 2 </s>
How many positions have f/laps of 1 and british formula three series?
CREATE TABLE table_22056184_1 (position VARCHAR, f_laps VARCHAR, series VARCHAR)
SELECT COUNT(position) FROM table_22056184_1 WHERE f_laps = 1 AND series = "British Formula Three"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22056184_1 (position VARCHAR, f_laps VARCHAR, series VARCHAR) Question: How many positions have f/laps of 1 and british formula three series? [/INST] SELECT COUNT(position) FROM table_22056184_1 WHERE f_laps = 1 AND series = "British Formula Three" </s>
Which position has 9 podiums?
CREATE TABLE table_22056184_1 (position VARCHAR, podiums VARCHAR)
SELECT position FROM table_22056184_1 WHERE podiums = 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22056184_1 (position VARCHAR, podiums VARCHAR) Question: Which position has 9 podiums? [/INST] SELECT position FROM table_22056184_1 WHERE podiums = 9 </s>
How many teams have 7th position?
CREATE TABLE table_22056184_1 (team VARCHAR, position VARCHAR)
SELECT COUNT(team) FROM table_22056184_1 WHERE position = "7th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22056184_1 (team VARCHAR, position VARCHAR) Question: How many teams have 7th position? [/INST] SELECT COUNT(team) FROM table_22056184_1 WHERE position = "7th" </s>
How many poles when British formula renault 2.0 series and f/laps 1?
CREATE TABLE table_22056184_1 (poles INTEGER, series VARCHAR, f_laps VARCHAR)
SELECT MIN(poles) FROM table_22056184_1 WHERE series = "British Formula Renault 2.0" AND f_laps = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22056184_1 (poles INTEGER, series VARCHAR, f_laps VARCHAR) Question: How many poles when British formula renault 2.0 series and f/laps 1? [/INST] SELECT MIN(poles) FROM table_22056184_1 WHERE series = "British Formula Renault 2.0" AND f_laps = 1 </s>
How many points when pole are 1?
CREATE TABLE table_22056184_1 (points VARCHAR, poles VARCHAR)
SELECT points FROM table_22056184_1 WHERE poles = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22056184_1 (points VARCHAR, poles VARCHAR) Question: How many points when pole are 1? [/INST] SELECT points FROM table_22056184_1 WHERE poles = 1 </s>
how many wiaa classifications does fort vancouver high school have?
CREATE TABLE table_22058547_1 (wiaa_classification VARCHAR, high_school VARCHAR)
SELECT COUNT(wiaa_classification) FROM table_22058547_1 WHERE high_school = "Fort Vancouver"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22058547_1 (wiaa_classification VARCHAR, high_school VARCHAR) Question: how many wiaa classifications does fort vancouver high school have? [/INST] SELECT COUNT(wiaa_classification) FROM table_22058547_1 WHERE high_school = "Fort Vancouver" </s>
How many high schools have storm mascots?
CREATE TABLE table_22058547_1 (high_school VARCHAR, mascot VARCHAR)
SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22058547_1 (high_school VARCHAR, mascot VARCHAR) Question: How many high schools have storm mascots? [/INST] SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm" </s>
What wiaa classifications does vancouver itech prepratory have?
CREATE TABLE table_22058547_1 (wiaa_classification VARCHAR, high_school VARCHAR)
SELECT wiaa_classification FROM table_22058547_1 WHERE high_school = "Vancouver iTech Prepratory"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22058547_1 (wiaa_classification VARCHAR, high_school VARCHAR) Question: What wiaa classifications does vancouver itech prepratory have? [/INST] SELECT wiaa_classification FROM table_22058547_1 WHERE high_school = "Vancouver iTech Prepratory" </s>
What school classifications have trappers as mascot?
CREATE TABLE table_22058547_1 (type VARCHAR, mascot VARCHAR)
SELECT type FROM table_22058547_1 WHERE mascot = "Trappers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22058547_1 (type VARCHAR, mascot VARCHAR) Question: What school classifications have trappers as mascot? [/INST] SELECT type FROM table_22058547_1 WHERE mascot = "Trappers" </s>
How many games were played in the 1989 season?
CREATE TABLE table_2208838_4 (played VARCHAR, season VARCHAR)
SELECT played FROM table_2208838_4 WHERE season = "1989"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2208838_4 (played VARCHAR, season VARCHAR) Question: How many games were played in the 1989 season? [/INST] SELECT played FROM table_2208838_4 WHERE season = "1989" </s>
How many games were played by the player with 927 points?
CREATE TABLE table_2208838_4 (played VARCHAR, points VARCHAR)
SELECT played FROM table_2208838_4 WHERE points = 927
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2208838_4 (played VARCHAR, points VARCHAR) Question: How many games were played by the player with 927 points? [/INST] SELECT played FROM table_2208838_4 WHERE points = 927 </s>
Which team had an average of 20.4?
CREATE TABLE table_2208838_4 (team VARCHAR, average VARCHAR)
SELECT team FROM table_2208838_4 WHERE average = "20.4"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2208838_4 (team VARCHAR, average VARCHAR) Question: Which team had an average of 20.4? [/INST] SELECT team FROM table_2208838_4 WHERE average = "20.4" </s>
What was the date of appointment for the 10th person in position?
CREATE TABLE table_22133191_3 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT date_of_appointment FROM table_22133191_3 WHERE position_in_table = "10th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22133191_3 (date_of_appointment VARCHAR, position_in_table VARCHAR) Question: What was the date of appointment for the 10th person in position? [/INST] SELECT date_of_appointment FROM table_22133191_3 WHERE position_in_table = "10th" </s>
What is the date of vacancy for the person that left because of end of caretaker contract?
CREATE TABLE table_22133191_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR)
SELECT date_of_vacancy FROM table_22133191_3 WHERE manner_of_departure = "End of caretaker contract"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22133191_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR) Question: What is the date of vacancy for the person that left because of end of caretaker contract? [/INST] SELECT date_of_vacancy FROM table_22133191_3 WHERE manner_of_departure = "End of caretaker contract" </s>
How many prefectures have an area of 361.719 kilometers squared?
CREATE TABLE table_221398_1 (prefecture VARCHAR, area__kmΒ²_ VARCHAR)
SELECT COUNT(prefecture) FROM table_221398_1 WHERE area__kmΒ²_ = "361.719"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_221398_1 (prefecture VARCHAR, area__kmΒ²_ VARCHAR) Question: How many prefectures have an area of 361.719 kilometers squared? [/INST] SELECT COUNT(prefecture) FROM table_221398_1 WHERE area__kmΒ²_ = "361.719" </s>
What prefecture is listed in the map as number 39?
CREATE TABLE table_221398_1 (prefecture VARCHAR, number_in_map VARCHAR)
SELECT prefecture FROM table_221398_1 WHERE number_in_map = "39"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_221398_1 (prefecture VARCHAR, number_in_map VARCHAR) Question: What prefecture is listed in the map as number 39? [/INST] SELECT prefecture FROM table_221398_1 WHERE number_in_map = "39" </s>
How many prefectures have a population density of 16 people/kilometers squared?
CREATE TABLE table_221398_1 (pop_density___kmΒ²_ VARCHAR, number_in_map VARCHAR)
SELECT COUNT(pop_density___kmΒ²_) FROM table_221398_1 WHERE number_in_map = "16"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_221398_1 (pop_density___kmΒ²_ VARCHAR, number_in_map VARCHAR) Question: How many prefectures have a population density of 16 people/kilometers squared? [/INST] SELECT COUNT(pop_density___kmΒ²_) FROM table_221398_1 WHERE number_in_map = "16" </s>
How many wins did he have when he had $95,180 in winnings?
CREATE TABLE table_2216245_2 (wins VARCHAR, winnings VARCHAR)
SELECT COUNT(wins) FROM table_2216245_2 WHERE winnings = "$95,180"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2216245_2 (wins VARCHAR, winnings VARCHAR) Question: How many wins did he have when he had $95,180 in winnings? [/INST] SELECT COUNT(wins) FROM table_2216245_2 WHERE winnings = "$95,180" </s>
How many top 10s did he have the year he won $80,490?
CREATE TABLE table_2216245_2 (top_10 VARCHAR, winnings VARCHAR)
SELECT COUNT(top_10) FROM table_2216245_2 WHERE winnings = "$80,490"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2216245_2 (top_10 VARCHAR, winnings VARCHAR) Question: How many top 10s did he have the year he won $80,490? [/INST] SELECT COUNT(top_10) FROM table_2216245_2 WHERE winnings = "$80,490" </s>
What is his lowest number of wins?
CREATE TABLE table_2216245_2 (wins INTEGER)
SELECT MIN(wins) FROM table_2216245_2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2216245_2 (wins INTEGER) Question: What is his lowest number of wins? [/INST] SELECT MIN(wins) FROM table_2216245_2 </s>
How many top 5s when he was on team #28/#49 jay robinson racing?
CREATE TABLE table_2216245_2 (top_5 INTEGER, team_s_ VARCHAR)
SELECT MAX(top_5) FROM table_2216245_2 WHERE team_s_ = "#28/#49 Jay Robinson Racing"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2216245_2 (top_5 INTEGER, team_s_ VARCHAR) Question: How many top 5s when he was on team #28/#49 jay robinson racing? [/INST] SELECT MAX(top_5) FROM table_2216245_2 WHERE team_s_ = "#28/#49 Jay Robinson Racing" </s>
What date did episode 258 in the series originally air?
CREATE TABLE table_2221484_2 (original_air_date VARCHAR, series__number VARCHAR)
SELECT original_air_date FROM table_2221484_2 WHERE series__number = 258
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2221484_2 (original_air_date VARCHAR, series__number VARCHAR) Question: What date did episode 258 in the series originally air? [/INST] SELECT original_air_date FROM table_2221484_2 WHERE series__number = 258 </s>
Who directed episode 266 in the series?
CREATE TABLE table_2221484_2 (directed_by VARCHAR, series__number VARCHAR)
SELECT directed_by FROM table_2221484_2 WHERE series__number = 266
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2221484_2 (directed_by VARCHAR, series__number VARCHAR) Question: Who directed episode 266 in the series? [/INST] SELECT directed_by FROM table_2221484_2 WHERE series__number = 266 </s>
Name the least season
CREATE TABLE table_2223177_3 (season INTEGER)
SELECT MIN(season) FROM table_2223177_3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2223177_3 (season INTEGER) Question: Name the least season [/INST] SELECT MIN(season) FROM table_2223177_3 </s>