context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE people (name VARCHAR, date_of_birth VARCHAR)
SELECT name FROM people ORDER BY date_of_birth
List all people names in the order of their date of birth from old to young.
<s>[INST]List all people names in the order of their date of birth from old to young. Context: CREATE TABLE people (name VARCHAR, date_of_birth VARCHAR)[/INST]SELECT name FROM people ORDER BY date_of_birth</s>
CREATE TABLE table_1341577_47 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341577_47 WHERE district = "Virginia 3"
What was the result of the election in the Virginia 3 district?
<s>[INST]What was the result of the election in the Virginia 3 district? Context: CREATE TABLE table_1341577_47 (result VARCHAR, district VARCHAR)[/INST]SELECT result FROM table_1341577_47 WHERE district = "Virginia 3"</s>
CREATE TABLE table_name_18 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_18 WHERE date = 1969
What was the label in 1969?
<s>[INST]What was the label in 1969? Context: CREATE TABLE table_name_18 (label VARCHAR, date VARCHAR)[/INST]SELECT label FROM table_name_18 WHERE date = 1969</s>
CREATE TABLE table_name_69 (brilliance_grade VARCHAR, benchmark VARCHAR)
SELECT brilliance_grade FROM table_name_69 WHERE benchmark = "practical fine cut"
Which Brilliance Grade has a Benchmark of practical fine cut?
<s>[INST]Which Brilliance Grade has a Benchmark of practical fine cut? Context: CREATE TABLE table_name_69 (brilliance_grade VARCHAR, benchmark VARCHAR)[/INST]SELECT brilliance_grade FROM table_name_69 WHERE benchmark = "practical fine cut"</s>
CREATE TABLE table_name_57 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_57 WHERE record = "15-27"
What is the Date of the game where the Cavaliers have a Record of 15-27?
<s>[INST]What is the Date of the game where the Cavaliers have a Record of 15-27? Context: CREATE TABLE table_name_57 (date VARCHAR, record VARCHAR)[/INST]SELECT date FROM table_name_57 WHERE record = "15-27"</s>
CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (id VARCHAR, name VARCHAR)
SELECT T1.id, T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?
<s>[INST]What is the id and name of the enzyme with most number of medicines that can interact as 'activator'? Context: CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR); CREATE TABLE enzyme (id VARCHAR, name VARCHAR)[/INST]SELECT T1.id, T1.name FROM enzyme AS T1 JOIN medicine_enzym...
CREATE TABLE table_name_63 (record VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_name_63 WHERE high_rebounds = "deandre jordan (11)"
What was the record when the high rebound was Deandre Jordan (11)?
<s>[INST]What was the record when the high rebound was Deandre Jordan (11)? Context: CREATE TABLE table_name_63 (record VARCHAR, high_rebounds VARCHAR)[/INST]SELECT record FROM table_name_63 WHERE high_rebounds = "deandre jordan (11)"</s>
CREATE TABLE table_name_46 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_46 WHERE date = "2006-11-04"
What is the name of the visitor on 2006-11-04?
<s>[INST]What is the name of the visitor on 2006-11-04? Context: CREATE TABLE table_name_46 (visitor VARCHAR, date VARCHAR)[/INST]SELECT visitor FROM table_name_46 WHERE date = "2006-11-04"</s>
CREATE TABLE table_name_76 (label VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192"
What was the label's format LP and catalog of CH-9192?
<s>[INST]What was the label's format LP and catalog of CH-9192? Context: CREATE TABLE table_name_76 (label VARCHAR, format VARCHAR, catalog VARCHAR)[/INST]SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192"</s>
CREATE TABLE table_name_15 (lineage VARCHAR, name VARCHAR)
SELECT lineage FROM table_name_15 WHERE name = "ōoka tadatomo (大岡忠與)"
What's the lineage of ōoka tadatomo (大岡忠與)?
<s>[INST]What's the lineage of ōoka tadatomo (大岡忠與)? Context: CREATE TABLE table_name_15 (lineage VARCHAR, name VARCHAR)[/INST]SELECT lineage FROM table_name_15 WHERE name = "ōoka tadatomo (大岡忠與)"</s>
CREATE TABLE table_name_15 (result VARCHAR, district VARCHAR)
SELECT result FROM table_name_15 WHERE district = "ohio 6"
Which result was in the district of ohio 6?
<s>[INST]Which result was in the district of ohio 6? Context: CREATE TABLE table_name_15 (result VARCHAR, district VARCHAR)[/INST]SELECT result FROM table_name_15 WHERE district = "ohio 6"</s>
CREATE TABLE table_name_56 (launched VARCHAR, spacecraft VARCHAR, time_elapsed VARCHAR)
SELECT launched FROM table_name_56 WHERE spacecraft = "ulysses" AND time_elapsed = "491 days (1 yr, 4 mo, 3 d)"
What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?
<s>[INST]What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed? Context: CREATE TABLE table_name_56 (launched VARCHAR, spacecraft VARCHAR, time_elapsed VARCHAR)[/INST]SELECT launched FROM table_name_56 WHERE spacecraft = "ulysses" AND time_elapsed = "491 days (1 yr, 4 mo, 3 d)"</...
CREATE TABLE table_name_89 (grid INTEGER, rider VARCHAR)
SELECT MAX(grid) FROM table_name_89 WHERE rider = "gregorio lavilla"
What is the highest grid that has gregorio lavilla as the rider?
<s>[INST]What is the highest grid that has gregorio lavilla as the rider? Context: CREATE TABLE table_name_89 (grid INTEGER, rider VARCHAR)[/INST]SELECT MAX(grid) FROM table_name_89 WHERE rider = "gregorio lavilla"</s>
CREATE TABLE table_name_65 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_65 WHERE result = "w 24-17"
In what Week was the Result W 24-17?
<s>[INST]In what Week was the Result W 24-17? Context: CREATE TABLE table_name_65 (week INTEGER, result VARCHAR)[/INST]SELECT MAX(week) FROM table_name_65 WHERE result = "w 24-17"</s>
CREATE TABLE table_17058226_8 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_17058226_8 WHERE team = "Utah"
Where are all of Utah's games held and how many have attended?
<s>[INST]Where are all of Utah's games held and how many have attended? Context: CREATE TABLE table_17058226_8 (location_attendance VARCHAR, team VARCHAR)[/INST]SELECT location_attendance FROM table_17058226_8 WHERE team = "Utah"</s>
CREATE TABLE table_name_55 (name VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT name FROM table_name_55 WHERE decile < 10 AND roll = 297
What is the name with a Decile less than 10, and a Roll of 297?
<s>[INST]What is the name with a Decile less than 10, and a Roll of 297? Context: CREATE TABLE table_name_55 (name VARCHAR, decile VARCHAR, roll VARCHAR)[/INST]SELECT name FROM table_name_55 WHERE decile < 10 AND roll = 297</s>
CREATE TABLE table_name_95 (week_3 VARCHAR, week_4 VARCHAR)
SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair"
What Week 3 has a Week 4 of gina blair?
<s>[INST]What Week 3 has a Week 4 of gina blair? Context: CREATE TABLE table_name_95 (week_3 VARCHAR, week_4 VARCHAR)[/INST]SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair"</s>
CREATE TABLE table_name_6 (stadium VARCHAR, visiting_team VARCHAR)
SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos"
What is the name of the stadium when the visiting team is the Denver Broncos?
<s>[INST]What is the name of the stadium when the visiting team is the Denver Broncos? Context: CREATE TABLE table_name_6 (stadium VARCHAR, visiting_team VARCHAR)[/INST]SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos"</s>
CREATE TABLE table_name_83 (license VARCHAR, system VARCHAR, name VARCHAR)
SELECT license FROM table_name_83 WHERE system = "amiga" AND name = "pocketuae"
Which License has a System of amiga, and a Name of pocketuae?
<s>[INST]Which License has a System of amiga, and a Name of pocketuae? Context: CREATE TABLE table_name_83 (license VARCHAR, system VARCHAR, name VARCHAR)[/INST]SELECT license FROM table_name_83 WHERE system = "amiga" AND name = "pocketuae"</s>
CREATE TABLE table_14959246_2 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_14959246_2 WHERE date = "December 10, 1972"
What was the attendance at the game played on December 10, 1972?
<s>[INST]What was the attendance at the game played on December 10, 1972? Context: CREATE TABLE table_14959246_2 (attendance VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_14959246_2 WHERE date = "December 10, 1972"</s>
CREATE TABLE table_16751596_6 (republican VARCHAR, poll_source VARCHAR)
SELECT COUNT(republican) AS :_jack_hoogendyk FROM table_16751596_6 WHERE poll_source = "Public Policy Polling"
How many times did Public Policy Polling under Republican: Jack Hoogendyk?
<s>[INST]How many times did Public Policy Polling under Republican: Jack Hoogendyk? Context: CREATE TABLE table_16751596_6 (republican VARCHAR, poll_source VARCHAR)[/INST]SELECT COUNT(republican) AS :_jack_hoogendyk FROM table_16751596_6 WHERE poll_source = "Public Policy Polling"</s>
CREATE TABLE table_name_7 (mm_×_mm VARCHAR, in_×_in VARCHAR)
SELECT mm_×_mm FROM table_name_7 WHERE in_×_in = "11 × 17"
Which mm × mm has an in × in of 11 × 17?
<s>[INST]Which mm × mm has an in × in of 11 × 17? Context: CREATE TABLE table_name_7 (mm_×_mm VARCHAR, in_×_in VARCHAR)[/INST]SELECT mm_×_mm FROM table_name_7 WHERE in_×_in = "11 × 17"</s>
CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
Which country and state does staff with first name as Janessa and last name as Sawayn lived?
<s>[INST]Which country and state does staff with first name as Janessa and last name as Sawayn lived? Context: CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)[/INST]SELECT T1.country, T1.sta...
CREATE TABLE table_name_57 (fa_cup INTEGER, league VARCHAR, total VARCHAR, fa_trophy VARCHAR)
SELECT AVG(fa_cup) FROM table_name_57 WHERE total > 20 AND fa_trophy < 1 AND league < 25
What is the average number of goals scored in the FA Cup among players that have more than 20 total goals, less than 1 FA Trophy goals, and less than 25 league goals?
<s>[INST]What is the average number of goals scored in the FA Cup among players that have more than 20 total goals, less than 1 FA Trophy goals, and less than 25 league goals? Context: CREATE TABLE table_name_57 (fa_cup INTEGER, league VARCHAR, total VARCHAR, fa_trophy VARCHAR)[/INST]SELECT AVG(fa_cup) FROM table_name_...
CREATE TABLE table_23114705_3 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_23114705_3 WHERE written_by = "Tim Balme"
If the episode was written by Tim Balme, what was the original air date?
<s>[INST]If the episode was written by Tim Balme, what was the original air date? Context: CREATE TABLE table_23114705_3 (original_air_date VARCHAR, written_by VARCHAR)[/INST]SELECT original_air_date FROM table_23114705_3 WHERE written_by = "Tim Balme"</s>
CREATE TABLE table_name_97 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_97 WHERE rank < 5 AND bronze = 20
Which Gold has a Rank smaller than 5, and a Bronze of 20?
<s>[INST]Which Gold has a Rank smaller than 5, and a Bronze of 20? Context: CREATE TABLE table_name_97 (gold INTEGER, rank VARCHAR, bronze VARCHAR)[/INST]SELECT AVG(gold) FROM table_name_97 WHERE rank < 5 AND bronze = 20</s>
CREATE TABLE table_name_17 (place INTEGER, points INTEGER)
SELECT MIN(place) FROM table_name_17 WHERE points > 2
What is the lowest Place, when Points are greater than 2?
<s>[INST]What is the lowest Place, when Points are greater than 2? Context: CREATE TABLE table_name_17 (place INTEGER, points INTEGER)[/INST]SELECT MIN(place) FROM table_name_17 WHERE points > 2</s>
CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_46 WHERE opponent = "@ houston" AND record = "2-0"
Which Score has an Opponent of @ houston, and a Record of 2-0?
<s>[INST]Which Score has an Opponent of @ houston, and a Record of 2-0? Context: CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_name_46 WHERE opponent = "@ houston" AND record = "2-0"</s>
CREATE TABLE table_1233808_2 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_1233808_2 WHERE opponent = "Aylesbury United"
What records are hit where the opponent is Aylesbury United?
<s>[INST]What records are hit where the opponent is Aylesbury United? Context: CREATE TABLE table_1233808_2 (record VARCHAR, opponent VARCHAR)[/INST]SELECT record FROM table_1233808_2 WHERE opponent = "Aylesbury United"</s>
CREATE TABLE table_name_26 (constructor VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_26 WHERE laps = 54
What is the make of the car that drove 54 laps?
<s>[INST]What is the make of the car that drove 54 laps? Context: CREATE TABLE table_name_26 (constructor VARCHAR, laps VARCHAR)[/INST]SELECT constructor FROM table_name_26 WHERE laps = 54</s>
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = "germany" AND silver < 5
How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver?
<s>[INST]How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver? Context: CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)[/INST]SELECT COUNT(bronze) FROM table_name_67 WHERE total > ...
CREATE TABLE table_256286_39 (passed VARCHAR, yes_votes VARCHAR)
SELECT COUNT(passed) FROM table_256286_39 WHERE yes_votes = 216545
How many measures had a yes vote of 216545?
<s>[INST]How many measures had a yes vote of 216545? Context: CREATE TABLE table_256286_39 (passed VARCHAR, yes_votes VARCHAR)[/INST]SELECT COUNT(passed) FROM table_256286_39 WHERE yes_votes = 216545</s>
CREATE TABLE table_name_94 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_94 WHERE score = 69 - 72 - 67 - 71 = 279
Can you tell me the Country that has the Score of 69-72-67-71=279?
<s>[INST]Can you tell me the Country that has the Score of 69-72-67-71=279? Context: CREATE TABLE table_name_94 (country VARCHAR, score VARCHAR)[/INST]SELECT country FROM table_name_94 WHERE score = 69 - 72 - 67 - 71 = 279</s>
CREATE TABLE table_name_61 (home VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT home FROM table_name_61 WHERE visitor = "ottawa senators" AND score = "1–5"
Which home team had a visitor of Ottawa Senators with a score of 1–5?
<s>[INST]Which home team had a visitor of Ottawa Senators with a score of 1–5? Context: CREATE TABLE table_name_61 (home VARCHAR, visitor VARCHAR, score VARCHAR)[/INST]SELECT home FROM table_name_61 WHERE visitor = "ottawa senators" AND score = "1–5"</s>
CREATE TABLE table_name_33 (match VARCHAR, date VARCHAR)
SELECT match FROM table_name_33 WHERE date = "30 january 1938"
What match was on 30 january 1938?
<s>[INST]What match was on 30 january 1938? Context: CREATE TABLE table_name_33 (match VARCHAR, date VARCHAR)[/INST]SELECT match FROM table_name_33 WHERE date = "30 january 1938"</s>
CREATE TABLE table_18143210_2 (number_of_seasons_in_liga_mx VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT number_of_seasons_in_liga_mx FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1962-63"
How many 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63?
<s>[INST]How many 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63? Context: CREATE TABLE table_18143210_2 (number_of_seasons_in_liga_mx VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)[/INST]SELECT number_of_seasons_in_liga_mx FROM table_1814...
CREATE TABLE table_name_5 (year VARCHAR, tournament VARCHAR, result VARCHAR)
SELECT year FROM table_name_5 WHERE tournament = "world half marathon championships" AND result = "3rd"
What was the year of the World Half Marathon Championships with a result of 3rd?
<s>[INST]What was the year of the World Half Marathon Championships with a result of 3rd? Context: CREATE TABLE table_name_5 (year VARCHAR, tournament VARCHAR, result VARCHAR)[/INST]SELECT year FROM table_name_5 WHERE tournament = "world half marathon championships" AND result = "3rd"</s>
CREATE TABLE table_name_46 (nationality VARCHAR, name VARCHAR)
SELECT 445 FROM table_name_46 WHERE nationality = "poland" AND name = "anna rogowska"
What is the 4.45 for Anna Rogowska from Poland?
<s>[INST]What is the 4.45 for Anna Rogowska from Poland? Context: CREATE TABLE table_name_46 (nationality VARCHAR, name VARCHAR)[/INST]SELECT 445 FROM table_name_46 WHERE nationality = "poland" AND name = "anna rogowska"</s>
CREATE TABLE table_name_45 (location VARCHAR, rank VARCHAR, date VARCHAR)
SELECT location FROM table_name_45 WHERE rank > 8 AND date = "22 july 2011"
Which location had a race that took place on 22 July 2011 and has a rank greater than 8?
<s>[INST]Which location had a race that took place on 22 July 2011 and has a rank greater than 8? Context: CREATE TABLE table_name_45 (location VARCHAR, rank VARCHAR, date VARCHAR)[/INST]SELECT location FROM table_name_45 WHERE rank > 8 AND date = "22 july 2011"</s>
CREATE TABLE table_name_58 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_58 WHERE score = 73 - 71 - 76 - 70 = 290
What is the Country of the Player with a Score of 73-71-76-70=290?
<s>[INST]What is the Country of the Player with a Score of 73-71-76-70=290? Context: CREATE TABLE table_name_58 (country VARCHAR, score VARCHAR)[/INST]SELECT country FROM table_name_58 WHERE score = 73 - 71 - 76 - 70 = 290</s>
CREATE TABLE table_name_73 (touchdowns VARCHAR, field_goals INTEGER)
SELECT COUNT(touchdowns) FROM table_name_73 WHERE field_goals > 0
How many Touchdowns have Field goals larger than 0?
<s>[INST]How many Touchdowns have Field goals larger than 0? Context: CREATE TABLE table_name_73 (touchdowns VARCHAR, field_goals INTEGER)[/INST]SELECT COUNT(touchdowns) FROM table_name_73 WHERE field_goals > 0</s>
CREATE TABLE table_name_82 (province VARCHAR, _community VARCHAR, geographical_regions VARCHAR, height VARCHAR)
SELECT province, _community FROM table_name_82 WHERE geographical_regions = "el cibao" AND height > 1.8
What is province of community with height larger than 1.8 and is in el cibao region?
<s>[INST]What is province of community with height larger than 1.8 and is in el cibao region? Context: CREATE TABLE table_name_82 (province VARCHAR, _community VARCHAR, geographical_regions VARCHAR, height VARCHAR)[/INST]SELECT province, _community FROM table_name_82 WHERE geographical_regions = "el cibao" AND height >...
CREATE TABLE table_29697744_1 (level VARCHAR, position VARCHAR)
SELECT level FROM table_29697744_1 WHERE position = "7th"
what is the name of the level for the 7th position
<s>[INST]what is the name of the level for the 7th position Context: CREATE TABLE table_29697744_1 (level VARCHAR, position VARCHAR)[/INST]SELECT level FROM table_29697744_1 WHERE position = "7th"</s>
CREATE TABLE table_name_39 (Box VARCHAR, home_team VARCHAR)
SELECT Box AS score FROM table_name_39 WHERE home_team = "adelaide 36ers"
What was the box score during a home game of the Adelaide 36ers?
<s>[INST]What was the box score during a home game of the Adelaide 36ers? Context: CREATE TABLE table_name_39 (Box VARCHAR, home_team VARCHAR)[/INST]SELECT Box AS score FROM table_name_39 WHERE home_team = "adelaide 36ers"</s>
CREATE TABLE table_28194879_1 (_number INTEGER, written_by VARCHAR)
SELECT MAX(_number) FROM table_28194879_1 WHERE written_by = "Dan Vebber"
What is the last number in season of the episodes written by Dan Vebber?
<s>[INST]What is the last number in season of the episodes written by Dan Vebber? Context: CREATE TABLE table_28194879_1 (_number INTEGER, written_by VARCHAR)[/INST]SELECT MAX(_number) FROM table_28194879_1 WHERE written_by = "Dan Vebber"</s>
CREATE TABLE table_name_59 (height VARCHAR, year VARCHAR, name VARCHAR)
SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin"
What is the Height of Junior Meghan Austin?
<s>[INST]What is the Height of Junior Meghan Austin? Context: CREATE TABLE table_name_59 (height VARCHAR, year VARCHAR, name VARCHAR)[/INST]SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin"</s>
CREATE TABLE table_name_58 (species VARCHAR, genes VARCHAR)
SELECT species FROM table_name_58 WHERE genes = "3,441"
Which species has 3,441 genes?
<s>[INST]Which species has 3,441 genes? Context: CREATE TABLE table_name_58 (species VARCHAR, genes VARCHAR)[/INST]SELECT species FROM table_name_58 WHERE genes = "3,441"</s>
CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_77 WHERE grid > 9 AND driver = "mark webber"
Which lap number had a grid number bigger than 9 and where the driver was Mark Webber?
<s>[INST]Which lap number had a grid number bigger than 9 and where the driver was Mark Webber? Context: CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, driver VARCHAR)[/INST]SELECT laps FROM table_name_77 WHERE grid > 9 AND driver = "mark webber"</s>
CREATE TABLE table_19517448_3 (completion_percentage VARCHAR, yards_per_attempt VARCHAR)
SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = "Steve McNair : 2003"
What is the completion percentage when yards per attempt was done by Steve McNair : 2003?
<s>[INST]What is the completion percentage when yards per attempt was done by Steve McNair : 2003? Context: CREATE TABLE table_19517448_3 (completion_percentage VARCHAR, yards_per_attempt VARCHAR)[/INST]SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = "Steve McNair : 2003"</s>
CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
Find the name and age of the person who is a friend of both Dan and Alice.
<s>[INST]Find the name and age of the person who is a friend of both Dan and Alice. Context: CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)[/INST]SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTER...
CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_host VARCHAR, sideline_reporters VARCHAR)
SELECT play_by_play FROM table_17628022_2 WHERE pregame_host = "Brian Williams" AND sideline_reporters = "Steve Armitage and Brenda Irving"
Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?
<s>[INST]Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving? Context: CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_host VARCHAR, sideline_reporters VARCHAR)[/INST]SELECT play_by_play FROM table_17628022_2 WHERE pregame_host ...
CREATE TABLE table_name_93 (team_website VARCHAR, institution VARCHAR)
SELECT team_website FROM table_name_93 WHERE institution = "indiana university of pennsylvania"
what is the team website when the institution is indiana university of pennsylvania?
<s>[INST]what is the team website when the institution is indiana university of pennsylvania? Context: CREATE TABLE table_name_93 (team_website VARCHAR, institution VARCHAR)[/INST]SELECT team_website FROM table_name_93 WHERE institution = "indiana university of pennsylvania"</s>
CREATE TABLE table_name_79 (english_title VARCHAR, original_title VARCHAR)
SELECT english_title FROM table_name_79 WHERE original_title = "возвращение / vozvrashcheniye"
Original title of возвращение / vozvrashcheniye had what English title?
<s>[INST]Original title of возвращение / vozvrashcheniye had what English title? Context: CREATE TABLE table_name_79 (english_title VARCHAR, original_title VARCHAR)[/INST]SELECT english_title FROM table_name_79 WHERE original_title = "возвращение / vozvrashcheniye"</s>
CREATE TABLE table_1965650_8 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_1965650_8 WHERE player = "Jim Koleff"
What NHL team did jim koleff play on?
<s>[INST]What NHL team did jim koleff play on? Context: CREATE TABLE table_1965650_8 (nhl_team VARCHAR, player VARCHAR)[/INST]SELECT nhl_team FROM table_1965650_8 WHERE player = "Jim Koleff"</s>
CREATE TABLE table_name_38 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, name VARCHAR)
SELECT MIN(population) FROM table_name_38 WHERE regional_county_municipality = "brome-missisquoi" AND name = "cowansville" AND region < 16
Cowansville has less than 16 regions and is a Brome-Missisquoi Municipality, what is their population?
<s>[INST]Cowansville has less than 16 regions and is a Brome-Missisquoi Municipality, what is their population? Context: CREATE TABLE table_name_38 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, name VARCHAR)[/INST]SELECT MIN(population) FROM table_name_38 WHERE regional_county_municipality ...
CREATE TABLE table_1341663_10 (district VARCHAR, result VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341663_10 WHERE result = "Re-elected" AND incumbent = "Richard Kelly"
what is the district where the result is re-elected and the incumbent is richard kelly?
<s>[INST]what is the district where the result is re-elected and the incumbent is richard kelly? Context: CREATE TABLE table_1341663_10 (district VARCHAR, result VARCHAR, incumbent VARCHAR)[/INST]SELECT district FROM table_1341663_10 WHERE result = "Re-elected" AND incumbent = "Richard Kelly"</s>
CREATE TABLE table_26591434_1 (ratings__kansai_ VARCHAR, original_airdate VARCHAR)
SELECT ratings__kansai_ FROM table_26591434_1 WHERE original_airdate = "May 25, 2010 22.00 - 22.54"
What is the ratings for the original air date may 25, 2010 22.00 - 22.54?
<s>[INST]What is the ratings for the original air date may 25, 2010 22.00 - 22.54? Context: CREATE TABLE table_26591434_1 (ratings__kansai_ VARCHAR, original_airdate VARCHAR)[/INST]SELECT ratings__kansai_ FROM table_26591434_1 WHERE original_airdate = "May 25, 2010 22.00 - 22.54"</s>
CREATE TABLE table_name_1 (class VARCHAR, no_built VARCHAR, operator VARCHAR)
SELECT class FROM table_name_1 WHERE no_built < 12 AND operator = "southern"
What class has less than 12 numbers built operated by southern?
<s>[INST]What class has less than 12 numbers built operated by southern? Context: CREATE TABLE table_name_1 (class VARCHAR, no_built VARCHAR, operator VARCHAR)[/INST]SELECT class FROM table_name_1 WHERE no_built < 12 AND operator = "southern"</s>
CREATE TABLE table_10361453_2 (record VARCHAR, game VARCHAR)
SELECT record FROM table_10361453_2 WHERE game = 8
The game number of 8 had a record of what?
<s>[INST]The game number of 8 had a record of what? Context: CREATE TABLE table_10361453_2 (record VARCHAR, game VARCHAR)[/INST]SELECT record FROM table_10361453_2 WHERE game = 8</s>
CREATE TABLE table_name_70 (record VARCHAR, round VARCHAR, method VARCHAR)
SELECT record FROM table_name_70 WHERE round = "2" AND method = "submission (injury)"
What is the record in the 2 round fight that ended by submission (injury)?
<s>[INST]What is the record in the 2 round fight that ended by submission (injury)? Context: CREATE TABLE table_name_70 (record VARCHAR, round VARCHAR, method VARCHAR)[/INST]SELECT record FROM table_name_70 WHERE round = "2" AND method = "submission (injury)"</s>
CREATE TABLE table_name_42 (Id VARCHAR)
SELECT 1994 FROM table_name_42 WHERE 1996 = "2r" AND 1993 = "a" AND 1991 = "2r"
What is the 1994 value with a 2r in 1996, A in 1993, and 2r in 1991?
<s>[INST]What is the 1994 value with a 2r in 1996, A in 1993, and 2r in 1991? Context: CREATE TABLE table_name_42 (Id VARCHAR)[/INST]SELECT 1994 FROM table_name_42 WHERE 1996 = "2r" AND 1993 = "a" AND 1991 = "2r"</s>
CREATE TABLE table_name_59 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_59 WHERE team_1 = "panathinaikos"
What was the first leg score for the match with a team 1 of Panathinaikos?
<s>[INST]What was the first leg score for the match with a team 1 of Panathinaikos? Context: CREATE TABLE table_name_59 (team_1 VARCHAR)[/INST]SELECT 1 AS st_leg FROM table_name_59 WHERE team_1 = "panathinaikos"</s>
CREATE TABLE table_name_11 (venue VARCHAR, round VARCHAR)
SELECT venue FROM table_name_11 WHERE round = 20
What venue was round 20 held at?
<s>[INST]What venue was round 20 held at? Context: CREATE TABLE table_name_11 (venue VARCHAR, round VARCHAR)[/INST]SELECT venue FROM table_name_11 WHERE round = 20</s>
CREATE TABLE table_name_50 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_50 WHERE year = "1989"
What is the team in 1989?
<s>[INST]What is the team in 1989? Context: CREATE TABLE table_name_50 (team VARCHAR, year VARCHAR)[/INST]SELECT team FROM table_name_50 WHERE year = "1989"</s>
CREATE TABLE table_name_12 (total INTEGER, gold INTEGER)
SELECT AVG(total) FROM table_name_12 WHERE gold < 0
What is the average Total, when Gold is less than 0?
<s>[INST]What is the average Total, when Gold is less than 0? Context: CREATE TABLE table_name_12 (total INTEGER, gold INTEGER)[/INST]SELECT AVG(total) FROM table_name_12 WHERE gold < 0</s>
CREATE TABLE table_name_28 (to_par INTEGER, place VARCHAR, money___$__ VARCHAR)
SELECT MIN(to_par) FROM table_name_28 WHERE place = "t3" AND money___$__ < 1 OFFSET 500
What is the lowest to par of the player with a t3 place and less than $1,500?
<s>[INST]What is the lowest to par of the player with a t3 place and less than $1,500? Context: CREATE TABLE table_name_28 (to_par INTEGER, place VARCHAR, money___$__ VARCHAR)[/INST]SELECT MIN(to_par) FROM table_name_28 WHERE place = "t3" AND money___$__ < 1 OFFSET 500</s>
CREATE TABLE table_name_53 (tournament VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen"
Tell me the tournament for opponents of andrei pavel rogier wassen
<s>[INST]Tell me the tournament for opponents of andrei pavel rogier wassen Context: CREATE TABLE table_name_53 (tournament VARCHAR, opponents_in_the_final VARCHAR)[/INST]SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen"</s>
CREATE TABLE table_21530474_1 (model_no VARCHAR, chassis_code VARCHAR)
SELECT model_no FROM table_21530474_1 WHERE chassis_code = "USF46"
Name the model number for usf46
<s>[INST]Name the model number for usf46 Context: CREATE TABLE table_21530474_1 (model_no VARCHAR, chassis_code VARCHAR)[/INST]SELECT model_no FROM table_21530474_1 WHERE chassis_code = "USF46"</s>
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_65 WHERE date = "december 19"
what team scored on december 19
<s>[INST]what team scored on december 19 Context: CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_65 WHERE date = "december 19"</s>
CREATE TABLE table_name_8 (report VARCHAR, circuit VARCHAR, race_name VARCHAR)
SELECT report FROM table_name_8 WHERE circuit = "kyalami" AND race_name = "south african republic trophy"
Name the report for circuit of kyalami for south african republic trophy
<s>[INST]Name the report for circuit of kyalami for south african republic trophy Context: CREATE TABLE table_name_8 (report VARCHAR, circuit VARCHAR, race_name VARCHAR)[/INST]SELECT report FROM table_name_8 WHERE circuit = "kyalami" AND race_name = "south african republic trophy"</s>
CREATE TABLE table_name_18 (country VARCHAR, to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT country FROM table_name_18 WHERE to_par < 6 AND money___$__ > 700 AND score = 69 - 73 - 70 - 71 = 283
Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283?
<s>[INST]Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283? Context: CREATE TABLE table_name_18 (country VARCHAR, to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)[/INST]SELECT country FROM table_name_18 WHERE to_par < 6 AND money___$__ > 700 AND score = 69 - 7...
CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)
SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"
In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?
<s>[INST]In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427? Context: CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)[/INST]SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"</s>
CREATE TABLE table_2522473_1 (team VARCHAR, home_ground VARCHAR)
SELECT team FROM table_2522473_1 WHERE home_ground = "Stemmemyren"
Which teams homeeground is Stemmemyren?
<s>[INST]Which teams homeeground is Stemmemyren? Context: CREATE TABLE table_2522473_1 (team VARCHAR, home_ground VARCHAR)[/INST]SELECT team FROM table_2522473_1 WHERE home_ground = "Stemmemyren"</s>
CREATE TABLE table_30108346_1 (number_of_troops VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR)
SELECT COUNT(number_of_troops) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.45"
Name the number of troops for troops per $1 billion being 2.45
<s>[INST]Name the number of troops for troops per $1 billion being 2.45 Context: CREATE TABLE table_30108346_1 (number_of_troops VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR)[/INST]SELECT COUNT(number_of_troops) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.45"</s>
CREATE TABLE table_name_5 (laps VARCHAR, driver VARCHAR)
SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart"
what is the number of laps when the driver is ron flockhart?
<s>[INST]what is the number of laps when the driver is ron flockhart? Context: CREATE TABLE table_name_5 (laps VARCHAR, driver VARCHAR)[/INST]SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart"</s>
CREATE TABLE table_name_89 (team_e VARCHAR, team_f VARCHAR)
SELECT team_e FROM table_name_89 WHERE team_f = "jason manning"
Who is team E when Jason Manning is Team F?
<s>[INST]Who is team E when Jason Manning is Team F? Context: CREATE TABLE table_name_89 (team_e VARCHAR, team_f VARCHAR)[/INST]SELECT team_e FROM table_name_89 WHERE team_f = "jason manning"</s>
CREATE TABLE table_name_85 (Id VARCHAR)
SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3
Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3
<s>[INST]Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 Context: CREATE TABLE table_name_85 (Id VARCHAR)[/INST]SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3</s>
CREATE TABLE table_1341707_12 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1341707_12 WHERE first_elected = 1952
Phillip Landrum was first elected in 1952 from the ninth district of Georgia.
<s>[INST]Phillip Landrum was first elected in 1952 from the ninth district of Georgia. Context: CREATE TABLE table_1341707_12 (district VARCHAR, first_elected VARCHAR)[/INST]SELECT district FROM table_1341707_12 WHERE first_elected = 1952</s>
CREATE TABLE table_1341718_43 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones"
How many districts does Ed Jones represent?
<s>[INST]How many districts does Ed Jones represent? Context: CREATE TABLE table_1341718_43 (district VARCHAR, incumbent VARCHAR)[/INST]SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones"</s>
CREATE TABLE table_name_69 (yield VARCHAR, purpose VARCHAR, location VARCHAR)
SELECT yield FROM table_name_69 WHERE purpose = "weapons development" AND location = "nts area u2r"
What is the yield in NTS Area U2R when the purpose is weapons development?
<s>[INST]What is the yield in NTS Area U2R when the purpose is weapons development? Context: CREATE TABLE table_name_69 (yield VARCHAR, purpose VARCHAR, location VARCHAR)[/INST]SELECT yield FROM table_name_69 WHERE purpose = "weapons development" AND location = "nts area u2r"</s>
CREATE TABLE table_name_75 (position INTEGER, drawn VARCHAR, points VARCHAR)
SELECT AVG(position) FROM table_name_75 WHERE drawn = 9 AND points > 25
At what average position is the drawn 9 and the points greater than 25?
<s>[INST]At what average position is the drawn 9 and the points greater than 25? Context: CREATE TABLE table_name_75 (position INTEGER, drawn VARCHAR, points VARCHAR)[/INST]SELECT AVG(position) FROM table_name_75 WHERE drawn = 9 AND points > 25</s>
CREATE TABLE table_name_59 (date VARCHAR, opponents VARCHAR, competition VARCHAR)
SELECT date FROM table_name_59 WHERE opponents = "1. fc nuremberg" AND competition = "gc"
What is the date of the GC competition when the opponents are 1. FC Nuremberg?
<s>[INST]What is the date of the GC competition when the opponents are 1. FC Nuremberg? Context: CREATE TABLE table_name_59 (date VARCHAR, opponents VARCHAR, competition VARCHAR)[/INST]SELECT date FROM table_name_59 WHERE opponents = "1. fc nuremberg" AND competition = "gc"</s>
CREATE TABLE table_17382360_9 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_17382360_9 WHERE score = "W 118-112"
What was the location and attendance at the game where the final score is w 118-112?
<s>[INST]What was the location and attendance at the game where the final score is w 118-112? Context: CREATE TABLE table_17382360_9 (location_attendance VARCHAR, score VARCHAR)[/INST]SELECT location_attendance FROM table_17382360_9 WHERE score = "W 118-112"</s>
CREATE TABLE table_name_41 (venue VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_41 WHERE game > 18 AND opponent = "morecambe"
What is Venue, when Game is greater than 18, and when Opponent is Morecambe?
<s>[INST]What is Venue, when Game is greater than 18, and when Opponent is Morecambe? Context: CREATE TABLE table_name_41 (venue VARCHAR, game VARCHAR, opponent VARCHAR)[/INST]SELECT venue FROM table_name_41 WHERE game > 18 AND opponent = "morecambe"</s>
CREATE TABLE table_name_64 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_64 WHERE player = "scott verplank"
What country has player Scott Verplank?
<s>[INST]What country has player Scott Verplank? Context: CREATE TABLE table_name_64 (country VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_64 WHERE player = "scott verplank"</s>
CREATE TABLE table_name_74 (launch_site VARCHAR, satellite VARCHAR)
SELECT launch_site FROM table_name_74 WHERE satellite = "gps iiia-2"
What was the launch site for a satellite of GPS IIIA-2?
<s>[INST]What was the launch site for a satellite of GPS IIIA-2? Context: CREATE TABLE table_name_74 (launch_site VARCHAR, satellite VARCHAR)[/INST]SELECT launch_site FROM table_name_74 WHERE satellite = "gps iiia-2"</s>
CREATE TABLE table_name_59 (record VARCHAR, opponent VARCHAR, method VARCHAR)
SELECT record FROM table_name_59 WHERE opponent = "magomedkhan gamzatkhanov" AND method = "submission"
What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?
<s>[INST]What record has magomedkhan gamzatkhanov as the opponent, and submission as the method? Context: CREATE TABLE table_name_59 (record VARCHAR, opponent VARCHAR, method VARCHAR)[/INST]SELECT record FROM table_name_59 WHERE opponent = "magomedkhan gamzatkhanov" AND method = "submission"</s>
CREATE TABLE table_name_12 (year INTEGER, regular_season VARCHAR, division VARCHAR)
SELECT MIN(year) FROM table_name_12 WHERE regular_season = "5th, atlantic" AND division > 4
Which Year is the lowest one that has a Regular Season of 5th, atlantic, and a Division larger than 4?
<s>[INST]Which Year is the lowest one that has a Regular Season of 5th, atlantic, and a Division larger than 4? Context: CREATE TABLE table_name_12 (year INTEGER, regular_season VARCHAR, division VARCHAR)[/INST]SELECT MIN(year) FROM table_name_12 WHERE regular_season = "5th, atlantic" AND division > 4</s>
CREATE TABLE table_name_3 (gold_medals VARCHAR, ensemble VARCHAR, bronze_medals VARCHAR)
SELECT COUNT(gold_medals) FROM table_name_3 WHERE ensemble = "mandarins" AND bronze_medals > 1
When the Mandarins won more than 1 bronze medals, how many gold medals did they win?
<s>[INST]When the Mandarins won more than 1 bronze medals, how many gold medals did they win? Context: CREATE TABLE table_name_3 (gold_medals VARCHAR, ensemble VARCHAR, bronze_medals VARCHAR)[/INST]SELECT COUNT(gold_medals) FROM table_name_3 WHERE ensemble = "mandarins" AND bronze_medals > 1</s>
CREATE TABLE table_name_62 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_62 WHERE player = "jodie mudd"
Which Country has a Player of jodie mudd?
<s>[INST]Which Country has a Player of jodie mudd? Context: CREATE TABLE table_name_62 (country VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_62 WHERE player = "jodie mudd"</s>
CREATE TABLE table_1341690_9 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_9 WHERE candidates = "Sam M. Gibbons (D) Unopposed"
How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed?
<s>[INST]How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed? Context: CREATE TABLE table_1341690_9 (incumbent VARCHAR, candidates VARCHAR)[/INST]SELECT COUNT(incumbent) FROM table_1341690_9 WHERE candidates = "Sam M. Gibbons (D) Unopposed"</s>
CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR)
SELECT tournament FROM table_name_99 WHERE surface = "carpet"
What tournament is played on a carpet surface?
<s>[INST]What tournament is played on a carpet surface? Context: CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR)[/INST]SELECT tournament FROM table_name_99 WHERE surface = "carpet"</s>
CREATE TABLE table_name_21 (torque VARCHAR, power VARCHAR)
SELECT torque FROM table_name_21 WHERE power = "hp (kw)"
What Torque has a Power of HP (KW)?
<s>[INST]What Torque has a Power of HP (KW)? Context: CREATE TABLE table_name_21 (torque VARCHAR, power VARCHAR)[/INST]SELECT torque FROM table_name_21 WHERE power = "hp (kw)"</s>
CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_84 WHERE date = "july 18"
What was the attendance for july 18?
<s>[INST]What was the attendance for july 18? Context: CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_84 WHERE date = "july 18"</s>
CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_46 WHERE record = "3-7"
What score has 3-7 as the record?
<s>[INST]What score has 3-7 as the record? Context: CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_name_46 WHERE record = "3-7"</s>
CREATE TABLE table_name_59 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_name_59 WHERE club = "castres"
How many points did the Castres have?
<s>[INST]How many points did the Castres have? Context: CREATE TABLE table_name_59 (points_for VARCHAR, club VARCHAR)[/INST]SELECT points_for FROM table_name_59 WHERE club = "castres"</s>
CREATE TABLE table_name_37 (lner_class VARCHAR, passed_to_lner VARCHAR, date_introduced VARCHAR)
SELECT lner_class FROM table_name_37 WHERE passed_to_lner > 3 AND date_introduced = "1895–98"
Which LNER class has been Passed to LNER larger than 3 and a introduced in 1895–98?
<s>[INST]Which LNER class has been Passed to LNER larger than 3 and a introduced in 1895–98? Context: CREATE TABLE table_name_37 (lner_class VARCHAR, passed_to_lner VARCHAR, date_introduced VARCHAR)[/INST]SELECT lner_class FROM table_name_37 WHERE passed_to_lner > 3 AND date_introduced = "1895–98"</s>
CREATE TABLE table_25703_1 (birth_2013 INTEGER, death_2012 VARCHAR)
SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = "14,1"
What is the highest birth/2013 when the death/2012 is 14,1?
<s>[INST]What is the highest birth/2013 when the death/2012 is 14,1? Context: CREATE TABLE table_25703_1 (birth_2013 INTEGER, death_2012 VARCHAR)[/INST]SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = "14,1"</s>
CREATE TABLE table_name_63 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1
What is the rank that has 1 bronze and 1 silver?
<s>[INST]What is the rank that has 1 bronze and 1 silver? Context: CREATE TABLE table_name_63 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)[/INST]SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1</s>
CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_47 WHERE nation = "netherlands" AND bronze > 4
What is the average number of gold medals the netherlands got when they had more than 4 bronze medals?
<s>[INST]What is the average number of gold medals the netherlands got when they had more than 4 bronze medals? Context: CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, bronze VARCHAR)[/INST]SELECT AVG(gold) FROM table_name_47 WHERE nation = "netherlands" AND bronze > 4</s>