context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_82 (purse VARCHAR, year VARCHAR, winner VARCHAR)
SELECT purse FROM table_name_82 WHERE year < 2013 AND winner = "muhannak"
What is the purse for the year earlier than 2013 and muhannak was the winner?
<s>[INST]What is the purse for the year earlier than 2013 and muhannak was the winner? Context: CREATE TABLE table_name_82 (purse VARCHAR, year VARCHAR, winner VARCHAR)[/INST]SELECT purse FROM table_name_82 WHERE year < 2013 AND winner = "muhannak"</s>
CREATE TABLE table_name_89 (position VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR)
SELECT position FROM table_name_89 WHERE no_s_ = "11" AND years_for_rockets = "1989-95"
Name the position for number 11 and years on the rockets for 1989-95
<s>[INST]Name the position for number 11 and years on the rockets for 1989-95 Context: CREATE TABLE table_name_89 (position VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR)[/INST]SELECT position FROM table_name_89 WHERE no_s_ = "11" AND years_for_rockets = "1989-95"</s>
CREATE TABLE table_name_84 (name VARCHAR, lane VARCHAR)
SELECT name FROM table_name_84 WHERE lane = 5
Who was in Lane 5?
<s>[INST]Who was in Lane 5? Context: CREATE TABLE table_name_84 (name VARCHAR, lane VARCHAR)[/INST]SELECT name FROM table_name_84 WHERE lane = 5</s>
CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR)
SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = "0,43407"
What's the Yellow fertility rate when Brazil is 0,43407?
<s>[INST]What's the Yellow fertility rate when Brazil is 0,43407? Context: CREATE TABLE table_name_94 (yellow_109_percentage VARCHAR, brazil_100_percentage VARCHAR)[/INST]SELECT yellow_109_percentage FROM table_name_94 WHERE brazil_100_percentage = "0,43407"</s>
CREATE TABLE table_name_1 (swimsuit INTEGER, interview INTEGER)
SELECT MAX(swimsuit) FROM table_name_1 WHERE interview < 8.46
Name the most swimsuit for interview less than 8.46
<s>[INST]Name the most swimsuit for interview less than 8.46 Context: CREATE TABLE table_name_1 (swimsuit INTEGER, interview INTEGER)[/INST]SELECT MAX(swimsuit) FROM table_name_1 WHERE interview < 8.46</s>
CREATE TABLE table_12407546_1 (riding VARCHAR, athlete__noc_ VARCHAR)
SELECT riding FROM table_12407546_1 WHERE athlete__noc_ = "Eduardo Salas"
What's Eduardo Salas' riding score?
<s>[INST]What's Eduardo Salas' riding score? Context: CREATE TABLE table_12407546_1 (riding VARCHAR, athlete__noc_ VARCHAR)[/INST]SELECT riding FROM table_12407546_1 WHERE athlete__noc_ = "Eduardo Salas"</s>
CREATE TABLE table_name_62 (draw INTEGER, place INTEGER)
SELECT MIN(draw) FROM table_name_62 WHERE place > 4
what is the least draw when the place is higher than 4?
<s>[INST]what is the least draw when the place is higher than 4? Context: CREATE TABLE table_name_62 (draw INTEGER, place INTEGER)[/INST]SELECT MIN(draw) FROM table_name_62 WHERE place > 4</s>
CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR)
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Arthur Albert"
If Arthur Albert is the director, what is the maximum series number?
<s>[INST]If Arthur Albert is the director, what is the maximum series number? Context: CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR)[/INST]SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Arthur Albert"</s>
CREATE TABLE table_name_93 (winning_driver VARCHAR, year VARCHAR)
SELECT winning_driver FROM table_name_93 WHERE year = "1956"
Who was the winning driver in 1956?
<s>[INST]Who was the winning driver in 1956? Context: CREATE TABLE table_name_93 (winning_driver VARCHAR, year VARCHAR)[/INST]SELECT winning_driver FROM table_name_93 WHERE year = "1956"</s>
CREATE TABLE table_name_55 (laid_down VARCHAR, ship VARCHAR)
SELECT laid_down FROM table_name_55 WHERE ship = "hyperion"
What is the Laid down for the Hyperion ship?
<s>[INST]What is the Laid down for the Hyperion ship? Context: CREATE TABLE table_name_55 (laid_down VARCHAR, ship VARCHAR)[/INST]SELECT laid_down FROM table_name_55 WHERE ship = "hyperion"</s>
CREATE TABLE table_name_96 (game INTEGER, opponent VARCHAR, december VARCHAR)
SELECT AVG(game) FROM table_name_96 WHERE opponent = "phoenix coyotes" AND december < 9
Which game has an opponent of Phoenix Coyotes and was before Dec 9?
<s>[INST]Which game has an opponent of Phoenix Coyotes and was before Dec 9? Context: CREATE TABLE table_name_96 (game INTEGER, opponent VARCHAR, december VARCHAR)[/INST]SELECT AVG(game) FROM table_name_96 WHERE opponent = "phoenix coyotes" AND december < 9</s>
CREATE TABLE table_name_63 (season INTEGER, number_of_clubs VARCHAR, runners_up VARCHAR)
SELECT SUM(season) FROM table_name_63 WHERE number_of_clubs = 8 AND runners_up = "shanghai"
What is the sum of the season with 8 clubs and shanghai as the runners-up?
<s>[INST]What is the sum of the season with 8 clubs and shanghai as the runners-up? Context: CREATE TABLE table_name_63 (season INTEGER, number_of_clubs VARCHAR, runners_up VARCHAR)[/INST]SELECT SUM(season) FROM table_name_63 WHERE number_of_clubs = 8 AND runners_up = "shanghai"</s>
CREATE TABLE table_22355_65 (total_min_2_medals_ INTEGER)
SELECT MIN(total_min_2_medals_) FROM table_22355_65
What is the lowest overall number for total(min. 2 medals)?
<s>[INST]What is the lowest overall number for total(min. 2 medals)? Context: CREATE TABLE table_22355_65 (total_min_2_medals_ INTEGER)[/INST]SELECT MIN(total_min_2_medals_) FROM table_22355_65</s>
CREATE TABLE table_name_1 (launched VARCHAR, languages VARCHAR)
SELECT launched FROM table_name_1 WHERE languages = "cora huichol tepehuano nahuatl"
What is the launched date of the station in cora huichol tepehuano nahuatl language?
<s>[INST]What is the launched date of the station in cora huichol tepehuano nahuatl language? Context: CREATE TABLE table_name_1 (launched VARCHAR, languages VARCHAR)[/INST]SELECT launched FROM table_name_1 WHERE languages = "cora huichol tepehuano nahuatl"</s>
CREATE TABLE table_1341663_11 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans"
In the race involving Billy Lee Evans as the seated Representative, was he elected again?
<s>[INST]In the race involving Billy Lee Evans as the seated Representative, was he elected again? Context: CREATE TABLE table_1341663_11 (result VARCHAR, incumbent VARCHAR)[/INST]SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans"</s>
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT 1980 FROM table_name_48 WHERE 1984 = "1r" AND 1981 = "1r"
What is the 1980 value with a 1r in 1984 and a 1r in 1981?
<s>[INST]What is the 1980 value with a 1r in 1984 and a 1r in 1981? Context: CREATE TABLE table_name_48 (Id VARCHAR)[/INST]SELECT 1980 FROM table_name_48 WHERE 1984 = "1r" AND 1981 = "1r"</s>
CREATE TABLE table_name_5 (realization VARCHAR, phoneme VARCHAR, example VARCHAR)
SELECT realization FROM table_name_5 WHERE phoneme = "/i/" AND example = "/id藧a/"
Name the realization for phoneme of /i/ and example of /id藧a/
<s>[INST]Name the realization for phoneme of /i/ and example of /id藧a/ Context: CREATE TABLE table_name_5 (realization VARCHAR, phoneme VARCHAR, example VARCHAR)[/INST]SELECT realization FROM table_name_5 WHERE phoneme = "/i/" AND example = "/id藧a/"</s>
CREATE TABLE table_25561038_1 (season VARCHAR, position VARCHAR)
SELECT season FROM table_25561038_1 WHERE position = "1st"
List the year in which the driver was in 1st place.
<s>[INST]List the year in which the driver was in 1st place. Context: CREATE TABLE table_25561038_1 (season VARCHAR, position VARCHAR)[/INST]SELECT season FROM table_25561038_1 WHERE position = "1st"</s>
CREATE TABLE table_name_72 (scored INTEGER, date VARCHAR)
SELECT SUM(scored) FROM table_name_72 WHERE date = "22 february 2006"
How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?
<s>[INST]How many times did Sham Kwok Fai score in the game that was played on 22 February 2006? Context: CREATE TABLE table_name_72 (scored INTEGER, date VARCHAR)[/INST]SELECT SUM(scored) FROM table_name_72 WHERE date = "22 february 2006"</s>