context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_70 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_70 WHERE result = "w 17-0"
Which opponent has w 17-0 as the result?
<s>[INST]Which opponent has w 17-0 as the result? Context: CREATE TABLE table_name_70 (opponent VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_70 WHERE result = "w 17-0"</s>
CREATE TABLE table_name_90 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_90 WHERE opponent = "sakae kasuya"
How many rounds have an Opponent of sakae kasuya?
<s>[INST]How many rounds have an Opponent of sakae kasuya? Context: CREATE TABLE table_name_90 (round VARCHAR, opponent VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_90 WHERE opponent = "sakae kasuya"</s>
CREATE TABLE Apartments (room_count INTEGER, apt_id VARCHAR); CREATE TABLE Apartment_Facilities (apt_id VARCHAR, facility_code VARCHAR)
SELECT SUM(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = "Gym"
Show the total number of rooms of all apartments with facility code "Gym".
<s>[INST]Show the total number of rooms of all apartments with facility code "Gym". Context: CREATE TABLE Apartments (room_count INTEGER, apt_id VARCHAR); CREATE TABLE Apartment_Facilities (apt_id VARCHAR, facility_code VARCHAR)[/INST]SELECT SUM(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = "Gym"</s>
CREATE TABLE table_name_35 (goalsagainst INTEGER, goalsfor VARCHAR, points VARCHAR)
SELECT MAX(goalsagainst) FROM table_name_35 WHERE goalsfor = 288 AND points < 85
Goals for of 288, and Points smaller than 85 what is the highest goals against?
<s>[INST]Goals for of 288, and Points smaller than 85 what is the highest goals against? Context: CREATE TABLE table_name_35 (goalsagainst INTEGER, goalsfor VARCHAR, points VARCHAR)[/INST]SELECT MAX(goalsagainst) FROM table_name_35 WHERE goalsfor = 288 AND points < 85</s>
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT 2008 FROM table_name_47 WHERE 2011 = "1r"
Which year has a 2011 of 1r?
<s>[INST]Which year has a 2011 of 1r? Context: CREATE TABLE table_name_47 (Id VARCHAR)[/INST]SELECT 2008 FROM table_name_47 WHERE 2011 = "1r"</s>
CREATE TABLE table_name_73 (week_2 VARCHAR, week_4 VARCHAR)
SELECT week_2 FROM table_name_73 WHERE week_4 = "chelsie loraine"
Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?
<s>[INST]Who was the girl on week 2 that was previous to week 4's Chelsie Loraine? Context: CREATE TABLE table_name_73 (week_2 VARCHAR, week_4 VARCHAR)[/INST]SELECT week_2 FROM table_name_73 WHERE week_4 = "chelsie loraine"</s>
CREATE TABLE table_name_63 (lost INTEGER, points VARCHAR)
SELECT MAX(lost) FROM table_name_63 WHERE points = 6
What is the highest lost that has 6 for points?
<s>[INST]What is the highest lost that has 6 for points? Context: CREATE TABLE table_name_63 (lost INTEGER, points VARCHAR)[/INST]SELECT MAX(lost) FROM table_name_63 WHERE points = 6</s>
CREATE TABLE table_name_83 (years_in_toronto VARCHAR, player VARCHAR)
SELECT years_in_toronto FROM table_name_83 WHERE player = "sebastian telfair"
How long has Sebastian Telfair played for Toronto?
<s>[INST]How long has Sebastian Telfair played for Toronto? Context: CREATE TABLE table_name_83 (years_in_toronto VARCHAR, player VARCHAR)[/INST]SELECT years_in_toronto FROM table_name_83 WHERE player = "sebastian telfair"</s>
CREATE TABLE table_17356205_1 (title VARCHAR, directed_by VARCHAR)
SELECT COUNT(title) FROM table_17356205_1 WHERE directed_by = "Joanna Kerns"
How many titles are given for the episode directed by Joanna Kerns?
<s>[INST]How many titles are given for the episode directed by Joanna Kerns? Context: CREATE TABLE table_17356205_1 (title VARCHAR, directed_by VARCHAR)[/INST]SELECT COUNT(title) FROM table_17356205_1 WHERE directed_by = "Joanna Kerns"</s>
CREATE TABLE table_name_50 (week_4 VARCHAR, week_9 VARCHAR)
SELECT week_4 FROM table_name_50 WHERE week_9 = "all housemates"
What kind of Week 4 has a Week 9 of all housemates?
<s>[INST]What kind of Week 4 has a Week 9 of all housemates? Context: CREATE TABLE table_name_50 (week_4 VARCHAR, week_9 VARCHAR)[/INST]SELECT week_4 FROM table_name_50 WHERE week_9 = "all housemates"</s>
CREATE TABLE table_name_21 (score VARCHAR, venue VARCHAR, champion VARCHAR)
SELECT score FROM table_name_21 WHERE venue = "royal liverpool golf club" AND champion = "willie hunter"
What is the score of the match won by Willie Hunter at the Royal Liverpool Golf Club?
<s>[INST]What is the score of the match won by Willie Hunter at the Royal Liverpool Golf Club? Context: CREATE TABLE table_name_21 (score VARCHAR, venue VARCHAR, champion VARCHAR)[/INST]SELECT score FROM table_name_21 WHERE venue = "royal liverpool golf club" AND champion = "willie hunter"</s>
CREATE TABLE table_name_77 (driver VARCHAR, points VARCHAR)
SELECT driver FROM table_name_77 WHERE points = "35+3"
Which driver had 35+3 points?
<s>[INST]Which driver had 35+3 points? Context: CREATE TABLE table_name_77 (driver VARCHAR, points VARCHAR)[/INST]SELECT driver FROM table_name_77 WHERE points = "35+3"</s>
CREATE TABLE table_name_41 (approximate_age VARCHAR, significant_relationship VARCHAR)
SELECT approximate_age FROM table_name_41 WHERE significant_relationship = "family"
Can you give me the age of the Significant Relationship of Family?
<s>[INST]Can you give me the age of the Significant Relationship of Family? Context: CREATE TABLE table_name_41 (approximate_age VARCHAR, significant_relationship VARCHAR)[/INST]SELECT approximate_age FROM table_name_41 WHERE significant_relationship = "family"</s>
CREATE TABLE table_name_81 (challenge_loser VARCHAR, challenge_winner VARCHAR)
SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = "roseny"
Which challenge loser has a Challenge Winner of roseny?
<s>[INST]Which challenge loser has a Challenge Winner of roseny? Context: CREATE TABLE table_name_81 (challenge_loser VARCHAR, challenge_winner VARCHAR)[/INST]SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = "roseny"</s>
CREATE TABLE table_name_77 (interview INTEGER, average VARCHAR, state VARCHAR)
SELECT MAX(interview) FROM table_name_77 WHERE average > 9.324 AND state = "louisiana"
What is the highest interview for Louisiana with an average above 9.324?
<s>[INST]What is the highest interview for Louisiana with an average above 9.324? Context: CREATE TABLE table_name_77 (interview INTEGER, average VARCHAR, state VARCHAR)[/INST]SELECT MAX(interview) FROM table_name_77 WHERE average > 9.324 AND state = "louisiana"</s>
CREATE TABLE table_name_41 (competition VARCHAR, venue VARCHAR, result VARCHAR)
SELECT competition FROM table_name_41 WHERE venue = "away" AND result = "lost 2-4"
What Away Competition had a Result of lost 2-4?
<s>[INST]What Away Competition had a Result of lost 2-4? Context: CREATE TABLE table_name_41 (competition VARCHAR, venue VARCHAR, result VARCHAR)[/INST]SELECT competition FROM table_name_41 WHERE venue = "away" AND result = "lost 2-4"</s>
CREATE TABLE table_name_23 (year INTEGER, moves VARCHAR)
SELECT SUM(year) FROM table_name_23 WHERE moves = 32
What year had 32 moves?
<s>[INST]What year had 32 moves? Context: CREATE TABLE table_name_23 (year INTEGER, moves VARCHAR)[/INST]SELECT SUM(year) FROM table_name_23 WHERE moves = 32</s>
CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood"
Who were the candidates in the district where Charlie Norwood is the incumbent?
<s>[INST]Who were the candidates in the district where Charlie Norwood is the incumbent? Context: CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR)[/INST]SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood"</s>
CREATE TABLE table_27862483_3 (pac_10_record VARCHAR, date VARCHAR)
SELECT pac_10_record FROM table_27862483_3 WHERE date = "April 20"
What was the PAC-10 record of the game played on April 20?
<s>[INST]What was the PAC-10 record of the game played on April 20? Context: CREATE TABLE table_27862483_3 (pac_10_record VARCHAR, date VARCHAR)[/INST]SELECT pac_10_record FROM table_27862483_3 WHERE date = "April 20"</s>
CREATE TABLE table_name_94 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR)
SELECT district FROM table_name_94 WHERE reserved_for___sc___st__none_ = "sc"
Name the District which has a Reserved for ( SC / ST /None) of sc?
<s>[INST]Name the District which has a Reserved for ( SC / ST /None) of sc? Context: CREATE TABLE table_name_94 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR)[/INST]SELECT district FROM table_name_94 WHERE reserved_for___sc___st__none_ = "sc"</s>
CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR)
SELECT AVG(attendance) FROM table_name_16 WHERE visitor = "phoenix"
What is the average attendance for a game against Phoenix?
<s>[INST]What is the average attendance for a game against Phoenix? Context: CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_16 WHERE visitor = "phoenix"</s>
CREATE TABLE table_2201724_2 (outcome VARCHAR, championship VARCHAR)
SELECT COUNT(outcome) FROM table_2201724_2 WHERE championship = "French championships"
How many different outcomes of the French Championships were there?
<s>[INST]How many different outcomes of the French Championships were there? Context: CREATE TABLE table_2201724_2 (outcome VARCHAR, championship VARCHAR)[/INST]SELECT COUNT(outcome) FROM table_2201724_2 WHERE championship = "French championships"</s>
CREATE TABLE table_11950720_4 (bowling_style VARCHAR, player VARCHAR)
SELECT bowling_style FROM table_11950720_4 WHERE player = "Chris Harris"
What is the bowling style of chris harris?
<s>[INST]What is the bowling style of chris harris? Context: CREATE TABLE table_11950720_4 (bowling_style VARCHAR, player VARCHAR)[/INST]SELECT bowling_style FROM table_11950720_4 WHERE player = "Chris Harris"</s>
CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR)
SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini"
How many points does mia martini have?
<s>[INST]How many points does mia martini have? Context: CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR)[/INST]SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini"</s>
CREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR)
SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1
What is the sum of losses that have points of 11 and more than 1 draw?
<s>[INST]What is the sum of losses that have points of 11 and more than 1 draw? Context: CREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR)[/INST]SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1</s>
CREATE TABLE table_29546030_2 (blank_ends INTEGER, pf VARCHAR)
SELECT MIN(blank_ends) FROM table_29546030_2 WHERE pf = 44
What is the least amount of blank ends for a skip who has 44 PF?
<s>[INST]What is the least amount of blank ends for a skip who has 44 PF? Context: CREATE TABLE table_29546030_2 (blank_ends INTEGER, pf VARCHAR)[/INST]SELECT MIN(blank_ends) FROM table_29546030_2 WHERE pf = 44</s>
CREATE TABLE table_19872699_1 (builder VARCHAR, skipper VARCHAR)
SELECT builder FROM table_19872699_1 WHERE skipper = "Ken Read"
Who build the boat where Ken Read was the skipper?
<s>[INST]Who build the boat where Ken Read was the skipper? Context: CREATE TABLE table_19872699_1 (builder VARCHAR, skipper VARCHAR)[/INST]SELECT builder FROM table_19872699_1 WHERE skipper = "Ken Read"</s>
CREATE TABLE table_name_64 (average INTEGER, played VARCHAR)
SELECT SUM(average) FROM table_name_64 WHERE 2006 = "36/40" AND played > 126
What is the sum of Average, when 2006 is "36/40", and when Played is greater than 126?
<s>[INST]What is the sum of Average, when 2006 is "36/40", and when Played is greater than 126? Context: CREATE TABLE table_name_64 (average INTEGER, played VARCHAR)[/INST]SELECT SUM(average) FROM table_name_64 WHERE 2006 = "36/40" AND played > 126</s>
CREATE TABLE table_16581695_4 (production_code VARCHAR, no_in_season VARCHAR)
SELECT production_code FROM table_16581695_4 WHERE no_in_season = "15"
What is the production code for episode 15 in season 3?
<s>[INST]What is the production code for episode 15 in season 3? Context: CREATE TABLE table_16581695_4 (production_code VARCHAR, no_in_season VARCHAR)[/INST]SELECT production_code FROM table_16581695_4 WHERE no_in_season = "15"</s>
CREATE TABLE table_256286_39 (description VARCHAR, _percentage_yes VARCHAR)
SELECT description FROM table_256286_39 WHERE _percentage_yes = "44.06%"
What is the measure where the yes% is 44.06%?
<s>[INST]What is the measure where the yes% is 44.06%? Context: CREATE TABLE table_256286_39 (description VARCHAR, _percentage_yes VARCHAR)[/INST]SELECT description FROM table_256286_39 WHERE _percentage_yes = "44.06%"</s>
CREATE TABLE table_name_87 (wins INTEGER, goals_scored VARCHAR, position VARCHAR)
SELECT MAX(wins) FROM table_name_87 WHERE goals_scored > 64 AND position < 2
What was the highest win when there were more than 64 goals scored and a position smaller than 2?
<s>[INST]What was the highest win when there were more than 64 goals scored and a position smaller than 2? Context: CREATE TABLE table_name_87 (wins INTEGER, goals_scored VARCHAR, position VARCHAR)[/INST]SELECT MAX(wins) FROM table_name_87 WHERE goals_scored > 64 AND position < 2</s>
CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"
On the episode that had a run time of 24:57, how many million viewers were there?
<s>[INST]On the episode that had a run time of 24:57, how many million viewers were there? Context: CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR)[/INST]SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"</s>
CREATE TABLE table_2150776_1 (team VARCHAR, driver VARCHAR)
SELECT team FROM table_2150776_1 WHERE driver = "Ricky Rudd"
Name the team for ricky rudd
<s>[INST]Name the team for ricky rudd Context: CREATE TABLE table_2150776_1 (team VARCHAR, driver VARCHAR)[/INST]SELECT team FROM table_2150776_1 WHERE driver = "Ricky Rudd"</s>
CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR)
SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress"
What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress?
<s>[INST]What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? Context: CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR)[/INST]SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress"</s>
CREATE TABLE teacher (Id VARCHAR)
SELECT COUNT(*) FROM teacher
How many teachers are there?
<s>[INST]How many teachers are there? Context: CREATE TABLE teacher (Id VARCHAR)[/INST]SELECT COUNT(*) FROM teacher</s>
CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR, points VARCHAR)
SELECT date FROM table_name_40 WHERE location = "scotiabank place" AND points < 20 AND game > 16 AND opponent = "montreal canadiens"
Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens?
<s>[INST]Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens? Context: CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR, points VARCHAR)[/INST]SELECT date FROM table_name_40 WHERE location = "scotiabank place" AND points < 20 AND game > 16 AND opponent = "montreal canadiens"</s>
CREATE TABLE table_25572068_1 (winning_driver VARCHAR, series VARCHAR)
SELECT winning_driver FROM table_25572068_1 WHERE series = "FR2.0 11"
Who was the winning driver in the FR2.0 11 series?
<s>[INST]Who was the winning driver in the FR2.0 11 series? Context: CREATE TABLE table_25572068_1 (winning_driver VARCHAR, series VARCHAR)[/INST]SELECT winning_driver FROM table_25572068_1 WHERE series = "FR2.0 11"</s>
CREATE TABLE table_name_44 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT date FROM table_name_44 WHERE week < 8 AND result = "bye"
When was the game before week 8 with a result of bye?
<s>[INST]When was the game before week 8 with a result of bye? Context: CREATE TABLE table_name_44 (date VARCHAR, week VARCHAR, result VARCHAR)[/INST]SELECT date FROM table_name_44 WHERE week < 8 AND result = "bye"</s>
CREATE TABLE table_name_87 (quantity INTEGER, type VARCHAR, year_s__of_manufacture VARCHAR)
SELECT MIN(quantity) FROM table_name_87 WHERE type = "e h4v" AND year_s__of_manufacture = "1920–1924"
Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924?
<s>[INST]Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924? Context: CREATE TABLE table_name_87 (quantity INTEGER, type VARCHAR, year_s__of_manufacture VARCHAR)[/INST]SELECT MIN(quantity) FROM table_name_87 WHERE type = "e h4v" AND year_s__of_manufacture = "1920–1924"</s>
CREATE TABLE table_name_86 (percentage VARCHAR, district VARCHAR, party VARCHAR)
SELECT percentage FROM table_name_86 WHERE district > 2 AND party = "independent"
Which Percentage has a District larger than 2, and a Party of independent?
<s>[INST]Which Percentage has a District larger than 2, and a Party of independent? Context: CREATE TABLE table_name_86 (percentage VARCHAR, district VARCHAR, party VARCHAR)[/INST]SELECT percentage FROM table_name_86 WHERE district > 2 AND party = "independent"</s>
CREATE TABLE table_22379931_2 (fastest_lap VARCHAR, pole_position VARCHAR)
SELECT fastest_lap FROM table_22379931_2 WHERE pole_position = "Benoît Tréluyer"
Who has the fastest lap where Benoît Tréluyer got the pole position?
<s>[INST]Who has the fastest lap where Benoît Tréluyer got the pole position? Context: CREATE TABLE table_22379931_2 (fastest_lap VARCHAR, pole_position VARCHAR)[/INST]SELECT fastest_lap FROM table_22379931_2 WHERE pole_position = "Benoît Tréluyer"</s>
CREATE TABLE table_23315271_2 (pole_position VARCHAR, circuit VARCHAR)
SELECT pole_position FROM table_23315271_2 WHERE circuit = "Misano World circuit"
Who held the pole position in misano world circuit?
<s>[INST]Who held the pole position in misano world circuit? Context: CREATE TABLE table_23315271_2 (pole_position VARCHAR, circuit VARCHAR)[/INST]SELECT pole_position FROM table_23315271_2 WHERE circuit = "Misano World circuit"</s>
CREATE TABLE table_name_67 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_67 WHERE result = "draw"
In which venue was the result a draw?
<s>[INST]In which venue was the result a draw? Context: CREATE TABLE table_name_67 (venue VARCHAR, result VARCHAR)[/INST]SELECT venue FROM table_name_67 WHERE result = "draw"</s>
CREATE TABLE table_name_30 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR)
SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 11
What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?
<s>[INST]What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11? Context: CREATE TABLE table_name_30 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR)[/INST]SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 11</s>
CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR)
SELECT plural FROM table_name_47 WHERE singular = "nyaqot"
What is the plural if the singular is nyaqot?
<s>[INST]What is the plural if the singular is nyaqot? Context: CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR)[/INST]SELECT plural FROM table_name_47 WHERE singular = "nyaqot"</s>
CREATE TABLE table_name_36 (championship VARCHAR, year VARCHAR, opponent VARCHAR, surface VARCHAR)
SELECT championship FROM table_name_36 WHERE opponent = "roger federer" AND surface = "clay" AND year < 2007
Which championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007?
<s>[INST]Which championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007? Context: CREATE TABLE table_name_36 (championship VARCHAR, year VARCHAR, opponent VARCHAR, surface VARCHAR)[/INST]SELECT championship FROM table_name_36 WHERE opponent = "roger federer" AND surface = "clay" AND year < 2007</s>
CREATE TABLE table_name_15 (pieces INTEGER, release VARCHAR)
SELECT MIN(pieces) FROM table_name_15 WHERE release = 1984
What was the lowest number of pieces for a board released in 1984?
<s>[INST]What was the lowest number of pieces for a board released in 1984? Context: CREATE TABLE table_name_15 (pieces INTEGER, release VARCHAR)[/INST]SELECT MIN(pieces) FROM table_name_15 WHERE release = 1984</s>
CREATE TABLE table_name_5 (year INTEGER, music_director_s_ VARCHAR)
SELECT SUM(year) FROM table_name_5 WHERE music_director_s_ = "anu malik"
WHich Year has a Music director(s) of anu malik?
<s>[INST]WHich Year has a Music director(s) of anu malik? Context: CREATE TABLE table_name_5 (year INTEGER, music_director_s_ VARCHAR)[/INST]SELECT SUM(year) FROM table_name_5 WHERE music_director_s_ = "anu malik"</s>
CREATE TABLE table_171320_3 (region_1 VARCHAR, region_4 VARCHAR)
SELECT region_1 FROM table_171320_3 WHERE region_4 = "April 2, 2009"
Name the region 1 where region 4 for april 2, 2009
<s>[INST]Name the region 1 where region 4 for april 2, 2009 Context: CREATE TABLE table_171320_3 (region_1 VARCHAR, region_4 VARCHAR)[/INST]SELECT region_1 FROM table_171320_3 WHERE region_4 = "April 2, 2009"</s>
CREATE TABLE table_name_44 (english_translation VARCHAR, articles VARCHAR)
SELECT english_translation FROM table_name_44 WHERE articles = 24
Can you tell me the English Translation that has the Articles of 24?
<s>[INST]Can you tell me the English Translation that has the Articles of 24? Context: CREATE TABLE table_name_44 (english_translation VARCHAR, articles VARCHAR)[/INST]SELECT english_translation FROM table_name_44 WHERE articles = 24</s>
CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER)
SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT AVG(Product_Price) FROM PRODUCTS)
Show all the distinct product names with price higher than the average.
<s>[INST]Show all the distinct product names with price higher than the average. Context: CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER)[/INST]SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT AVG(Product_Price) FROM PRODUCTS)</s>
CREATE TABLE table_1013129_11 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT college_junior_club_team FROM table_1013129_11 WHERE nhl_team = "St. Louis Blues"
What college/junior/club teams do the players from the St. Louis Blues come from?
<s>[INST]What college/junior/club teams do the players from the St. Louis Blues come from? Context: CREATE TABLE table_1013129_11 (college_junior_club_team VARCHAR, nhl_team VARCHAR)[/INST]SELECT college_junior_club_team FROM table_1013129_11 WHERE nhl_team = "St. Louis Blues"</s>
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
How many instruments does the song "Badlands" use?
<s>[INST]How many instruments does the song "Badlands" use? Context: CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)[/INST]SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"</s>
CREATE TABLE table_1590967_2 (episode_number INTEGER, air_date VARCHAR)
SELECT MAX(episode_number) FROM table_1590967_2 WHERE air_date = "6 January 2006"
Name the most episode numbers of 6 january 2006
<s>[INST]Name the most episode numbers of 6 january 2006 Context: CREATE TABLE table_1590967_2 (episode_number INTEGER, air_date VARCHAR)[/INST]SELECT MAX(episode_number) FROM table_1590967_2 WHERE air_date = "6 January 2006"</s>
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, YEAR INTEGER)
SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')
Who is the friend of Zach with longest year relationship?
<s>[INST]Who is the friend of Zach with longest year relationship? Context: CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, YEAR INTEGER)[/INST]SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')</s>
CREATE TABLE table_name_23 (year VARCHAR, pick VARCHAR)
SELECT year FROM table_name_23 WHERE pick = "15"
What year was the player pick number 15 picked?
<s>[INST]What year was the player pick number 15 picked? Context: CREATE TABLE table_name_23 (year VARCHAR, pick VARCHAR)[/INST]SELECT year FROM table_name_23 WHERE pick = "15"</s>
CREATE TABLE table_name_35 (position VARCHAR, mls_team VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_35 WHERE mls_team = "colorado rapids" AND pick__number > 15
What position does the Colorado Rapids pick after 15 play?
<s>[INST]What position does the Colorado Rapids pick after 15 play? Context: CREATE TABLE table_name_35 (position VARCHAR, mls_team VARCHAR, pick__number VARCHAR)[/INST]SELECT position FROM table_name_35 WHERE mls_team = "colorado rapids" AND pick__number > 15</s>
CREATE TABLE Templates (template_type_code VARCHAR)
SELECT DISTINCT template_type_code FROM Templates
Show all distinct template type codes for all templates.
<s>[INST]Show all distinct template type codes for all templates. Context: CREATE TABLE Templates (template_type_code VARCHAR)[/INST]SELECT DISTINCT template_type_code FROM Templates</s>
CREATE TABLE table_11647327_2 (marginal_ordinary_income_tax_rate VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR)
SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE married_filing_jointly_or_qualified_widow_er_ = "$208,851–$372,950"
What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950?
<s>[INST]What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950? Context: CREATE TABLE table_11647327_2 (marginal_ordinary_income_tax_rate VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR)[/INST]SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE married_filing_jointly_or_qualified_widow_er_ = "$208,851–$372,950"</s>
CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)
SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1
What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
<s>[INST]What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets? Context: CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)[/INST]SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1</s>
CREATE TABLE table_14951643_1 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_14951643_1 WHERE opponent = "at New England Patriots"
what's the result with opponent being at new england patriots
<s>[INST]what's the result with opponent being at new england patriots Context: CREATE TABLE table_14951643_1 (result VARCHAR, opponent VARCHAR)[/INST]SELECT result FROM table_14951643_1 WHERE opponent = "at New England Patriots"</s>
CREATE TABLE votes (created INTEGER, state VARCHAR)
SELECT MAX(created) FROM votes WHERE state = 'CA'
What is last date created of votes from the state 'CA'?
<s>[INST]What is last date created of votes from the state 'CA'? Context: CREATE TABLE votes (created INTEGER, state VARCHAR)[/INST]SELECT MAX(created) FROM votes WHERE state = 'CA'</s>
CREATE TABLE table_name_61 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_61 WHERE catalog = "11 135"
What shows as the format for catalog 11 135?
<s>[INST]What shows as the format for catalog 11 135? Context: CREATE TABLE table_name_61 (format VARCHAR, catalog VARCHAR)[/INST]SELECT format FROM table_name_61 WHERE catalog = "11 135"</s>
CREATE TABLE table_name_7 (byes INTEGER, losses VARCHAR, against VARCHAR)
SELECT AVG(byes) FROM table_name_7 WHERE losses > 0 AND against > 3049
Which Byes have Losses larger than 0, and an Against larger than 3049?
<s>[INST]Which Byes have Losses larger than 0, and an Against larger than 3049? Context: CREATE TABLE table_name_7 (byes INTEGER, losses VARCHAR, against VARCHAR)[/INST]SELECT AVG(byes) FROM table_name_7 WHERE losses > 0 AND against > 3049</s>
CREATE TABLE table_name_94 (genes VARCHAR, base_pairs VARCHAR)
SELECT genes FROM table_name_94 WHERE base_pairs = "4,895,836"
Which gene has 4,895,836 base pairs?
<s>[INST]Which gene has 4,895,836 base pairs? Context: CREATE TABLE table_name_94 (genes VARCHAR, base_pairs VARCHAR)[/INST]SELECT genes FROM table_name_94 WHERE base_pairs = "4,895,836"</s>
CREATE TABLE table_1926240_1 (waveform VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
SELECT waveform FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203"
What was the waveform of the encoding with a bit rate of 6.203?
<s>[INST]What was the waveform of the encoding with a bit rate of 6.203? Context: CREATE TABLE table_1926240_1 (waveform VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)[/INST]SELECT waveform FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203"</s>
CREATE TABLE table_1341598_10 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341598_10 WHERE incumbent = "Charles Edward Bennett"
What party does incumbent Charles Edward Bennett belong to?
<s>[INST]What party does incumbent Charles Edward Bennett belong to? Context: CREATE TABLE table_1341598_10 (party VARCHAR, incumbent VARCHAR)[/INST]SELECT party FROM table_1341598_10 WHERE incumbent = "Charles Edward Bennett"</s>
CREATE TABLE table_name_99 (general_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_name_99 WHERE stage = "3"
What is the general classification of stage 3
<s>[INST]What is the general classification of stage 3 Context: CREATE TABLE table_name_99 (general_classification VARCHAR, stage VARCHAR)[/INST]SELECT general_classification FROM table_name_99 WHERE stage = "3"</s>
CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR)
SELECT league FROM table_name_96 WHERE sport = "baseball"
What is the name of a league in the sport of baseball?
<s>[INST]What is the name of a league in the sport of baseball? Context: CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR)[/INST]SELECT league FROM table_name_96 WHERE sport = "baseball"</s>
CREATE TABLE table_24039597_26 (matches VARCHAR, player VARCHAR)
SELECT matches FROM table_24039597_26 WHERE player = "MS Dhoni"
What ist he matches where the player is ms dhoni?
<s>[INST]What ist he matches where the player is ms dhoni? Context: CREATE TABLE table_24039597_26 (matches VARCHAR, player VARCHAR)[/INST]SELECT matches FROM table_24039597_26 WHERE player = "MS Dhoni"</s>
CREATE TABLE table_name_36 (league_from VARCHAR, pick__number VARCHAR)
SELECT league_from FROM table_name_36 WHERE pick__number = 160
What is the league that has the pick #160?
<s>[INST]What is the league that has the pick #160? Context: CREATE TABLE table_name_36 (league_from VARCHAR, pick__number VARCHAR)[/INST]SELECT league_from FROM table_name_36 WHERE pick__number = 160</s>
CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(written_by) FROM table_18268826_1 WHERE us_viewers__million_ = "3.24"
How many episodes by different writers were seen by 3.24 million people in the US?
<s>[INST]How many episodes by different writers were seen by 3.24 million people in the US? Context: CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT COUNT(written_by) FROM table_18268826_1 WHERE us_viewers__million_ = "3.24"</s>
CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_77 WHERE date = "9 october 2009"
Which Result has a Date of 9 october 2009?
<s>[INST]Which Result has a Date of 9 october 2009? Context: CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_77 WHERE date = "9 october 2009"</s>
CREATE TABLE table_name_20 (year VARCHAR)
SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990"
Who came in 3rd place in 1990?
<s>[INST]Who came in 3rd place in 1990? Context: CREATE TABLE table_name_20 (year VARCHAR)[/INST]SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990"</s>
CREATE TABLE table_name_25 (margin_of_victory VARCHAR, year VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT margin_of_victory FROM table_name_25 WHERE year > 1994 AND to_par = "–14" AND score = 69 - 67 - 69 - 69 = 274
Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274?
<s>[INST]Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274? Context: CREATE TABLE table_name_25 (margin_of_victory VARCHAR, year VARCHAR, to_par VARCHAR, score VARCHAR)[/INST]SELECT margin_of_victory FROM table_name_25 WHERE year > 1994 AND to_par = "–14" AND score = 69 - 67 - 69 - 69 = 274</s>
CREATE TABLE table_name_91 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR)
SELECT MAX(swimsuit) FROM table_name_91 WHERE evening_gown > 9.175 AND interview < 8.425
What is the highest swimsuit score of the contestant with an evening gown larger than 9.175 and an interview score less than 8.425?
<s>[INST]What is the highest swimsuit score of the contestant with an evening gown larger than 9.175 and an interview score less than 8.425? Context: CREATE TABLE table_name_91 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR)[/INST]SELECT MAX(swimsuit) FROM table_name_91 WHERE evening_gown > 9.175 AND interview < 8.425</s>
CREATE TABLE table_27588823_2 (branding VARCHAR, location VARCHAR)
SELECT branding FROM table_27588823_2 WHERE location = "San Jose Del Monte"
What is the branding for the station located in san jose del monte?
<s>[INST]What is the branding for the station located in san jose del monte? Context: CREATE TABLE table_27588823_2 (branding VARCHAR, location VARCHAR)[/INST]SELECT branding FROM table_27588823_2 WHERE location = "San Jose Del Monte"</s>
CREATE TABLE table_name_80 (years_for_rockets VARCHAR, no_s_ VARCHAR)
SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6"
Which years did the Rockets number 6 play?
<s>[INST]Which years did the Rockets number 6 play? Context: CREATE TABLE table_name_80 (years_for_rockets VARCHAR, no_s_ VARCHAR)[/INST]SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6"</s>
CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, budget_plans__£m_ VARCHAR)
SELECT rate_limit__p_ FROM table_25316812_1 WHERE budget_plans__£m_ = "limit agreed"
What is the rate limit when budget plans (£m) is limit agreed?
<s>[INST]What is the rate limit when budget plans (£m) is limit agreed? Context: CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, budget_plans__£m_ VARCHAR)[/INST]SELECT rate_limit__p_ FROM table_25316812_1 WHERE budget_plans__£m_ = "limit agreed"</s>
CREATE TABLE table_name_33 (iata VARCHAR, airport VARCHAR)
SELECT iata FROM table_name_33 WHERE airport = "korla airport"
What is the IATA for Korla Airport.
<s>[INST]What is the IATA for Korla Airport. Context: CREATE TABLE table_name_33 (iata VARCHAR, airport VARCHAR)[/INST]SELECT iata FROM table_name_33 WHERE airport = "korla airport"</s>
CREATE TABLE table_name_79 (format VARCHAR, catalogue VARCHAR, region VARCHAR)
SELECT format FROM table_name_79 WHERE catalogue = "9362486152" AND region = "australia"
What format is the Catalogue 9362486152 from the region of Australia in?
<s>[INST]What format is the Catalogue 9362486152 from the region of Australia in? Context: CREATE TABLE table_name_79 (format VARCHAR, catalogue VARCHAR, region VARCHAR)[/INST]SELECT format FROM table_name_79 WHERE catalogue = "9362486152" AND region = "australia"</s>
CREATE TABLE table_name_85 (pts INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965
How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965?
<s>[INST]How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965? Context: CREATE TABLE table_name_85 (pts INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR)[/INST]SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965</s>
CREATE TABLE table_name_24 (lane INTEGER, overall_rank VARCHAR, time VARCHAR)
SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = "79" AND time > 26.1
What is the greatest lane with an overall rank of 79 and a time larger than 26.1?
<s>[INST]What is the greatest lane with an overall rank of 79 and a time larger than 26.1? Context: CREATE TABLE table_name_24 (lane INTEGER, overall_rank VARCHAR, time VARCHAR)[/INST]SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = "79" AND time > 26.1</s>
CREATE TABLE table_name_90 (rank VARCHAR, start VARCHAR, laps VARCHAR)
SELECT rank FROM table_name_90 WHERE start = "10" AND laps < 192
What's the rank when the start is 10 and the laps are fewer than 192?
<s>[INST]What's the rank when the start is 10 and the laps are fewer than 192? Context: CREATE TABLE table_name_90 (rank VARCHAR, start VARCHAR, laps VARCHAR)[/INST]SELECT rank FROM table_name_90 WHERE start = "10" AND laps < 192</s>
CREATE TABLE table_name_55 (position VARCHAR, notes VARCHAR)
SELECT position FROM table_name_55 WHERE notes = "68.76 m"
Which Position has Notes of 68.76 m?
<s>[INST]Which Position has Notes of 68.76 m? Context: CREATE TABLE table_name_55 (position VARCHAR, notes VARCHAR)[/INST]SELECT position FROM table_name_55 WHERE notes = "68.76 m"</s>
CREATE TABLE table_name_18 (road_number VARCHAR, year INTEGER)
SELECT COUNT(road_number) FROM table_name_18 WHERE year < 1922
How many road numbers are before 1922?
<s>[INST]How many road numbers are before 1922? Context: CREATE TABLE table_name_18 (road_number VARCHAR, year INTEGER)[/INST]SELECT COUNT(road_number) FROM table_name_18 WHERE year < 1922</s>
CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)
SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia"
What is the result of the match in round 1r against tunisia and on a hard surface?
<s>[INST]What is the result of the match in round 1r against tunisia and on a hard surface? Context: CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)[/INST]SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia"</s>
CREATE TABLE table_18894744_5 (high_rebounds VARCHAR, record VARCHAR)
SELECT high_rebounds FROM table_18894744_5 WHERE record = "7-1"
Name the high rebounds for record 7-1
<s>[INST]Name the high rebounds for record 7-1 Context: CREATE TABLE table_18894744_5 (high_rebounds VARCHAR, record VARCHAR)[/INST]SELECT high_rebounds FROM table_18894744_5 WHERE record = "7-1"</s>
CREATE TABLE table_1354805_3 (total VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)
SELECT total FROM table_1354805_3 WHERE number_of_dances = 11 AND competition_finish > 2.0
What is the Number of dances is 11 and competition finish is larger than 2.0 total
<s>[INST]What is the Number of dances is 11 and competition finish is larger than 2.0 total Context: CREATE TABLE table_1354805_3 (total VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)[/INST]SELECT total FROM table_1354805_3 WHERE number_of_dances = 11 AND competition_finish > 2.0</s>
CREATE TABLE table_24765815_1 (team VARCHAR, rank VARCHAR)
SELECT team FROM table_24765815_1 WHERE rank = "7th"
What team was ranked in 7th?
<s>[INST]What team was ranked in 7th? Context: CREATE TABLE table_24765815_1 (team VARCHAR, rank VARCHAR)[/INST]SELECT team FROM table_24765815_1 WHERE rank = "7th"</s>
CREATE TABLE ROLES (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)
SELECT Roles.role_description, COUNT(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING COUNT(Employees.employee_id) > 1
List roles that have more than one employee. List the role description and number of employees.
<s>[INST]List roles that have more than one employee. List the role description and number of employees. Context: CREATE TABLE ROLES (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)[/INST]SELECT Roles.role_description, COUNT(Employees.employee_id) FROM ROLES JOIN Employees ON Employees.role_code = Roles.role_code GROUP BY Employees.role_code HAVING COUNT(Employees.employee_id) > 1</s>
CREATE TABLE table_name_84 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_84 WHERE score = 68 - 71 = 139
Who is the player with a score of 68-71=139?
<s>[INST]Who is the player with a score of 68-71=139? Context: CREATE TABLE table_name_84 (player VARCHAR, score VARCHAR)[/INST]SELECT player FROM table_name_84 WHERE score = 68 - 71 = 139</s>
CREATE TABLE table_name_68 (attendance INTEGER, record VARCHAR)
SELECT MAX(attendance) FROM table_name_68 WHERE record = "29-25"
How high is the Attendance with a Record of 29-25?
<s>[INST]How high is the Attendance with a Record of 29-25? Context: CREATE TABLE table_name_68 (attendance INTEGER, record VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_68 WHERE record = "29-25"</s>
CREATE TABLE CHARACTERISTICS (Id VARCHAR)
SELECT COUNT(*) FROM CHARACTERISTICS
How many characteristics are there?
<s>[INST]How many characteristics are there? Context: CREATE TABLE CHARACTERISTICS (Id VARCHAR)[/INST]SELECT COUNT(*) FROM CHARACTERISTICS</s>
CREATE TABLE table_name_57 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT AVG(silver) FROM table_name_57 WHERE bronze < 1 AND gold > 0
What is the average for silver when bronze is less than 1, and gold is more than 0?
<s>[INST]What is the average for silver when bronze is less than 1, and gold is more than 0? Context: CREATE TABLE table_name_57 (silver INTEGER, bronze VARCHAR, gold VARCHAR)[/INST]SELECT AVG(silver) FROM table_name_57 WHERE bronze < 1 AND gold > 0</s>
CREATE TABLE table_name_73 (res VARCHAR, record VARCHAR)
SELECT res FROM table_name_73 WHERE record = "19-9"
What was the result of the fight when Tetsuji Kato's record was 19-9?
<s>[INST]What was the result of the fight when Tetsuji Kato's record was 19-9? Context: CREATE TABLE table_name_73 (res VARCHAR, record VARCHAR)[/INST]SELECT res FROM table_name_73 WHERE record = "19-9"</s>
CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_65 WHERE player = "craig stadler"
What is the country of Craig Stadler?
<s>[INST]What is the country of Craig Stadler? Context: CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_65 WHERE player = "craig stadler"</s>
CREATE TABLE table_name_16 (winners VARCHAR, runners_up VARCHAR)
SELECT winners FROM table_name_16 WHERE runners_up = "rosenborg"
Who was the winner in the competition in which the runner-up was Rosenborg?
<s>[INST]Who was the winner in the competition in which the runner-up was Rosenborg? Context: CREATE TABLE table_name_16 (winners VARCHAR, runners_up VARCHAR)[/INST]SELECT winners FROM table_name_16 WHERE runners_up = "rosenborg"</s>
CREATE TABLE table_name_51 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006
Which was the district that had first elected greater than 2006 and is democratic?
<s>[INST]Which was the district that had first elected greater than 2006 and is democratic? Context: CREATE TABLE table_name_51 (district VARCHAR, party VARCHAR, first_elected VARCHAR)[/INST]SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006</s>
CREATE TABLE table_name_22 (set_3 VARCHAR, time VARCHAR, set_2 VARCHAR)
SELECT set_3 FROM table_name_22 WHERE time = "10:00" AND set_2 = "25–19"
Which Set 3 has a Time of 10:00, and a Set 2 of 25–19?
<s>[INST]Which Set 3 has a Time of 10:00, and a Set 2 of 25–19? Context: CREATE TABLE table_name_22 (set_3 VARCHAR, time VARCHAR, set_2 VARCHAR)[/INST]SELECT set_3 FROM table_name_22 WHERE time = "10:00" AND set_2 = "25–19"</s>