context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR)
SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f"
Who is the player that plays position f from Fort Wayne Pistons?
<s>[INST]Who is the player that plays position f from Fort Wayne Pistons? Context: CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR)[/INST]SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f"</s>
CREATE TABLE Participants_in_Events (Event_ID VARCHAR)
SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY COUNT(*) DESC LIMIT 1
What is the id of the event with the most participants?
<s>[INST]What is the id of the event with the most participants? Context: CREATE TABLE Participants_in_Events (Event_ID VARCHAR)[/INST]SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY COUNT(*) DESC LIMIT 1</s>
CREATE TABLE table_name_81 (played INTEGER, club VARCHAR, wins VARCHAR)
SELECT AVG(played) FROM table_name_81 WHERE club = "rayo vallecano" AND wins < 12
What's the average number of played games from Rayo Vallecano with less than 12 wins?
<s>[INST]What's the average number of played games from Rayo Vallecano with less than 12 wins? Context: CREATE TABLE table_name_81 (played INTEGER, club VARCHAR, wins VARCHAR)[/INST]SELECT AVG(played) FROM table_name_81 WHERE club = "rayo vallecano" AND wins < 12</s>
CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Population INTEGER, Name VARCHAR)
SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English")
What is the total number of people living in the nations that do not use English?
<s>[INST]What is the total number of people living in the nations that do not use English? Context: CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Population INTEGER, Name VARCHAR)[/INST]SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English")</s>
CREATE TABLE table_2850912_7 (nationality VARCHAR, college_junior_club_team VARCHAR)
SELECT nationality FROM table_2850912_7 WHERE college_junior_club_team = "Oshawa Generals (OHL)"
What nationality is listed when the college/junior/club team is oshawa generals (ohl)?
<s>[INST]What nationality is listed when the college/junior/club team is oshawa generals (ohl)? Context: CREATE TABLE table_2850912_7 (nationality VARCHAR, college_junior_club_team VARCHAR)[/INST]SELECT nationality FROM table_2850912_7 WHERE college_junior_club_team = "Oshawa Generals (OHL)"</s>
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_cut VARCHAR)
SELECT country FROM table_21690339_1 WHERE _percentage_cut = "100%"
What country had a 100% cut?
<s>[INST]What country had a 100% cut? Context: CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_cut VARCHAR)[/INST]SELECT country FROM table_21690339_1 WHERE _percentage_cut = "100%"</s>
CREATE TABLE table_name_99 (tries_for VARCHAR, club VARCHAR)
SELECT tries_for FROM table_name_99 WHERE club = "nelson rfc"
How many tries for Nelson RFC?
<s>[INST]How many tries for Nelson RFC? Context: CREATE TABLE table_name_99 (tries_for VARCHAR, club VARCHAR)[/INST]SELECT tries_for FROM table_name_99 WHERE club = "nelson rfc"</s>
CREATE TABLE table_name_93 (decile INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
SELECT SUM(decile) FROM table_name_93 WHERE gender = "coed" AND authority = "state" AND name = "mount maunganui school"
How many deciles have a Gender of coed, an Authority of state, and a Name of mount maunganui school?
<s>[INST]How many deciles have a Gender of coed, an Authority of state, and a Name of mount maunganui school? Context: CREATE TABLE table_name_93 (decile INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)[/INST]SELECT SUM(decile) FROM table_name_93 WHERE gender = "coed" AND authority = "state" AND name = "mount maunganui school"</s>
CREATE TABLE table_name_9 (athlete VARCHAR, time VARCHAR)
SELECT athlete FROM table_name_9 WHERE time = "30:48"
What is the name of the athlete with a time of 30:48?
<s>[INST]What is the name of the athlete with a time of 30:48? Context: CREATE TABLE table_name_9 (athlete VARCHAR, time VARCHAR)[/INST]SELECT athlete FROM table_name_9 WHERE time = "30:48"</s>
CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR)
SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0
How many tries for the player whose number is greater than 2 and losses are smaller than 0?
<s>[INST]How many tries for the player whose number is greater than 2 and losses are smaller than 0? Context: CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR)[/INST]SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0</s>
CREATE TABLE table_name_4 (role VARCHAR, pick__number VARCHAR)
SELECT role FROM table_name_4 WHERE pick__number = 18
What is Pick #18's Role?
<s>[INST]What is Pick #18's Role? Context: CREATE TABLE table_name_4 (role VARCHAR, pick__number VARCHAR)[/INST]SELECT role FROM table_name_4 WHERE pick__number = 18</s>
CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4"
What is the first elected date for the incumbent in the South Carolina 4 district?
<s>[INST]What is the first elected date for the incumbent in the South Carolina 4 district? Context: CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR)[/INST]SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4"</s>
CREATE TABLE table_27610775_1 (written_by VARCHAR, prod_code VARCHAR)
SELECT written_by FROM table_27610775_1 WHERE prod_code = 211
Who wrote the episode with the production code 211?
<s>[INST]Who wrote the episode with the production code 211? Context: CREATE TABLE table_27610775_1 (written_by VARCHAR, prod_code VARCHAR)[/INST]SELECT written_by FROM table_27610775_1 WHERE prod_code = 211</s>
CREATE TABLE table_name_62 (transfer_fee VARCHAR, type VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_62 WHERE type = "transfer" AND name = "dos santos"
WHAT TRANSFER FEE HAS A TYPE OF TRANSFER FOR DOS SANTOS?
<s>[INST]WHAT TRANSFER FEE HAS A TYPE OF TRANSFER FOR DOS SANTOS? Context: CREATE TABLE table_name_62 (transfer_fee VARCHAR, type VARCHAR, name VARCHAR)[/INST]SELECT transfer_fee FROM table_name_62 WHERE type = "transfer" AND name = "dos santos"</s>
CREATE TABLE table_name_54 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_54 WHERE home_team = "essendon"
Tell me the home team score for essendon
<s>[INST]Tell me the home team score for essendon Context: CREATE TABLE table_name_54 (home_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_54 WHERE home_team = "essendon"</s>
CREATE TABLE table_name_36 (date_of_designation VARCHAR, name VARCHAR)
SELECT date_of_designation FROM table_name_36 WHERE name = "kurume"
Which Date of designation has a Name of kurume?
<s>[INST]Which Date of designation has a Name of kurume? Context: CREATE TABLE table_name_36 (date_of_designation VARCHAR, name VARCHAR)[/INST]SELECT date_of_designation FROM table_name_36 WHERE name = "kurume"</s>
CREATE TABLE table_name_70 (took_office INTEGER, name VARCHAR, up_for_reelection VARCHAR)
SELECT MIN(took_office) FROM table_name_70 WHERE name = "yvette alexander" AND up_for_reelection > 2016
What was the earliest year that Yvette Alexander took office and was up for reelection after 2016?
<s>[INST]What was the earliest year that Yvette Alexander took office and was up for reelection after 2016? Context: CREATE TABLE table_name_70 (took_office INTEGER, name VARCHAR, up_for_reelection VARCHAR)[/INST]SELECT MIN(took_office) FROM table_name_70 WHERE name = "yvette alexander" AND up_for_reelection > 2016</s>
CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR)
SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge"
How tall is the Anqing Bridge which opened prior to 2011?
<s>[INST]How tall is the Anqing Bridge which opened prior to 2011? Context: CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR)[/INST]SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge"</s>
CREATE TABLE table_name_44 (round INTEGER, event VARCHAR)
SELECT SUM(round) FROM table_name_44 WHERE event = "golden trophy 1999"
What round did the match at the Golden Trophy 1999 event end?
<s>[INST]What round did the match at the Golden Trophy 1999 event end? Context: CREATE TABLE table_name_44 (round INTEGER, event VARCHAR)[/INST]SELECT SUM(round) FROM table_name_44 WHERE event = "golden trophy 1999"</s>
CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2
Name the total number of year for chassis of kurtis kraft 4000 and points more than 2
<s>[INST]Name the total number of year for chassis of kurtis kraft 4000 and points more than 2 Context: CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)[/INST]SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2</s>
CREATE TABLE table_20866024_3 (model_designation VARCHAR, gvw__kg_ton_ VARCHAR, axle_ratio VARCHAR)
SELECT model_designation FROM table_20866024_3 WHERE gvw__kg_ton_ = "2828/2.78" AND axle_ratio = "9/47"
What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47?
<s>[INST]What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47? Context: CREATE TABLE table_20866024_3 (model_designation VARCHAR, gvw__kg_ton_ VARCHAR, axle_ratio VARCHAR)[/INST]SELECT model_designation FROM table_20866024_3 WHERE gvw__kg_ton_ = "2828/2.78" AND axle_ratio = "9/47"</s>
CREATE TABLE table_name_44 (long INTEGER, name VARCHAR, loss VARCHAR)
SELECT AVG(long) FROM table_name_44 WHERE name = "rock cartwright" AND loss > 11
What was Rock Cartwright's highest long with more than 11 losses?
<s>[INST]What was Rock Cartwright's highest long with more than 11 losses? Context: CREATE TABLE table_name_44 (long INTEGER, name VARCHAR, loss VARCHAR)[/INST]SELECT AVG(long) FROM table_name_44 WHERE name = "rock cartwright" AND loss > 11</s>
CREATE TABLE table_name_18 (number_ VARCHAR, _name VARCHAR, date VARCHAR, livery VARCHAR)
SELECT number_ & _name FROM table_name_18 WHERE date = "1962" AND livery = "br bauxite"
What is the name and number in 1962 when livery was Br Bauxite?
<s>[INST]What is the name and number in 1962 when livery was Br Bauxite? Context: CREATE TABLE table_name_18 (number_ VARCHAR, _name VARCHAR, date VARCHAR, livery VARCHAR)[/INST]SELECT number_ & _name FROM table_name_18 WHERE date = "1962" AND livery = "br bauxite"</s>
CREATE TABLE head (age INTEGER)
SELECT COUNT(*) FROM head WHERE age > 56
How many heads of the departments are older than 56 ?
<s>[INST]How many heads of the departments are older than 56 ? Context: CREATE TABLE head (age INTEGER)[/INST]SELECT COUNT(*) FROM head WHERE age > 56</s>
CREATE TABLE table_name_61 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_61 WHERE laps = 35 AND grid > 5
Tell me the constructor that has 35 Laps with a grid more than 5
<s>[INST]Tell me the constructor that has 35 Laps with a grid more than 5 Context: CREATE TABLE table_name_61 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)[/INST]SELECT constructor FROM table_name_61 WHERE laps = 35 AND grid > 5</s>
CREATE TABLE table_29218221_2 (fri_3_june VARCHAR, wed_1_june VARCHAR)
SELECT fri_3_june FROM table_29218221_2 WHERE wed_1_june = "18' 22.66 123.182mph"
What is the Fri 3 June time for the rider with a Weds 1 June time of 18' 22.66 123.182mph?
<s>[INST]What is the Fri 3 June time for the rider with a Weds 1 June time of 18' 22.66 123.182mph? Context: CREATE TABLE table_29218221_2 (fri_3_june VARCHAR, wed_1_june VARCHAR)[/INST]SELECT fri_3_june FROM table_29218221_2 WHERE wed_1_june = "18' 22.66 123.182mph"</s>
CREATE TABLE table_name_50 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT time_retired FROM table_name_50 WHERE laps = "66" AND constructor = "jordan - peugeot" AND grid = "5"
What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?
<s>[INST]What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5? Context: CREATE TABLE table_name_50 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)[/INST]SELECT time_retired FROM table_name_50 WHERE laps = "66" AND constructor = "jordan - peugeot" AND grid = "5"</s>
CREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_23466021_4 WHERE attendance = 36102
Which opponent has 36102 is the attendance?
<s>[INST]Which opponent has 36102 is the attendance? Context: CREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR)[/INST]SELECT opponent FROM table_23466021_4 WHERE attendance = 36102</s>
CREATE TABLE table_name_1 (wins INTEGER, byes INTEGER)
SELECT AVG(wins) FROM table_name_1 WHERE byes < 2
How many wins for the team with fewer than 2 byes?
<s>[INST]How many wins for the team with fewer than 2 byes? Context: CREATE TABLE table_name_1 (wins INTEGER, byes INTEGER)[/INST]SELECT AVG(wins) FROM table_name_1 WHERE byes < 2</s>
CREATE TABLE table_name_59 (net_yds INTEGER, long VARCHAR, start VARCHAR)
SELECT AVG(net_yds) FROM table_name_59 WHERE long = 68 AND start > 1984
What is the average net yds for the player who had a long of 68 and started after 1984?
<s>[INST]What is the average net yds for the player who had a long of 68 and started after 1984? Context: CREATE TABLE table_name_59 (net_yds INTEGER, long VARCHAR, start VARCHAR)[/INST]SELECT AVG(net_yds) FROM table_name_59 WHERE long = 68 AND start > 1984</s>
CREATE TABLE table_name_23 (points INTEGER, opponent VARCHAR, january VARCHAR)
SELECT AVG(points) FROM table_name_23 WHERE opponent = "cleveland barons" AND january > 3
What is the average number of points of the game after January 3 against the Cleveland Barons?
<s>[INST]What is the average number of points of the game after January 3 against the Cleveland Barons? Context: CREATE TABLE table_name_23 (points INTEGER, opponent VARCHAR, january VARCHAR)[/INST]SELECT AVG(points) FROM table_name_23 WHERE opponent = "cleveland barons" AND january > 3</s>
CREATE TABLE table_18143210_2 (first_season_of_current_spell_in_top_division VARCHAR, first_season_in_top_division VARCHAR)
SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65"
When was the 'first season of current spell in top division' if the first season in top division is in 1964-65?
<s>[INST]When was the 'first season of current spell in top division' if the first season in top division is in 1964-65? Context: CREATE TABLE table_18143210_2 (first_season_of_current_spell_in_top_division VARCHAR, first_season_in_top_division VARCHAR)[/INST]SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65"</s>
CREATE TABLE table_name_95 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_95 WHERE place = "t2"
Which Score has a Place of t2?
<s>[INST]Which Score has a Place of t2? Context: CREATE TABLE table_name_95 (score VARCHAR, place VARCHAR)[/INST]SELECT score FROM table_name_95 WHERE place = "t2"</s>
CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_c_winner VARCHAR)
SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro"
What is the group a winner for vis pesaro?
<s>[INST]What is the group a winner for vis pesaro? Context: CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_c_winner VARCHAR)[/INST]SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro"</s>
CREATE TABLE table_name_82 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_82 WHERE result = "l 24-10"
Which week has a result showing L 24-10?
<s>[INST]Which week has a result showing L 24-10? Context: CREATE TABLE table_name_82 (week VARCHAR, result VARCHAR)[/INST]SELECT week FROM table_name_82 WHERE result = "l 24-10"</s>
CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
SELECT MAX(attendance) FROM table_name_16 WHERE visitor = "dallas" AND date = "june 12"
Visitor of dallas, and a Date of june 12 had what highest attendance?
<s>[INST]Visitor of dallas, and a Date of june 12 had what highest attendance? Context: CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR, date VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_16 WHERE visitor = "dallas" AND date = "june 12"</s>
CREATE TABLE table_name_51 (constitutional_ticket VARCHAR, republican_ticket VARCHAR)
SELECT constitutional_ticket FROM table_name_51 WHERE republican_ticket = "charles b. sears"
Who was the constitutional ticken when Charles B. Sears was the republican ticket?
<s>[INST]Who was the constitutional ticken when Charles B. Sears was the republican ticket? Context: CREATE TABLE table_name_51 (constitutional_ticket VARCHAR, republican_ticket VARCHAR)[/INST]SELECT constitutional_ticket FROM table_name_51 WHERE republican_ticket = "charles b. sears"</s>
CREATE TABLE table_name_65 (last_season VARCHAR, team VARCHAR)
SELECT last_season FROM table_name_65 WHERE team = "worcester wolves"
What is the last season the Worcester Wolves played?
<s>[INST]What is the last season the Worcester Wolves played? Context: CREATE TABLE table_name_65 (last_season VARCHAR, team VARCHAR)[/INST]SELECT last_season FROM table_name_65 WHERE team = "worcester wolves"</s>
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT 01 AS _02 FROM table_name_61 WHERE "03_04" = "03_04"
What is 01-02, when 03-04 is 03-04?
<s>[INST]What is 01-02, when 03-04 is 03-04? Context: CREATE TABLE table_name_61 (Id VARCHAR)[/INST]SELECT 01 AS _02 FROM table_name_61 WHERE "03_04" = "03_04"</s>
CREATE TABLE table_name_20 (event VARCHAR, location VARCHAR)
SELECT event FROM table_name_20 WHERE location = "manly beach"
Which event was held at Manly Beach?
<s>[INST]Which event was held at Manly Beach? Context: CREATE TABLE table_name_20 (event VARCHAR, location VARCHAR)[/INST]SELECT event FROM table_name_20 WHERE location = "manly beach"</s>
CREATE TABLE table_name_49 (name VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_49 WHERE circuit = "monza"
Which name had the circuit Monza?
<s>[INST]Which name had the circuit Monza? Context: CREATE TABLE table_name_49 (name VARCHAR, circuit VARCHAR)[/INST]SELECT name FROM table_name_49 WHERE circuit = "monza"</s>
CREATE TABLE table_name_9 (losses INTEGER, goals_against INTEGER)
SELECT AVG(losses) FROM table_name_9 WHERE goals_against > 42
for a Goals Against greater than 42 what is the number of losses?
<s>[INST]for a Goals Against greater than 42 what is the number of losses? Context: CREATE TABLE table_name_9 (losses INTEGER, goals_against INTEGER)[/INST]SELECT AVG(losses) FROM table_name_9 WHERE goals_against > 42</s>
CREATE TABLE table_name_97 (d_41 VARCHAR, d_46 VARCHAR)
SELECT d_41 FROM table_name_97 WHERE d_46 = "r 6"
Name the D 41 which has a D 46 of r 6
<s>[INST]Name the D 41 which has a D 46 of r 6 Context: CREATE TABLE table_name_97 (d_41 VARCHAR, d_46 VARCHAR)[/INST]SELECT d_41 FROM table_name_97 WHERE d_46 = "r 6"</s>
CREATE TABLE table_name_59 (voice_actor__japanese_ VARCHAR, character_name VARCHAR)
SELECT voice_actor__japanese_ FROM table_name_59 WHERE character_name = "tien"
what voice acter played tien
<s>[INST]what voice acter played tien Context: CREATE TABLE table_name_59 (voice_actor__japanese_ VARCHAR, character_name VARCHAR)[/INST]SELECT voice_actor__japanese_ FROM table_name_59 WHERE character_name = "tien"</s>
CREATE TABLE table_name_35 (year_joined INTEGER, previous_conference VARCHAR, location VARCHAR)
SELECT MAX(year_joined) FROM table_name_35 WHERE previous_conference = "mid-indiana" AND location = "converse"
What is the most current year with a previous conference of Mid-Indiana in Converse?
<s>[INST]What is the most current year with a previous conference of Mid-Indiana in Converse? Context: CREATE TABLE table_name_35 (year_joined INTEGER, previous_conference VARCHAR, location VARCHAR)[/INST]SELECT MAX(year_joined) FROM table_name_35 WHERE previous_conference = "mid-indiana" AND location = "converse"</s>
CREATE TABLE table_17330069_1 (car_no INTEGER, driver VARCHAR)
SELECT MIN(car_no) FROM table_17330069_1 WHERE driver = "Hélio Castroneves"
What is the car number for driver Hélio Castroneves
<s>[INST]What is the car number for driver Hélio Castroneves Context: CREATE TABLE table_17330069_1 (car_no INTEGER, driver VARCHAR)[/INST]SELECT MIN(car_no) FROM table_17330069_1 WHERE driver = "Hélio Castroneves"</s>
CREATE TABLE table_name_52 (country VARCHAR, publication VARCHAR, year VARCHAR, rank VARCHAR)
SELECT country FROM table_name_52 WHERE year < 2011 AND rank > 1 AND publication = "q"
What country did Day & Age rank number 1 in Q prior to 2011?
<s>[INST]What country did Day & Age rank number 1 in Q prior to 2011? Context: CREATE TABLE table_name_52 (country VARCHAR, publication VARCHAR, year VARCHAR, rank VARCHAR)[/INST]SELECT country FROM table_name_52 WHERE year < 2011 AND rank > 1 AND publication = "q"</s>
CREATE TABLE employee (fname VARCHAR, lname VARCHAR, salary INTEGER)
SELECT fname, lname FROM employee WHERE salary > 30000
Return the first names and last names of employees who earn more than 30000 in salary.
<s>[INST]Return the first names and last names of employees who earn more than 30000 in salary. Context: CREATE TABLE employee (fname VARCHAR, lname VARCHAR, salary INTEGER)[/INST]SELECT fname, lname FROM employee WHERE salary > 30000</s>
CREATE TABLE table_name_46 (rank INTEGER, name VARCHAR, lane VARCHAR)
SELECT AVG(rank) FROM table_name_46 WHERE name = "elise matthysen" AND lane < 8
What is the average rank of Elise Matthysen in lanes under 8?
<s>[INST]What is the average rank of Elise Matthysen in lanes under 8? Context: CREATE TABLE table_name_46 (rank INTEGER, name VARCHAR, lane VARCHAR)[/INST]SELECT AVG(rank) FROM table_name_46 WHERE name = "elise matthysen" AND lane < 8</s>
CREATE TABLE table_name_94 (pick__number INTEGER, player VARCHAR)
SELECT MAX(pick__number) FROM table_name_94 WHERE player = "rhett mclane"
What is Rhett Mclane's highest pick number?
<s>[INST]What is Rhett Mclane's highest pick number? Context: CREATE TABLE table_name_94 (pick__number INTEGER, player VARCHAR)[/INST]SELECT MAX(pick__number) FROM table_name_94 WHERE player = "rhett mclane"</s>
CREATE TABLE table_1984697_53 (principal VARCHAR, school VARCHAR)
SELECT principal FROM table_1984697_53 WHERE school = "Edgewood High school"
Who's the principal of Edgewood High School?/
<s>[INST]Who's the principal of Edgewood High School?/ Context: CREATE TABLE table_1984697_53 (principal VARCHAR, school VARCHAR)[/INST]SELECT principal FROM table_1984697_53 WHERE school = "Edgewood High school"</s>
CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_50 WHERE date = "april 27"
What was the game number that took place on April 27?
<s>[INST]What was the game number that took place on April 27? Context: CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR)[/INST]SELECT game FROM table_name_50 WHERE date = "april 27"</s>
CREATE TABLE table_name_38 (isbn_uk VARCHAR, author VARCHAR, isbn_us VARCHAR)
SELECT isbn_uk FROM table_name_38 WHERE author = "dave martin" AND isbn_us = "n/a"
What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?
<s>[INST]What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"? Context: CREATE TABLE table_name_38 (isbn_uk VARCHAR, author VARCHAR, isbn_us VARCHAR)[/INST]SELECT isbn_uk FROM table_name_38 WHERE author = "dave martin" AND isbn_us = "n/a"</s>
CREATE TABLE table_26961951_6 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_26961951_6 WHERE directed_by = "Romeo Tirone"
What is the title of the episode directed by Romeo Tirone?
<s>[INST]What is the title of the episode directed by Romeo Tirone? Context: CREATE TABLE table_26961951_6 (title VARCHAR, directed_by VARCHAR)[/INST]SELECT title FROM table_26961951_6 WHERE directed_by = "Romeo Tirone"</s>
CREATE TABLE car_makers (id VARCHAR, maker VARCHAR); CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE car_names (model VARCHAR)
SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3
Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .
<s>[INST]Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker . Context: CREATE TABLE car_makers (id VARCHAR, maker VARCHAR); CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE car_names (model VARCHAR)[/INST]SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3</s>
CREATE TABLE table_17186229_4 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(opponent) FROM table_17186229_4 WHERE record = "9-2"
Name the total number of opponent of record 9-2
<s>[INST]Name the total number of opponent of record 9-2 Context: CREATE TABLE table_17186229_4 (opponent VARCHAR, record VARCHAR)[/INST]SELECT COUNT(opponent) FROM table_17186229_4 WHERE record = "9-2"</s>
CREATE TABLE table_name_55 (time VARCHAR, writer_s_ VARCHAR)
SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold"
What is the time of songs that have the writer Aaron Schroeder and Wally Gold?
<s>[INST]What is the time of songs that have the writer Aaron Schroeder and Wally Gold? Context: CREATE TABLE table_name_55 (time VARCHAR, writer_s_ VARCHAR)[/INST]SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold"</s>
CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_33 WHERE score = "4–2"
Whic Date has a Score of 4–2?
<s>[INST]Whic Date has a Score of 4–2? Context: CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR)[/INST]SELECT date FROM table_name_33 WHERE score = "4–2"</s>
CREATE TABLE table_22081847_1 (wins INTEGER)
SELECT MAX(wins) FROM table_22081847_1
What was the maximum number of wins?
<s>[INST]What was the maximum number of wins? Context: CREATE TABLE table_22081847_1 (wins INTEGER)[/INST]SELECT MAX(wins) FROM table_22081847_1</s>
CREATE TABLE table_name_66 (top_5 INTEGER, top_10 VARCHAR, wins VARCHAR, driver VARCHAR)
SELECT MIN(top_5) FROM table_name_66 WHERE wins > 0 AND driver = "frank kimmel" AND top_10 < 14
What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s?
<s>[INST]What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s? Context: CREATE TABLE table_name_66 (top_5 INTEGER, top_10 VARCHAR, wins VARCHAR, driver VARCHAR)[/INST]SELECT MIN(top_5) FROM table_name_66 WHERE wins > 0 AND driver = "frank kimmel" AND top_10 < 14</s>
CREATE TABLE table_name_80 (name VARCHAR, longitude VARCHAR, latitude VARCHAR)
SELECT name FROM table_name_80 WHERE longitude > 103.8 AND latitude = -11.4
Tell me the name for longitude more than 103.8 and latitude of -11.4
<s>[INST]Tell me the name for longitude more than 103.8 and latitude of -11.4 Context: CREATE TABLE table_name_80 (name VARCHAR, longitude VARCHAR, latitude VARCHAR)[/INST]SELECT name FROM table_name_80 WHERE longitude > 103.8 AND latitude = -11.4</s>
CREATE TABLE table_11869952_3 (launch_site VARCHAR, mission VARCHAR, results VARCHAR)
SELECT launch_site FROM table_11869952_3 WHERE mission = "Test mission: war heads and Missile payload" AND results = "Partial Failure"
Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?
<s>[INST]Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure? Context: CREATE TABLE table_11869952_3 (launch_site VARCHAR, mission VARCHAR, results VARCHAR)[/INST]SELECT launch_site FROM table_11869952_3 WHERE mission = "Test mission: war heads and Missile payload" AND results = "Partial Failure"</s>
CREATE TABLE table_name_38 (year INTEGER, pts INTEGER)
SELECT MIN(year) FROM table_name_38 WHERE pts > 8
What is the earliest year with points more than 8?
<s>[INST]What is the earliest year with points more than 8? Context: CREATE TABLE table_name_38 (year INTEGER, pts INTEGER)[/INST]SELECT MIN(year) FROM table_name_38 WHERE pts > 8</s>
CREATE TABLE table_2562572_54 (population__2011_ INTEGER, settlement VARCHAR)
SELECT MIN(population__2011_) FROM table_2562572_54 WHERE settlement = "Čortanovci"
What is the lowest population in 2011 for the settlement of čortanovci?
<s>[INST]What is the lowest population in 2011 for the settlement of čortanovci? Context: CREATE TABLE table_2562572_54 (population__2011_ INTEGER, settlement VARCHAR)[/INST]SELECT MIN(population__2011_) FROM table_2562572_54 WHERE settlement = "Čortanovci"</s>
CREATE TABLE table_name_87 (band VARCHAR, purpose VARCHAR, frequency VARCHAR)
SELECT band FROM table_name_87 WHERE purpose = "community" AND frequency = "0 96.9"
The community station broadcasting at frequency 0 96.9 is in what band?
<s>[INST]The community station broadcasting at frequency 0 96.9 is in what band? Context: CREATE TABLE table_name_87 (band VARCHAR, purpose VARCHAR, frequency VARCHAR)[/INST]SELECT band FROM table_name_87 WHERE purpose = "community" AND frequency = "0 96.9"</s>
CREATE TABLE table_19001175_1 (wins VARCHAR, name VARCHAR)
SELECT COUNT(wins) FROM table_19001175_1 WHERE name = "Michele Rugolo Category:Articles with hCards"
Name the number of wins for michele rugolo category:articles with hcards
<s>[INST]Name the number of wins for michele rugolo category:articles with hcards Context: CREATE TABLE table_19001175_1 (wins VARCHAR, name VARCHAR)[/INST]SELECT COUNT(wins) FROM table_19001175_1 WHERE name = "Michele Rugolo Category:Articles with hCards"</s>
CREATE TABLE table_name_21 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_21 WHERE venue = "lake oval"
What is the home team of Lake Oval?
<s>[INST]What is the home team of Lake Oval? Context: CREATE TABLE table_name_21 (home_team VARCHAR, venue VARCHAR)[/INST]SELECT home_team FROM table_name_21 WHERE venue = "lake oval"</s>
CREATE TABLE table_19765685_2 (defending_champion VARCHAR, country VARCHAR)
SELECT COUNT(defending_champion) FROM table_19765685_2 WHERE country = "Thailand"
How many defending champs from thailand?
<s>[INST]How many defending champs from thailand? Context: CREATE TABLE table_19765685_2 (defending_champion VARCHAR, country VARCHAR)[/INST]SELECT COUNT(defending_champion) FROM table_19765685_2 WHERE country = "Thailand"</s>
CREATE TABLE table_28628309_9 (totals VARCHAR, average VARCHAR, category VARCHAR)
SELECT totals FROM table_28628309_9 WHERE average = "0.667" AND category = "3-pt field goal percentage"
What is the total listed when the average is 0.667 and the category is 3-pt field goal percentage?
<s>[INST]What is the total listed when the average is 0.667 and the category is 3-pt field goal percentage? Context: CREATE TABLE table_28628309_9 (totals VARCHAR, average VARCHAR, category VARCHAR)[/INST]SELECT totals FROM table_28628309_9 WHERE average = "0.667" AND category = "3-pt field goal percentage"</s>
CREATE TABLE table_name_96 (money___£__ VARCHAR, country VARCHAR)
SELECT money___£__ FROM table_name_96 WHERE country = "ireland"
What Money (£) has a Country of ireland?
<s>[INST]What Money (£) has a Country of ireland? Context: CREATE TABLE table_name_96 (money___£__ VARCHAR, country VARCHAR)[/INST]SELECT money___£__ FROM table_name_96 WHERE country = "ireland"</s>
CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_98 WHERE venue = "vfl park"
For Venue vfl park, what was the home team score?
<s>[INST]For Venue vfl park, what was the home team score? Context: CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR)[/INST]SELECT home_team AS score FROM table_name_98 WHERE venue = "vfl park"</s>
CREATE TABLE table_18662026_1 (horizontal_bar VARCHAR, rings VARCHAR)
SELECT horizontal_bar FROM table_18662026_1 WHERE rings = "58.975"
If the rings is 58.975, what is the number for the horizontal bar?
<s>[INST]If the rings is 58.975, what is the number for the horizontal bar? Context: CREATE TABLE table_18662026_1 (horizontal_bar VARCHAR, rings VARCHAR)[/INST]SELECT horizontal_bar FROM table_18662026_1 WHERE rings = "58.975"</s>
CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR)
SELECT date FROM table_name_15 WHERE away = "central blues"
What is the Date with an Away that is central blues?
<s>[INST]What is the Date with an Away that is central blues? Context: CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR)[/INST]SELECT date FROM table_name_15 WHERE away = "central blues"</s>
CREATE TABLE CARS_DATA (horsepower INTEGER, YEAR INTEGER)
SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980
What is the average horsepower of the cars before 1980?
<s>[INST]What is the average horsepower of the cars before 1980? Context: CREATE TABLE CARS_DATA (horsepower INTEGER, YEAR INTEGER)[/INST]SELECT AVG(horsepower) FROM CARS_DATA WHERE YEAR < 1980</s>
CREATE TABLE table_name_59 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_59 WHERE record = "17–24–5"
What day is the team 17–24–5?
<s>[INST]What day is the team 17–24–5? Context: CREATE TABLE table_name_59 (date VARCHAR, record VARCHAR)[/INST]SELECT date FROM table_name_59 WHERE record = "17–24–5"</s>
CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)
SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3
What's the website for the Listen Live webcast on the 99.3 frequency?
<s>[INST]What's the website for the Listen Live webcast on the 99.3 frequency? Context: CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)[/INST]SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3</s>
CREATE TABLE table_name_11 (pick__number INTEGER, league_from VARCHAR, player VARCHAR)
SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = "quebec major junior hockey league" AND player = "samuel carrier"
What is the average pick # from the Quebec Major Junior Hockey League player Samuel Carrier?
<s>[INST]What is the average pick # from the Quebec Major Junior Hockey League player Samuel Carrier? Context: CREATE TABLE table_name_11 (pick__number INTEGER, league_from VARCHAR, player VARCHAR)[/INST]SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = "quebec major junior hockey league" AND player = "samuel carrier"</s>
CREATE TABLE table_name_42 (venue VARCHAR, stage VARCHAR, date VARCHAR)
SELECT venue FROM table_name_42 WHERE stage = "group g" AND date = "mar 8, 1998"
What venue did group g play at on Mar 8, 1998?
<s>[INST]What venue did group g play at on Mar 8, 1998? Context: CREATE TABLE table_name_42 (venue VARCHAR, stage VARCHAR, date VARCHAR)[/INST]SELECT venue FROM table_name_42 WHERE stage = "group g" AND date = "mar 8, 1998"</s>
CREATE TABLE table_name_35 (date VARCHAR, opponent VARCHAR, home_away VARCHAR)
SELECT date FROM table_name_35 WHERE opponent = "pride" AND home_away = "away"
What is the date of the game away against Pride?
<s>[INST]What is the date of the game away against Pride? Context: CREATE TABLE table_name_35 (date VARCHAR, opponent VARCHAR, home_away VARCHAR)[/INST]SELECT date FROM table_name_35 WHERE opponent = "pride" AND home_away = "away"</s>
CREATE TABLE table_name_19 (attendance INTEGER, result VARCHAR, year VARCHAR)
SELECT SUM(attendance) FROM table_name_19 WHERE result = "7-23" AND year < 1960
What was the total attendance for a result of 7-23 before 1960?
<s>[INST]What was the total attendance for a result of 7-23 before 1960? Context: CREATE TABLE table_name_19 (attendance INTEGER, result VARCHAR, year VARCHAR)[/INST]SELECT SUM(attendance) FROM table_name_19 WHERE result = "7-23" AND year < 1960</s>
CREATE TABLE discount_coupons (coupon_id VARCHAR, coupon_amount VARCHAR); CREATE TABLE customers (good_or_bad_customer VARCHAR, coupon_id VARCHAR)
SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500
Are the customers holding coupons with amount 500 bad or good?
<s>[INST]Are the customers holding coupons with amount 500 bad or good? Context: CREATE TABLE discount_coupons (coupon_id VARCHAR, coupon_amount VARCHAR); CREATE TABLE customers (good_or_bad_customer VARCHAR, coupon_id VARCHAR)[/INST]SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500</s>
CREATE TABLE table_15637071_1 (headquarters VARCHAR, icao VARCHAR)
SELECT headquarters FROM table_15637071_1 WHERE icao = "AAU"
Where is the headquarters of the airline which has the ICAO code of AAU?
<s>[INST]Where is the headquarters of the airline which has the ICAO code of AAU? Context: CREATE TABLE table_15637071_1 (headquarters VARCHAR, icao VARCHAR)[/INST]SELECT headquarters FROM table_15637071_1 WHERE icao = "AAU"</s>
CREATE TABLE services (Id VARCHAR)
SELECT COUNT(*) FROM services
How many services are there?
<s>[INST]How many services are there? Context: CREATE TABLE services (Id VARCHAR)[/INST]SELECT COUNT(*) FROM services</s>
CREATE TABLE table_name_50 (name VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT name FROM table_name_50 WHERE round < 5 AND pick__number > 13
Which Name has a Round smaller than 5, and a Pick # larger than 13?
<s>[INST]Which Name has a Round smaller than 5, and a Pick # larger than 13? Context: CREATE TABLE table_name_50 (name VARCHAR, round VARCHAR, pick__number VARCHAR)[/INST]SELECT name FROM table_name_50 WHERE round < 5 AND pick__number > 13</s>
CREATE TABLE table_name_5 (Id VARCHAR)
SELECT 2008 FROM table_name_5 WHERE 2009 = "1r"
What's the 2008 when 1R happened in 2009?
<s>[INST]What's the 2008 when 1R happened in 2009? Context: CREATE TABLE table_name_5 (Id VARCHAR)[/INST]SELECT 2008 FROM table_name_5 WHERE 2009 = "1r"</s>
CREATE TABLE table_name_43 (per_capita_income VARCHAR, median_household_income VARCHAR)
SELECT per_capita_income FROM table_name_43 WHERE median_household_income = "$42,845"
How much is per capita income when median household income is $42,845?
<s>[INST]How much is per capita income when median household income is $42,845? Context: CREATE TABLE table_name_43 (per_capita_income VARCHAR, median_household_income VARCHAR)[/INST]SELECT per_capita_income FROM table_name_43 WHERE median_household_income = "$42,845"</s>
CREATE TABLE table_1473672_10 (position VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_1473672_10 WHERE player = "Rene Lambert"
How many positions did 1972 NHL Draft pick Rene Lambert play?
<s>[INST]How many positions did 1972 NHL Draft pick Rene Lambert play? Context: CREATE TABLE table_1473672_10 (position VARCHAR, player VARCHAR)[/INST]SELECT COUNT(position) FROM table_1473672_10 WHERE player = "Rene Lambert"</s>
CREATE TABLE table_name_30 (score VARCHAR, match_no VARCHAR)
SELECT score FROM table_name_30 WHERE match_no = "15"
What is the score of match 15?
<s>[INST]What is the score of match 15? Context: CREATE TABLE table_name_30 (score VARCHAR, match_no VARCHAR)[/INST]SELECT score FROM table_name_30 WHERE match_no = "15"</s>
CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34
How many games have more than 288 goals and less than 34 losses?
<s>[INST]How many games have more than 288 goals and less than 34 losses? Context: CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR)[/INST]SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34</s>
CREATE TABLE table_1342331_18 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342331_18 WHERE district = "Louisiana 6"
What candidate is in Louisiana 6?
<s>[INST]What candidate is in Louisiana 6? Context: CREATE TABLE table_1342331_18 (candidates VARCHAR, district VARCHAR)[/INST]SELECT candidates FROM table_1342331_18 WHERE district = "Louisiana 6"</s>
CREATE TABLE table_name_48 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_48 WHERE player = "dell curry"
What school does Dell Curry play for?
<s>[INST]What school does Dell Curry play for? Context: CREATE TABLE table_name_48 (school_club_team VARCHAR, player VARCHAR)[/INST]SELECT school_club_team FROM table_name_48 WHERE player = "dell curry"</s>
CREATE TABLE table_27734577_2 (high_points VARCHAR, score VARCHAR)
SELECT high_points FROM table_27734577_2 WHERE score = "L 85–94 (OT)"
Who corned the most points for the game that ended with a score of l 85–94 (ot)?
<s>[INST]Who corned the most points for the game that ended with a score of l 85–94 (ot)? Context: CREATE TABLE table_27734577_2 (high_points VARCHAR, score VARCHAR)[/INST]SELECT high_points FROM table_27734577_2 WHERE score = "L 85–94 (OT)"</s>
CREATE TABLE table_27504682_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_27504682_1 WHERE directed_by = "Lawrence Trilling"
Name who wrote the episode by lawrence trilling
<s>[INST]Name who wrote the episode by lawrence trilling Context: CREATE TABLE table_27504682_1 (written_by VARCHAR, directed_by VARCHAR)[/INST]SELECT written_by FROM table_27504682_1 WHERE directed_by = "Lawrence Trilling"</s>
CREATE TABLE table_name_8 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_8 WHERE record = "11-6"
Which team has the record of 11-6?
<s>[INST]Which team has the record of 11-6? Context: CREATE TABLE table_name_8 (loss VARCHAR, record VARCHAR)[/INST]SELECT loss FROM table_name_8 WHERE record = "11-6"</s>
CREATE TABLE table_name_80 (year INTEGER, competition VARCHAR, venue VARCHAR)
SELECT SUM(year) FROM table_name_80 WHERE competition = "european indoor championships" AND venue = "budapest , hungary"
Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary?
<s>[INST]Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary? Context: CREATE TABLE table_name_80 (year INTEGER, competition VARCHAR, venue VARCHAR)[/INST]SELECT SUM(year) FROM table_name_80 WHERE competition = "european indoor championships" AND venue = "budapest , hungary"</s>
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (party_id VARCHAR)
SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of party with most number of members?
<s>[INST]What is the name of party with most number of members? Context: CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (party_id VARCHAR)[/INST]SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1</s>
CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "fitzroy"
How large a crowd did the Fitzroy Away team draw?
<s>[INST]How large a crowd did the Fitzroy Away team draw? Context: CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR)[/INST]SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "fitzroy"</s>
CREATE TABLE table_name_3 (time VARCHAR, country VARCHAR)
SELECT time FROM table_name_3 WHERE country = "south korea"
What is the time for South Korea?
<s>[INST]What is the time for South Korea? Context: CREATE TABLE table_name_3 (time VARCHAR, country VARCHAR)[/INST]SELECT time FROM table_name_3 WHERE country = "south korea"</s>
CREATE TABLE table_name_18 (round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR)
SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring"
What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?
<s>[INST]What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring? Context: CREATE TABLE table_name_18 (round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring"</s>
CREATE TABLE table_name_33 (chassis VARCHAR, engine VARCHAR, year VARCHAR, team VARCHAR)
SELECT chassis FROM table_name_33 WHERE year > 1965 AND team = "cooper car company" AND engine = "maserati v12"
What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12?
<s>[INST]What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12? Context: CREATE TABLE table_name_33 (chassis VARCHAR, engine VARCHAR, year VARCHAR, team VARCHAR)[/INST]SELECT chassis FROM table_name_33 WHERE year > 1965 AND team = "cooper car company" AND engine = "maserati v12"</s>