context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_25711913_2 (touchdowns VARCHAR, points VARCHAR)
SELECT touchdowns FROM table_25711913_2 WHERE points = 25
How many touchdowns did the player took which gained 25 points?
<s>[INST]How many touchdowns did the player took which gained 25 points? Context: CREATE TABLE table_25711913_2 (touchdowns VARCHAR, points VARCHAR)[/INST]SELECT touchdowns FROM table_25711913_2 WHERE points = 25</s>
CREATE TABLE table_name_53 (top_25 INTEGER, money_list_rank VARCHAR, cuts_made VARCHAR)
SELECT MAX(top_25) FROM table_name_53 WHERE money_list_rank = "232" AND cuts_made < 2
What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?
<s>[INST]What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2? Context: CREATE TABLE table_name_53 (top_25 INTEGER, money_list_rank VARCHAR, cuts_made VARCHAR)[/INST]SELECT MAX(top_25) FROM table_name_53 WHERE money_list_rank = "232" AND cuts_made < 2</s>
CREATE TABLE table_name_81 (championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT championship FROM table_name_81 WHERE opponent_in_the_final = "francesca schiavone"
What championship had Francesca Schiavone in the finals?
<s>[INST]What championship had Francesca Schiavone in the finals? Context: CREATE TABLE table_name_81 (championship VARCHAR, opponent_in_the_final VARCHAR)[/INST]SELECT championship FROM table_name_81 WHERE opponent_in_the_final = "francesca schiavone"</s>
CREATE TABLE table_name_22 (how_other_iyers_say_it VARCHAR, how_ashtagrama_iyers_say_it VARCHAR)
SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = "enga ullale"
Name how other lyers say enga ullale
<s>[INST]Name how other lyers say enga ullale Context: CREATE TABLE table_name_22 (how_other_iyers_say_it VARCHAR, how_ashtagrama_iyers_say_it VARCHAR)[/INST]SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = "enga ullale"</s>
CREATE TABLE table_name_91 (role VARCHAR, year VARCHAR)
SELECT role FROM table_name_91 WHERE year = "2001"
What was the role in 2001?
<s>[INST]What was the role in 2001? Context: CREATE TABLE table_name_91 (role VARCHAR, year VARCHAR)[/INST]SELECT role FROM table_name_91 WHERE year = "2001"</s>
CREATE TABLE table_name_86 (chapters VARCHAR, director VARCHAR)
SELECT COUNT(chapters) FROM table_name_86 WHERE director = "elmer clifton"
How many chapters did Elmer Clifton direct?
<s>[INST]How many chapters did Elmer Clifton direct? Context: CREATE TABLE table_name_86 (chapters VARCHAR, director VARCHAR)[/INST]SELECT COUNT(chapters) FROM table_name_86 WHERE director = "elmer clifton"</s>
CREATE TABLE table_name_94 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_94 WHERE home_team = "fitzroy"
When was Fitzroy the home team?
<s>[INST]When was Fitzroy the home team? Context: CREATE TABLE table_name_94 (date VARCHAR, home_team VARCHAR)[/INST]SELECT date FROM table_name_94 WHERE home_team = "fitzroy"</s>
CREATE TABLE table_name_54 (nationality VARCHAR, years_for_grizzlies VARCHAR)
SELECT nationality FROM table_name_54 WHERE years_for_grizzlies = "1998-2000"
What is the Nationality of the 1998-2000 Years for Grizzlies?
<s>[INST]What is the Nationality of the 1998-2000 Years for Grizzlies? Context: CREATE TABLE table_name_54 (nationality VARCHAR, years_for_grizzlies VARCHAR)[/INST]SELECT nationality FROM table_name_54 WHERE years_for_grizzlies = "1998-2000"</s>
CREATE TABLE table_name_72 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_72 WHERE date = "9 march"
Which Report is Dated 9 March?
<s>[INST]Which Report is Dated 9 March? Context: CREATE TABLE table_name_72 (report VARCHAR, date VARCHAR)[/INST]SELECT report FROM table_name_72 WHERE date = "9 march"</s>
CREATE TABLE table_name_66 (round VARCHAR, player VARCHAR, position VARCHAR, year VARCHAR)
SELECT round FROM table_name_66 WHERE position = "sf/sg" AND year > 1965 AND player = "sly williams"
What round is sf/sg player sly williams from a year after 1965 from?
<s>[INST]What round is sf/sg player sly williams from a year after 1965 from? Context: CREATE TABLE table_name_66 (round VARCHAR, player VARCHAR, position VARCHAR, year VARCHAR)[/INST]SELECT round FROM table_name_66 WHERE position = "sf/sg" AND year > 1965 AND player = "sly williams"</s>
CREATE TABLE table_name_70 (year INTEGER, overall_pick VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_name_70 WHERE overall_pick = "8" AND name = "jordan hill"
What year was Jordan Hill picked overall number 8?
<s>[INST]What year was Jordan Hill picked overall number 8? Context: CREATE TABLE table_name_70 (year INTEGER, overall_pick VARCHAR, name VARCHAR)[/INST]SELECT MIN(year) FROM table_name_70 WHERE overall_pick = "8" AND name = "jordan hill"</s>
CREATE TABLE table_name_92 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_92 WHERE place = "t6" AND player = "jack nicklaus"
What score did Jack Nicklaus have when he placed t6?
<s>[INST]What score did Jack Nicklaus have when he placed t6? Context: CREATE TABLE table_name_92 (score VARCHAR, place VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_92 WHERE place = "t6" AND player = "jack nicklaus"</s>
CREATE TABLE Customer_Orders (customer_id VARCHAR, order_date INTEGER, order_status_code VARCHAR)
SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT MIN(order_date) FROM Customer_Orders WHERE order_status_code = "Cancelled")
Find the ids of all distinct customers who made order after some orders that were Cancelled.
<s>[INST]Find the ids of all distinct customers who made order after some orders that were Cancelled. Context: CREATE TABLE Customer_Orders (customer_id VARCHAR, order_date INTEGER, order_status_code VARCHAR)[/INST]SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT MIN(order_date) FROM Customer_Orders WHERE order_status_code = "Cancelled")</s>
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id
Find the names of customers who never placed an order.
<s>[INST]Find the names of customers who never placed an order. Context: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)[/INST]SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id</s>
CREATE TABLE table_11404452_1 (series__number INTEGER, writer_s_ VARCHAR)
SELECT MIN(series__number) FROM table_11404452_1 WHERE writer_s_ = "Shelia Lawrence"
When did Shelia Lawrence join the series?
<s>[INST]When did Shelia Lawrence join the series? Context: CREATE TABLE table_11404452_1 (series__number INTEGER, writer_s_ VARCHAR)[/INST]SELECT MIN(series__number) FROM table_11404452_1 WHERE writer_s_ = "Shelia Lawrence"</s>
CREATE TABLE table_29087004_3 (written_by VARCHAR, united_states_original_airdate VARCHAR)
SELECT written_by FROM table_29087004_3 WHERE united_states_original_airdate = "June 9, 2012"
Who were the writers of episode/s first aired in the US on June 9, 2012?
<s>[INST]Who were the writers of episode/s first aired in the US on June 9, 2012? Context: CREATE TABLE table_29087004_3 (written_by VARCHAR, united_states_original_airdate VARCHAR)[/INST]SELECT written_by FROM table_29087004_3 WHERE united_states_original_airdate = "June 9, 2012"</s>
CREATE TABLE table_name_44 (album VARCHAR, composer_s_ VARCHAR)
SELECT album FROM table_name_44 WHERE composer_s_ = "jimmie lee sloas"
Jimmie Lee Sloas was the composer for what album?
<s>[INST]Jimmie Lee Sloas was the composer for what album? Context: CREATE TABLE table_name_44 (album VARCHAR, composer_s_ VARCHAR)[/INST]SELECT album FROM table_name_44 WHERE composer_s_ = "jimmie lee sloas"</s>
CREATE TABLE table_name_28 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_28 WHERE attendance = 960
What is the date when the attendance is 960?
<s>[INST]What is the date when the attendance is 960? Context: CREATE TABLE table_name_28 (date VARCHAR, attendance VARCHAR)[/INST]SELECT date FROM table_name_28 WHERE attendance = 960</s>
CREATE TABLE table_name_93 (game INTEGER, record VARCHAR)
SELECT MIN(game) FROM table_name_93 WHERE record = "5-1-3"
Name the least game for record of 5-1-3
<s>[INST]Name the least game for record of 5-1-3 Context: CREATE TABLE table_name_93 (game INTEGER, record VARCHAR)[/INST]SELECT MIN(game) FROM table_name_93 WHERE record = "5-1-3"</s>
CREATE TABLE table_name_7 (player VARCHAR, round VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT player FROM table_name_7 WHERE nationality = "united states" AND position = "forward" AND round > 5
Which Player has United States as Nationality, forward as Position and a greater than 5 Round?
<s>[INST]Which Player has United States as Nationality, forward as Position and a greater than 5 Round? Context: CREATE TABLE table_name_7 (player VARCHAR, round VARCHAR, nationality VARCHAR, position VARCHAR)[/INST]SELECT player FROM table_name_7 WHERE nationality = "united states" AND position = "forward" AND round > 5</s>
CREATE TABLE table_name_47 (lost VARCHAR, club VARCHAR)
SELECT lost FROM table_name_47 WHERE club = "ynysybwl rfc"
What is the lost of Ynysybwl RFC?
<s>[INST]What is the lost of Ynysybwl RFC? Context: CREATE TABLE table_name_47 (lost VARCHAR, club VARCHAR)[/INST]SELECT lost FROM table_name_47 WHERE club = "ynysybwl rfc"</s>
CREATE TABLE table_30085411_1 (matches INTEGER)
SELECT MIN(matches) FROM table_30085411_1
what is the number of the least matches
<s>[INST]what is the number of the least matches Context: CREATE TABLE table_30085411_1 (matches INTEGER)[/INST]SELECT MIN(matches) FROM table_30085411_1</s>
CREATE TABLE table_28059992_6 (position VARCHAR, cfl_team VARCHAR)
SELECT position FROM table_28059992_6 WHERE cfl_team = "Edmonton"
What position was the player who was drafted by Edmonton?
<s>[INST]What position was the player who was drafted by Edmonton? Context: CREATE TABLE table_28059992_6 (position VARCHAR, cfl_team VARCHAR)[/INST]SELECT position FROM table_28059992_6 WHERE cfl_team = "Edmonton"</s>
CREATE TABLE table_14937957_1 (masters VARCHAR, martial_art_style VARCHAR)
SELECT COUNT(masters) FROM table_14937957_1 WHERE martial_art_style = "Boxing"
How many masters fought using a boxing style?
<s>[INST]How many masters fought using a boxing style? Context: CREATE TABLE table_14937957_1 (masters VARCHAR, martial_art_style VARCHAR)[/INST]SELECT COUNT(masters) FROM table_14937957_1 WHERE martial_art_style = "Boxing"</s>
CREATE TABLE table_name_45 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_45 WHERE week > 9 AND date = "november 20, 1983"
What is the attendance number later than week 9 on November 20, 1983?
<s>[INST]What is the attendance number later than week 9 on November 20, 1983? Context: CREATE TABLE table_name_45 (attendance VARCHAR, week VARCHAR, date VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_45 WHERE week > 9 AND date = "november 20, 1983"</s>
CREATE TABLE table_2482547_5 (team_s_ VARCHAR, average VARCHAR)
SELECT team_s_ FROM table_2482547_5 WHERE average = "15.89"
What are all the teams with an average of 15.89?
<s>[INST]What are all the teams with an average of 15.89? Context: CREATE TABLE table_2482547_5 (team_s_ VARCHAR, average VARCHAR)[/INST]SELECT team_s_ FROM table_2482547_5 WHERE average = "15.89"</s>
CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR)
SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "Bernie Chan"
Name the number of regular judge when host is bernie chan
<s>[INST]Name the number of regular judge when host is bernie chan Context: CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR)[/INST]SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "Bernie Chan"</s>
CREATE TABLE table_name_86 (venue VARCHAR, runner_up VARCHAR, champion__average_in_final_ VARCHAR)
SELECT venue FROM table_name_86 WHERE runner_up = "£20,000" AND champion__average_in_final_ = "phil taylor (109.35)"
what is the venue when the runner-up is £20,000, the champion (average in final) is phil taylor (109.35)?
<s>[INST]what is the venue when the runner-up is £20,000, the champion (average in final) is phil taylor (109.35)? Context: CREATE TABLE table_name_86 (venue VARCHAR, runner_up VARCHAR, champion__average_in_final_ VARCHAR)[/INST]SELECT venue FROM table_name_86 WHERE runner_up = "£20,000" AND champion__average_in_final_ = "phil taylor (109.35)"</s>
CREATE TABLE table_name_17 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_17 WHERE tie_no = "15"
When has a Tie no of 15?
<s>[INST]When has a Tie no of 15? Context: CREATE TABLE table_name_17 (date VARCHAR, tie_no VARCHAR)[/INST]SELECT date FROM table_name_17 WHERE tie_no = "15"</s>
CREATE TABLE table_name_94 (scorers VARCHAR, opponents VARCHAR, round VARCHAR)
SELECT scorers FROM table_name_94 WHERE opponents = "oldham athletic" AND round = "semi-final"
Who were the scorers in the semi-final round where oldham athletic were the opponents?
<s>[INST]Who were the scorers in the semi-final round where oldham athletic were the opponents? Context: CREATE TABLE table_name_94 (scorers VARCHAR, opponents VARCHAR, round VARCHAR)[/INST]SELECT scorers FROM table_name_94 WHERE opponents = "oldham athletic" AND round = "semi-final"</s>
CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_70 WHERE away_team = "richmond"
What is the date of the game where Richmond was the away team?
<s>[INST]What is the date of the game where Richmond was the away team? Context: CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR)[/INST]SELECT date FROM table_name_70 WHERE away_team = "richmond"</s>
CREATE TABLE party (Party_Theme VARCHAR, Number_of_hosts VARCHAR)
SELECT Party_Theme FROM party ORDER BY Number_of_hosts
List the themes of parties in ascending order of number of hosts.
<s>[INST]List the themes of parties in ascending order of number of hosts. Context: CREATE TABLE party (Party_Theme VARCHAR, Number_of_hosts VARCHAR)[/INST]SELECT Party_Theme FROM party ORDER BY Number_of_hosts</s>
CREATE TABLE table_name_87 (opponent VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_87 WHERE event = "rumble of the kings 6"
Who did he fight in Rumble of the Kings 6?
<s>[INST]Who did he fight in Rumble of the Kings 6? Context: CREATE TABLE table_name_87 (opponent VARCHAR, event VARCHAR)[/INST]SELECT opponent FROM table_name_87 WHERE event = "rumble of the kings 6"</s>
CREATE TABLE table_name_25 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE visitor = "new jersey" AND date = "february 27"
What is the score of the game on February 27 with New Jersey as the visitor team?
<s>[INST]What is the score of the game on February 27 with New Jersey as the visitor team? Context: CREATE TABLE table_name_25 (score VARCHAR, visitor VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_25 WHERE visitor = "new jersey" AND date = "february 27"</s>
CREATE TABLE table_10646790_2 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_10646790_2 WHERE date = "November 9, 1969"
How many weeks are there that include the date November 9, 1969.
<s>[INST]How many weeks are there that include the date November 9, 1969. Context: CREATE TABLE table_10646790_2 (week VARCHAR, date VARCHAR)[/INST]SELECT COUNT(week) FROM table_10646790_2 WHERE date = "November 9, 1969"</s>
CREATE TABLE table_name_2 (record VARCHAR, event VARCHAR, method VARCHAR)
SELECT record FROM table_name_2 WHERE event = "independent event" AND method = "submission (peruvian necktie)"
What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"?
<s>[INST]What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"? Context: CREATE TABLE table_name_2 (record VARCHAR, event VARCHAR, method VARCHAR)[/INST]SELECT record FROM table_name_2 WHERE event = "independent event" AND method = "submission (peruvian necktie)"</s>
CREATE TABLE table_name_25 (high_rebounds VARCHAR, score VARCHAR)
SELECT high_rebounds FROM table_name_25 WHERE score = "l 108–114 (ot)"
What is the name of the player with the High rebounds when there was a Score of l 108–114 (ot)?
<s>[INST]What is the name of the player with the High rebounds when there was a Score of l 108–114 (ot)? Context: CREATE TABLE table_name_25 (high_rebounds VARCHAR, score VARCHAR)[/INST]SELECT high_rebounds FROM table_name_25 WHERE score = "l 108–114 (ot)"</s>
CREATE TABLE table_name_59 (series_ep VARCHAR, segment_c VARCHAR)
SELECT series_ep FROM table_name_59 WHERE segment_c = "electric pole s transformer"
Which series episode has a segment c that is Electric pole s transformer?
<s>[INST]Which series episode has a segment c that is Electric pole s transformer? Context: CREATE TABLE table_name_59 (series_ep VARCHAR, segment_c VARCHAR)[/INST]SELECT series_ep FROM table_name_59 WHERE segment_c = "electric pole s transformer"</s>
CREATE TABLE table_name_60 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 12"
Who was the home team when the vistor team was the Montreal Canadiens on February 12?
<s>[INST]Who was the home team when the vistor team was the Montreal Canadiens on February 12? Context: CREATE TABLE table_name_60 (home VARCHAR, visitor VARCHAR, date VARCHAR)[/INST]SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 12"</s>
CREATE TABLE table_name_40 (adam INTEGER, jade VARCHAR, peter VARCHAR)
SELECT AVG(adam) FROM table_name_40 WHERE jade > 5 AND peter < 0
What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?
<s>[INST]What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0? Context: CREATE TABLE table_name_40 (adam INTEGER, jade VARCHAR, peter VARCHAR)[/INST]SELECT AVG(adam) FROM table_name_40 WHERE jade > 5 AND peter < 0</s>
CREATE TABLE table_28768469_7 (game INTEGER, location_attendance VARCHAR)
SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"
What is listed in game when the location attendance is listed as Keyarena 16,841?
<s>[INST]What is listed in game when the location attendance is listed as Keyarena 16,841? Context: CREATE TABLE table_28768469_7 (game INTEGER, location_attendance VARCHAR)[/INST]SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"</s>
CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR, pick VARCHAR)
SELECT COUNT(round) FROM table_name_39 WHERE college = "texas" AND pick < 25
What are the total rounds for the texas college and has a pick smaller than 25?
<s>[INST]What are the total rounds for the texas college and has a pick smaller than 25? Context: CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR, pick VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_39 WHERE college = "texas" AND pick < 25</s>
CREATE TABLE table_name_38 (rank INTEGER, state VARCHAR)
SELECT AVG(rank) FROM table_name_38 WHERE state = "maine"
What is the average rank of a mountain range located in Maine?
<s>[INST]What is the average rank of a mountain range located in Maine? Context: CREATE TABLE table_name_38 (rank INTEGER, state VARCHAR)[/INST]SELECT AVG(rank) FROM table_name_38 WHERE state = "maine"</s>
CREATE TABLE table_name_71 (river_mile INTEGER, pool_length__miles_ VARCHAR, lock_lift_drop__in_feet_ VARCHAR)
SELECT MAX(river_mile) FROM table_name_71 WHERE pool_length__miles_ = "42.2" AND lock_lift_drop__in_feet_ = "21"
What is the highest River Mile that has a pool length of 42.2 miles or a lock/lift drop of 21 feet?
<s>[INST]What is the highest River Mile that has a pool length of 42.2 miles or a lock/lift drop of 21 feet? Context: CREATE TABLE table_name_71 (river_mile INTEGER, pool_length__miles_ VARCHAR, lock_lift_drop__in_feet_ VARCHAR)[/INST]SELECT MAX(river_mile) FROM table_name_71 WHERE pool_length__miles_ = "42.2" AND lock_lift_drop__in_feet_ = "21"</s>
CREATE TABLE table_name_19 (team VARCHAR, players VARCHAR)
SELECT team FROM table_name_19 WHERE players = "amanda coetzer and marcos ondruska"
Players of amanda coetzer and marcos ondruska is what team?
<s>[INST]Players of amanda coetzer and marcos ondruska is what team? Context: CREATE TABLE table_name_19 (team VARCHAR, players VARCHAR)[/INST]SELECT team FROM table_name_19 WHERE players = "amanda coetzer and marcos ondruska"</s>
CREATE TABLE table_name_62 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_name_62 WHERE date = "2009-02-26"
what is the final score when the date is 2009-02-26?
<s>[INST]what is the final score when the date is 2009-02-26? Context: CREATE TABLE table_name_62 (final_score VARCHAR, date VARCHAR)[/INST]SELECT final_score FROM table_name_62 WHERE date = "2009-02-26"</s>
CREATE TABLE table_name_6 (decile INTEGER, area VARCHAR)
SELECT SUM(decile) FROM table_name_6 WHERE area = "waikanae"
What is the total Decile with Waikanae Area?
<s>[INST]What is the total Decile with Waikanae Area? Context: CREATE TABLE table_name_6 (decile INTEGER, area VARCHAR)[/INST]SELECT SUM(decile) FROM table_name_6 WHERE area = "waikanae"</s>
CREATE TABLE table_name_59 (team VARCHAR, home_city VARCHAR)
SELECT team FROM table_name_59 WHERE home_city = "terni"
What team is from terni?
<s>[INST]What team is from terni? Context: CREATE TABLE table_name_59 (team VARCHAR, home_city VARCHAR)[/INST]SELECT team FROM table_name_59 WHERE home_city = "terni"</s>
CREATE TABLE table_name_89 (tournament VARCHAR, total VARCHAR, team VARCHAR)
SELECT COUNT(tournament) FROM table_name_89 WHERE total > 0 AND team = "texas"
How many tournament titles for texas with over 0 total?
<s>[INST]How many tournament titles for texas with over 0 total? Context: CREATE TABLE table_name_89 (tournament VARCHAR, total VARCHAR, team VARCHAR)[/INST]SELECT COUNT(tournament) FROM table_name_89 WHERE total > 0 AND team = "texas"</s>
CREATE TABLE table_name_32 (best INTEGER, name VARCHAR)
SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira"
What is the total best for Bruno junqueira
<s>[INST]What is the total best for Bruno junqueira Context: CREATE TABLE table_name_32 (best INTEGER, name VARCHAR)[/INST]SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira"</s>
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT SUM(1886) FROM table_name_19 WHERE 1866 > 1070 AND 1891 < 1946
What is the sum of 1886(s), when 1886 is greater than 1070, and when 1891 is less than 1946?
<s>[INST]What is the sum of 1886(s), when 1886 is greater than 1070, and when 1891 is less than 1946? Context: CREATE TABLE table_name_19 (Id VARCHAR)[/INST]SELECT SUM(1886) FROM table_name_19 WHERE 1866 > 1070 AND 1891 < 1946</s>
CREATE TABLE table_name_40 (home_ground VARCHAR, region VARCHAR)
SELECT home_ground FROM table_name_40 WHERE region = "nzl"
What is the home ground in region NZL?
<s>[INST]What is the home ground in region NZL? Context: CREATE TABLE table_name_40 (home_ground VARCHAR, region VARCHAR)[/INST]SELECT home_ground FROM table_name_40 WHERE region = "nzl"</s>
CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_98 WHERE venue = "arden street oval"
Who was the Away team at Arden Street Oval?
<s>[INST]Who was the Away team at Arden Street Oval? Context: CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team FROM table_name_98 WHERE venue = "arden street oval"</s>
CREATE TABLE table_name_33 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_33 WHERE date = "23 january 1982" AND home_team = "sunderland"
Who did home team sunderland play on 23 january 1982?
<s>[INST]Who did home team sunderland play on 23 january 1982? Context: CREATE TABLE table_name_33 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_33 WHERE date = "23 january 1982" AND home_team = "sunderland"</s>
CREATE TABLE table_name_23 (time_retired VARCHAR, laps INTEGER)
SELECT time_retired FROM table_name_23 WHERE laps < 4
what is the time/retired when the laps is less than 4?
<s>[INST]what is the time/retired when the laps is less than 4? Context: CREATE TABLE table_name_23 (time_retired VARCHAR, laps INTEGER)[/INST]SELECT time_retired FROM table_name_23 WHERE laps < 4</s>
CREATE TABLE table_2509202_2 (combaya_municipality VARCHAR, quiabaya_municipality VARCHAR)
SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "33"
What is the number for combaya municipality when quiabaya municipality is 33?
<s>[INST]What is the number for combaya municipality when quiabaya municipality is 33? Context: CREATE TABLE table_2509202_2 (combaya_municipality VARCHAR, quiabaya_municipality VARCHAR)[/INST]SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "33"</s>
CREATE TABLE table_12305325_4 (safe VARCHAR, eliminated VARCHAR)
SELECT safe FROM table_12305325_4 WHERE eliminated = "John and Nicole"
Who is safe if John and Nicole are eliminated?
<s>[INST]Who is safe if John and Nicole are eliminated? Context: CREATE TABLE table_12305325_4 (safe VARCHAR, eliminated VARCHAR)[/INST]SELECT safe FROM table_12305325_4 WHERE eliminated = "John and Nicole"</s>
CREATE TABLE table_name_99 (part_number_s_ VARCHAR, release_price___usd__ VARCHAR, release_date VARCHAR, frequency VARCHAR)
SELECT part_number_s_ FROM table_name_99 WHERE release_date = "january 2011" AND frequency = "3.4 ghz" AND release_price___usd__ = "$317"
what is the part number when the release date is january 2011, the frequency is 3.4 ghz and the release price (usd) is $317?
<s>[INST]what is the part number when the release date is january 2011, the frequency is 3.4 ghz and the release price (usd) is $317? Context: CREATE TABLE table_name_99 (part_number_s_ VARCHAR, release_price___usd__ VARCHAR, release_date VARCHAR, frequency VARCHAR)[/INST]SELECT part_number_s_ FROM table_name_99 WHERE release_date = "january 2011" AND frequency = "3.4 ghz" AND release_price___usd__ = "$317"</s>
CREATE TABLE table_name_95 (date VARCHAR, high_assists VARCHAR)
SELECT date FROM table_name_95 WHERE high_assists = "mike taylor (5)"
What day was the high assist Mike Taylor (5)?
<s>[INST]What day was the high assist Mike Taylor (5)? Context: CREATE TABLE table_name_95 (date VARCHAR, high_assists VARCHAR)[/INST]SELECT date FROM table_name_95 WHERE high_assists = "mike taylor (5)"</s>
CREATE TABLE table_25220821_4 (rider VARCHAR, rank VARCHAR)
SELECT rider FROM table_25220821_4 WHERE rank = 2
Who is ranked 2?
<s>[INST]Who is ranked 2? Context: CREATE TABLE table_25220821_4 (rider VARCHAR, rank VARCHAR)[/INST]SELECT rider FROM table_25220821_4 WHERE rank = 2</s>
CREATE TABLE table_name_26 (points INTEGER, visitor VARCHAR, attendance VARCHAR)
SELECT SUM(points) FROM table_name_26 WHERE visitor = "philadelphia" AND attendance > 7 OFFSET 284
What is the sum of the points of the game with philadelphia as the visitor and an attendance greater than 7,284?
<s>[INST]What is the sum of the points of the game with philadelphia as the visitor and an attendance greater than 7,284? Context: CREATE TABLE table_name_26 (points INTEGER, visitor VARCHAR, attendance VARCHAR)[/INST]SELECT SUM(points) FROM table_name_26 WHERE visitor = "philadelphia" AND attendance > 7 OFFSET 284</s>
CREATE TABLE table_name_36 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_36 WHERE date = "october 19, 2003"
what is the attendance on october 19, 2003?
<s>[INST]what is the attendance on october 19, 2003? Context: CREATE TABLE table_name_36 (attendance VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_36 WHERE date = "october 19, 2003"</s>
CREATE TABLE railway (Builder VARCHAR)
SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1
Show the most common builder of railways.
<s>[INST]Show the most common builder of railways. Context: CREATE TABLE railway (Builder VARCHAR)[/INST]SELECT Builder FROM railway GROUP BY Builder ORDER BY COUNT(*) DESC LIMIT 1</s>
CREATE TABLE table_name_33 (manufacture VARCHAR, opened_in VARCHAR, type VARCHAR)
SELECT manufacture FROM table_name_33 WHERE opened_in < 2001 AND type = "mini jet red baron"
Who is the manufacturer of the mini jet red baron ride that opened before 2001?
<s>[INST]Who is the manufacturer of the mini jet red baron ride that opened before 2001? Context: CREATE TABLE table_name_33 (manufacture VARCHAR, opened_in VARCHAR, type VARCHAR)[/INST]SELECT manufacture FROM table_name_33 WHERE opened_in < 2001 AND type = "mini jet red baron"</s>
CREATE TABLE table_name_70 (race_name VARCHAR, year VARCHAR, winner VARCHAR)
SELECT race_name FROM table_name_70 WHERE year > 1956 AND winner = "jud larson"
Jud Larson who which race after 1956?
<s>[INST]Jud Larson who which race after 1956? Context: CREATE TABLE table_name_70 (race_name VARCHAR, year VARCHAR, winner VARCHAR)[/INST]SELECT race_name FROM table_name_70 WHERE year > 1956 AND winner = "jud larson"</s>
CREATE TABLE table_17366952_1 (played VARCHAR, team VARCHAR)
SELECT COUNT(played) FROM table_17366952_1 WHERE team = "Lancaster City"
How many times did the Lancaster City team play?
<s>[INST]How many times did the Lancaster City team play? Context: CREATE TABLE table_17366952_1 (played VARCHAR, team VARCHAR)[/INST]SELECT COUNT(played) FROM table_17366952_1 WHERE team = "Lancaster City"</s>
CREATE TABLE table_name_35 (played INTEGER, drawn VARCHAR, against VARCHAR)
SELECT SUM(played) FROM table_name_35 WHERE drawn < 2 AND against > 29
What is the sum of Played when the drawn is less than 2 and against is more than 29?
<s>[INST]What is the sum of Played when the drawn is less than 2 and against is more than 29? Context: CREATE TABLE table_name_35 (played INTEGER, drawn VARCHAR, against VARCHAR)[/INST]SELECT SUM(played) FROM table_name_35 WHERE drawn < 2 AND against > 29</s>
CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR)
SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989"
Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?
<s>[INST]Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989? Context: CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR)[/INST]SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989"</s>
CREATE TABLE table_name_62 (Id VARCHAR)
SELECT 2009 FROM table_name_62 WHERE 2011 = "q2"
What is 2009, when 2011 is "Q2"?
<s>[INST]What is 2009, when 2011 is "Q2"? Context: CREATE TABLE table_name_62 (Id VARCHAR)[/INST]SELECT 2009 FROM table_name_62 WHERE 2011 = "q2"</s>
CREATE TABLE table_name_71 (wheels INTEGER, type VARCHAR, location VARCHAR)
SELECT AVG(wheels) FROM table_name_71 WHERE type = "accounting" AND location = "ibm collection"
What average wheels has accounting as the type, with IBM Collection as the location?
<s>[INST]What average wheels has accounting as the type, with IBM Collection as the location? Context: CREATE TABLE table_name_71 (wheels INTEGER, type VARCHAR, location VARCHAR)[/INST]SELECT AVG(wheels) FROM table_name_71 WHERE type = "accounting" AND location = "ibm collection"</s>
CREATE TABLE table_29747178_3 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_29747178_3 WHERE production_code = "FL209"
What is the title of the episode with a production code of FL209?
<s>[INST]What is the title of the episode with a production code of FL209? Context: CREATE TABLE table_29747178_3 (title VARCHAR, production_code VARCHAR)[/INST]SELECT title FROM table_29747178_3 WHERE production_code = "FL209"</s>
CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR)
SELECT date FROM table_name_73 WHERE callback_venue = "total tickets to hollywood"
What day has a callback Venue of total tickets to hollywood? Question
<s>[INST]What day has a callback Venue of total tickets to hollywood? Question Context: CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR)[/INST]SELECT date FROM table_name_73 WHERE callback_venue = "total tickets to hollywood"</s>
CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR, bike VARCHAR)
SELECT MAX(laps) FROM table_name_56 WHERE time = "accident" AND bike = "suzuki gsx-r1000"
What is the highest number of laps with an accident time and a suzuki gsx-r1000 bike?
<s>[INST]What is the highest number of laps with an accident time and a suzuki gsx-r1000 bike? Context: CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR, bike VARCHAR)[/INST]SELECT MAX(laps) FROM table_name_56 WHERE time = "accident" AND bike = "suzuki gsx-r1000"</s>
CREATE TABLE table_name_89 (country VARCHAR, icao VARCHAR)
SELECT country FROM table_name_89 WHERE icao = "hesh"
What is Country, when ICAO is "Hesh"?
<s>[INST]What is Country, when ICAO is "Hesh"? Context: CREATE TABLE table_name_89 (country VARCHAR, icao VARCHAR)[/INST]SELECT country FROM table_name_89 WHERE icao = "hesh"</s>
CREATE TABLE table_29071587_1 (built_for VARCHAR, original_no VARCHAR)
SELECT built_for FROM table_29071587_1 WHERE original_no = "24D"
What is listed in built for when the original number is 24d?
<s>[INST]What is listed in built for when the original number is 24d? Context: CREATE TABLE table_29071587_1 (built_for VARCHAR, original_no VARCHAR)[/INST]SELECT built_for FROM table_29071587_1 WHERE original_no = "24D"</s>
CREATE TABLE table_22982552_9 (position VARCHAR, highlight_s_ VARCHAR)
SELECT position FROM table_22982552_9 WHERE highlight_s_ = "5 career INTs"
What position did the player whose highlights were 5 career INTs play?
<s>[INST]What position did the player whose highlights were 5 career INTs play? Context: CREATE TABLE table_22982552_9 (position VARCHAR, highlight_s_ VARCHAR)[/INST]SELECT position FROM table_22982552_9 WHERE highlight_s_ = "5 career INTs"</s>
CREATE TABLE table_name_13 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT outgoing_manager FROM table_name_13 WHERE date_of_vacancy = "22 november"
Tell me the outgoing manager for 22 november date of vacancy
<s>[INST]Tell me the outgoing manager for 22 november date of vacancy Context: CREATE TABLE table_name_13 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)[/INST]SELECT outgoing_manager FROM table_name_13 WHERE date_of_vacancy = "22 november"</s>
CREATE TABLE member (membership_card VARCHAR, address VARCHAR)
SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'
What is the membership card held by both members living in Hartford and ones living in Waterbury address?
<s>[INST]What is the membership card held by both members living in Hartford and ones living in Waterbury address? Context: CREATE TABLE member (membership_card VARCHAR, address VARCHAR)[/INST]SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'</s>
CREATE TABLE table_name_61 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR)
SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "0 (1)"
How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?
<s>[INST]How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)? Context: CREATE TABLE table_name_61 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR)[/INST]SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "0 (1)"</s>
CREATE TABLE table_name_17 (date VARCHAR, school VARCHAR)
SELECT date FROM table_name_17 WHERE school = "ferris high school"
What is the Date of the Athlete from Ferris High School?
<s>[INST]What is the Date of the Athlete from Ferris High School? Context: CREATE TABLE table_name_17 (date VARCHAR, school VARCHAR)[/INST]SELECT date FROM table_name_17 WHERE school = "ferris high school"</s>
CREATE TABLE table_25643046_1 (location VARCHAR, origin_time VARCHAR)
SELECT location FROM table_25643046_1 WHERE origin_time = "14:07"
Where was the quake that began at 14:07?
<s>[INST]Where was the quake that began at 14:07? Context: CREATE TABLE table_25643046_1 (location VARCHAR, origin_time VARCHAR)[/INST]SELECT location FROM table_25643046_1 WHERE origin_time = "14:07"</s>
CREATE TABLE table_name_23 (losses INTEGER, win__percentage VARCHAR, no_result VARCHAR)
SELECT SUM(losses) FROM table_name_23 WHERE win__percentage = "71.43%" AND no_result > 0
What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0?
<s>[INST]What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0? Context: CREATE TABLE table_name_23 (losses INTEGER, win__percentage VARCHAR, no_result VARCHAR)[/INST]SELECT SUM(losses) FROM table_name_23 WHERE win__percentage = "71.43%" AND no_result > 0</s>
CREATE TABLE table_name_13 (manufacturer VARCHAR, rider VARCHAR)
SELECT manufacturer FROM table_name_13 WHERE rider = "loris capirossi"
Which manufacturer does Loris Capirossi ride for?
<s>[INST]Which manufacturer does Loris Capirossi ride for? Context: CREATE TABLE table_name_13 (manufacturer VARCHAR, rider VARCHAR)[/INST]SELECT manufacturer FROM table_name_13 WHERE rider = "loris capirossi"</s>
CREATE TABLE table_name_27 (wins VARCHAR, byes INTEGER)
SELECT COUNT(wins) FROM table_name_27 WHERE byes > 3
How many wins were there when the byes were more than 3?
<s>[INST]How many wins were there when the byes were more than 3? Context: CREATE TABLE table_name_27 (wins VARCHAR, byes INTEGER)[/INST]SELECT COUNT(wins) FROM table_name_27 WHERE byes > 3</s>
CREATE TABLE table_1342149_6 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342149_6 WHERE incumbent = "Clair Engle"
Which party had Clair Engle as an incumbent?
<s>[INST]Which party had Clair Engle as an incumbent? Context: CREATE TABLE table_1342149_6 (party VARCHAR, incumbent VARCHAR)[/INST]SELECT party FROM table_1342149_6 WHERE incumbent = "Clair Engle"</s>
CREATE TABLE table_name_96 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_96 WHERE venue = "a" AND opponent = "manchester united"
Which Result has a Venue of A, and an Opponent of manchester united?
<s>[INST]Which Result has a Venue of A, and an Opponent of manchester united? Context: CREATE TABLE table_name_96 (result VARCHAR, venue VARCHAR, opponent VARCHAR)[/INST]SELECT result FROM table_name_96 WHERE venue = "a" AND opponent = "manchester united"</s>
CREATE TABLE table_name_12 (earnings___ INTEGER, rank INTEGER)
SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 1
Which Earnings ($) is the lowest one that has a Rank smaller than 1?
<s>[INST]Which Earnings ($) is the lowest one that has a Rank smaller than 1? Context: CREATE TABLE table_name_12 (earnings___ INTEGER, rank INTEGER)[/INST]SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 1</s>
CREATE TABLE table_name_34 (capacity INTEGER, head_coach VARCHAR)
SELECT SUM(capacity) FROM table_name_34 WHERE head_coach = "farhad kazemi"
What is the Capacity of the Venue of Head Coach Farhad Kazemi?
<s>[INST]What is the Capacity of the Venue of Head Coach Farhad Kazemi? Context: CREATE TABLE table_name_34 (capacity INTEGER, head_coach VARCHAR)[/INST]SELECT SUM(capacity) FROM table_name_34 WHERE head_coach = "farhad kazemi"</s>
CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
<s>[INST]What is the least number of laps for the constructor Ferrari and where the grid number was less than 4? Context: CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR)[/INST]SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4</s>
CREATE TABLE match_season (College VARCHAR)
SELECT College FROM match_season GROUP BY College ORDER BY COUNT(*) DESC LIMIT 3
Show the top 3 most common colleges of players in match seasons.
<s>[INST]Show the top 3 most common colleges of players in match seasons. Context: CREATE TABLE match_season (College VARCHAR)[/INST]SELECT College FROM match_season GROUP BY College ORDER BY COUNT(*) DESC LIMIT 3</s>
CREATE TABLE table_name_69 (pole_position VARCHAR, race VARCHAR)
SELECT pole_position FROM table_name_69 WHERE race = "french grand prix"
Who had Pole position for the French Grand Prix?
<s>[INST]Who had Pole position for the French Grand Prix? Context: CREATE TABLE table_name_69 (pole_position VARCHAR, race VARCHAR)[/INST]SELECT pole_position FROM table_name_69 WHERE race = "french grand prix"</s>
CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR)
SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1
Find the first name and country code of the oldest player.
<s>[INST]Find the first name and country code of the oldest player. Context: CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR)[/INST]SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1</s>
CREATE TABLE table_name_79 (abbreviation VARCHAR, inception VARCHAR, assets_us$billion VARCHAR)
SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1"
What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?
<s>[INST]What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1? Context: CREATE TABLE table_name_79 (abbreviation VARCHAR, inception VARCHAR, assets_us$billion VARCHAR)[/INST]SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1"</s>
CREATE TABLE table_name_30 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT country FROM table_name_30 WHERE to_par = "+3" AND score = 74 - 73 = 147
What is the country that the player is from with +3 to par and score of 74-73=147?
<s>[INST]What is the country that the player is from with +3 to par and score of 74-73=147? Context: CREATE TABLE table_name_30 (country VARCHAR, to_par VARCHAR, score VARCHAR)[/INST]SELECT country FROM table_name_30 WHERE to_par = "+3" AND score = 74 - 73 = 147</s>
CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (stars INTEGER, rID VARCHAR)
SELECT T2.name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name
What is the average rating star for each reviewer?
<s>[INST]What is the average rating star for each reviewer? Context: CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (stars INTEGER, rID VARCHAR)[/INST]SELECT T2.name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name</s>
CREATE TABLE table_1231892_4 (number_in_series INTEGER, broadcast_order VARCHAR)
SELECT MAX(number_in_series) FROM table_1231892_4 WHERE broadcast_order = "S04 E07"
What's the series number of the episode with a broadcast order s04 e07?
<s>[INST]What's the series number of the episode with a broadcast order s04 e07? Context: CREATE TABLE table_1231892_4 (number_in_series INTEGER, broadcast_order VARCHAR)[/INST]SELECT MAX(number_in_series) FROM table_1231892_4 WHERE broadcast_order = "S04 E07"</s>
CREATE TABLE table_name_85 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT score FROM table_name_85 WHERE home = "detroit" AND record = "33-18-9"
Name the score for detroit home and record of 33-18-9
<s>[INST]Name the score for detroit home and record of 33-18-9 Context: CREATE TABLE table_name_85 (score VARCHAR, home VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_name_85 WHERE home = "detroit" AND record = "33-18-9"</s>
CREATE TABLE table_name_16 (born_died VARCHAR, country VARCHAR)
SELECT born_died FROM table_name_16 WHERE country = "italy"
What is the Born-Died date for the Representative of Italy?
<s>[INST]What is the Born-Died date for the Representative of Italy? Context: CREATE TABLE table_name_16 (born_died VARCHAR, country VARCHAR)[/INST]SELECT born_died FROM table_name_16 WHERE country = "italy"</s>
CREATE TABLE table_name_60 (comp VARCHAR, venue VARCHAR)
SELECT comp FROM table_name_60 WHERE venue = "olympic stadium tokyo, japan"
What's the comp in Olympic Stadium Tokyo, Japan?
<s>[INST]What's the comp in Olympic Stadium Tokyo, Japan? Context: CREATE TABLE table_name_60 (comp VARCHAR, venue VARCHAR)[/INST]SELECT comp FROM table_name_60 WHERE venue = "olympic stadium tokyo, japan"</s>
CREATE TABLE table_name_11 (type VARCHAR, e_coli VARCHAR)
SELECT type FROM table_name_11 WHERE e_coli = "muty"
What is the type of glycosylase that has an E. coli of Muty?
<s>[INST]What is the type of glycosylase that has an E. coli of Muty? Context: CREATE TABLE table_name_11 (type VARCHAR, e_coli VARCHAR)[/INST]SELECT type FROM table_name_11 WHERE e_coli = "muty"</s>