context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE COUNTRIES (CountryName VARCHAR, Continent VARCHAR, CountryId VARCHAR); CREATE TABLE CONTINENTS (ContId VARCHAR, Continent VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)
SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING COUNT(*) >= 3
Which countries in europe have at least 3 car manufacturers?
<s>[INST]Which countries in europe have at least 3 car manufacturers? Context: CREATE TABLE COUNTRIES (CountryName VARCHAR, Continent VARCHAR, CountryId VARCHAR); CREATE TABLE CONTINENTS (ContId VARCHAR, Continent VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)[/INST]SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN ...
CREATE TABLE table_name_68 (pick VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT pick FROM table_name_68 WHERE nba_years_[a_] = "2" AND previous_team = "utah jazz"
What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?
<s>[INST]What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz? Context: CREATE TABLE table_name_68 (pick VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)[/INST]SELECT pick FROM table_name_68 WHERE nba_years_[a_] = "2" AND previous_team = "utah jazz"</s>
CREATE TABLE table_name_43 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_43 WHERE round = 1 AND opponent = "ricky shivers"
What location shows round was 1, and against Ricky Shivers?
<s>[INST]What location shows round was 1, and against Ricky Shivers? Context: CREATE TABLE table_name_43 (location VARCHAR, round VARCHAR, opponent VARCHAR)[/INST]SELECT location FROM table_name_43 WHERE round = 1 AND opponent = "ricky shivers"</s>
CREATE TABLE table_10408617_5 (bts_retail_price__regulated_ VARCHAR, tariff_code VARCHAR)
SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "g10"
What is the bts retail price (regulated) for tariff code g10?
<s>[INST]What is the bts retail price (regulated) for tariff code g10? Context: CREATE TABLE table_10408617_5 (bts_retail_price__regulated_ VARCHAR, tariff_code VARCHAR)[/INST]SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "g10"</s>
CREATE TABLE table_24852001_2 (game_site VARCHAR, opponent VARCHAR)
SELECT game_site FROM table_24852001_2 WHERE opponent = "Frankfurt Galaxy"
What was the game site for the matchup against the Frankfurt Galaxy?
<s>[INST]What was the game site for the matchup against the Frankfurt Galaxy? Context: CREATE TABLE table_24852001_2 (game_site VARCHAR, opponent VARCHAR)[/INST]SELECT game_site FROM table_24852001_2 WHERE opponent = "Frankfurt Galaxy"</s>
CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"
Find out the first name and last name of staff lived in city Damianfort.
<s>[INST]Find out the first name and last name of staff lived in city Damianfort. Context: CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)[/INST]SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1....
CREATE TABLE table_11075747_4 (written_by VARCHAR, series__number VARCHAR)
SELECT written_by FROM table_11075747_4 WHERE series__number = 38
Who wrote Series 38?
<s>[INST]Who wrote Series 38? Context: CREATE TABLE table_11075747_4 (written_by VARCHAR, series__number VARCHAR)[/INST]SELECT written_by FROM table_11075747_4 WHERE series__number = 38</s>
CREATE TABLE table_19651669_1 (finalist VARCHAR, mvp VARCHAR)
SELECT finalist FROM table_19651669_1 WHERE mvp = "Romain Sato"
Who was the finalist when the MVP was Romain Sato?
<s>[INST]Who was the finalist when the MVP was Romain Sato? Context: CREATE TABLE table_19651669_1 (finalist VARCHAR, mvp VARCHAR)[/INST]SELECT finalist FROM table_19651669_1 WHERE mvp = "Romain Sato"</s>
CREATE TABLE table_11585313_1 (number_of_goals VARCHAR, date_of_debut VARCHAR)
SELECT COUNT(number_of_goals) FROM table_11585313_1 WHERE date_of_debut = "14-04-1907"
What is the total number of goals on the debut date of 14-04-1907?
<s>[INST]What is the total number of goals on the debut date of 14-04-1907? Context: CREATE TABLE table_11585313_1 (number_of_goals VARCHAR, date_of_debut VARCHAR)[/INST]SELECT COUNT(number_of_goals) FROM table_11585313_1 WHERE date_of_debut = "14-04-1907"</s>
CREATE TABLE table_name_29 (week INTEGER, opponent VARCHAR)
SELECT MAX(week) FROM table_name_29 WHERE opponent = "tampa bay buccaneers"
What was the latest week that the Tampa Bay Buccaneers were an opponent?
<s>[INST]What was the latest week that the Tampa Bay Buccaneers were an opponent? Context: CREATE TABLE table_name_29 (week INTEGER, opponent VARCHAR)[/INST]SELECT MAX(week) FROM table_name_29 WHERE opponent = "tampa bay buccaneers"</s>
CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)
SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36
Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?
<s>[INST]Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average? Context: CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)[/INST]SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND ...
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy"
What is the average crowd size of Fitzroy's home team?
<s>[INST]What is the average crowd size of Fitzroy's home team? Context: CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)[/INST]SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy"</s>
CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_98 WHERE home_team = "essendon"
What is the score of the away team that played Essendon?
<s>[INST]What is the score of the away team that played Essendon? Context: CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_98 WHERE home_team = "essendon"</s>
CREATE TABLE table_name_21 (bronze VARCHAR, total VARCHAR)
SELECT bronze FROM table_name_21 WHERE total = 5
Total of 5 had what bronze?
<s>[INST]Total of 5 had what bronze? Context: CREATE TABLE table_name_21 (bronze VARCHAR, total VARCHAR)[/INST]SELECT bronze FROM table_name_21 WHERE total = 5</s>
CREATE TABLE table_name_76 (winner VARCHAR, name VARCHAR)
SELECT winner FROM table_name_76 WHERE name = "fedex tour of calabarzon"
Who won the Fedex tour of Calabarzon?
<s>[INST]Who won the Fedex tour of Calabarzon? Context: CREATE TABLE table_name_76 (winner VARCHAR, name VARCHAR)[/INST]SELECT winner FROM table_name_76 WHERE name = "fedex tour of calabarzon"</s>
CREATE TABLE table_name_21 (games VARCHAR, rushes VARCHAR, yards VARCHAR)
SELECT COUNT(games) FROM table_name_21 WHERE rushes = 41 AND yards < 197
How many games had 41 rushes and were than 197 yards?
<s>[INST]How many games had 41 rushes and were than 197 yards? Context: CREATE TABLE table_name_21 (games VARCHAR, rushes VARCHAR, yards VARCHAR)[/INST]SELECT COUNT(games) FROM table_name_21 WHERE rushes = 41 AND yards < 197</s>
CREATE TABLE table_27722408_6 (high_points VARCHAR, record VARCHAR)
SELECT high_points FROM table_27722408_6 WHERE record = "9–3"
Who scored the high points for the game with record 9–3?
<s>[INST]Who scored the high points for the game with record 9–3? Context: CREATE TABLE table_27722408_6 (high_points VARCHAR, record VARCHAR)[/INST]SELECT high_points FROM table_27722408_6 WHERE record = "9–3"</s>
CREATE TABLE employee (emp_fname VARCHAR, emp_jobcode VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num
What are the first names of the professors who do not teach a class.
<s>[INST]What are the first names of the professors who do not teach a class. Context: CREATE TABLE employee (emp_fname VARCHAR, emp_jobcode VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)[/INST]SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT ...
CREATE TABLE table_28688313_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = "9.81"
Who wrote the episode with 9.81 million US viewers?
<s>[INST]Who wrote the episode with 9.81 million US viewers? Context: CREATE TABLE table_28688313_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)[/INST]SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = "9.81"</s>
CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)
SELECT softball_stadium FROM table_1974545_3 WHERE school = "Rhode Island College"
What is the name of Rhode Island College's softball stadium?
<s>[INST]What is the name of Rhode Island College's softball stadium? Context: CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)[/INST]SELECT softball_stadium FROM table_1974545_3 WHERE school = "Rhode Island College"</s>
CREATE TABLE table_name_52 (episode VARCHAR, result VARCHAR, nominee_s_ VARCHAR)
SELECT episode FROM table_name_52 WHERE result = "nominated" AND nominee_s_ = "walon green, joe sachs"
For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?
<s>[INST]For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result? Context: CREATE TABLE table_name_52 (episode VARCHAR, result VARCHAR, nominee_s_ VARCHAR)[/INST]SELECT episode FROM table_name_52 WHERE result = "nominated" AND nominee_s_ = "walon green, joe sachs"</s>
CREATE TABLE table_name_53 (name VARCHAR, term_end VARCHAR)
SELECT name FROM table_name_53 WHERE term_end = "5 march 1930"
Who is the prime minister that had a term that ended on 5 March 1930?
<s>[INST]Who is the prime minister that had a term that ended on 5 March 1930? Context: CREATE TABLE table_name_53 (name VARCHAR, term_end VARCHAR)[/INST]SELECT name FROM table_name_53 WHERE term_end = "5 march 1930"</s>
CREATE TABLE member (name VARCHAR, address VARCHAR)
SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'
Give me the names of members whose address is in Harford or Waterbury.
<s>[INST]Give me the names of members whose address is in Harford or Waterbury. Context: CREATE TABLE member (name VARCHAR, address VARCHAR)[/INST]SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'</s>
CREATE TABLE table_name_50 (rank VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT rank FROM table_name_50 WHERE year < 2002 AND chassis = "reynard 2ki"
What is the rank of the reynard 2ki chassis before 2002?
<s>[INST]What is the rank of the reynard 2ki chassis before 2002? Context: CREATE TABLE table_name_50 (rank VARCHAR, year VARCHAR, chassis VARCHAR)[/INST]SELECT rank FROM table_name_50 WHERE year < 2002 AND chassis = "reynard 2ki"</s>
CREATE TABLE table_name_80 (works_number VARCHAR, name VARCHAR)
SELECT works_number FROM table_name_80 WHERE name = "victor"
What is the work number for Victor?
<s>[INST]What is the work number for Victor? Context: CREATE TABLE table_name_80 (works_number VARCHAR, name VARCHAR)[/INST]SELECT works_number FROM table_name_80 WHERE name = "victor"</s>
CREATE TABLE table_name_84 (goals_for INTEGER, drawn INTEGER)
SELECT SUM(goals_for) FROM table_name_84 WHERE drawn > 10
What is the total sum of the goals at competitions with more than 10 draws?
<s>[INST]What is the total sum of the goals at competitions with more than 10 draws? Context: CREATE TABLE table_name_84 (goals_for INTEGER, drawn INTEGER)[/INST]SELECT SUM(goals_for) FROM table_name_84 WHERE drawn > 10</s>
CREATE TABLE table_name_92 (silver INTEGER, rank INTEGER)
SELECT MAX(silver) FROM table_name_92 WHERE rank < 1
What is the largest silver number when the rank is smaller than 1?
<s>[INST]What is the largest silver number when the rank is smaller than 1? Context: CREATE TABLE table_name_92 (silver INTEGER, rank INTEGER)[/INST]SELECT MAX(silver) FROM table_name_92 WHERE rank < 1</s>
CREATE TABLE table_name_76 (winner VARCHAR, tournament VARCHAR)
SELECT winner FROM table_name_76 WHERE tournament = "h.e.b. texas open"
Who is the winner of the H.E.B. Texas open?
<s>[INST]Who is the winner of the H.E.B. Texas open? Context: CREATE TABLE table_name_76 (winner VARCHAR, tournament VARCHAR)[/INST]SELECT winner FROM table_name_76 WHERE tournament = "h.e.b. texas open"</s>
CREATE TABLE table_name_26 (power VARCHAR, class VARCHAR, frequency VARCHAR)
SELECT power FROM table_name_26 WHERE class = "a" AND frequency = "93.7"
What power has A as the class, and 93.7 as the frequency?
<s>[INST]What power has A as the class, and 93.7 as the frequency? Context: CREATE TABLE table_name_26 (power VARCHAR, class VARCHAR, frequency VARCHAR)[/INST]SELECT power FROM table_name_26 WHERE class = "a" AND frequency = "93.7"</s>
CREATE TABLE table_name_2 (nationality VARCHAR, pick VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_2 WHERE pick < 104 AND player = "corey fienhage"
What is the nationality of player corey fienhage, who has a pick less than 104?
<s>[INST]What is the nationality of player corey fienhage, who has a pick less than 104? Context: CREATE TABLE table_name_2 (nationality VARCHAR, pick VARCHAR, player VARCHAR)[/INST]SELECT nationality FROM table_name_2 WHERE pick < 104 AND player = "corey fienhage"</s>
CREATE TABLE table_name_72 (summit VARCHAR, col__m_ VARCHAR, rank VARCHAR)
SELECT summit FROM table_name_72 WHERE col__m_ = 0 AND rank < 2
What's the summit when the rank is less than 2 and has a col (m) of 0?
<s>[INST]What's the summit when the rank is less than 2 and has a col (m) of 0? Context: CREATE TABLE table_name_72 (summit VARCHAR, col__m_ VARCHAR, rank VARCHAR)[/INST]SELECT summit FROM table_name_72 WHERE col__m_ = 0 AND rank < 2</s>
CREATE TABLE table_27756314_11 (high_rebounds VARCHAR, game VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27756314_11 WHERE game = 76
How many different results for high rebounds were there for game number 76?
<s>[INST]How many different results for high rebounds were there for game number 76? Context: CREATE TABLE table_27756314_11 (high_rebounds VARCHAR, game VARCHAR)[/INST]SELECT COUNT(high_rebounds) FROM table_27756314_11 WHERE game = 76</s>
CREATE TABLE table_11251601_2 (carbon_dioxide_emissions_per_year__10_6_tons___2006_ INTEGER, country VARCHAR)
SELECT MAX(carbon_dioxide_emissions_per_year__10_6_tons___2006_) FROM table_11251601_2 WHERE country = "Russia"
HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006?
<s>[INST]HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006? Context: CREATE TABLE table_11251601_2 (carbon_dioxide_emissions_per_year__10_6_tons___2006_ INTEGER, country VARCHAR)[/INST]SELECT MAX(carbon_dioxide_emissions_per_year__10_6_tons___2006_) FROM table_11251601_2 WHERE country = "Russia"</s>
CREATE TABLE table_name_46 (lost VARCHAR, _percentage_won VARCHAR)
SELECT lost FROM table_name_46 WHERE _percentage_won = "55.37"
Name the lost for % won of 55.37
<s>[INST]Name the lost for % won of 55.37 Context: CREATE TABLE table_name_46 (lost VARCHAR, _percentage_won VARCHAR)[/INST]SELECT lost FROM table_name_46 WHERE _percentage_won = "55.37"</s>
CREATE TABLE table_1342013_31 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342013_31 WHERE incumbent = "Frank J. Becker"
What party did Frank J. Becker represent?
<s>[INST]What party did Frank J. Becker represent? Context: CREATE TABLE table_1342013_31 (party VARCHAR, incumbent VARCHAR)[/INST]SELECT party FROM table_1342013_31 WHERE incumbent = "Frank J. Becker"</s>
CREATE TABLE table_25518547_2 (mls_team VARCHAR, player VARCHAR)
SELECT mls_team FROM table_25518547_2 WHERE player = "Seth Sinovic"
What team does Seth Sinovic play for?
<s>[INST]What team does Seth Sinovic play for? Context: CREATE TABLE table_25518547_2 (mls_team VARCHAR, player VARCHAR)[/INST]SELECT mls_team FROM table_25518547_2 WHERE player = "Seth Sinovic"</s>
CREATE TABLE table_23014476_1 (others__percentage VARCHAR, bush__number VARCHAR)
SELECT others__percentage FROM table_23014476_1 WHERE bush__number = 1372
Name the others % for bush number 1372
<s>[INST]Name the others % for bush number 1372 Context: CREATE TABLE table_23014476_1 (others__percentage VARCHAR, bush__number VARCHAR)[/INST]SELECT others__percentage FROM table_23014476_1 WHERE bush__number = 1372</s>
CREATE TABLE Rooms (roomName VARCHAR, decor VARCHAR, bedtype VARCHAR, basePrice VARCHAR)
SELECT roomName, decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice
List the names and decor of rooms that have a king bed. Sort the list by their price.
<s>[INST]List the names and decor of rooms that have a king bed. Sort the list by their price. Context: CREATE TABLE Rooms (roomName VARCHAR, decor VARCHAR, bedtype VARCHAR, basePrice VARCHAR)[/INST]SELECT roomName, decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice</s>
CREATE TABLE table_name_39 (losses INTEGER, wins VARCHAR, south_west_dfl VARCHAR)
SELECT MIN(losses) FROM table_name_39 WHERE wins < 6 AND south_west_dfl = "sandford"
Which Losses have Wins smaller than 6, and a South West DFL of sandford?
<s>[INST]Which Losses have Wins smaller than 6, and a South West DFL of sandford? Context: CREATE TABLE table_name_39 (losses INTEGER, wins VARCHAR, south_west_dfl VARCHAR)[/INST]SELECT MIN(losses) FROM table_name_39 WHERE wins < 6 AND south_west_dfl = "sandford"</s>
CREATE TABLE table_14058433_5 (lost VARCHAR, club VARCHAR)
SELECT lost FROM table_14058433_5 WHERE club = "Colwyn Bay RFC"
what's the lost with club being colwyn bay rfc
<s>[INST]what's the lost with club being colwyn bay rfc Context: CREATE TABLE table_14058433_5 (lost VARCHAR, club VARCHAR)[/INST]SELECT lost FROM table_14058433_5 WHERE club = "Colwyn Bay RFC"</s>
CREATE TABLE table_name_17 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT AVG(pick) FROM table_name_17 WHERE round > 1 AND player = "reyshawn terry"
What is the pick number later than round 1, for Reyshawn Terry?
<s>[INST]What is the pick number later than round 1, for Reyshawn Terry? Context: CREATE TABLE table_name_17 (pick INTEGER, round VARCHAR, player VARCHAR)[/INST]SELECT AVG(pick) FROM table_name_17 WHERE round > 1 AND player = "reyshawn terry"</s>
CREATE TABLE table_name_73 (player VARCHAR, long VARCHAR, avg VARCHAR)
SELECT player FROM table_name_73 WHERE long < 15 AND avg = 6
Which player has a long of less than 15 and an average of 6 yards.
<s>[INST]Which player has a long of less than 15 and an average of 6 yards. Context: CREATE TABLE table_name_73 (player VARCHAR, long VARCHAR, avg VARCHAR)[/INST]SELECT player FROM table_name_73 WHERE long < 15 AND avg = 6</s>
CREATE TABLE table_name_21 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT MAX(round) FROM table_name_21 WHERE position = "guard" AND overall > 71
What is the highest round with a guard position and an overall greater than 71?
<s>[INST]What is the highest round with a guard position and an overall greater than 71? Context: CREATE TABLE table_name_21 (round INTEGER, position VARCHAR, overall VARCHAR)[/INST]SELECT MAX(round) FROM table_name_21 WHERE position = "guard" AND overall > 71</s>
CREATE TABLE table_name_42 (floors VARCHAR, location VARCHAR)
SELECT COUNT(floors) FROM table_name_42 WHERE location = "little italy"
How many floors are in little Italy?
<s>[INST]How many floors are in little Italy? Context: CREATE TABLE table_name_42 (floors VARCHAR, location VARCHAR)[/INST]SELECT COUNT(floors) FROM table_name_42 WHERE location = "little italy"</s>
CREATE TABLE table_name_85 (highest_point VARCHAR, canton VARCHAR)
SELECT highest_point FROM table_name_85 WHERE canton = "vaud"
What is the Canton of Vaud's highest point?
<s>[INST]What is the Canton of Vaud's highest point? Context: CREATE TABLE table_name_85 (highest_point VARCHAR, canton VARCHAR)[/INST]SELECT highest_point FROM table_name_85 WHERE canton = "vaud"</s>
CREATE TABLE table_name_59 (year_named VARCHAR, diameter__km_ VARCHAR)
SELECT year_named FROM table_name_59 WHERE diameter__km_ = 729
What was the year when the diameter was 729 km?
<s>[INST]What was the year when the diameter was 729 km? Context: CREATE TABLE table_name_59 (year_named VARCHAR, diameter__km_ VARCHAR)[/INST]SELECT year_named FROM table_name_59 WHERE diameter__km_ = 729</s>
CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, name VARCHAR)
SELECT time__cet_ FROM table_21536557_2 WHERE name = "Lillehammer 2"
What is every time(cet) for the name of Lillehammer 2?
<s>[INST]What is every time(cet) for the name of Lillehammer 2? Context: CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, name VARCHAR)[/INST]SELECT time__cet_ FROM table_21536557_2 WHERE name = "Lillehammer 2"</s>
CREATE TABLE table_name_59 (poles INTEGER, races INTEGER)
SELECT AVG(poles) FROM table_name_59 WHERE races < 4
What Poles have Races smaller than 4?
<s>[INST]What Poles have Races smaller than 4? Context: CREATE TABLE table_name_59 (poles INTEGER, races INTEGER)[/INST]SELECT AVG(poles) FROM table_name_59 WHERE races < 4</s>
CREATE TABLE table_1342233_6 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1342233_6 WHERE incumbent = "Jack Z. Anderson"
what's the result with incumbent being jack z. anderson
<s>[INST]what's the result with incumbent being jack z. anderson Context: CREATE TABLE table_1342233_6 (result VARCHAR, incumbent VARCHAR)[/INST]SELECT result FROM table_1342233_6 WHERE incumbent = "Jack Z. Anderson"</s>
CREATE TABLE table_name_77 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_77 WHERE opponent = "jake brown"
What was the method of resolution for the fight against jake brown?
<s>[INST]What was the method of resolution for the fight against jake brown? Context: CREATE TABLE table_name_77 (method VARCHAR, opponent VARCHAR)[/INST]SELECT method FROM table_name_77 WHERE opponent = "jake brown"</s>
CREATE TABLE table_name_37 (date VARCHAR, works_number VARCHAR, type VARCHAR, number VARCHAR)
SELECT COUNT(date) FROM table_name_37 WHERE type = "0-4-4 forney locomotive" AND number < 20 AND works_number = 1251
What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?
<s>[INST]What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251? Context: CREATE TABLE table_name_37 (date VARCHAR, works_number VARCHAR, type VARCHAR, number VARCHAR)[/INST]SELECT COUNT(date) FROM table_name_37 WHERE type = "0-4-4 forney locomotive" AND number < 20...
CREATE TABLE table_name_75 (episode VARCHAR, airdate__usa_ VARCHAR)
SELECT episode FROM table_name_75 WHERE airdate__usa_ = "20 may 2005"
Which episode aired in the USA on 20 May 2005?
<s>[INST]Which episode aired in the USA on 20 May 2005? Context: CREATE TABLE table_name_75 (episode VARCHAR, airdate__usa_ VARCHAR)[/INST]SELECT episode FROM table_name_75 WHERE airdate__usa_ = "20 may 2005"</s>
CREATE TABLE table_name_95 (losses INTEGER, bellarine_fl VARCHAR, byes VARCHAR)
SELECT SUM(losses) FROM table_name_95 WHERE bellarine_fl = "geelong amateur" AND byes < 0
What is the sum of losses for Geelong Amateur, with 0 byes?
<s>[INST]What is the sum of losses for Geelong Amateur, with 0 byes? Context: CREATE TABLE table_name_95 (losses INTEGER, bellarine_fl VARCHAR, byes VARCHAR)[/INST]SELECT SUM(losses) FROM table_name_95 WHERE bellarine_fl = "geelong amateur" AND byes < 0</s>
CREATE TABLE table_name_79 (propulsion VARCHAR, year VARCHAR, name VARCHAR)
SELECT propulsion FROM table_name_79 WHERE year < 1962 AND name = "rb 04"
What is the propulsion for the RB 04 earlier than 1962?
<s>[INST]What is the propulsion for the RB 04 earlier than 1962? Context: CREATE TABLE table_name_79 (propulsion VARCHAR, year VARCHAR, name VARCHAR)[/INST]SELECT propulsion FROM table_name_79 WHERE year < 1962 AND name = "rb 04"</s>
CREATE TABLE table_name_73 (goal_difference INTEGER, goals_against VARCHAR, played VARCHAR)
SELECT SUM(goal_difference) FROM table_name_73 WHERE goals_against > 47 AND played > 38
What is the total goal difference with more than 38 played and more than 47 goals against?
<s>[INST]What is the total goal difference with more than 38 played and more than 47 goals against? Context: CREATE TABLE table_name_73 (goal_difference INTEGER, goals_against VARCHAR, played VARCHAR)[/INST]SELECT SUM(goal_difference) FROM table_name_73 WHERE goals_against > 47 AND played > 38</s>
CREATE TABLE table_name_55 (theme VARCHAR, design VARCHAR)
SELECT theme FROM table_name_55 WHERE design = "sputnik design partners"
What is the Theme with a Design with sputnik design partners?
<s>[INST]What is the Theme with a Design with sputnik design partners? Context: CREATE TABLE table_name_55 (theme VARCHAR, design VARCHAR)[/INST]SELECT theme FROM table_name_55 WHERE design = "sputnik design partners"</s>
CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR)
SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60
What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60?
<s>[INST]What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60? Context: CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHA...
CREATE TABLE table_name_44 (suited_match VARCHAR, house_edge VARCHAR)
SELECT suited_match FROM table_name_44 WHERE house_edge = "2.99%"
What's the Suited Match with a 2.99% House Edge?
<s>[INST]What's the Suited Match with a 2.99% House Edge? Context: CREATE TABLE table_name_44 (suited_match VARCHAR, house_edge VARCHAR)[/INST]SELECT suited_match FROM table_name_44 WHERE house_edge = "2.99%"</s>
CREATE TABLE table_name_14 (commissioned VARCHAR, fate VARCHAR)
SELECT commissioned FROM table_name_14 WHERE fate = "converted to laker, 1961; still in service"
When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?
<s>[INST]When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned? Context: CREATE TABLE table_name_14 (commissioned VARCHAR, fate VARCHAR)[/INST]SELECT commissioned FROM table_name_14 WHERE fate = "converted to laker, 1961; still in service"</s>
CREATE TABLE table_name_79 (name VARCHAR, lane VARCHAR)
SELECT name FROM table_name_79 WHERE lane = 7
Which name has a Lane of 7?
<s>[INST]Which name has a Lane of 7? Context: CREATE TABLE table_name_79 (name VARCHAR, lane VARCHAR)[/INST]SELECT name FROM table_name_79 WHERE lane = 7</s>
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_5 WHERE away_team = "lincoln city"
What is the Home team of the Lincoln City Away game?
<s>[INST]What is the Home team of the Lincoln City Away game? Context: CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_5 WHERE away_team = "lincoln city"</s>
CREATE TABLE school (Denomination VARCHAR)
SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC
Please show different denominations and the corresponding number of schools in descending order.
<s>[INST]Please show different denominations and the corresponding number of schools in descending order. Context: CREATE TABLE school (Denomination VARCHAR)[/INST]SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC</s>
CREATE TABLE table_name_90 (pada_4 VARCHAR, pada_1 VARCHAR)
SELECT pada_4 FROM table_name_90 WHERE pada_1 = "खी ju/khi"
What kind of Pada 4 has a Pada 1 of खी ju/khi?
<s>[INST]What kind of Pada 4 has a Pada 1 of खी ju/khi? Context: CREATE TABLE table_name_90 (pada_4 VARCHAR, pada_1 VARCHAR)[/INST]SELECT pada_4 FROM table_name_90 WHERE pada_1 = "खी ju/khi"</s>
CREATE TABLE table_name_20 (venue VARCHAR, winner VARCHAR)
SELECT venue FROM table_name_20 WHERE winner = "jerran hart"
What was the venue when Jerran Hart won?
<s>[INST]What was the venue when Jerran Hart won? Context: CREATE TABLE table_name_20 (venue VARCHAR, winner VARCHAR)[/INST]SELECT venue FROM table_name_20 WHERE winner = "jerran hart"</s>
CREATE TABLE table_1342370_17 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342370_17 WHERE incumbent = "James O'Connor"
In which district is James O'Connor the incumbent?
<s>[INST]In which district is James O'Connor the incumbent? Context: CREATE TABLE table_1342370_17 (district VARCHAR, incumbent VARCHAR)[/INST]SELECT district FROM table_1342370_17 WHERE incumbent = "James O'Connor"</s>
CREATE TABLE table_26614365_5 (spanish VARCHAR, portuguese VARCHAR)
SELECT COUNT(spanish) FROM table_26614365_5 WHERE portuguese = "Bem-vindo"
How many Spanish word is there for the Portuguese bem-vindo?
<s>[INST]How many Spanish word is there for the Portuguese bem-vindo? Context: CREATE TABLE table_26614365_5 (spanish VARCHAR, portuguese VARCHAR)[/INST]SELECT COUNT(spanish) FROM table_26614365_5 WHERE portuguese = "Bem-vindo"</s>
CREATE TABLE table_name_83 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_83 WHERE name = "francis harris"
What's Francis Harris' position?
<s>[INST]What's Francis Harris' position? Context: CREATE TABLE table_name_83 (position VARCHAR, name VARCHAR)[/INST]SELECT position FROM table_name_83 WHERE name = "francis harris"</s>
CREATE TABLE table_2897457_8 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT pick__number FROM table_2897457_8 WHERE nhl_team = "New York Rangers"
What pick number did the New York Rangers have?
<s>[INST]What pick number did the New York Rangers have? Context: CREATE TABLE table_2897457_8 (pick__number VARCHAR, nhl_team VARCHAR)[/INST]SELECT pick__number FROM table_2897457_8 WHERE nhl_team = "New York Rangers"</s>
CREATE TABLE table_name_38 (size__steps_ INTEGER, just_ratio VARCHAR)
SELECT MAX(size__steps_) FROM table_name_38 WHERE just_ratio = "16:13"
ratio of 16:13 has how many highest size (steps)?
<s>[INST]ratio of 16:13 has how many highest size (steps)? Context: CREATE TABLE table_name_38 (size__steps_ INTEGER, just_ratio VARCHAR)[/INST]SELECT MAX(size__steps_) FROM table_name_38 WHERE just_ratio = "16:13"</s>
CREATE TABLE table_name_19 (to_par VARCHAR, money___£__ INTEGER)
SELECT to_par FROM table_name_19 WHERE money___£__ > 7 OFFSET 750
What is the To par of the player with Money of 7,750 or more?
<s>[INST]What is the To par of the player with Money of 7,750 or more? Context: CREATE TABLE table_name_19 (to_par VARCHAR, money___£__ INTEGER)[/INST]SELECT to_par FROM table_name_19 WHERE money___£__ > 7 OFFSET 750</s>
CREATE TABLE table_name_11 (game INTEGER, date VARCHAR)
SELECT AVG(game) FROM table_name_11 WHERE date = "october 16"
Which game is on the date October 16?
<s>[INST]Which game is on the date October 16? Context: CREATE TABLE table_name_11 (game INTEGER, date VARCHAR)[/INST]SELECT AVG(game) FROM table_name_11 WHERE date = "october 16"</s>
CREATE TABLE table_name_7 (lb VARCHAR, scr_no VARCHAR, sr_no VARCHAR)
SELECT lb & scr_no FROM table_name_7 WHERE sr_no = "8597–8600"
Name the LB&SCR number that has SR number of 8597–8600
<s>[INST]Name the LB&SCR number that has SR number of 8597–8600 Context: CREATE TABLE table_name_7 (lb VARCHAR, scr_no VARCHAR, sr_no VARCHAR)[/INST]SELECT lb & scr_no FROM table_name_7 WHERE sr_no = "8597–8600"</s>
CREATE TABLE table_name_23 (team_name VARCHAR, losses VARCHAR, season VARCHAR)
SELECT team_name FROM table_name_23 WHERE losses > 15 AND season = "1988"
Which team had more than 15 losses in 1988?
<s>[INST]Which team had more than 15 losses in 1988? Context: CREATE TABLE table_name_23 (team_name VARCHAR, losses VARCHAR, season VARCHAR)[/INST]SELECT team_name FROM table_name_23 WHERE losses > 15 AND season = "1988"</s>
CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)
SELECT race_winner FROM table_28925058_1 WHERE date = "May 1"
Who won the race on May 1?
<s>[INST]Who won the race on May 1? Context: CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)[/INST]SELECT race_winner FROM table_28925058_1 WHERE date = "May 1"</s>
CREATE TABLE table_18138132_2 (release_date VARCHAR, title VARCHAR)
SELECT release_date FROM table_18138132_2 WHERE title = "Metronome"
What was the release date for metronome?
<s>[INST]What was the release date for metronome? Context: CREATE TABLE table_18138132_2 (release_date VARCHAR, title VARCHAR)[/INST]SELECT release_date FROM table_18138132_2 WHERE title = "Metronome"</s>
CREATE TABLE table_name_24 (date VARCHAR, attendance VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT COUNT(date) FROM table_name_24 WHERE opponent = "romford raiders" AND result = "won 7-3" AND attendance > 1 OFFSET 769
How many Dates have an Opponent of romford raiders, and a Result of won 7-3, and an Attendance larger than 1,769?
<s>[INST]How many Dates have an Opponent of romford raiders, and a Result of won 7-3, and an Attendance larger than 1,769? Context: CREATE TABLE table_name_24 (date VARCHAR, attendance VARCHAR, opponent VARCHAR, result VARCHAR)[/INST]SELECT COUNT(date) FROM table_name_24 WHERE opponent = "romford raiders" AND result = ...
CREATE TABLE table_name_16 (no_5 VARCHAR, no_9 VARCHAR, region__year_ VARCHAR)
SELECT no_5 FROM table_name_16 WHERE no_9 = "michael" AND region__year_ = "new hampshire (2010)"
What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)?
<s>[INST]What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)? Context: CREATE TABLE table_name_16 (no_5 VARCHAR, no_9 VARCHAR, region__year_ VARCHAR)[/INST]SELECT no_5 FROM table_name_16 WHERE no_9 = "michael" AND region__year_ = "new hampshire (2010)"</s>
CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR)
SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC
Please list the years of film market estimations when the market is in country "Japan" in descending order.
<s>[INST]Please list the years of film market estimations when the market is in country "Japan" in descending order. Context: CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR)[/INST]SELECT T1.Year FROM film_market_estimation AS T1 JOIN market...
CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR)
SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
What is the title of the film that has the highest high market estimation.
<s>[INST]What is the title of the film that has the highest high market estimation. Context: CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR)[/INST]SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1</...
CREATE TABLE table_name_14 (rank VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT COUNT(rank) FROM table_name_14 WHERE gold = 0 AND nation = "namibia" AND total < 1
How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1?
<s>[INST]How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1? Context: CREATE TABLE table_name_14 (rank VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR)[/INST]SELECT COUNT(rank) FROM table_name_14 WHERE gold = 0 AND nation = "namibia" AND total < 1</s>
CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT label FROM table_name_42 WHERE catalog = "3645" AND date > 1987
Under what label was the album with the catalog of 3645 and came out later than 1987?
<s>[INST]Under what label was the album with the catalog of 3645 and came out later than 1987? Context: CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR, date VARCHAR)[/INST]SELECT label FROM table_name_42 WHERE catalog = "3645" AND date > 1987</s>
CREATE TABLE table_261927_1 (colors VARCHAR, nickname VARCHAR)
SELECT colors FROM table_261927_1 WHERE nickname = "Engineers"
What is the colors for the nickname engineers?
<s>[INST]What is the colors for the nickname engineers? Context: CREATE TABLE table_261927_1 (colors VARCHAR, nickname VARCHAR)[/INST]SELECT colors FROM table_261927_1 WHERE nickname = "Engineers"</s>
CREATE TABLE table_name_95 (city VARCHAR, lead VARCHAR)
SELECT city FROM table_name_95 WHERE lead = "tyler forrest"
Which City has a Lead of tyler forrest?
<s>[INST]Which City has a Lead of tyler forrest? Context: CREATE TABLE table_name_95 (city VARCHAR, lead VARCHAR)[/INST]SELECT city FROM table_name_95 WHERE lead = "tyler forrest"</s>
CREATE TABLE table_26375386_20 (rank VARCHAR, vote_percentage VARCHAR)
SELECT COUNT(rank) FROM table_26375386_20 WHERE vote_percentage = "10.7%"
How many times is the voting percentage 10.7%
<s>[INST]How many times is the voting percentage 10.7% Context: CREATE TABLE table_26375386_20 (rank VARCHAR, vote_percentage VARCHAR)[/INST]SELECT COUNT(rank) FROM table_26375386_20 WHERE vote_percentage = "10.7%"</s>
CREATE TABLE table_name_98 (nationality VARCHAR, round INTEGER)
SELECT nationality FROM table_name_98 WHERE round < 3
Which Nationality has a Round smaller than 3?
<s>[INST]Which Nationality has a Round smaller than 3? Context: CREATE TABLE table_name_98 (nationality VARCHAR, round INTEGER)[/INST]SELECT nationality FROM table_name_98 WHERE round < 3</s>
CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11
How many laps did Chuck Stevenson have with a grid of less than 11?
<s>[INST]How many laps did Chuck Stevenson have with a grid of less than 11? Context: CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR)[/INST]SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11</s>
CREATE TABLE department (budget INTEGER, dept_name VARCHAR)
SELECT SUM(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'
Find the total budgets of the Marketing or Finance department.
<s>[INST]Find the total budgets of the Marketing or Finance department. Context: CREATE TABLE department (budget INTEGER, dept_name VARCHAR)[/INST]SELECT SUM(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'</s>
CREATE TABLE station (name VARCHAR, LOCATION VARCHAR, number_of_platforms VARCHAR)
SELECT name, LOCATION, number_of_platforms FROM station
Show the name, location, and number of platforms for all stations.
<s>[INST]Show the name, location, and number of platforms for all stations. Context: CREATE TABLE station (name VARCHAR, LOCATION VARCHAR, number_of_platforms VARCHAR)[/INST]SELECT name, LOCATION, number_of_platforms FROM station</s>
CREATE TABLE table_name_51 (role VARCHAR, registration VARCHAR)
SELECT role FROM table_name_51 WHERE registration = "s5-hpb"
What is the role of the aircraft that has a registration of s5-hpb?
<s>[INST]What is the role of the aircraft that has a registration of s5-hpb? Context: CREATE TABLE table_name_51 (role VARCHAR, registration VARCHAR)[/INST]SELECT role FROM table_name_51 WHERE registration = "s5-hpb"</s>
CREATE TABLE table_name_62 (died VARCHAR, ordained_bishop VARCHAR)
SELECT died FROM table_name_62 WHERE ordained_bishop = "july 25, 1902"
When did the archbishop that was ordained a bishop on July 25, 1902 die?
<s>[INST]When did the archbishop that was ordained a bishop on July 25, 1902 die? Context: CREATE TABLE table_name_62 (died VARCHAR, ordained_bishop VARCHAR)[/INST]SELECT died FROM table_name_62 WHERE ordained_bishop = "july 25, 1902"</s>
CREATE TABLE table_name_95 (race_number VARCHAR, driver VARCHAR)
SELECT race_number FROM table_name_95 WHERE driver = "bob wollek"
what is the race number of bob wollek
<s>[INST]what is the race number of bob wollek Context: CREATE TABLE table_name_95 (race_number VARCHAR, driver VARCHAR)[/INST]SELECT race_number FROM table_name_95 WHERE driver = "bob wollek"</s>
CREATE TABLE table_2897457_2 (nationality VARCHAR, position VARCHAR, nhl_team VARCHAR)
SELECT nationality FROM table_2897457_2 WHERE position = "Centre" AND nhl_team = "Calgary Flames"
What is the nationality of the draft pick player who plays centre position and is going to Calgary Flames?
<s>[INST]What is the nationality of the draft pick player who plays centre position and is going to Calgary Flames? Context: CREATE TABLE table_2897457_2 (nationality VARCHAR, position VARCHAR, nhl_team VARCHAR)[/INST]SELECT nationality FROM table_2897457_2 WHERE position = "Centre" AND nhl_team = "Calgary Flames"</s>
CREATE TABLE table_name_57 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_57 WHERE rank = "1" AND total < 2
How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?
<s>[INST]How many Gold medals for the country with a Rank of 1 and less than 2 Total medals? Context: CREATE TABLE table_name_57 (gold VARCHAR, rank VARCHAR, total VARCHAR)[/INST]SELECT COUNT(gold) FROM table_name_57 WHERE rank = "1" AND total < 2</s>
CREATE TABLE table_name_22 (player VARCHAR, total VARCHAR)
SELECT player FROM table_name_22 WHERE total = 295
Which player had a total of 295?
<s>[INST]Which player had a total of 295? Context: CREATE TABLE table_name_22 (player VARCHAR, total VARCHAR)[/INST]SELECT player FROM table_name_22 WHERE total = 295</s>
CREATE TABLE table_name_7 (total_votes INTEGER, outcome VARCHAR, candidate VARCHAR)
SELECT MAX(total_votes) FROM table_name_7 WHERE outcome = "elected" AND candidate = "lee teng-hui"
How many votes did Lee Teng-Hui receive when he was elected?
<s>[INST]How many votes did Lee Teng-Hui receive when he was elected? Context: CREATE TABLE table_name_7 (total_votes INTEGER, outcome VARCHAR, candidate VARCHAR)[/INST]SELECT MAX(total_votes) FROM table_name_7 WHERE outcome = "elected" AND candidate = "lee teng-hui"</s>
CREATE TABLE table_name_21 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_21 WHERE home_team = "wigan athletic"
What is the tie number when Wigan Athletic is the home team?
<s>[INST]What is the tie number when Wigan Athletic is the home team? Context: CREATE TABLE table_name_21 (tie_no VARCHAR, home_team VARCHAR)[/INST]SELECT tie_no FROM table_name_21 WHERE home_team = "wigan athletic"</s>
CREATE TABLE table_name_93 (size INTEGER, mascot VARCHAR)
SELECT MIN(size) FROM table_name_93 WHERE mascot = "titans"
What is the lowest size of the school with titans as the mascot?
<s>[INST]What is the lowest size of the school with titans as the mascot? Context: CREATE TABLE table_name_93 (size INTEGER, mascot VARCHAR)[/INST]SELECT MIN(size) FROM table_name_93 WHERE mascot = "titans"</s>
CREATE TABLE table_27704187_10 (record VARCHAR, team VARCHAR)
SELECT record FROM table_27704187_10 WHERE team = "Milwaukee"
What was the season record when the team played against Milwaukee?
<s>[INST]What was the season record when the team played against Milwaukee? Context: CREATE TABLE table_27704187_10 (record VARCHAR, team VARCHAR)[/INST]SELECT record FROM table_27704187_10 WHERE team = "Milwaukee"</s>
CREATE TABLE table_name_79 (australian VARCHAR, letter VARCHAR)
SELECT australian FROM table_name_79 WHERE letter = "i /ɪ/"
What is the Australian equivalent to i /ɪ/?
<s>[INST]What is the Australian equivalent to i /ɪ/? Context: CREATE TABLE table_name_79 (australian VARCHAR, letter VARCHAR)[/INST]SELECT australian FROM table_name_79 WHERE letter = "i /ɪ/"</s>
CREATE TABLE table_name_36 (round VARCHAR, match VARCHAR)
SELECT round FROM table_name_36 WHERE match = "2nd elimination final"
Name the round for 2nd elimination final
<s>[INST]Name the round for 2nd elimination final Context: CREATE TABLE table_name_36 (round VARCHAR, match VARCHAR)[/INST]SELECT round FROM table_name_36 WHERE match = "2nd elimination final"</s>