instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Name the drivers for chassis of season cancelled
CREATE TABLE table_name_88 (drivers VARCHAR, chassis VARCHAR)
SELECT drivers FROM table_name_88 WHERE chassis = "season cancelled"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (drivers VARCHAR, chassis VARCHAR) Question: Name the drivers for chassis of season cancelled [/INST] SELECT drivers FROM table_name_88 WHERE chassis = "season cancelled" </s>
Name the teams for third points of season cancelled
CREATE TABLE table_name_95 (teams VARCHAR, third__points_ VARCHAR)
SELECT teams FROM table_name_95 WHERE third__points_ = "season cancelled"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (teams VARCHAR, third__points_ VARCHAR) Question: Name the teams for third points of season cancelled [/INST] SELECT teams FROM table_name_95 WHERE third__points_ = "season cancelled" </s>
Name the engine with rounds of 11 and teams of 25
CREATE TABLE table_name_29 (engine VARCHAR, rounds VARCHAR, teams VARCHAR)
SELECT engine FROM table_name_29 WHERE rounds = "11" AND teams = "25"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (engine VARCHAR, rounds VARCHAR, teams VARCHAR) Question: Name the engine with rounds of 11 and teams of 25 [/INST] SELECT engine FROM table_name_29 WHERE rounds = "11" AND teams = "25" </s>
What was the score for the loss of McDowell (12-7)?
CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_39 WHERE loss = "mcdowell (12-7)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR) Question: What was the score for the loss of McDowell (12-7)? [/INST] SELECT score FROM table_name_39 WHERE loss = "mcdowell (12-7)" </s>
What is the total laps for the year 2011?
CREATE TABLE table_name_1 (laps INTEGER, year VARCHAR)
SELECT SUM(laps) FROM table_name_1 WHERE year = 2011
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (laps INTEGER, year VARCHAR) Question: What is the total laps for the year 2011? [/INST] SELECT SUM(laps) FROM table_name_1 WHERE year = 2011 </s>
Which team is in 9th place?
CREATE TABLE table_name_98 (class VARCHAR, pos VARCHAR)
SELECT class AS pos FROM table_name_98 WHERE pos = "9th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (class VARCHAR, pos VARCHAR) Question: Which team is in 9th place? [/INST] SELECT class AS pos FROM table_name_98 WHERE pos = "9th" </s>
What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0?
CREATE TABLE table_name_69 (division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR)
SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR) Question: What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0? [/INST] SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0 </s>
What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1?
CREATE TABLE table_name_8 (goals INTEGER, division VARCHAR, team VARCHAR, country VARCHAR)
SELECT SUM(goals) FROM table_name_8 WHERE team = "partizan" AND country = "serbia" AND division > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (goals INTEGER, division VARCHAR, team VARCHAR, country VARCHAR) Question: What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1? [/INST] SELECT SUM(goals) FROM table_name_8 WHERE team = "partizan" AND country = "serbia" AND division > 1 </s>
What year was the Honda ra168e 1.5 v6 t engine used?
CREATE TABLE table_name_47 (year VARCHAR, engine VARCHAR)
SELECT year FROM table_name_47 WHERE engine = "honda ra168e 1.5 v6 t"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (year VARCHAR, engine VARCHAR) Question: What year was the Honda ra168e 1.5 v6 t engine used? [/INST] SELECT year FROM table_name_47 WHERE engine = "honda ra168e 1.5 v6 t" </s>
What tyres were used with the mp4/14 chassis?
CREATE TABLE table_name_40 (tyres VARCHAR, chassis VARCHAR)
SELECT tyres FROM table_name_40 WHERE chassis = "mp4/14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (tyres VARCHAR, chassis VARCHAR) Question: What tyres were used with the mp4/14 chassis? [/INST] SELECT tyres FROM table_name_40 WHERE chassis = "mp4/14" </s>
How many tickets were there sold/available in Barcelona?
CREATE TABLE table_name_54 (tickets_sold___available VARCHAR, city VARCHAR)
SELECT tickets_sold___available FROM table_name_54 WHERE city = "barcelona"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (tickets_sold___available VARCHAR, city VARCHAR) Question: How many tickets were there sold/available in Barcelona? [/INST] SELECT tickets_sold___available FROM table_name_54 WHERE city = "barcelona" </s>
How many tickets were sold/available when the gross revenue (2011) was $366,916?
CREATE TABLE table_name_44 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR)
SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = "$366,916"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR) Question: How many tickets were sold/available when the gross revenue (2011) was $366,916? [/INST] SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = "$366,916" </s>
How many tickets were sold/available when the gross revenue (2011) was $5,948,390?
CREATE TABLE table_name_4 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR)
SELECT tickets_sold___available FROM table_name_4 WHERE gross_revenue__2011_ = "$5,948,390"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR) Question: How many tickets were sold/available when the gross revenue (2011) was $5,948,390? [/INST] SELECT tickets_sold___available FROM table_name_4 WHERE gross_revenue__2011_ = "$5,948,390" </s>
What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)?
CREATE TABLE table_name_83 (gross_revenue__1986_ VARCHAR, tickets_sold___available VARCHAR)
SELECT gross_revenue__1986_ FROM table_name_83 WHERE tickets_sold___available = "24,000 / 24,000 (100%)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (gross_revenue__1986_ VARCHAR, tickets_sold___available VARCHAR) Question: What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)? [/INST] SELECT gross_revenue__1986_ FROM table_name_83 WHERE tickets_sold___available = "24,000 / 24,000 (100%)" </s>
What was the score in the 1st leg when Stade d'Abidjan was Team 2?
CREATE TABLE table_name_34 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "stade d'abidjan"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (team_2 VARCHAR) Question: What was the score in the 1st leg when Stade d'Abidjan was Team 2? [/INST] SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "stade d'abidjan" </s>
What was the aggregate score that had Union Douala as Team 1?
CREATE TABLE table_name_55 (agg VARCHAR, team_1 VARCHAR)
SELECT agg FROM table_name_55 WHERE team_1 = "union douala"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (agg VARCHAR, team_1 VARCHAR) Question: What was the aggregate score that had Union Douala as Team 1? [/INST] SELECT agg FROM table_name_55 WHERE team_1 = "union douala" </s>
What was the 2nd leg score of the aggregate score of 4-9?
CREATE TABLE table_name_46 (agg VARCHAR)
SELECT 2 AS nd_leg FROM table_name_46 WHERE agg = "4-9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (agg VARCHAR) Question: What was the 2nd leg score of the aggregate score of 4-9? [/INST] SELECT 2 AS nd_leg FROM table_name_46 WHERE agg = "4-9" </s>
Who was Team 2 when Stationery Stores was Team 1?
CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_81 WHERE team_1 = "stationery stores"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR) Question: Who was Team 2 when Stationery Stores was Team 1? [/INST] SELECT team_2 FROM table_name_81 WHERE team_1 = "stationery stores" </s>
Which Team 1 has an aggregate score of 1-1 1?
CREATE TABLE table_name_13 (team_1 VARCHAR, agg VARCHAR)
SELECT team_1 FROM table_name_13 WHERE agg = "1-1 1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (team_1 VARCHAR, agg VARCHAR) Question: Which Team 1 has an aggregate score of 1-1 1? [/INST] SELECT team_1 FROM table_name_13 WHERE agg = "1-1 1" </s>
Can you tell me the Chassis that has the Year of 1977?
CREATE TABLE table_name_47 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_47 WHERE year = 1977
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (chassis VARCHAR, year VARCHAR) Question: Can you tell me the Chassis that has the Year of 1977? [/INST] SELECT chassis FROM table_name_47 WHERE year = 1977 </s>
Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974?
CREATE TABLE table_name_7 (entrant VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_7 WHERE chassis = "march 742" AND year > 1974
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (entrant VARCHAR, chassis VARCHAR, year VARCHAR) Question: Can you tell me the Entrant that has the Chassis of march 742, and the Year larger than 1974? [/INST] SELECT entrant FROM table_name_7 WHERE chassis = "march 742" AND year > 1974 </s>
Can you tell me the Chassis that has the Entrant of trivellato racing team?
CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_61 WHERE entrant = "trivellato racing team"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR) Question: Can you tell me the Chassis that has the Entrant of trivellato racing team? [/INST] SELECT chassis FROM table_name_61 WHERE entrant = "trivellato racing team" </s>
Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille?
CREATE TABLE table_name_5 (chassis VARCHAR, entrant VARCHAR, points VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_5 WHERE points = 13 AND year = 1975 AND entrant = "scuderia citta del mille"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (chassis VARCHAR, entrant VARCHAR, points VARCHAR, year VARCHAR) Question: Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille? [/INST] SELECT chassis FROM table_name_5 WHERE points = 13 AND year = 1975 AND entrant = "scuderia citta del mille" </s>
What is the lowest value of a team with revenue less than 374 and a debt of 84%?
CREATE TABLE table_name_26 (value__ INTEGER, revenue__$m_ VARCHAR, debt_as__percentageof_value VARCHAR)
SELECT MIN(value__) AS $m_ FROM table_name_26 WHERE revenue__$m_ < 374 AND debt_as__percentageof_value = "84"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (value__ INTEGER, revenue__$m_ VARCHAR, debt_as__percentageof_value VARCHAR) Question: What is the lowest value of a team with revenue less than 374 and a debt of 84%? [/INST] SELECT MIN(value__) AS $m_ FROM table_name_26 WHERE revenue__$m_ < 374 AND debt_as__percentageof_value = "84" </s>
What is the highest operating income that change by 2% and is less than $1,036m?
CREATE TABLE table_name_23 (operating_income_ INTEGER, _percentage_change_on_year VARCHAR, value__$m_ VARCHAR)
SELECT MAX(operating_income_) AS $m_ FROM table_name_23 WHERE _percentage_change_on_year = "2" AND value__$m_ < 1 OFFSET 036 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (operating_income_ INTEGER, _percentage_change_on_year VARCHAR, value__$m_ VARCHAR) Question: What is the highest operating income that change by 2% and is less than $1,036m? [/INST] SELECT MAX(operating_income_) AS $m_ FROM table_name_23 WHERE _percentage_change_on_year = "2" AND value__$m_ < 1 OFFSET 036 ROWS </s>
Which team did they play on September 19?
CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_66 WHERE date = "september 19"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR) Question: Which team did they play on September 19? [/INST] SELECT opponent FROM table_name_66 WHERE date = "september 19" </s>
What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY?
CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_8 WHERE frequency_mhz < 91.9 AND city_of_license = "dansville, ny"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) Question: What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY? [/INST] SELECT fcc_info FROM table_name_8 WHERE frequency_mhz < 91.9 AND city_of_license = "dansville, ny" </s>
What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY?
CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_85 WHERE frequency_mhz < 100.3 AND city_of_license = "lowville, ny"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) Question: What's the FCC info with a Frequency MHz thats smaller than 100.3 and a City of License as Lowville, NY? [/INST] SELECT fcc_info FROM table_name_85 WHERE frequency_mhz < 100.3 AND city_of_license = "lowville, ny" </s>
What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10?
CREATE TABLE table_name_26 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT call_sign FROM table_name_26 WHERE frequency_mhz < 95.9 AND erp_w = 10
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) Question: What's the Call sign with a Frequency MHz thats smaller than 95.9 and an ERP W of 10? [/INST] SELECT call_sign FROM table_name_26 WHERE frequency_mhz < 95.9 AND erp_w = 10 </s>
What is listed as the highest ERP W with a Call sign of W262AC?
CREATE TABLE table_name_22 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = "w262ac"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (erp_w INTEGER, call_sign VARCHAR) Question: What is listed as the highest ERP W with a Call sign of W262AC? [/INST] SELECT MAX(erp_w) FROM table_name_22 WHERE call_sign = "w262ac" </s>
What's the sum of ERP W with a Frequency MHz that larger than 97.7?
CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER)
SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER) Question: What's the sum of ERP W with a Frequency MHz that larger than 97.7? [/INST] SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7 </s>
What was the score of the game played on September 9?
CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_5 WHERE date = "september 9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR) Question: What was the score of the game played on September 9? [/INST] SELECT score FROM table_name_5 WHERE date = "september 9" </s>
Name the overall record for indian river
CREATE TABLE table_name_9 (overall_record VARCHAR, school VARCHAR)
SELECT overall_record FROM table_name_9 WHERE school = "indian river"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (overall_record VARCHAR, school VARCHAR) Question: Name the overall record for indian river [/INST] SELECT overall_record FROM table_name_9 WHERE school = "indian river" </s>
How much money was won for the game with a score of 74-76-71-71=292?
CREATE TABLE table_name_17 (money___$__ VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_17 WHERE score = 74 - 76 - 71 - 71 = 292
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (money___$__ VARCHAR, score VARCHAR) Question: How much money was won for the game with a score of 74-76-71-71=292? [/INST] SELECT money___$__ FROM table_name_17 WHERE score = 74 - 76 - 71 - 71 = 292 </s>
What country was the player from with a score of 70-79-74-68=291?
CREATE TABLE table_name_74 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_74 WHERE score = 70 - 79 - 74 - 68 = 291
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (country VARCHAR, score VARCHAR) Question: What country was the player from with a score of 70-79-74-68=291? [/INST] SELECT country FROM table_name_74 WHERE score = 70 - 79 - 74 - 68 = 291 </s>
When To par was less than 2, what was the score?
CREATE TABLE table_name_51 (score VARCHAR, to_par INTEGER)
SELECT score FROM table_name_51 WHERE to_par < 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (score VARCHAR, to_par INTEGER) Question: When To par was less than 2, what was the score? [/INST] SELECT score FROM table_name_51 WHERE to_par < 2 </s>
When was the match with a result of sa by 10 wkts?
CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_23 WHERE result = "sa by 10 wkts"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR) Question: When was the match with a result of sa by 10 wkts? [/INST] SELECT date FROM table_name_23 WHERE result = "sa by 10 wkts" </s>
When was the match with a result of sa by 10 wkts?
CREATE TABLE table_name_18 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_18 WHERE result = "sa by 10 wkts"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (date VARCHAR, result VARCHAR) Question: When was the match with a result of sa by 10 wkts? [/INST] SELECT date FROM table_name_18 WHERE result = "sa by 10 wkts" </s>
When was there a match in Centurion Park?
CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_49 WHERE venue = "centurion park"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR) Question: When was there a match in Centurion Park? [/INST] SELECT date FROM table_name_49 WHERE venue = "centurion park" </s>
Name the finish which has qual of 144.817
CREATE TABLE table_name_1 (finish VARCHAR, qual VARCHAR)
SELECT finish FROM table_name_1 WHERE qual = "144.817"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (finish VARCHAR, qual VARCHAR) Question: Name the finish which has qual of 144.817 [/INST] SELECT finish FROM table_name_1 WHERE qual = "144.817" </s>
Name the qual for rank of 9
CREATE TABLE table_name_78 (qual VARCHAR, rank VARCHAR)
SELECT qual FROM table_name_78 WHERE rank = "9"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (qual VARCHAR, rank VARCHAR) Question: Name the qual for rank of 9 [/INST] SELECT qual FROM table_name_78 WHERE rank = "9" </s>
Name the qual for 1957
CREATE TABLE table_name_1 (qual VARCHAR, year VARCHAR)
SELECT qual FROM table_name_1 WHERE year = "1957"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (qual VARCHAR, year VARCHAR) Question: Name the qual for 1957 [/INST] SELECT qual FROM table_name_1 WHERE year = "1957" </s>
What shows as the status for the name of de la red?
CREATE TABLE table_name_61 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_61 WHERE name = "de la red"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (status VARCHAR, name VARCHAR) Question: What shows as the status for the name of de la red? [/INST] SELECT status FROM table_name_61 WHERE name = "de la red" </s>
What country has a Transfer fee of —, and a Transfer window of summer, and the Status of loaned out, and a Name of gonzález?
CREATE TABLE table_name_39 (country VARCHAR, name VARCHAR, status VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR)
SELECT country FROM table_name_39 WHERE transfer_fee = "—" AND transfer_window = "summer" AND status = "loaned out" AND name = "gonzález"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (country VARCHAR, name VARCHAR, status VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR) Question: What country has a Transfer fee of —, and a Transfer window of summer, and the Status of loaned out, and a Name of gonzález? [/INST] SELECT country FROM table_name_39 WHERE transfer_fee = "—" AND transfer_window = "summer" AND status = "loaned out" AND name = "gonzález" </s>
What shows as the status for Diogo?
CREATE TABLE table_name_29 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_29 WHERE name = "diogo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (status VARCHAR, name VARCHAR) Question: What shows as the status for Diogo? [/INST] SELECT status FROM table_name_29 WHERE name = "diogo" </s>
What is the name when the country is ESP and the transfer fee is € 7m?
CREATE TABLE table_name_20 (name VARCHAR, country VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_20 WHERE country = "esp" AND transfer_fee = "€ 7m"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (name VARCHAR, country VARCHAR, transfer_fee VARCHAR) Question: What is the name when the country is ESP and the transfer fee is € 7m? [/INST] SELECT name FROM table_name_20 WHERE country = "esp" AND transfer_fee = "€ 7m" </s>
What is the transfer window for the country of ESP and the name of de la red?
CREATE TABLE table_name_49 (transfer_window VARCHAR, country VARCHAR, name VARCHAR)
SELECT transfer_window FROM table_name_49 WHERE country = "esp" AND name = "de la red"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (transfer_window VARCHAR, country VARCHAR, name VARCHAR) Question: What is the transfer window for the country of ESP and the name of de la red? [/INST] SELECT transfer_window FROM table_name_49 WHERE country = "esp" AND name = "de la red" </s>
What is the transfer fee of Diogo?
CREATE TABLE table_name_53 (transfer_fee VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_53 WHERE name = "diogo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (transfer_fee VARCHAR, name VARCHAR) Question: What is the transfer fee of Diogo? [/INST] SELECT transfer_fee FROM table_name_53 WHERE name = "diogo" </s>
What was the lowest attendance at a game that had a loss of lohse (12–11)?
CREATE TABLE table_name_2 (att INTEGER, loss VARCHAR)
SELECT MIN(att) FROM table_name_2 WHERE loss = "lohse (12–11)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (att INTEGER, loss VARCHAR) Question: What was the lowest attendance at a game that had a loss of lohse (12–11)? [/INST] SELECT MIN(att) FROM table_name_2 WHERE loss = "lohse (12–11)" </s>
What was time of the game against the Royals with a record of 81–73?
CREATE TABLE table_name_4 (time VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT time FROM table_name_4 WHERE opponent = "royals" AND record = "81–73"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (time VARCHAR, opponent VARCHAR, record VARCHAR) Question: What was time of the game against the Royals with a record of 81–73? [/INST] SELECT time FROM table_name_4 WHERE opponent = "royals" AND record = "81–73" </s>
Which round has a Kick Off of 1992-10-01 21:15?
CREATE TABLE table_name_42 (round VARCHAR, kick_off VARCHAR)
SELECT round FROM table_name_42 WHERE kick_off = "1992-10-01 21:15"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (round VARCHAR, kick_off VARCHAR) Question: Which round has a Kick Off of 1992-10-01 21:15? [/INST] SELECT round FROM table_name_42 WHERE kick_off = "1992-10-01 21:15" </s>
Which round has a Kick Off of 1993-02-17 20:30?
CREATE TABLE table_name_8 (round VARCHAR, kick_off VARCHAR)
SELECT round FROM table_name_8 WHERE kick_off = "1993-02-17 20:30"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (round VARCHAR, kick_off VARCHAR) Question: Which round has a Kick Off of 1993-02-17 20:30? [/INST] SELECT round FROM table_name_8 WHERE kick_off = "1993-02-17 20:30" </s>
What is the lowest maximum of fps with a width of 3072 and a height less than 1620?
CREATE TABLE table_name_84 (maximum_fps INTEGER, width VARCHAR, height VARCHAR)
SELECT MIN(maximum_fps) FROM table_name_84 WHERE width = 3072 AND height < 1620
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (maximum_fps INTEGER, width VARCHAR, height VARCHAR) Question: What is the lowest maximum of fps with a width of 3072 and a height less than 1620? [/INST] SELECT MIN(maximum_fps) FROM table_name_84 WHERE width = 3072 AND height < 1620 </s>
What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1?
CREATE TABLE table_name_47 (maximum_fps VARCHAR, least_compression_at_maximum_fps VARCHAR, height VARCHAR, least_compression_at_24_fps VARCHAR)
SELECT maximum_fps AS HDRx FROM table_name_47 WHERE height > 1080 AND least_compression_at_24_fps = "6:1" AND least_compression_at_maximum_fps = "7:1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (maximum_fps VARCHAR, least_compression_at_maximum_fps VARCHAR, height VARCHAR, least_compression_at_24_fps VARCHAR) Question: What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1? [/INST] SELECT maximum_fps AS HDRx FROM table_name_47 WHERE height > 1080 AND least_compression_at_24_fps = "6:1" AND least_compression_at_maximum_fps = "7:1" </s>
Who got the loss on the game that ended in a 52-36 record?
CREATE TABLE table_name_22 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_22 WHERE record = "52-36"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (loss VARCHAR, record VARCHAR) Question: Who got the loss on the game that ended in a 52-36 record? [/INST] SELECT loss FROM table_name_22 WHERE record = "52-36" </s>
Who got the loss for the game ending in a record of 55-41?
CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_74 WHERE record = "55-41"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR) Question: Who got the loss for the game ending in a record of 55-41? [/INST] SELECT loss FROM table_name_74 WHERE record = "55-41" </s>
Which team opponent had a loss with their pitcher Dotson (8-6)?
CREATE TABLE table_name_93 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_93 WHERE loss = "dotson (8-6)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (opponent VARCHAR, loss VARCHAR) Question: Which team opponent had a loss with their pitcher Dotson (8-6)? [/INST] SELECT opponent FROM table_name_93 WHERE loss = "dotson (8-6)" </s>
What is the average 2006 value for wheat with a 2005 value greater than 7340?
CREATE TABLE table_name_47 (production_year VARCHAR)
SELECT AVG(2006) FROM table_name_47 WHERE production_year = "wheat" AND 2005 > 7340
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (production_year VARCHAR) Question: What is the average 2006 value for wheat with a 2005 value greater than 7340? [/INST] SELECT AVG(2006) FROM table_name_47 WHERE production_year = "wheat" AND 2005 > 7340 </s>
What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?
CREATE TABLE table_name_31 (production_year VARCHAR)
SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (production_year VARCHAR) Question: What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546? [/INST] SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546 </s>
What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340?
CREATE TABLE table_name_41 (Id VARCHAR)
SELECT AVG(2001) FROM table_name_41 WHERE 2010 > 414 AND 2011 = 7192 AND 2005 > 7340
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (Id VARCHAR) Question: What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340? [/INST] SELECT AVG(2001) FROM table_name_41 WHERE 2010 > 414 AND 2011 = 7192 AND 2005 > 7340 </s>
What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT SUM(2006) FROM table_name_83 WHERE 2011 > 4113 AND 2008 < 7181
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (Id VARCHAR) Question: What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181? [/INST] SELECT SUM(2006) FROM table_name_83 WHERE 2011 > 4113 AND 2008 < 7181 </s>
Name the gamecenter that has attendance of 65,212
CREATE TABLE table_name_17 (gamecenter VARCHAR, attendance VARCHAR)
SELECT gamecenter FROM table_name_17 WHERE attendance = "65,212"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (gamecenter VARCHAR, attendance VARCHAR) Question: Name the gamecenter that has attendance of 65,212 [/INST] SELECT gamecenter FROM table_name_17 WHERE attendance = "65,212" </s>
Name the gamecenter with attendance of 78,551
CREATE TABLE table_name_48 (gamecenter VARCHAR, attendance VARCHAR)
SELECT gamecenter FROM table_name_48 WHERE attendance = "78,551"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (gamecenter VARCHAR, attendance VARCHAR) Question: Name the gamecenter with attendance of 78,551 [/INST] SELECT gamecenter FROM table_name_48 WHERE attendance = "78,551" </s>
Name the tv time for attendance of 69,551
CREATE TABLE table_name_84 (tv_time VARCHAR, attendance VARCHAR)
SELECT tv_time FROM table_name_84 WHERE attendance = "69,551"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (tv_time VARCHAR, attendance VARCHAR) Question: Name the tv time for attendance of 69,551 [/INST] SELECT tv_time FROM table_name_84 WHERE attendance = "69,551" </s>
what is the smallest number of laps imre toth has?
CREATE TABLE table_name_23 (laps INTEGER, rider VARCHAR)
SELECT MIN(laps) FROM table_name_23 WHERE rider = "imre toth"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (laps INTEGER, rider VARCHAR) Question: what is the smallest number of laps imre toth has? [/INST] SELECT MIN(laps) FROM table_name_23 WHERE rider = "imre toth" </s>
what is the smallest number of laps marco simoncelli has with grid less than 8 and gilera as the manufacturer?
CREATE TABLE table_name_96 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT MIN(laps) FROM table_name_96 WHERE manufacturer = "gilera" AND rider = "marco simoncelli" AND grid < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR) Question: what is the smallest number of laps marco simoncelli has with grid less than 8 and gilera as the manufacturer? [/INST] SELECT MIN(laps) FROM table_name_96 WHERE manufacturer = "gilera" AND rider = "marco simoncelli" AND grid < 8 </s>
Who was the away captain at Brisbane Cricket Ground?
CREATE TABLE table_name_34 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_34 WHERE venue = "brisbane cricket ground"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (away_captain VARCHAR, venue VARCHAR) Question: Who was the away captain at Brisbane Cricket Ground? [/INST] SELECT away_captain FROM table_name_34 WHERE venue = "brisbane cricket ground" </s>
Who was the home captain at Sydney Cricket Ground?
CREATE TABLE table_name_34 (home_captain VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_34 WHERE venue = "sydney cricket ground"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (home_captain VARCHAR, venue VARCHAR) Question: Who was the home captain at Sydney Cricket Ground? [/INST] SELECT home_captain FROM table_name_34 WHERE venue = "sydney cricket ground" </s>
On what date was the venue at Brisbane Cricket Ground?
CREATE TABLE table_name_95 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_95 WHERE venue = "brisbane cricket ground"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (date VARCHAR, venue VARCHAR) Question: On what date was the venue at Brisbane Cricket Ground? [/INST] SELECT date FROM table_name_95 WHERE venue = "brisbane cricket ground" </s>
Who was the away captain at Waca Ground?
CREATE TABLE table_name_60 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_60 WHERE venue = "waca ground"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (away_captain VARCHAR, venue VARCHAR) Question: Who was the away captain at Waca Ground? [/INST] SELECT away_captain FROM table_name_60 WHERE venue = "waca ground" </s>
On what date was the venue at Brisbane Cricket Ground?
CREATE TABLE table_name_23 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_23 WHERE venue = "brisbane cricket ground"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (date VARCHAR, venue VARCHAR) Question: On what date was the venue at Brisbane Cricket Ground? [/INST] SELECT date FROM table_name_23 WHERE venue = "brisbane cricket ground" </s>
What was the score for the game on June 30?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_65 WHERE date = "june 30"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR) Question: What was the score for the game on June 30? [/INST] SELECT score FROM table_name_65 WHERE date = "june 30" </s>
What CD has a catalog # of PCR 502?
CREATE TABLE table_name_12 (title VARCHAR, catalog__number VARCHAR)
SELECT title FROM table_name_12 WHERE catalog__number = "pcr 502"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (title VARCHAR, catalog__number VARCHAR) Question: What CD has a catalog # of PCR 502? [/INST] SELECT title FROM table_name_12 WHERE catalog__number = "pcr 502" </s>
What CD was released in 2009?
CREATE TABLE table_name_64 (title VARCHAR, released VARCHAR)
SELECT title FROM table_name_64 WHERE released = 2009
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (title VARCHAR, released VARCHAR) Question: What CD was released in 2009? [/INST] SELECT title FROM table_name_64 WHERE released = 2009 </s>
What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th?
CREATE TABLE table_name_25 (division INTEGER, playoffs VARCHAR, regular_season VARCHAR)
SELECT MAX(division) FROM table_name_25 WHERE playoffs = "quarter finals" AND regular_season = "5th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (division INTEGER, playoffs VARCHAR, regular_season VARCHAR) Question: What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th? [/INST] SELECT MAX(division) FROM table_name_25 WHERE playoffs = "quarter finals" AND regular_season = "5th" </s>
What is the year when they did not qualify for the playoff and the Regular Season shows as 10th?
CREATE TABLE table_name_17 (year VARCHAR, playoffs VARCHAR, regular_season VARCHAR)
SELECT COUNT(year) FROM table_name_17 WHERE playoffs = "did not qualify" AND regular_season = "10th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (year VARCHAR, playoffs VARCHAR, regular_season VARCHAR) Question: What is the year when they did not qualify for the playoff and the Regular Season shows as 10th? [/INST] SELECT COUNT(year) FROM table_name_17 WHERE playoffs = "did not qualify" AND regular_season = "10th" </s>
What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic?
CREATE TABLE table_name_52 (playoffs VARCHAR, open_cup VARCHAR, regular_season VARCHAR)
SELECT playoffs FROM table_name_52 WHERE open_cup = "did not qualify" AND regular_season = "3rd, south atlantic"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (playoffs VARCHAR, open_cup VARCHAR, regular_season VARCHAR) Question: What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic? [/INST] SELECT playoffs FROM table_name_52 WHERE open_cup = "did not qualify" AND regular_season = "3rd, south atlantic" </s>
What is the highest points value for 1962, in the 125cc class, and with 0 wins?
CREATE TABLE table_name_66 (points INTEGER, wins VARCHAR, year VARCHAR, class VARCHAR)
SELECT MAX(points) FROM table_name_66 WHERE year = 1962 AND class = "125cc" AND wins < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (points INTEGER, wins VARCHAR, year VARCHAR, class VARCHAR) Question: What is the highest points value for 1962, in the 125cc class, and with 0 wins? [/INST] SELECT MAX(points) FROM table_name_66 WHERE year = 1962 AND class = "125cc" AND wins < 0 </s>
What is the highest points value for the 500cc class in years after 1962 with 0 wins?
CREATE TABLE table_name_71 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_71 WHERE class = "500cc" AND year > 1962 AND wins < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR) Question: What is the highest points value for the 500cc class in years after 1962 with 0 wins? [/INST] SELECT MAX(points) FROM table_name_71 WHERE class = "500cc" AND year > 1962 AND wins < 0 </s>
For Team AJS, what is the total number of points for drivers with 0 wins?
CREATE TABLE table_name_49 (points VARCHAR, team VARCHAR, wins VARCHAR)
SELECT COUNT(points) FROM table_name_49 WHERE team = "ajs" AND wins < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (points VARCHAR, team VARCHAR, wins VARCHAR) Question: For Team AJS, what is the total number of points for drivers with 0 wins? [/INST] SELECT COUNT(points) FROM table_name_49 WHERE team = "ajs" AND wins < 0 </s>
Which year had 0 points and an AGS JH23B chassis?
CREATE TABLE table_name_81 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_81 WHERE points = 0 AND chassis = "ags jh23b"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (year VARCHAR, points VARCHAR, chassis VARCHAR) Question: Which year had 0 points and an AGS JH23B chassis? [/INST] SELECT year FROM table_name_81 WHERE points = 0 AND chassis = "ags jh23b" </s>
How many points does the year after 1986 with a AGS JH23B chassis have?
CREATE TABLE table_name_52 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_52 WHERE year > 1986 AND chassis = "ags jh23b"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (points VARCHAR, year VARCHAR, chassis VARCHAR) Question: How many points does the year after 1986 with a AGS JH23B chassis have? [/INST] SELECT points FROM table_name_52 WHERE year > 1986 AND chassis = "ags jh23b" </s>
How many points did the Tyrrell Racing Organisation have?
CREATE TABLE table_name_27 (points VARCHAR, entrant VARCHAR)
SELECT points FROM table_name_27 WHERE entrant = "tyrrell racing organisation"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (points VARCHAR, entrant VARCHAR) Question: How many points did the Tyrrell Racing Organisation have? [/INST] SELECT points FROM table_name_27 WHERE entrant = "tyrrell racing organisation" </s>
September 23, 1973 landed on which week of the season?
CREATE TABLE table_name_46 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_46 WHERE date = "september 23, 1973"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (week VARCHAR, date VARCHAR) Question: September 23, 1973 landed on which week of the season? [/INST] SELECT week FROM table_name_46 WHERE date = "september 23, 1973" </s>
What's the lowest Gold if the Rank is over 4 but the Total is less than 1?
CREATE TABLE table_name_88 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_88 WHERE rank > 4 AND total < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (gold INTEGER, rank VARCHAR, total VARCHAR) Question: What's the lowest Gold if the Rank is over 4 but the Total is less than 1? [/INST] SELECT MIN(gold) FROM table_name_88 WHERE rank > 4 AND total < 1 </s>
What's the highest bronze with a less than 1 Rank?
CREATE TABLE table_name_40 (bronze INTEGER, rank INTEGER)
SELECT MAX(bronze) FROM table_name_40 WHERE rank < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (bronze INTEGER, rank INTEGER) Question: What's the highest bronze with a less than 1 Rank? [/INST] SELECT MAX(bronze) FROM table_name_40 WHERE rank < 1 </s>
What's the average total if the Bronze is 5 and the Silver is less than 4?
CREATE TABLE table_name_25 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_25 WHERE bronze = 5 AND silver < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (total INTEGER, bronze VARCHAR, silver VARCHAR) Question: What's the average total if the Bronze is 5 and the Silver is less than 4? [/INST] SELECT AVG(total) FROM table_name_25 WHERE bronze = 5 AND silver < 4 </s>
How many Votes, when the Residence is Halifax?
CREATE TABLE table_name_81 (votes VARCHAR, residence VARCHAR)
SELECT votes FROM table_name_81 WHERE residence = "halifax"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (votes VARCHAR, residence VARCHAR) Question: How many Votes, when the Residence is Halifax? [/INST] SELECT votes FROM table_name_81 WHERE residence = "halifax" </s>
What is the Riding, when the Rank is 4th?
CREATE TABLE table_name_47 (riding VARCHAR, rank VARCHAR)
SELECT riding FROM table_name_47 WHERE rank = "4th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (riding VARCHAR, rank VARCHAR) Question: What is the Riding, when the Rank is 4th? [/INST] SELECT riding FROM table_name_47 WHERE rank = "4th" </s>
Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0
CREATE TABLE table_name_61 (cuts_made INTEGER, wins VARCHAR, top_25 VARCHAR, top_5 VARCHAR)
SELECT MAX(cuts_made) FROM table_name_61 WHERE top_25 > 4 AND top_5 = 1 AND wins > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (cuts_made INTEGER, wins VARCHAR, top_25 VARCHAR, top_5 VARCHAR) Question: Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0 [/INST] SELECT MAX(cuts_made) FROM table_name_61 WHERE top_25 > 4 AND top_5 = 1 AND wins > 0 </s>
Name the top-25 with wins less than 1 and events of 12
CREATE TABLE table_name_65 (top_25 INTEGER, wins VARCHAR, events VARCHAR)
SELECT SUM(top_25) FROM table_name_65 WHERE wins < 1 AND events = 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (top_25 INTEGER, wins VARCHAR, events VARCHAR) Question: Name the top-25 with wins less than 1 and events of 12 [/INST] SELECT SUM(top_25) FROM table_name_65 WHERE wins < 1 AND events = 12 </s>
Who was the away team when the attendance was 7,891?
CREATE TABLE table_name_28 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_28 WHERE attendance = "7,891"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (away_team VARCHAR, attendance VARCHAR) Question: Who was the away team when the attendance was 7,891? [/INST] SELECT away_team FROM table_name_28 WHERE attendance = "7,891" </s>
What was the score of the game when the attendance was 1,644?
CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_38 WHERE attendance = "1,644"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR) Question: What was the score of the game when the attendance was 1,644? [/INST] SELECT score FROM table_name_38 WHERE attendance = "1,644" </s>
Who was the away team when the home team was Lincoln City?
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_53 WHERE home_team = "lincoln city"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR) Question: Who was the away team when the home team was Lincoln City? [/INST] SELECT away_team FROM table_name_53 WHERE home_team = "lincoln city" </s>
What was the score of the game when the home team was Lincoln City?
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_74 WHERE home_team = "lincoln city"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR) Question: What was the score of the game when the home team was Lincoln City? [/INST] SELECT score FROM table_name_74 WHERE home_team = "lincoln city" </s>
Who was the away team when the attendance was 7,891?
CREATE TABLE table_name_64 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_64 WHERE attendance = "7,891"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (away_team VARCHAR, attendance VARCHAR) Question: Who was the away team when the attendance was 7,891? [/INST] SELECT away_team FROM table_name_64 WHERE attendance = "7,891" </s>
What is the most amount of points for a team before 1983?
CREATE TABLE table_name_93 (points INTEGER, year INTEGER)
SELECT MAX(points) FROM table_name_93 WHERE year < 1983
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (points INTEGER, year INTEGER) Question: What is the most amount of points for a team before 1983? [/INST] SELECT MAX(points) FROM table_name_93 WHERE year < 1983 </s>
What team has 4 points and a Chassis of march 82/83c?
CREATE TABLE table_name_71 (team VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT team FROM table_name_71 WHERE points = 4 AND chassis = "march 82/83c"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (team VARCHAR, points VARCHAR, chassis VARCHAR) Question: What team has 4 points and a Chassis of march 82/83c? [/INST] SELECT team FROM table_name_71 WHERE points = 4 AND chassis = "march 82/83c" </s>
What engine was used by Curb Motorsports after 1982 that had 11 points?
CREATE TABLE table_name_2 (engine VARCHAR, team VARCHAR, year VARCHAR, points VARCHAR)
SELECT engine FROM table_name_2 WHERE year > 1982 AND points = 11 AND team = "curb motorsports"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (engine VARCHAR, team VARCHAR, year VARCHAR, points VARCHAR) Question: What engine was used by Curb Motorsports after 1982 that had 11 points? [/INST] SELECT engine FROM table_name_2 WHERE year > 1982 AND points = 11 AND team = "curb motorsports" </s>
What is the Engine used before 1983?
CREATE TABLE table_name_84 (engine VARCHAR, year INTEGER)
SELECT engine FROM table_name_84 WHERE year < 1983
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (engine VARCHAR, year INTEGER) Question: What is the Engine used before 1983? [/INST] SELECT engine FROM table_name_84 WHERE year < 1983 </s>