context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_29163303_2 (partner VARCHAR, championship VARCHAR)
SELECT partner FROM table_29163303_2 WHERE championship = "US Open (2)"
Who was Bob Bryan's partner in the Championship where the result is US Open (2)?
<s>[INST]Who was Bob Bryan's partner in the Championship where the result is US Open (2)? Context: CREATE TABLE table_29163303_2 (partner VARCHAR, championship VARCHAR)[/INST]SELECT partner FROM table_29163303_2 WHERE championship = "US Open (2)"</s>
CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR)
SELECT county FROM table_name_36 WHERE year_left = "1998"
what is the county when the year left is 1998?
<s>[INST]what is the county when the year left is 1998? Context: CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR)[/INST]SELECT county FROM table_name_36 WHERE year_left = "1998"</s>
CREATE TABLE table_name_1 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_1 WHERE record = "4-2"
Tell me the method with a record of 4-2
<s>[INST]Tell me the method with a record of 4-2 Context: CREATE TABLE table_name_1 (method VARCHAR, record VARCHAR)[/INST]SELECT method FROM table_name_1 WHERE record = "4-2"</s>
CREATE TABLE table_name_24 (attendance VARCHAR, loss VARCHAR)
SELECT attendance FROM table_name_24 WHERE loss = "drese (0-2)"
which attendance has a Loss of drese (0-2)?
<s>[INST]which attendance has a Loss of drese (0-2)? Context: CREATE TABLE table_name_24 (attendance VARCHAR, loss VARCHAR)[/INST]SELECT attendance FROM table_name_24 WHERE loss = "drese (0-2)"</s>
CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_85 WHERE venue = "mcg"
What was the date of the game at MCG?
<s>[INST]What was the date of the game at MCG? Context: CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)[/INST]SELECT date FROM table_name_85 WHERE venue = "mcg"</s>
CREATE TABLE table_name_85 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_85 WHERE competition = "2010 fifa world cup qualification"
Tell me the date for 2010 fifa world cup qualification
<s>[INST]Tell me the date for 2010 fifa world cup qualification Context: CREATE TABLE table_name_85 (date VARCHAR, competition VARCHAR)[/INST]SELECT date FROM table_name_85 WHERE competition = "2010 fifa world cup qualification"</s>
CREATE TABLE table_name_59 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_59 WHERE attendance > 20 OFFSET 682
What is the date of the game when attendance is more than 20,682?
<s>[INST]What is the date of the game when attendance is more than 20,682? Context: CREATE TABLE table_name_59 (date VARCHAR, attendance INTEGER)[/INST]SELECT date FROM table_name_59 WHERE attendance > 20 OFFSET 682</s>
CREATE TABLE table_name_28 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_28 WHERE score = 76 - 68 = 144
Which player scored 76-68=144?
<s>[INST]Which player scored 76-68=144? Context: CREATE TABLE table_name_28 (player VARCHAR, score VARCHAR)[/INST]SELECT player FROM table_name_28 WHERE score = 76 - 68 = 144</s>
CREATE TABLE candidate (people_id VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)
SELECT t1.name, t1.sex, MIN(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex
Find the name of the candidates whose oppose percentage is the lowest for each sex.
<s>[INST]Find the name of the candidates whose oppose percentage is the lowest for each sex. Context: CREATE TABLE candidate (people_id VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)[/INST]SELECT t1.name, t1.sex, MIN(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2....
CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Employee_ID VARCHAR)
SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
<s>[INST]What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? Context: CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Emplo...
CREATE TABLE AIRLINES (Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR)
SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = "USA"
List all airline names and their abbreviations in "USA".
<s>[INST]List all airline names and their abbreviations in "USA". Context: CREATE TABLE AIRLINES (Airline VARCHAR, Abbreviation VARCHAR, Country VARCHAR)[/INST]SELECT Airline, Abbreviation FROM AIRLINES WHERE Country = "USA"</s>
CREATE TABLE table_name_81 (december VARCHAR, score VARCHAR, game VARCHAR)
SELECT COUNT(december) FROM table_name_81 WHERE score = "5–2" AND game < 27
How much December has a Score of 5–2, and a Game smaller than 27?
<s>[INST]How much December has a Score of 5–2, and a Game smaller than 27? Context: CREATE TABLE table_name_81 (december VARCHAR, score VARCHAR, game VARCHAR)[/INST]SELECT COUNT(december) FROM table_name_81 WHERE score = "5–2" AND game < 27</s>
CREATE TABLE CARS_DATA (horsepower VARCHAR, accelerate VARCHAR)
SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1
What is the horsepower of the car with the largest accelerate?
<s>[INST]What is the horsepower of the car with the largest accelerate? Context: CREATE TABLE CARS_DATA (horsepower VARCHAR, accelerate VARCHAR)[/INST]SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1</s>
CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175
In what week was the game on August 24, 1956 played in front of 40,175 fans?
<s>[INST]In what week was the game on August 24, 1956 played in front of 40,175 fans? Context: CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR)[/INST]SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175</s>
CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14"
What's the frequency when the identifier is cbf-fm-14 having a class of A?
<s>[INST]What's the frequency when the identifier is cbf-fm-14 having a class of A? Context: CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)[/INST]SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14"</s>
CREATE TABLE table_20350118_1 (total INTEGER, county VARCHAR)
SELECT MIN(total) FROM table_20350118_1 WHERE county = "Cabarrus"
How many people voted in Cabarrus county?
<s>[INST]How many people voted in Cabarrus county? Context: CREATE TABLE table_20350118_1 (total INTEGER, county VARCHAR)[/INST]SELECT MIN(total) FROM table_20350118_1 WHERE county = "Cabarrus"</s>
CREATE TABLE table_14853156_2 (cuts_made INTEGER, best_finish VARCHAR)
SELECT MAX(cuts_made) FROM table_14853156_2 WHERE best_finish = "T4"
What is the highest number of cuts made when her best finish is t4?
<s>[INST]What is the highest number of cuts made when her best finish is t4? Context: CREATE TABLE table_14853156_2 (cuts_made INTEGER, best_finish VARCHAR)[/INST]SELECT MAX(cuts_made) FROM table_14853156_2 WHERE best_finish = "T4"</s>
CREATE TABLE table_13258851_2 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_13258851_2 WHERE opponent = "Kansas City Chiefs"
What was the date of the game against Kansas City Chiefs?
<s>[INST]What was the date of the game against Kansas City Chiefs? Context: CREATE TABLE table_13258851_2 (date VARCHAR, opponent VARCHAR)[/INST]SELECT date FROM table_13258851_2 WHERE opponent = "Kansas City Chiefs"</s>
CREATE TABLE table_name_23 (competition VARCHAR, score VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_23 WHERE score = "2-0" AND venue = "amman"
What competition resulted in 2-0 score, hosted in Amman?
<s>[INST]What competition resulted in 2-0 score, hosted in Amman? Context: CREATE TABLE table_name_23 (competition VARCHAR, score VARCHAR, venue VARCHAR)[/INST]SELECT competition FROM table_name_23 WHERE score = "2-0" AND venue = "amman"</s>
CREATE TABLE table_name_8 (finish VARCHAR, wins VARCHAR)
SELECT finish FROM table_name_8 WHERE wins = "28"
What is the Finish of 28 Wins?
<s>[INST]What is the Finish of 28 Wins? Context: CREATE TABLE table_name_8 (finish VARCHAR, wins VARCHAR)[/INST]SELECT finish FROM table_name_8 WHERE wins = "28"</s>
CREATE TABLE table_name_70 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_70 WHERE competition = "2003 eaff championship preliminary" AND date = "2 march 2003"
What is the result of 2003 eaff championship preliminary on 2 march 2003?
<s>[INST]What is the result of 2003 eaff championship preliminary on 2 march 2003? Context: CREATE TABLE table_name_70 (result VARCHAR, competition VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_70 WHERE competition = "2003 eaff championship preliminary" AND date = "2 march 2003"</s>
CREATE TABLE table_26040604_1 (dram_type VARCHAR, sm_count VARCHAR)
SELECT dram_type FROM table_26040604_1 WHERE sm_count = 6
What was the DRAM type of an SM Count of 6?
<s>[INST]What was the DRAM type of an SM Count of 6? Context: CREATE TABLE table_26040604_1 (dram_type VARCHAR, sm_count VARCHAR)[/INST]SELECT dram_type FROM table_26040604_1 WHERE sm_count = 6</s>
CREATE TABLE table_name_95 (debut_year INTEGER, player VARCHAR, games VARCHAR)
SELECT MAX(debut_year) FROM table_name_95 WHERE player = "noel carroll" AND games < 12
Which Debut year has a Player of noel carroll, and Games smaller than 12?
<s>[INST]Which Debut year has a Player of noel carroll, and Games smaller than 12? Context: CREATE TABLE table_name_95 (debut_year INTEGER, player VARCHAR, games VARCHAR)[/INST]SELECT MAX(debut_year) FROM table_name_95 WHERE player = "noel carroll" AND games < 12</s>
CREATE TABLE table_25356350_2 (viewers__in_millions_ VARCHAR, series__number VARCHAR)
SELECT viewers__in_millions_ FROM table_25356350_2 WHERE series__number = 1
How many viewers (in millions) did episode 1 have?
<s>[INST]How many viewers (in millions) did episode 1 have? Context: CREATE TABLE table_25356350_2 (viewers__in_millions_ VARCHAR, series__number VARCHAR)[/INST]SELECT viewers__in_millions_ FROM table_25356350_2 WHERE series__number = 1</s>
CREATE TABLE table_name_99 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_99 WHERE catalog = "f4 87199"
What is the Format o Catalog F4 87199?
<s>[INST]What is the Format o Catalog F4 87199? Context: CREATE TABLE table_name_99 (format VARCHAR, catalog VARCHAR)[/INST]SELECT format FROM table_name_99 WHERE catalog = "f4 87199"</s>
CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR)
SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1
How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.
<s>[INST]How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id. Context: CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR)[/INST]SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlement...
CREATE TABLE table_name_94 (home_team VARCHAR, game VARCHAR)
SELECT home_team FROM table_name_94 WHERE game = "game 2"
Who is the home team in game 2?
<s>[INST]Who is the home team in game 2? Context: CREATE TABLE table_name_94 (home_team VARCHAR, game VARCHAR)[/INST]SELECT home_team FROM table_name_94 WHERE game = "game 2"</s>
CREATE TABLE table_name_75 (verb VARCHAR)
SELECT 2 AS __vf_ FROM table_name_75 WHERE verb = "dhoa"
For the verb dhoa, what is the 2VF?
<s>[INST]For the verb dhoa, what is the 2VF? Context: CREATE TABLE table_name_75 (verb VARCHAR)[/INST]SELECT 2 AS __vf_ FROM table_name_75 WHERE verb = "dhoa"</s>
CREATE TABLE table_name_66 (constructor VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_66 WHERE time_retired = "1:36:38.887"
Who built the car that has a Time/Retired of 1:36:38.887?
<s>[INST]Who built the car that has a Time/Retired of 1:36:38.887? Context: CREATE TABLE table_name_66 (constructor VARCHAR, time_retired VARCHAR)[/INST]SELECT constructor FROM table_name_66 WHERE time_retired = "1:36:38.887"</s>
CREATE TABLE table_name_22 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_22 WHERE player = "ernie els"
What was the Money for Player Ernie Els?
<s>[INST]What was the Money for Player Ernie Els? Context: CREATE TABLE table_name_22 (money___$__ VARCHAR, player VARCHAR)[/INST]SELECT money___$__ FROM table_name_22 WHERE player = "ernie els"</s>
CREATE TABLE table_name_83 (area VARCHAR, _percentage_other VARCHAR, _percentage_muslim VARCHAR)
SELECT area FROM table_name_83 WHERE _percentage_other = "–" AND _percentage_muslim = "95%"
What area has a % Other of –, and a % Muslim of 95%?
<s>[INST]What area has a % Other of –, and a % Muslim of 95%? Context: CREATE TABLE table_name_83 (area VARCHAR, _percentage_other VARCHAR, _percentage_muslim VARCHAR)[/INST]SELECT area FROM table_name_83 WHERE _percentage_other = "–" AND _percentage_muslim = "95%"</s>
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_12 WHERE date = "6 december 1986"
The game played on 6 December 1986 had what score?
<s>[INST]The game played on 6 December 1986 had what score? Context: CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_12 WHERE date = "6 december 1986"</s>
CREATE TABLE student (stuid VARCHAR, age INTEGER); CREATE TABLE has_pet (stuid VARCHAR)
SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20
Find number of pets owned by students who are older than 20.
<s>[INST]Find number of pets owned by students who are older than 20. Context: CREATE TABLE student (stuid VARCHAR, age INTEGER); CREATE TABLE has_pet (stuid VARCHAR)[/INST]SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20</s>
CREATE TABLE table_name_31 (date_of_birth VARCHAR, height VARCHAR)
SELECT date_of_birth FROM table_name_31 WHERE height = "head coach: adel shamala"
What is Date of Birth, when Height is "Head Coach: Adel Shamala"?
<s>[INST]What is Date of Birth, when Height is "Head Coach: Adel Shamala"? Context: CREATE TABLE table_name_31 (date_of_birth VARCHAR, height VARCHAR)[/INST]SELECT date_of_birth FROM table_name_31 WHERE height = "head coach: adel shamala"</s>
CREATE TABLE table_name_93 (release_date VARCHAR, title VARCHAR, production_number VARCHAR, director VARCHAR)
SELECT release_date FROM table_name_93 WHERE production_number < 1495 AND director = "robert mckimson" AND title = "mouse-placed kitten"
What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?
<s>[INST]What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson? Context: CREATE TABLE table_name_93 (release_date VARCHAR, title VARCHAR, production_number VARCHAR, director VARCHAR)[/INST]SELECT release_date FROM table_name_93 WHERE producti...
CREATE TABLE table_name_51 (fcc_info VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_51 WHERE city_of_license = "irmo, south carolina"
What is the FCC info of the translator with an Irmo, South Carolina city license?
<s>[INST]What is the FCC info of the translator with an Irmo, South Carolina city license? Context: CREATE TABLE table_name_51 (fcc_info VARCHAR, city_of_license VARCHAR)[/INST]SELECT fcc_info FROM table_name_51 WHERE city_of_license = "irmo, south carolina"</s>
CREATE TABLE table_name_58 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT player FROM table_name_58 WHERE round < 13 AND pick = 74
Who is the player from a round less than 13 and has a pick of 74?
<s>[INST]Who is the player from a round less than 13 and has a pick of 74? Context: CREATE TABLE table_name_58 (player VARCHAR, round VARCHAR, pick VARCHAR)[/INST]SELECT player FROM table_name_58 WHERE round < 13 AND pick = 74</s>
CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_hd_rating__millions_ VARCHAR)
SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_hd_rating__millions_ = "1.12"
How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?
<s>[INST]How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million? Context: CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_hd_rating__millions_ VARCHAR)[/INST]SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_hd_rati...
CREATE TABLE table_1893815_1 (release_date VARCHAR, album_number VARCHAR)
SELECT release_date FROM table_1893815_1 WHERE album_number = "2nd"
Name the release date for album # 2nd
<s>[INST]Name the release date for album # 2nd Context: CREATE TABLE table_1893815_1 (release_date VARCHAR, album_number VARCHAR)[/INST]SELECT release_date FROM table_1893815_1 WHERE album_number = "2nd"</s>
CREATE TABLE table_name_27 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_27 WHERE laps > 66 AND grid = 5
Who drove the car with over 66 laps with a grid of 5?
<s>[INST]Who drove the car with over 66 laps with a grid of 5? Context: CREATE TABLE table_name_27 (driver VARCHAR, laps VARCHAR, grid VARCHAR)[/INST]SELECT driver FROM table_name_27 WHERE laps > 66 AND grid = 5</s>
CREATE TABLE table_name_48 (played INTEGER, first_game VARCHAR, drawn VARCHAR)
SELECT AVG(played) FROM table_name_48 WHERE first_game = 1997 AND drawn > 0
What is the average number of games played associated with a first game in 1997 and over 0 games drawn?
<s>[INST]What is the average number of games played associated with a first game in 1997 and over 0 games drawn? Context: CREATE TABLE table_name_48 (played INTEGER, first_game VARCHAR, drawn VARCHAR)[/INST]SELECT AVG(played) FROM table_name_48 WHERE first_game = 1997 AND drawn > 0</s>
CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)
SELECT AVG(finish) FROM table_name_35 WHERE start > 3 AND engine = "honda" AND year = 2011
What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?
<s>[INST]What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year? Context: CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)[/INST]SELECT AVG(finish) FROM table_name_35 WHERE start > 3 AND engine = "honda" AND year = 2011</s>
CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = "nancy"
Moving from Nancy after 2005, what is listed as the lowest rank?
<s>[INST]Moving from Nancy after 2005, what is listed as the lowest rank? Context: CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR)[/INST]SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = "nancy"</s>
CREATE TABLE table_name_87 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_87 WHERE venue = "princes park"
What is the home team for the Princes Park venue?
<s>[INST]What is the home team for the Princes Park venue? Context: CREATE TABLE table_name_87 (home_team VARCHAR, venue VARCHAR)[/INST]SELECT home_team FROM table_name_87 WHERE venue = "princes park"</s>
CREATE TABLE table_name_88 (nation VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT nation FROM table_name_88 WHERE bronze > 0 AND gold > 0 AND silver > 0 AND rank = "5"
Which nation has a bronze greater than 0, a gold greater than 0, a silver greater than 0, and 5 as the rank?
<s>[INST]Which nation has a bronze greater than 0, a gold greater than 0, a silver greater than 0, and 5 as the rank? Context: CREATE TABLE table_name_88 (nation VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR)[/INST]SELECT nation FROM table_name_88 WHERE bronze > 0 AND gold > 0 AND silver > 0 AND r...
CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR)
SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name
Show all product names and the number of customers having an order on each product.
<s>[INST]Show all product names and the number of customers having an order on each product. Context: CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR)[/INST]SELECT T2.product_name, COUNT(*) FROM Orde...
CREATE TABLE table_name_44 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_44 WHERE school = "washington"
What is the position of the player for Washington school?
<s>[INST]What is the position of the player for Washington school? Context: CREATE TABLE table_name_44 (position VARCHAR, school VARCHAR)[/INST]SELECT position FROM table_name_44 WHERE school = "washington"</s>
CREATE TABLE table_25346763_1 (Major VARCHAR, year_opened VARCHAR)
SELECT Major AS facility FROM table_25346763_1 WHERE year_opened = "1968"
Is the facility opened in 1968 a major facility?
<s>[INST]Is the facility opened in 1968 a major facility? Context: CREATE TABLE table_25346763_1 (Major VARCHAR, year_opened VARCHAR)[/INST]SELECT Major AS facility FROM table_25346763_1 WHERE year_opened = "1968"</s>
CREATE TABLE Player (weight INTEGER)
SELECT AVG(weight) FROM Player
What is the average weight of all players?
<s>[INST]What is the average weight of all players? Context: CREATE TABLE Player (weight INTEGER)[/INST]SELECT AVG(weight) FROM Player</s>
CREATE TABLE table_12792876_3 (drawn VARCHAR, tries_against VARCHAR)
SELECT drawn FROM table_12792876_3 WHERE tries_against = "89"
What was the drawn when the tries against was 89?
<s>[INST]What was the drawn when the tries against was 89? Context: CREATE TABLE table_12792876_3 (drawn VARCHAR, tries_against VARCHAR)[/INST]SELECT drawn FROM table_12792876_3 WHERE tries_against = "89"</s>
CREATE TABLE table_name_40 (duration VARCHAR, spacecraft VARCHAR)
SELECT duration FROM table_name_40 WHERE spacecraft = "expedition 20 iss zvezda"
What is the duration of the Expedition 20 ISS Zvezda?
<s>[INST]What is the duration of the Expedition 20 ISS Zvezda? Context: CREATE TABLE table_name_40 (duration VARCHAR, spacecraft VARCHAR)[/INST]SELECT duration FROM table_name_40 WHERE spacecraft = "expedition 20 iss zvezda"</s>
CREATE TABLE table_name_67 (single VARCHAR, artist VARCHAR)
SELECT single FROM table_name_67 WHERE artist = "queen"
what is the single of the queen
<s>[INST]what is the single of the queen Context: CREATE TABLE table_name_67 (single VARCHAR, artist VARCHAR)[/INST]SELECT single FROM table_name_67 WHERE artist = "queen"</s>
CREATE TABLE table_name_9 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_name_9 WHERE team = "oklahoma city"
Where was the game played when the opponent was Oklahoma City, and what was the attendance?
<s>[INST]Where was the game played when the opponent was Oklahoma City, and what was the attendance? Context: CREATE TABLE table_name_9 (location_attendance VARCHAR, team VARCHAR)[/INST]SELECT location_attendance FROM table_name_9 WHERE team = "oklahoma city"</s>
CREATE TABLE table_name_70 (regular_season___preseason VARCHAR, date VARCHAR)
SELECT regular_season___preseason FROM table_name_70 WHERE date = "august 25, 2007"
What type of regular season/preseason game was played on August 25, 2007?
<s>[INST]What type of regular season/preseason game was played on August 25, 2007? Context: CREATE TABLE table_name_70 (regular_season___preseason VARCHAR, date VARCHAR)[/INST]SELECT regular_season___preseason FROM table_name_70 WHERE date = "august 25, 2007"</s>
CREATE TABLE table_name_19 (october INTEGER, game INTEGER)
SELECT MAX(october) FROM table_name_19 WHERE game < 1
Name the most october for game less than 1
<s>[INST]Name the most october for game less than 1 Context: CREATE TABLE table_name_19 (october INTEGER, game INTEGER)[/INST]SELECT MAX(october) FROM table_name_19 WHERE game < 1</s>
CREATE TABLE table_1245350_1 (quattroporte_iv VARCHAR, units_produced VARCHAR)
SELECT quattroporte_iv FROM table_1245350_1 WHERE units_produced = 340
What type of quattroporte iv only produced 340 units?
<s>[INST]What type of quattroporte iv only produced 340 units? Context: CREATE TABLE table_1245350_1 (quattroporte_iv VARCHAR, units_produced VARCHAR)[/INST]SELECT quattroporte_iv FROM table_1245350_1 WHERE units_produced = 340</s>
CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_93 WHERE tie_no = "replay" AND home_team = "huddersfield town"
What is the date of the match with a home team of Huddersfield Town and was a replay tie?
<s>[INST]What is the date of the match with a home team of Huddersfield Town and was a replay tie? Context: CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR, home_team VARCHAR)[/INST]SELECT date FROM table_name_93 WHERE tie_no = "replay" AND home_team = "huddersfield town"</s>
CREATE TABLE table_name_18 (position VARCHAR, college VARCHAR, overall VARCHAR)
SELECT position FROM table_name_18 WHERE college = "washington" AND overall = 46
Which Position has a College of washington, and an Overall of 46?
<s>[INST]Which Position has a College of washington, and an Overall of 46? Context: CREATE TABLE table_name_18 (position VARCHAR, college VARCHAR, overall VARCHAR)[/INST]SELECT position FROM table_name_18 WHERE college = "washington" AND overall = 46</s>
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_49 WHERE week < 8 AND result = "l 28-17"
Who was the opponent before week 8 when the result was l 28-17?
<s>[INST]Who was the opponent before week 8 when the result was l 28-17? Context: CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_49 WHERE week < 8 AND result = "l 28-17"</s>
CREATE TABLE table_21100348_15 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_21100348_15 WHERE player = "Tim Paine"
What is the rank of Tim Paine?
<s>[INST]What is the rank of Tim Paine? Context: CREATE TABLE table_21100348_15 (rank VARCHAR, player VARCHAR)[/INST]SELECT rank FROM table_21100348_15 WHERE player = "Tim Paine"</s>
CREATE TABLE table_18607260_6 (wins INTEGER, losses VARCHAR)
SELECT MIN(wins) FROM table_18607260_6 WHERE losses = 5
Name the least wins for 5 losses
<s>[INST]Name the least wins for 5 losses Context: CREATE TABLE table_18607260_6 (wins INTEGER, losses VARCHAR)[/INST]SELECT MIN(wins) FROM table_18607260_6 WHERE losses = 5</s>
CREATE TABLE table_name_99 (total VARCHAR, usca VARCHAR, joint_music_award VARCHAR, rthk VARCHAR)
SELECT total FROM table_name_99 WHERE joint_music_award = "1" AND rthk = "4" AND usca = "4"
What is the Total with a Joint Music Award of 1, RTHK of 4, and USCA of 4?
<s>[INST]What is the Total with a Joint Music Award of 1, RTHK of 4, and USCA of 4? Context: CREATE TABLE table_name_99 (total VARCHAR, usca VARCHAR, joint_music_award VARCHAR, rthk VARCHAR)[/INST]SELECT total FROM table_name_99 WHERE joint_music_award = "1" AND rthk = "4" AND usca = "4"</s>
CREATE TABLE table_name_23 (drivers VARCHAR, laps VARCHAR, class VARCHAR)
SELECT drivers FROM table_name_23 WHERE laps = 133 AND class = "oc"
Who are the drivers with 133 laps in OC class?
<s>[INST]Who are the drivers with 133 laps in OC class? Context: CREATE TABLE table_name_23 (drivers VARCHAR, laps VARCHAR, class VARCHAR)[/INST]SELECT drivers FROM table_name_23 WHERE laps = 133 AND class = "oc"</s>
CREATE TABLE table_name_60 (draws INTEGER, result VARCHAR, losses VARCHAR)
SELECT MIN(draws) FROM table_name_60 WHERE result = "runner-up" AND losses > 1
What is the smallest Draws with a Result of runner-up, and Losses larger than 1?
<s>[INST]What is the smallest Draws with a Result of runner-up, and Losses larger than 1? Context: CREATE TABLE table_name_60 (draws INTEGER, result VARCHAR, losses VARCHAR)[/INST]SELECT MIN(draws) FROM table_name_60 WHERE result = "runner-up" AND losses > 1</s>
CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289
What Player has a To par of +1 and the Score 75-70-71-73=289?
<s>[INST]What Player has a To par of +1 and the Score 75-70-71-73=289? Context: CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR)[/INST]SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289</s>
CREATE TABLE table_11960610_10 (date VARCHAR, high_points VARCHAR)
SELECT date FROM table_11960610_10 WHERE high_points = "Deng (20)"
What is the date deng (20) had high points?
<s>[INST]What is the date deng (20) had high points? Context: CREATE TABLE table_11960610_10 (date VARCHAR, high_points VARCHAR)[/INST]SELECT date FROM table_11960610_10 WHERE high_points = "Deng (20)"</s>
CREATE TABLE table_name_53 (draws INTEGER, losses VARCHAR, season VARCHAR)
SELECT SUM(draws) FROM table_name_53 WHERE losses > 16 AND season > 1966
Which Draws have Losses larger than 16, and a Season larger than 1966?
<s>[INST]Which Draws have Losses larger than 16, and a Season larger than 1966? Context: CREATE TABLE table_name_53 (draws INTEGER, losses VARCHAR, season VARCHAR)[/INST]SELECT SUM(draws) FROM table_name_53 WHERE losses > 16 AND season > 1966</s>
CREATE TABLE table_262476_3 (founded INTEGER, institution VARCHAR)
SELECT MAX(founded) FROM table_262476_3 WHERE institution = "Alfred University"
When was alfred university founded?
<s>[INST]When was alfred university founded? Context: CREATE TABLE table_262476_3 (founded INTEGER, institution VARCHAR)[/INST]SELECT MAX(founded) FROM table_262476_3 WHERE institution = "Alfred University"</s>
CREATE TABLE table_name_61 (rank INTEGER, constituency VARCHAR, swing_to_gain VARCHAR)
SELECT MIN(rank) FROM table_name_61 WHERE constituency = "edinburgh northern and leith" AND swing_to_gain < 4.16
what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?
<s>[INST]what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16? Context: CREATE TABLE table_name_61 (rank INTEGER, constituency VARCHAR, swing_to_gain VARCHAR)[/INST]SELECT MIN(rank) FROM table_name_61 WHERE constituency = "edinburgh northern and leith" AN...
CREATE TABLE table_25800134_2 (title VARCHAR, airdate VARCHAR)
SELECT title FROM table_25800134_2 WHERE airdate = "May 10, 1958"
What is the title of the episode that aired on May 10, 1958?
<s>[INST]What is the title of the episode that aired on May 10, 1958? Context: CREATE TABLE table_25800134_2 (title VARCHAR, airdate VARCHAR)[/INST]SELECT title FROM table_25800134_2 WHERE airdate = "May 10, 1958"</s>
CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)
SELECT max_pressure FROM table_173103_1 WHERE cartridge = ".38 Long Colt"
What is the max pressure of the .38 long colt cartridge?
<s>[INST]What is the max pressure of the .38 long colt cartridge? Context: CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)[/INST]SELECT max_pressure FROM table_173103_1 WHERE cartridge = ".38 Long Colt"</s>
CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR)
SELECT location_attendance FROM table_name_98 WHERE high_points = "andrew bogut (17)"
Can you tell me Location Attendance that has the High points of andrew bogut (17)?
<s>[INST]Can you tell me Location Attendance that has the High points of andrew bogut (17)? Context: CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR)[/INST]SELECT location_attendance FROM table_name_98 WHERE high_points = "andrew bogut (17)"</s>
CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR)
SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin"
Kim Weiskopf and Jeff Franklin wrote all the no. in series.
<s>[INST]Kim Weiskopf and Jeff Franklin wrote all the no. in series. Context: CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR)[/INST]SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin"</s>
CREATE TABLE table_name_10 (d_47 VARCHAR, d_42 VARCHAR)
SELECT d_47 FROM table_name_10 WHERE d_42 = "d 22"
Name the D 47 which has D 42 of d 22
<s>[INST]Name the D 47 which has D 42 of d 22 Context: CREATE TABLE table_name_10 (d_47 VARCHAR, d_42 VARCHAR)[/INST]SELECT d_47 FROM table_name_10 WHERE d_42 = "d 22"</s>
CREATE TABLE Rooms (beds INTEGER, bedtype VARCHAR)
SELECT SUM(beds) FROM Rooms WHERE bedtype = 'King'
How many king beds are there?
<s>[INST]How many king beds are there? Context: CREATE TABLE Rooms (beds INTEGER, bedtype VARCHAR)[/INST]SELECT SUM(beds) FROM Rooms WHERE bedtype = 'King'</s>
CREATE TABLE table_170961_2 (census_ranking VARCHAR, population VARCHAR)
SELECT census_ranking FROM table_170961_2 WHERE population = 1599
when the population was 1599, what was the census ranking?
<s>[INST]when the population was 1599, what was the census ranking? Context: CREATE TABLE table_170961_2 (census_ranking VARCHAR, population VARCHAR)[/INST]SELECT census_ranking FROM table_170961_2 WHERE population = 1599</s>
CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR)
SELECT segment_a FROM table_name_76 WHERE segment_d = "manual motorcycle transmissions"
What segment A is associated with a Segment D of manual motorcycle transmissions?
<s>[INST]What segment A is associated with a Segment D of manual motorcycle transmissions? Context: CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR)[/INST]SELECT segment_a FROM table_name_76 WHERE segment_d = "manual motorcycle transmissions"</s>
CREATE TABLE table_name_63 (field VARCHAR, result VARCHAR)
SELECT field FROM table_name_63 WHERE result = "w 18-12"
What field had results of w 18-12?
<s>[INST]What field had results of w 18-12? Context: CREATE TABLE table_name_63 (field VARCHAR, result VARCHAR)[/INST]SELECT field FROM table_name_63 WHERE result = "w 18-12"</s>
CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)
SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = "28"
what is the position when the year [A} is after 2011 and the pick is 28?
<s>[INST]what is the position when the year [A} is after 2011 and the pick is 28? Context: CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)[/INST]SELECT position FROM table_name_67 WHERE year_[a_] > 2011 AND pick = "28"</s>
CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR)
SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3
What are the first and last names of the instructors who teach the top 3 number of courses?
<s>[INST]What are the first and last names of the instructors who teach the top 3 number of courses? Context: CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR)[/INST]SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROU...
CREATE TABLE table_name_98 (time VARCHAR, record VARCHAR)
SELECT time FROM table_name_98 WHERE record = "15-7"
What is the Time with a Record that is 15-7?
<s>[INST]What is the Time with a Record that is 15-7? Context: CREATE TABLE table_name_98 (time VARCHAR, record VARCHAR)[/INST]SELECT time FROM table_name_98 WHERE record = "15-7"</s>
CREATE TABLE table_18332845_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)
SELECT departure FROM table_18332845_2 WHERE going_to = "Peterborough East" AND arrival = "12.40"
What is the departure for Peterborough East whose arrival time is 12.40?
<s>[INST]What is the departure for Peterborough East whose arrival time is 12.40? Context: CREATE TABLE table_18332845_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)[/INST]SELECT departure FROM table_18332845_2 WHERE going_to = "Peterborough East" AND arrival = "12.40"</s>
CREATE TABLE table_14312471_3 (away_team VARCHAR)
SELECT away_team AS score FROM table_14312471_3 WHERE away_team = "Richmond"
Name the away team score for richmond
<s>[INST]Name the away team score for richmond Context: CREATE TABLE table_14312471_3 (away_team VARCHAR)[/INST]SELECT away_team AS score FROM table_14312471_3 WHERE away_team = "Richmond"</s>
CREATE TABLE battle (name VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR)
SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'
What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?
<s>[INST]What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'? Context: CREATE TABLE battle (name VARCHAR, bulgarian_commander VARCHAR, latin_commander VARCHAR)[/INST]SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwi...
CREATE TABLE table_225098_4 (vacator VARCHAR, district VARCHAR)
SELECT vacator FROM table_225098_4 WHERE district = "Pennsylvania 6th"
Who vacated the Pennsylvania 6th district?
<s>[INST]Who vacated the Pennsylvania 6th district? Context: CREATE TABLE table_225098_4 (vacator VARCHAR, district VARCHAR)[/INST]SELECT vacator FROM table_225098_4 WHERE district = "Pennsylvania 6th"</s>
CREATE TABLE table_name_42 (commercial_operation VARCHAR, unit VARCHAR)
SELECT commercial_operation FROM table_name_42 WHERE unit = "hamaoka-4"
When was the Hamaoka-4 unit commercial operation date?
<s>[INST]When was the Hamaoka-4 unit commercial operation date? Context: CREATE TABLE table_name_42 (commercial_operation VARCHAR, unit VARCHAR)[/INST]SELECT commercial_operation FROM table_name_42 WHERE unit = "hamaoka-4"</s>
CREATE TABLE employees (phone_number VARCHAR, salary INTEGER)
SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000
what is the phone number of employees whose salary is in the range of 8000 and 12000?
<s>[INST]what is the phone number of employees whose salary is in the range of 8000 and 12000? Context: CREATE TABLE employees (phone_number VARCHAR, salary INTEGER)[/INST]SELECT phone_number FROM employees WHERE salary BETWEEN 8000 AND 12000</s>
CREATE TABLE table_name_40 (overall INTEGER, round VARCHAR, player VARCHAR)
SELECT MAX(overall) FROM table_name_40 WHERE round > 8 AND player = "pavol demitra"
What is the highest overall for a round larger than 8 for pavol demitra?
<s>[INST]What is the highest overall for a round larger than 8 for pavol demitra? Context: CREATE TABLE table_name_40 (overall INTEGER, round VARCHAR, player VARCHAR)[/INST]SELECT MAX(overall) FROM table_name_40 WHERE round > 8 AND player = "pavol demitra"</s>
CREATE TABLE table_name_6 (halang VARCHAR, rera VARCHAR)
SELECT halang FROM table_name_6 WHERE rera = "ʒo²"
Which Halang has a Rera of ʒo²?
<s>[INST]Which Halang has a Rera of ʒo²? Context: CREATE TABLE table_name_6 (halang VARCHAR, rera VARCHAR)[/INST]SELECT halang FROM table_name_6 WHERE rera = "ʒo²"</s>
CREATE TABLE table_name_20 (total INTEGER, player VARCHAR)
SELECT SUM(total) FROM table_name_20 WHERE player = "david toms"
What is the total of David Toms?
<s>[INST]What is the total of David Toms? Context: CREATE TABLE table_name_20 (total INTEGER, player VARCHAR)[/INST]SELECT SUM(total) FROM table_name_20 WHERE player = "david toms"</s>
CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_61 WHERE label = "alfa records" AND catalog = "alca-487"
What is the Date when the label was alfa records, and a Catalog of alca-487?
<s>[INST]What is the Date when the label was alfa records, and a Catalog of alca-487? Context: CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR)[/INST]SELECT date FROM table_name_61 WHERE label = "alfa records" AND catalog = "alca-487"</s>
CREATE TABLE table_name_98 (names VARCHAR, class VARCHAR)
SELECT names FROM table_name_98 WHERE class = "glencar"
What is the name of the locomotive with a Glencar class?
<s>[INST]What is the name of the locomotive with a Glencar class? Context: CREATE TABLE table_name_98 (names VARCHAR, class VARCHAR)[/INST]SELECT names FROM table_name_98 WHERE class = "glencar"</s>
CREATE TABLE table_name_41 (year INTEGER, outcome VARCHAR, championship VARCHAR)
SELECT SUM(year) FROM table_name_41 WHERE outcome = "runner-up" AND championship = "world darts championship"
Tell me the sum of Year for outcome of runner-up for world darts championship
<s>[INST]Tell me the sum of Year for outcome of runner-up for world darts championship Context: CREATE TABLE table_name_41 (year INTEGER, outcome VARCHAR, championship VARCHAR)[/INST]SELECT SUM(year) FROM table_name_41 WHERE outcome = "runner-up" AND championship = "world darts championship"</s>
CREATE TABLE table_20174050_23 (reader VARCHAR, format VARCHAR, author VARCHAR)
SELECT reader FROM table_20174050_23 WHERE format = "Download/CD" AND author = "Lidster, Joseph Joseph Lidster"
who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster?
<s>[INST]who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster? Context: CREATE TABLE table_20174050_23 (reader VARCHAR, format VARCHAR, author VARCHAR)[/INST]SELECT reader FROM table_20174050_23 WHERE format = "Download/CD" AND author = "Lidster, Joseph Joseph Lidst...
CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)
SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = "8 november 1980" AND weight < 93
Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?
<s>[INST]Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number? Context: CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)[/INST]SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = "8 november 1980" AND weight < 93</s>
CREATE TABLE table_name_68 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_68 WHERE catalog = "asw 28033"
What is the dage of catalog asw 28033?
<s>[INST]What is the dage of catalog asw 28033? Context: CREATE TABLE table_name_68 (date VARCHAR, catalog VARCHAR)[/INST]SELECT date FROM table_name_68 WHERE catalog = "asw 28033"</s>
CREATE TABLE table_15187735_8 (segment_a VARCHAR, series_ep VARCHAR)
SELECT segment_a FROM table_15187735_8 WHERE series_ep = "8-08"
Name the segment a for 8-08
<s>[INST]Name the segment a for 8-08 Context: CREATE TABLE table_15187735_8 (segment_a VARCHAR, series_ep VARCHAR)[/INST]SELECT segment_a FROM table_15187735_8 WHERE series_ep = "8-08"</s>
CREATE TABLE table_name_76 (division VARCHAR, playoffs VARCHAR, year VARCHAR, regular_season VARCHAR)
SELECT division FROM table_name_76 WHERE year > 1996 AND regular_season = "4th" AND playoffs = "final"
Which Division has a Year larger than 1996,a Regular Season of 4th, and a Playoffs of final?
<s>[INST]Which Division has a Year larger than 1996,a Regular Season of 4th, and a Playoffs of final? Context: CREATE TABLE table_name_76 (division VARCHAR, playoffs VARCHAR, year VARCHAR, regular_season VARCHAR)[/INST]SELECT division FROM table_name_76 WHERE year > 1996 AND regular_season = "4th" AND playoffs = "final...
CREATE TABLE table_name_12 (against VARCHAR, opposing_teams VARCHAR, date VARCHAR)
SELECT against FROM table_name_12 WHERE opposing_teams = "australia" AND date = "27/07/1991"
What is Against, when Opposing Teams is "Australia", and when Date is "27/07/1991"?
<s>[INST]What is Against, when Opposing Teams is "Australia", and when Date is "27/07/1991"? Context: CREATE TABLE table_name_12 (against VARCHAR, opposing_teams VARCHAR, date VARCHAR)[/INST]SELECT against FROM table_name_12 WHERE opposing_teams = "australia" AND date = "27/07/1991"</s>
CREATE TABLE table_name_81 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_81 WHERE to_par > 6 AND player = "johnny palmer"
What is the Johnny Palmer with a To larger than 6 Money sum?
<s>[INST]What is the Johnny Palmer with a To larger than 6 Money sum? Context: CREATE TABLE table_name_81 (money___ INTEGER, to_par VARCHAR, player VARCHAR)[/INST]SELECT SUM(money___) AS $__ FROM table_name_81 WHERE to_par > 6 AND player = "johnny palmer"</s>