instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Which Year is the first one that has an Apparatus of uneven bars, and a Rank-Final smaller than 3? | CREATE TABLE table_name_15 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR) | SELECT MIN(year) FROM table_name_15 WHERE apparatus = "uneven bars" AND rank_final < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR) Question: Which Year is the first one that has an Apparatus of uneven bars, and a Rank-Final smaller than 3? [/INST] SELECT MIN(year) FROM tabl... |
Who has a constituency of 84? | CREATE TABLE table_name_62 (name VARCHAR, constituency_number VARCHAR) | SELECT name FROM table_name_62 WHERE constituency_number = "84" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (name VARCHAR, constituency_number VARCHAR) Question: Who has a constituency of 84? [/INST] SELECT name FROM table_name_62 WHERE constituency_number = "84" </s> |
What the round with the time 1:15? | CREATE TABLE table_name_99 (round INTEGER, time VARCHAR) | SELECT AVG(round) FROM table_name_99 WHERE time = "1:15" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (round INTEGER, time VARCHAR) Question: What the round with the time 1:15? [/INST] SELECT AVG(round) FROM table_name_99 WHERE time = "1:15" </s> |
What's the location when the opponent was Lyoto Machida? | CREATE TABLE table_name_15 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_15 WHERE opponent = "lyoto machida" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (location VARCHAR, opponent VARCHAR) Question: What's the location when the opponent was Lyoto Machida? [/INST] SELECT location FROM table_name_15 WHERE opponent = "lyoto machida" </s> |
What is the 2007 result when the 2010 result was 2r, at the US Open? | CREATE TABLE table_name_91 (tournament VARCHAR) | SELECT 2007 FROM table_name_91 WHERE 2010 = "2r" AND tournament = "us open" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (tournament VARCHAR) Question: What is the 2007 result when the 2010 result was 2r, at the US Open? [/INST] SELECT 2007 FROM table_name_91 WHERE 2010 = "2r" AND tournament = "us open" </s> |
What is the A score for the person with a total less than 15.95, position less than 7, and B score more than 8.225? | CREATE TABLE table_name_38 (a_score INTEGER, b_score VARCHAR, total VARCHAR, position VARCHAR) | SELECT MAX(a_score) FROM table_name_38 WHERE total < 15.95 AND position < 7 AND b_score > 8.225 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (a_score INTEGER, b_score VARCHAR, total VARCHAR, position VARCHAR) Question: What is the A score for the person with a total less than 15.95, position less than 7, and B score more than 8.225? [/I... |
What is the B score for the person with a total of 16.325 and an A score of more than 7.3? | CREATE TABLE table_name_85 (b_score INTEGER, total VARCHAR, a_score VARCHAR) | SELECT AVG(b_score) FROM table_name_85 WHERE total = 16.325 AND a_score > 7.3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (b_score INTEGER, total VARCHAR, a_score VARCHAR) Question: What is the B score for the person with a total of 16.325 and an A score of more than 7.3? [/INST] SELECT AVG(b_score) FROM table_name_85... |
What is the Position of the person with a total less than 16.65 and an A score of 7.4? | CREATE TABLE table_name_40 (position INTEGER, total VARCHAR, a_score VARCHAR) | SELECT MIN(position) FROM table_name_40 WHERE total < 16.65 AND a_score = 7.4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (position INTEGER, total VARCHAR, a_score VARCHAR) Question: What is the Position of the person with a total less than 16.65 and an A score of 7.4? [/INST] SELECT MIN(position) FROM table_name_40 W... |
What's the network in Pachuca, Hidalgo? | CREATE TABLE table_name_14 (network VARCHAR, city_of_license VARCHAR) | SELECT network FROM table_name_14 WHERE city_of_license = "pachuca, hidalgo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (network VARCHAR, city_of_license VARCHAR) Question: What's the network in Pachuca, Hidalgo? [/INST] SELECT network FROM table_name_14 WHERE city_of_license = "pachuca, hidalgo" </s> |
What's the network that has a callsign of XHTM and a D ERP of •? | CREATE TABLE table_name_1 (network VARCHAR, d_erp VARCHAR, callsign VARCHAR) | SELECT network FROM table_name_1 WHERE d_erp = "•" AND callsign = "xhtm" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (network VARCHAR, d_erp VARCHAR, callsign VARCHAR) Question: What's the network that has a callsign of XHTM and a D ERP of •? [/INST] SELECT network FROM table_name_1 WHERE d_erp = "•" AND callsign ... |
What's the city of license having a D ERP of 100kw? | CREATE TABLE table_name_21 (city_of_license VARCHAR, d_erp VARCHAR) | SELECT city_of_license FROM table_name_21 WHERE d_erp = "100kw" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (city_of_license VARCHAR, d_erp VARCHAR) Question: What's the city of license having a D ERP of 100kw? [/INST] SELECT city_of_license FROM table_name_21 WHERE d_erp = "100kw" </s> |
What's the D ERP in San Martin Texmelucan, Puebla? | CREATE TABLE table_name_12 (d_erp VARCHAR, city_of_license VARCHAR) | SELECT d_erp FROM table_name_12 WHERE city_of_license = "san martin texmelucan, puebla" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (d_erp VARCHAR, city_of_license VARCHAR) Question: What's the D ERP in San Martin Texmelucan, Puebla? [/INST] SELECT d_erp FROM table_name_12 WHERE city_of_license = "san martin texmelucan, puebla"... |
What district has 98 constituencies? | CREATE TABLE table_name_54 (district VARCHAR, constituency_number VARCHAR) | SELECT district FROM table_name_54 WHERE constituency_number = "98" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (district VARCHAR, constituency_number VARCHAR) Question: What district has 98 constituencies? [/INST] SELECT district FROM table_name_54 WHERE constituency_number = "98" </s> |
What are the highest points with 2012 as the year? | CREATE TABLE table_name_70 (points INTEGER, year VARCHAR) | SELECT MAX(points) FROM table_name_70 WHERE year = "2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (points INTEGER, year VARCHAR) Question: What are the highest points with 2012 as the year? [/INST] SELECT MAX(points) FROM table_name_70 WHERE year = "2012" </s> |
What are the highest matches that have points less than 88, and goals less than 0? | CREATE TABLE table_name_55 (matches INTEGER, points VARCHAR, goals VARCHAR) | SELECT MAX(matches) FROM table_name_55 WHERE points < 88 AND goals < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (matches INTEGER, points VARCHAR, goals VARCHAR) Question: What are the highest matches that have points less than 88, and goals less than 0? [/INST] SELECT MAX(matches) FROM table_name_55 WHERE po... |
How many tries have goals greater than 0? | CREATE TABLE table_name_33 (tries INTEGER, goals INTEGER) | SELECT SUM(tries) FROM table_name_33 WHERE goals > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (tries INTEGER, goals INTEGER) Question: How many tries have goals greater than 0? [/INST] SELECT SUM(tries) FROM table_name_33 WHERE goals > 0 </s> |
What are the lowest points with 2013 as the year, and goals less than 0? | CREATE TABLE table_name_48 (points INTEGER, year VARCHAR, goals VARCHAR) | SELECT MIN(points) FROM table_name_48 WHERE year = "2013" AND goals < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (points INTEGER, year VARCHAR, goals VARCHAR) Question: What are the lowest points with 2013 as the year, and goals less than 0? [/INST] SELECT MIN(points) FROM table_name_48 WHERE year = "2013" AN... |
How many goals have 28 as the points, and matches greater than 11? | CREATE TABLE table_name_56 (goals VARCHAR, points VARCHAR, matches VARCHAR) | SELECT COUNT(goals) FROM table_name_56 WHERE points = 28 AND matches > 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (goals VARCHAR, points VARCHAR, matches VARCHAR) Question: How many goals have 28 as the points, and matches greater than 11? [/INST] SELECT COUNT(goals) FROM table_name_56 WHERE points = 28 AND ma... |
Which Laps have a Rider of russell holland, and a Grid smaller than 10? | CREATE TABLE table_name_54 (laps INTEGER, rider VARCHAR, grid VARCHAR) | SELECT MAX(laps) FROM table_name_54 WHERE rider = "russell holland" AND grid < 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (laps INTEGER, rider VARCHAR, grid VARCHAR) Question: Which Laps have a Rider of russell holland, and a Grid smaller than 10? [/INST] SELECT MAX(laps) FROM table_name_54 WHERE rider = "russell holl... |
Which Laps have a Bike of kawasaki zx-6r, and a Time of +26.891? | CREATE TABLE table_name_14 (laps INTEGER, bike VARCHAR, time VARCHAR) | SELECT MIN(laps) FROM table_name_14 WHERE bike = "kawasaki zx-6r" AND time = "+26.891" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (laps INTEGER, bike VARCHAR, time VARCHAR) Question: Which Laps have a Bike of kawasaki zx-6r, and a Time of +26.891? [/INST] SELECT MIN(laps) FROM table_name_14 WHERE bike = "kawasaki zx-6r" AND t... |
Which Rider has a Time of retirement, and a Grid larger than 5? | CREATE TABLE table_name_61 (rider VARCHAR, time VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_61 WHERE time = "retirement" AND grid > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (rider VARCHAR, time VARCHAR, grid VARCHAR) Question: Which Rider has a Time of retirement, and a Grid larger than 5? [/INST] SELECT rider FROM table_name_61 WHERE time = "retirement" AND grid > 5 ... |
Which Rider has less than 18 laps, and a Grid of 24? | CREATE TABLE table_name_73 (rider VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT rider FROM table_name_73 WHERE laps < 18 AND grid = 24 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (rider VARCHAR, laps VARCHAR, grid VARCHAR) Question: Which Rider has less than 18 laps, and a Grid of 24? [/INST] SELECT rider FROM table_name_73 WHERE laps < 18 AND grid = 24 </s> |
What is the date of the 2nd round 2nd leg? | CREATE TABLE table_name_63 (date VARCHAR, round VARCHAR) | SELECT date FROM table_name_63 WHERE round = "2nd round 2nd leg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (date VARCHAR, round VARCHAR) Question: What is the date of the 2nd round 2nd leg? [/INST] SELECT date FROM table_name_63 WHERE round = "2nd round 2nd leg" </s> |
What is the Round against Gillingham with an Against smaller than 3? | CREATE TABLE table_name_40 (round VARCHAR, opposing_team VARCHAR, against VARCHAR) | SELECT round FROM table_name_40 WHERE opposing_team = "gillingham" AND against < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (round VARCHAR, opposing_team VARCHAR, against VARCHAR) Question: What is the Round against Gillingham with an Against smaller than 3? [/INST] SELECT round FROM table_name_40 WHERE opposing_team = ... |
What's the draw that's played less than 36 and has 42 points? | CREATE TABLE table_name_15 (draw INTEGER, points VARCHAR, played VARCHAR) | SELECT AVG(draw) FROM table_name_15 WHERE points = 42 AND played < 36 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (draw INTEGER, points VARCHAR, played VARCHAR) Question: What's the draw that's played less than 36 and has 42 points? [/INST] SELECT AVG(draw) FROM table_name_15 WHERE points = 42 AND played < 36 ... |
What the lost that has less than 10 points and less than 38 goals scored? | CREATE TABLE table_name_21 (lost INTEGER, goals_scored VARCHAR, points VARCHAR) | SELECT SUM(lost) FROM table_name_21 WHERE goals_scored < 38 AND points < 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (lost INTEGER, goals_scored VARCHAR, points VARCHAR) Question: What the lost that has less than 10 points and less than 38 goals scored? [/INST] SELECT SUM(lost) FROM table_name_21 WHERE goals_scor... |
what the most lost for Alianza with a draw less than 6? | CREATE TABLE table_name_26 (lost INTEGER, team VARCHAR, draw VARCHAR) | SELECT MAX(lost) FROM table_name_26 WHERE team = "alianza" AND draw < 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (lost INTEGER, team VARCHAR, draw VARCHAR) Question: what the most lost for Alianza with a draw less than 6? [/INST] SELECT MAX(lost) FROM table_name_26 WHERE team = "alianza" AND draw < 6 </s> |
What the lost in place less than 3 and having more than 63 goals scored? | CREATE TABLE table_name_87 (lost INTEGER, goals_scored VARCHAR, place VARCHAR) | SELECT SUM(lost) FROM table_name_87 WHERE goals_scored > 63 AND place < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (lost INTEGER, goals_scored VARCHAR, place VARCHAR) Question: What the lost in place less than 3 and having more than 63 goals scored? [/INST] SELECT SUM(lost) FROM table_name_87 WHERE goals_scored... |
What is the total Rank for ümit karan when Apps is more than 39 and Rate is more than 0.58? | CREATE TABLE table_name_15 (rank INTEGER, rate VARCHAR, apps VARCHAR, player VARCHAR) | SELECT SUM(rank) FROM table_name_15 WHERE apps > 39 AND player = "ümit karan" AND rate > 0.58 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (rank INTEGER, rate VARCHAR, apps VARCHAR, player VARCHAR) Question: What is the total Rank for ümit karan when Apps is more than 39 and Rate is more than 0.58? [/INST] SELECT SUM(rank) FROM table_... |
When rank is more than 10, what is the total rate? | CREATE TABLE table_name_43 (rate INTEGER, rank INTEGER) | SELECT SUM(rate) FROM table_name_43 WHERE rank > 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (rate INTEGER, rank INTEGER) Question: When rank is more than 10, what is the total rate? [/INST] SELECT SUM(rate) FROM table_name_43 WHERE rank > 10 </s> |
What winning amount has himesh reshammiya as the contestant name? | CREATE TABLE table_name_51 (winning_amount VARCHAR, contestant_name VARCHAR) | SELECT winning_amount FROM table_name_51 WHERE contestant_name = "himesh reshammiya" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (winning_amount VARCHAR, contestant_name VARCHAR) Question: What winning amount has himesh reshammiya as the contestant name? [/INST] SELECT winning_amount FROM table_name_51 WHERE contestant_name ... |
What eliminated contestant has October 10, 2009 as the date premiered? | CREATE TABLE table_name_25 (eliminated_contestant VARCHAR, date_premiered__2009_ VARCHAR) | SELECT eliminated_contestant FROM table_name_25 WHERE date_premiered__2009_ = "october 10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (eliminated_contestant VARCHAR, date_premiered__2009_ VARCHAR) Question: What eliminated contestant has October 10, 2009 as the date premiered? [/INST] SELECT eliminated_contestant FROM table_name_... |
What date premiered (2009) has kareena kapoor as the contestant name? | CREATE TABLE table_name_40 (date_premiered__2009_ VARCHAR, contestant_name VARCHAR) | SELECT date_premiered__2009_ FROM table_name_40 WHERE contestant_name = "kareena kapoor" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (date_premiered__2009_ VARCHAR, contestant_name VARCHAR) Question: What date premiered (2009) has kareena kapoor as the contestant name? [/INST] SELECT date_premiered__2009_ FROM table_name_40 WHER... |
What episode # has govinda & david dhawan as the eliminated contestant? | CREATE TABLE table_name_66 (episode__number VARCHAR, eliminated_contestant VARCHAR) | SELECT episode__number FROM table_name_66 WHERE eliminated_contestant = "govinda & david dhawan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (episode__number VARCHAR, eliminated_contestant VARCHAR) Question: What episode # has govinda & david dhawan as the eliminated contestant? [/INST] SELECT episode__number FROM table_name_66 WHERE el... |
What is the winning amount that has May 30, 2009 as the date premiered? | CREATE TABLE table_name_2 (winning_amount VARCHAR, date_premiered__2009_ VARCHAR) | SELECT winning_amount FROM table_name_2 WHERE date_premiered__2009_ = "may 30" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (winning_amount VARCHAR, date_premiered__2009_ VARCHAR) Question: What is the winning amount that has May 30, 2009 as the date premiered? [/INST] SELECT winning_amount FROM table_name_2 WHERE date_p... |
What is the Reserved For of Lahar? | CREATE TABLE table_name_39 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_39 WHERE name = "lahar" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) Question: What is the Reserved For of Lahar? [/INST] SELECT reserved_for___sc___st__none_ FROM table_name_39 WHERE name = "lahar" </s> |
What is the least clock speed (MHz) with January 1986 as introduced? | CREATE TABLE table_name_75 (clock_speed__mhz_ INTEGER, introduced VARCHAR) | SELECT MIN(clock_speed__mhz_) FROM table_name_75 WHERE introduced = "january 1986" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (clock_speed__mhz_ INTEGER, introduced VARCHAR) Question: What is the least clock speed (MHz) with January 1986 as introduced? [/INST] SELECT MIN(clock_speed__mhz_) FROM table_name_75 WHERE introdu... |
With April 1986 as the introduced, what is the least clock speed (MHz)? | CREATE TABLE table_name_36 (clock_speed__mhz_ INTEGER, introduced VARCHAR) | SELECT MIN(clock_speed__mhz_) FROM table_name_36 WHERE introduced = "april 1986" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (clock_speed__mhz_ INTEGER, introduced VARCHAR) Question: With April 1986 as the introduced, what is the least clock speed (MHz)? [/INST] SELECT MIN(clock_speed__mhz_) FROM table_name_36 WHERE intr... |
The Powerbook 100 model has what processor? | CREATE TABLE table_name_58 (processor VARCHAR, model VARCHAR) | SELECT processor FROM table_name_58 WHERE model = "powerbook 100" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (processor VARCHAR, model VARCHAR) Question: The Powerbook 100 model has what processor? [/INST] SELECT processor FROM table_name_58 WHERE model = "powerbook 100" </s> |
When was the Lisa 2 model discontinued? | CREATE TABLE table_name_45 (discontinued VARCHAR, model VARCHAR) | SELECT discontinued FROM table_name_45 WHERE model = "lisa 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (discontinued VARCHAR, model VARCHAR) Question: When was the Lisa 2 model discontinued? [/INST] SELECT discontinued FROM table_name_45 WHERE model = "lisa 2" </s> |
Who are the rowers with a time of 6:41.45 and notes of FA? | CREATE TABLE table_name_33 (rowers VARCHAR, notes VARCHAR, time VARCHAR) | SELECT rowers FROM table_name_33 WHERE notes = "fa" AND time = "6:41.45" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (rowers VARCHAR, notes VARCHAR, time VARCHAR) Question: Who are the rowers with a time of 6:41.45 and notes of FA? [/INST] SELECT rowers FROM table_name_33 WHERE notes = "fa" AND time = "6:41.45" <... |
Who are the rowers from the United States? | CREATE TABLE table_name_6 (rowers VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_6 WHERE country = "united states" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (rowers VARCHAR, country VARCHAR) Question: Who are the rowers from the United States? [/INST] SELECT rowers FROM table_name_6 WHERE country = "united states" </s> |
What time did the team from Ukraine have? | CREATE TABLE table_name_76 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_76 WHERE country = "ukraine" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (time VARCHAR, country VARCHAR) Question: What time did the team from Ukraine have? [/INST] SELECT time FROM table_name_76 WHERE country = "ukraine" </s> |
What is the rank for the team that had a time of 6:41.45 and note FA? | CREATE TABLE table_name_26 (rank INTEGER, notes VARCHAR, time VARCHAR) | SELECT SUM(rank) FROM table_name_26 WHERE notes = "fa" AND time = "6:41.45" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (rank INTEGER, notes VARCHAR, time VARCHAR) Question: What is the rank for the team that had a time of 6:41.45 and note FA? [/INST] SELECT SUM(rank) FROM table_name_26 WHERE notes = "fa" AND time =... |
What rank was the team from Australia? | CREATE TABLE table_name_77 (rank VARCHAR, country VARCHAR) | SELECT COUNT(rank) FROM table_name_77 WHERE country = "australia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (rank VARCHAR, country VARCHAR) Question: What rank was the team from Australia? [/INST] SELECT COUNT(rank) FROM table_name_77 WHERE country = "australia" </s> |
What is the highest game that has July 31 as the date? | CREATE TABLE table_name_6 (game INTEGER, date VARCHAR) | SELECT MAX(game) FROM table_name_6 WHERE date = "july 31" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (game INTEGER, date VARCHAR) Question: What is the highest game that has July 31 as the date? [/INST] SELECT MAX(game) FROM table_name_6 WHERE date = "july 31" </s> |
What is the River Mile with a RDB lock side and a pool length of 55.4? | CREATE TABLE table_name_32 (river_mile VARCHAR, lock_side VARCHAR, pool_length__miles_ VARCHAR) | SELECT river_mile FROM table_name_32 WHERE lock_side = "rdb" AND pool_length__miles_ = "55.4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (river_mile VARCHAR, lock_side VARCHAR, pool_length__miles_ VARCHAR) Question: What is the River Mile with a RDB lock side and a pool length of 55.4? [/INST] SELECT river_mile FROM table_name_32 WH... |
What is the highest River Mile that has a pool length of 42.2 miles or a lock/lift drop of 21 feet? | CREATE TABLE table_name_71 (river_mile INTEGER, pool_length__miles_ VARCHAR, lock_lift_drop__in_feet_ VARCHAR) | SELECT MAX(river_mile) FROM table_name_71 WHERE pool_length__miles_ = "42.2" AND lock_lift_drop__in_feet_ = "21" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (river_mile INTEGER, pool_length__miles_ VARCHAR, lock_lift_drop__in_feet_ VARCHAR) Question: What is the highest River Mile that has a pool length of 42.2 miles or a lock/lift drop of 21 feet? [/I... |
What is the location of the river mile that is larger than 938.9, and Olmsted Locks and Dam? | CREATE TABLE table_name_8 (location_ VARCHAR, l_ VARCHAR, river_mile VARCHAR, locks_ VARCHAR, _dam VARCHAR) | SELECT location_ AS "l_" FROM table_name_8 WHERE river_mile > 938.9 AND locks_ & _dam = "olmsted locks and dam" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (location_ VARCHAR, l_ VARCHAR, river_mile VARCHAR, locks_ VARCHAR, _dam VARCHAR) Question: What is the location of the river mile that is larger than 938.9, and Olmsted Locks and Dam? [/INST] SELEC... |
What is the lowest ranking for 8:13.67? | CREATE TABLE table_name_4 (rank INTEGER, time VARCHAR) | SELECT MIN(rank) FROM table_name_4 WHERE time = "8:13.67" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (rank INTEGER, time VARCHAR) Question: What is the lowest ranking for 8:13.67? [/INST] SELECT MIN(rank) FROM table_name_4 WHERE time = "8:13.67" </s> |
What is the time for Kazakhstan? | CREATE TABLE table_name_57 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_57 WHERE country = "kazakhstan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (time VARCHAR, country VARCHAR) Question: What is the time for Kazakhstan? [/INST] SELECT time FROM table_name_57 WHERE country = "kazakhstan" </s> |
What are the notes for South Africa? | CREATE TABLE table_name_8 (notes VARCHAR, country VARCHAR) | SELECT notes FROM table_name_8 WHERE country = "south africa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (notes VARCHAR, country VARCHAR) Question: What are the notes for South Africa? [/INST] SELECT notes FROM table_name_8 WHERE country = "south africa" </s> |
What country is ranked higher than 5? | CREATE TABLE table_name_29 (country VARCHAR, rank INTEGER) | SELECT country FROM table_name_29 WHERE rank > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (country VARCHAR, rank INTEGER) Question: What country is ranked higher than 5? [/INST] SELECT country FROM table_name_29 WHERE rank > 5 </s> |
What is the total rank and fc notes from South Africa? | CREATE TABLE table_name_24 (rank VARCHAR, notes VARCHAR, country VARCHAR) | SELECT COUNT(rank) FROM table_name_24 WHERE notes = "fc" AND country = "south africa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (rank VARCHAR, notes VARCHAR, country VARCHAR) Question: What is the total rank and fc notes from South Africa? [/INST] SELECT COUNT(rank) FROM table_name_24 WHERE notes = "fc" AND country = "south... |
From what series was the title with a production number of 1614 that was directed by Friz Freleng? | CREATE TABLE table_name_15 (series VARCHAR, director VARCHAR, production_number VARCHAR) | SELECT series FROM table_name_15 WHERE director = "friz freleng" AND production_number = 1614 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (series VARCHAR, director VARCHAR, production_number VARCHAR) Question: From what series was the title with a production number of 1614 that was directed by Friz Freleng? [/INST] SELECT series FROM... |
What is the Result of the event with a Record of 1-3? | CREATE TABLE table_name_39 (result VARCHAR, record VARCHAR) | SELECT result FROM table_name_39 WHERE record = "1-3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (result VARCHAR, record VARCHAR) Question: What is the Result of the event with a Record of 1-3? [/INST] SELECT result FROM table_name_39 WHERE record = "1-3" </s> |
What is the Round of the event with a Record of 5-4? | CREATE TABLE table_name_61 (round VARCHAR, record VARCHAR) | SELECT round FROM table_name_61 WHERE record = "5-4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (round VARCHAR, record VARCHAR) Question: What is the Round of the event with a Record of 5-4? [/INST] SELECT round FROM table_name_61 WHERE record = "5-4" </s> |
What was the latitude for van meter who had a land(sqmi) larger than 35.747, Water(sqmi) of 0 and a GEO ID smaller than 3809981860? | CREATE TABLE table_name_51 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR) | SELECT COUNT(latitude) FROM table_name_51 WHERE land___sqmi__ > 35.747 AND water__sqmi_ = 0 AND geo_id < 3809981860 AND township = "van meter" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR) Question: What was the latitude for van meter who had a land(sqmi) larger than 35.747, Water(sqmi) ... |
What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001? | CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR) | SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ < 0.9590000000000001 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR) Question: What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001? [/IN... |
Van Meter has a water(sqmi) of 0 and a longitude larger than -98.444062, what was their highest ANSI code? | CREATE TABLE table_name_63 (ansi_code INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR, township VARCHAR) | SELECT MAX(ansi_code) FROM table_name_63 WHERE water__sqmi_ = 0 AND township = "van meter" AND longitude > -98.444062 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (ansi_code INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR, township VARCHAR) Question: Van Meter has a water(sqmi) of 0 and a longitude larger than -98.444062, what was their highest ANSI code? [... |
What was the lowest water(sqmi) in the county of dickey where the longitude was smaller than -98.444062? | CREATE TABLE table_name_47 (water__sqmi_ INTEGER, county VARCHAR, longitude VARCHAR) | SELECT MIN(water__sqmi_) FROM table_name_47 WHERE county = "dickey" AND longitude < -98.444062 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (water__sqmi_ INTEGER, county VARCHAR, longitude VARCHAR) Question: What was the lowest water(sqmi) in the county of dickey where the longitude was smaller than -98.444062? [/INST] SELECT MIN(water... |
Who is the coach for the Northamptonshire Steelbacks? | CREATE TABLE table_name_36 (coach VARCHAR, team VARCHAR) | SELECT coach FROM table_name_36 WHERE team = "northamptonshire steelbacks" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (coach VARCHAR, team VARCHAR) Question: Who is the coach for the Northamptonshire Steelbacks? [/INST] SELECT coach FROM table_name_36 WHERE team = "northamptonshire steelbacks" </s> |
Which team is located in Leicester? | CREATE TABLE table_name_36 (team VARCHAR, location VARCHAR) | SELECT team FROM table_name_36 WHERE location = "leicester" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (team VARCHAR, location VARCHAR) Question: Which team is located in Leicester? [/INST] SELECT team FROM table_name_36 WHERE location = "leicester" </s> |
Which team is in Sussex county? | CREATE TABLE table_name_5 (team VARCHAR, county VARCHAR) | SELECT team FROM table_name_5 WHERE county = "sussex" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (team VARCHAR, county VARCHAR) Question: Which team is in Sussex county? [/INST] SELECT team FROM table_name_5 WHERE county = "sussex" </s> |
What is the home ground for the team located in Canterbury? | CREATE TABLE table_name_96 (home_ground VARCHAR, location VARCHAR) | SELECT home_ground FROM table_name_96 WHERE location = "canterbury" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (home_ground VARCHAR, location VARCHAR) Question: What is the home ground for the team located in Canterbury? [/INST] SELECT home_ground FROM table_name_96 WHERE location = "canterbury" </s> |
Who is the captain of the team coached by Giles White? | CREATE TABLE table_name_28 (captain VARCHAR, coach VARCHAR) | SELECT captain FROM table_name_28 WHERE coach = "giles white" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (captain VARCHAR, coach VARCHAR) Question: Who is the captain of the team coached by Giles White? [/INST] SELECT captain FROM table_name_28 WHERE coach = "giles white" </s> |
Which division is the Derbyshire Falcons in? | CREATE TABLE table_name_68 (division VARCHAR, team VARCHAR) | SELECT division FROM table_name_68 WHERE team = "derbyshire falcons" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (division VARCHAR, team VARCHAR) Question: Which division is the Derbyshire Falcons in? [/INST] SELECT division FROM table_name_68 WHERE team = "derbyshire falcons" </s> |
Which tie number had a home team of Derby County? | CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_52 WHERE home_team = "derby county" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR) Question: Which tie number had a home team of Derby County? [/INST] SELECT tie_no FROM table_name_52 WHERE home_team = "derby county" </s> |
What was the score of the tie with an away team of Stoke City? | CREATE TABLE table_name_50 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_50 WHERE away_team = "stoke city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (score VARCHAR, away_team VARCHAR) Question: What was the score of the tie with an away team of Stoke City? [/INST] SELECT score FROM table_name_50 WHERE away_team = "stoke city" </s> |
Which Artist has a Draw smaller than 14, and Points less than 73, and a Language of turkish? | CREATE TABLE table_name_70 (artist VARCHAR, language VARCHAR, draw VARCHAR, points VARCHAR) | SELECT artist FROM table_name_70 WHERE draw < 14 AND points < 73 AND language = "turkish" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (artist VARCHAR, language VARCHAR, draw VARCHAR, points VARCHAR) Question: Which Artist has a Draw smaller than 14, and Points less than 73, and a Language of turkish? [/INST] SELECT artist FROM ta... |
How many points does mia martini have? | CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR) | SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR) Question: How many points does mia martini have? [/INST] SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini" </s> |
Which Artist has an English translation of all this is music? | CREATE TABLE table_name_92 (artist VARCHAR, english_translation VARCHAR) | SELECT artist FROM table_name_92 WHERE english_translation = "all this is music" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (artist VARCHAR, english_translation VARCHAR) Question: Which Artist has an English translation of all this is music? [/INST] SELECT artist FROM table_name_92 WHERE english_translation = "all this ... |
What athlete has a Grenoble place? | CREATE TABLE table_name_96 (athlete VARCHAR, place VARCHAR) | SELECT athlete FROM table_name_96 WHERE place = "grenoble" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (athlete VARCHAR, place VARCHAR) Question: What athlete has a Grenoble place? [/INST] SELECT athlete FROM table_name_96 WHERE place = "grenoble" </s> |
What is the Pick number of the Player from Syracuse? | CREATE TABLE table_name_76 (pick VARCHAR, college VARCHAR) | SELECT pick FROM table_name_76 WHERE college = "syracuse" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (pick VARCHAR, college VARCHAR) Question: What is the Pick number of the Player from Syracuse? [/INST] SELECT pick FROM table_name_76 WHERE college = "syracuse" </s> |
What is the Offensive Guard Player from Mississippi State College with a Pick number larter than 44? | CREATE TABLE table_name_68 (player VARCHAR, college VARCHAR, pick VARCHAR, position VARCHAR) | SELECT player FROM table_name_68 WHERE pick > 44 AND position = "offensive guard" AND college = "mississippi state" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (player VARCHAR, college VARCHAR, pick VARCHAR, position VARCHAR) Question: What is the Offensive Guard Player from Mississippi State College with a Pick number larter than 44? [/INST] SELECT playe... |
What is the College of the Pick from Denver Broncos? | CREATE TABLE table_name_47 (college VARCHAR, team VARCHAR) | SELECT college FROM table_name_47 WHERE team = "denver broncos" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (college VARCHAR, team VARCHAR) Question: What is the College of the Pick from Denver Broncos? [/INST] SELECT college FROM table_name_47 WHERE team = "denver broncos" </s> |
What's the 2008 Status of Rosa Delauro? | CREATE TABLE table_name_15 (democratic VARCHAR) | SELECT 2008 AS _status FROM table_name_15 WHERE democratic = "rosa delauro" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (democratic VARCHAR) Question: What's the 2008 Status of Rosa Delauro? [/INST] SELECT 2008 AS _status FROM table_name_15 WHERE democratic = "rosa delauro" </s> |
Who was the incumbent when Bo Itshaky was the Republican? | CREATE TABLE table_name_63 (incumbent VARCHAR, republican VARCHAR) | SELECT incumbent FROM table_name_63 WHERE republican = "bo itshaky" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (incumbent VARCHAR, republican VARCHAR) Question: Who was the incumbent when Bo Itshaky was the Republican? [/INST] SELECT incumbent FROM table_name_63 WHERE republican = "bo itshaky" </s> |
Who was the Republican in the district more than 4? | CREATE TABLE table_name_49 (republican VARCHAR, district INTEGER) | SELECT republican FROM table_name_49 WHERE district > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (republican VARCHAR, district INTEGER) Question: Who was the Republican in the district more than 4? [/INST] SELECT republican FROM table_name_49 WHERE district > 4 </s> |
Who was the Republican when the green was Harold Burbank? | CREATE TABLE table_name_27 (republican VARCHAR, green VARCHAR) | SELECT republican FROM table_name_27 WHERE green = "harold burbank" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (republican VARCHAR, green VARCHAR) Question: Who was the Republican when the green was Harold Burbank? [/INST] SELECT republican FROM table_name_27 WHERE green = "harold burbank" </s> |
Who was the Democratic when then Incumbent was Christopher Shays? | CREATE TABLE table_name_40 (democratic VARCHAR, incumbent VARCHAR) | SELECT democratic FROM table_name_40 WHERE incumbent = "christopher shays" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (democratic VARCHAR, incumbent VARCHAR) Question: Who was the Democratic when then Incumbent was Christopher Shays? [/INST] SELECT democratic FROM table_name_40 WHERE incumbent = "christopher shays... |
Who is the director of Antz? | CREATE TABLE table_name_35 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_35 WHERE title = "antz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (director VARCHAR, title VARCHAR) Question: Who is the director of Antz? [/INST] SELECT director FROM table_name_35 WHERE title = "antz" </s> |
What studio has the director Philip Frank Messina? | CREATE TABLE table_name_71 (studio_s_ VARCHAR, director VARCHAR) | SELECT studio_s_ FROM table_name_71 WHERE director = "philip frank messina" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (studio_s_ VARCHAR, director VARCHAR) Question: What studio has the director Philip Frank Messina? [/INST] SELECT studio_s_ FROM table_name_71 WHERE director = "philip frank messina" </s> |
What are the club number for the first round? | CREATE TABLE table_name_43 (clubs VARCHAR, round VARCHAR) | SELECT clubs FROM table_name_43 WHERE round = "first round" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (clubs VARCHAR, round VARCHAR) Question: What are the club number for the first round? [/INST] SELECT clubs FROM table_name_43 WHERE round = "first round" </s> |
when there were 48 → 32 clubs? | CREATE TABLE table_name_82 (new_entries_this_round VARCHAR, clubs VARCHAR) | SELECT new_entries_this_round FROM table_name_82 WHERE clubs = "48 → 32" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (new_entries_this_round VARCHAR, clubs VARCHAR) Question: when there were 48 → 32 clubs? [/INST] SELECT new_entries_this_round FROM table_name_82 WHERE clubs = "48 → 32" </s> |
Where was the fight that took a time of 1:37? | CREATE TABLE table_name_94 (location VARCHAR, time VARCHAR) | SELECT location FROM table_name_94 WHERE time = "1:37" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (location VARCHAR, time VARCHAR) Question: Where was the fight that took a time of 1:37? [/INST] SELECT location FROM table_name_94 WHERE time = "1:37" </s> |
What was the resolution of the fight against kiuma kunioku with a time of 15:00? | CREATE TABLE table_name_79 (res VARCHAR, time VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_79 WHERE time = "15:00" AND opponent = "kiuma kunioku" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (res VARCHAR, time VARCHAR, opponent VARCHAR) Question: What was the resolution of the fight against kiuma kunioku with a time of 15:00? [/INST] SELECT res FROM table_name_79 WHERE time = "15:00" A... |
What is the average number of bronze medals won by Poland? | CREATE TABLE table_name_67 (bronze INTEGER, nation VARCHAR) | SELECT AVG(bronze) FROM table_name_67 WHERE nation = "poland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (bronze INTEGER, nation VARCHAR) Question: What is the average number of bronze medals won by Poland? [/INST] SELECT AVG(bronze) FROM table_name_67 WHERE nation = "poland" </s> |
What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal? | CREATE TABLE table_name_90 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_90 WHERE total > 1 AND bronze < 10 AND nation = "switzerland" AND silver > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) Question: What is the average number of gold medals Switzerland received when they ranked larger than 1st and received ... |
What is the rank when the col is larger than 0? | CREATE TABLE table_name_7 (rank VARCHAR, col__m_ INTEGER) | SELECT COUNT(rank) FROM table_name_7 WHERE col__m_ > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (rank VARCHAR, col__m_ INTEGER) Question: What is the rank when the col is larger than 0? [/INST] SELECT COUNT(rank) FROM table_name_7 WHERE col__m_ > 0 </s> |
What is the elevation of Vanuatu, when the rank is smaller than 3? | CREATE TABLE table_name_22 (elevation__m_ INTEGER, country VARCHAR, rank VARCHAR) | SELECT AVG(elevation__m_) FROM table_name_22 WHERE country = "vanuatu" AND rank < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (elevation__m_ INTEGER, country VARCHAR, rank VARCHAR) Question: What is the elevation of Vanuatu, when the rank is smaller than 3? [/INST] SELECT AVG(elevation__m_) FROM table_name_22 WHERE countr... |
What's the platform of Super Mario All-Stars? | CREATE TABLE table_name_89 (platform VARCHAR, title VARCHAR) | SELECT platform FROM table_name_89 WHERE title = "super mario all-stars" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (platform VARCHAR, title VARCHAR) Question: What's the platform of Super Mario All-Stars? [/INST] SELECT platform FROM table_name_89 WHERE title = "super mario all-stars" </s> |
What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728? | CREATE TABLE table_name_44 (losses INTEGER, wins VARCHAR, against VARCHAR) | SELECT AVG(losses) FROM table_name_44 WHERE wins < 4 AND against > 1728 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (losses INTEGER, wins VARCHAR, against VARCHAR) Question: What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728? [/INST] SELECT AVG(losses)... |
What is the total number of draws when there is 1 Win, and less than 1728 against matches? | CREATE TABLE table_name_41 (draws VARCHAR, wins VARCHAR, against VARCHAR) | SELECT COUNT(draws) FROM table_name_41 WHERE wins = 1 AND against < 1728 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (draws VARCHAR, wins VARCHAR, against VARCHAR) Question: What is the total number of draws when there is 1 Win, and less than 1728 against matches? [/INST] SELECT COUNT(draws) FROM table_name_41 WH... |
What is the highest number of wins when there are less than 2 losses? | CREATE TABLE table_name_80 (wins INTEGER, losses INTEGER) | SELECT MAX(wins) FROM table_name_80 WHERE losses < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (wins INTEGER, losses INTEGER) Question: What is the highest number of wins when there are less than 2 losses? [/INST] SELECT MAX(wins) FROM table_name_80 WHERE losses < 2 </s> |
What is the highest number of losses for the Cobden club when there is less than 1 win? | CREATE TABLE table_name_92 (losses INTEGER, club VARCHAR, wins VARCHAR) | SELECT MAX(losses) FROM table_name_92 WHERE club = "cobden" AND wins < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (losses INTEGER, club VARCHAR, wins VARCHAR) Question: What is the highest number of losses for the Cobden club when there is less than 1 win? [/INST] SELECT MAX(losses) FROM table_name_92 WHERE cl... |
What is the average number of wins for the Terang Club, when there are less than 0 draws? | CREATE TABLE table_name_43 (wins INTEGER, club VARCHAR, draws VARCHAR) | SELECT AVG(wins) FROM table_name_43 WHERE club = "terang" AND draws < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (wins INTEGER, club VARCHAR, draws VARCHAR) Question: What is the average number of wins for the Terang Club, when there are less than 0 draws? [/INST] SELECT AVG(wins) FROM table_name_43 WHERE clu... |
Who was the 2nd place team when the location was Tulsa, OK before 1956? | CREATE TABLE table_name_93 (host_location VARCHAR, year VARCHAR) | SELECT 2 AS nd_place_team FROM table_name_93 WHERE host_location = "tulsa, ok" AND year < 1956 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (host_location VARCHAR, year VARCHAR) Question: Who was the 2nd place team when the location was Tulsa, OK before 1956? [/INST] SELECT 2 AS nd_place_team FROM table_name_93 WHERE host_location = "t... |
In what Year is the Location of the Festival Koror, Palau? | CREATE TABLE table_name_9 (year INTEGER, location VARCHAR) | SELECT SUM(year) FROM table_name_9 WHERE location = "koror, palau" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (year INTEGER, location VARCHAR) Question: In what Year is the Location of the Festival Koror, Palau? [/INST] SELECT SUM(year) FROM table_name_9 WHERE location = "koror, palau" </s> |
What is the Location of the 10th Iteration? | CREATE TABLE table_name_40 (location VARCHAR, iteration VARCHAR) | SELECT location FROM table_name_40 WHERE iteration = "10th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (location VARCHAR, iteration VARCHAR) Question: What is the Location of the 10th Iteration? [/INST] SELECT location FROM table_name_40 WHERE iteration = "10th" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.