context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_35 (time VARCHAR, lane VARCHAR)
SELECT time FROM table_name_35 WHERE lane = 8
Can you tell me the Time that has the Lane of 8?
<s>[INST]Can you tell me the Time that has the Lane of 8? Context: CREATE TABLE table_name_35 (time VARCHAR, lane VARCHAR)[/INST]SELECT time FROM table_name_35 WHERE lane = 8</s>
CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)
SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 4
How many times is the country ireland and points more than 4?
<s>[INST]How many times is the country ireland and points more than 4? Context: CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)[/INST]SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 4</s>
CREATE TABLE table_name_39 (country VARCHAR, event VARCHAR)
SELECT country FROM table_name_39 WHERE event = "10,000m"
What is the Country of the 10,000m Event?
<s>[INST]What is the Country of the 10,000m Event? Context: CREATE TABLE table_name_39 (country VARCHAR, event VARCHAR)[/INST]SELECT country FROM table_name_39 WHERE event = "10,000m"</s>
CREATE TABLE table_name_5 (yards INTEGER, average VARCHAR, carries VARCHAR, team VARCHAR)
SELECT MIN(yards) FROM table_name_5 WHERE carries < 23 AND team = "at chi" AND average < 8.5
Which Yards have Carries smaller than 23, and a Team of at chi, and an Average smaller than 8.5?
<s>[INST]Which Yards have Carries smaller than 23, and a Team of at chi, and an Average smaller than 8.5? Context: CREATE TABLE table_name_5 (yards INTEGER, average VARCHAR, carries VARCHAR, team VARCHAR)[/INST]SELECT MIN(yards) FROM table_name_5 WHERE carries < 23 AND team = "at chi" AND average < 8.5</s>
CREATE TABLE table_15838081_3 (series__number INTEGER, writer_s_ VARCHAR)
SELECT MAX(series__number) FROM table_15838081_3 WHERE writer_s_ = "Giula Sandler"
Name the most series number for giula sandler
<s>[INST]Name the most series number for giula sandler Context: CREATE TABLE table_15838081_3 (series__number INTEGER, writer_s_ VARCHAR)[/INST]SELECT MAX(series__number) FROM table_15838081_3 WHERE writer_s_ = "Giula Sandler"</s>
CREATE TABLE company (name VARCHAR, Sales_in_Billion INTEGER, Profits_in_Billion VARCHAR)
SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion, Profits_in_Billion DESC
list the names of the companies with more than 200 sales in the descending order of sales and profits.
<s>[INST]list the names of the companies with more than 200 sales in the descending order of sales and profits. Context: CREATE TABLE company (name VARCHAR, Sales_in_Billion INTEGER, Profits_in_Billion VARCHAR)[/INST]SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion, Profits_in_Billion DES...
CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR)
SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "white"
List all the product names with the color description "white".
<s>[INST]List all the product names with the color description "white". Context: CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR)[/INST]SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_co...
CREATE TABLE table_11694832_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT us_viewers__millions_ FROM table_11694832_1 WHERE production_code = "3T5769"
How many millions of U.S. viewers watched the show with a production code of 3T5769?
<s>[INST]How many millions of U.S. viewers watched the show with a production code of 3T5769? Context: CREATE TABLE table_11694832_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)[/INST]SELECT us_viewers__millions_ FROM table_11694832_1 WHERE production_code = "3T5769"</s>
CREATE TABLE table_1566852_7 (interview_subject VARCHAR)
SELECT COUNT(20 AS _questions) FROM table_1566852_7 WHERE interview_subject = "Ludacris"
HOW MANY TIMES WAS LUDACRIS THE INTERVIEW SUBJECT FOR THE 20 QUESTIONS COLUMN?
<s>[INST]HOW MANY TIMES WAS LUDACRIS THE INTERVIEW SUBJECT FOR THE 20 QUESTIONS COLUMN? Context: CREATE TABLE table_1566852_7 (interview_subject VARCHAR)[/INST]SELECT COUNT(20 AS _questions) FROM table_1566852_7 WHERE interview_subject = "Ludacris"</s>
CREATE TABLE table_name_4 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_name_4 WHERE first_elected = "1900"
when first elected was 1900 what was the district?
<s>[INST]when first elected was 1900 what was the district? Context: CREATE TABLE table_name_4 (district VARCHAR, first_elected VARCHAR)[/INST]SELECT district FROM table_name_4 WHERE first_elected = "1900"</s>
CREATE TABLE table_23286158_10 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_23286158_10 WHERE high_rebounds = "Marcus Camby (15)"
When marcus camby (15) has the highest amount of rebounds what is the date?
<s>[INST]When marcus camby (15) has the highest amount of rebounds what is the date? Context: CREATE TABLE table_23286158_10 (date VARCHAR, high_rebounds VARCHAR)[/INST]SELECT date FROM table_23286158_10 WHERE high_rebounds = "Marcus Camby (15)"</s>
CREATE TABLE table_name_59 (january VARCHAR, march VARCHAR)
SELECT january FROM table_name_59 WHERE march = "alexandria karlsen"
Who is the January playmate with a March playmate Alexandria Karlsen?
<s>[INST]Who is the January playmate with a March playmate Alexandria Karlsen? Context: CREATE TABLE table_name_59 (january VARCHAR, march VARCHAR)[/INST]SELECT january FROM table_name_59 WHERE march = "alexandria karlsen"</s>
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_99 WHERE country = "south africa"
What place is South Africa?
<s>[INST]What place is South Africa? Context: CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)[/INST]SELECT place FROM table_name_99 WHERE country = "south africa"</s>
CREATE TABLE table_name_72 (isbn_us VARCHAR, title VARCHAR)
SELECT isbn_us FROM table_name_72 WHERE title = "crisis in space"
What is ISBN US, when Title is "Crisis In Space"?
<s>[INST]What is ISBN US, when Title is "Crisis In Space"? Context: CREATE TABLE table_name_72 (isbn_us VARCHAR, title VARCHAR)[/INST]SELECT isbn_us FROM table_name_72 WHERE title = "crisis in space"</s>
CREATE TABLE table_name_70 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_70 WHERE home_team = "south melbourne"
Who was South Melbourne's away team opponents?
<s>[INST]Who was South Melbourne's away team opponents? Context: CREATE TABLE table_name_70 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_70 WHERE home_team = "south melbourne"</s>
CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_51 WHERE opponent = "winnipeg jets"
What is the Winnipeg Jets record?
<s>[INST]What is the Winnipeg Jets record? Context: CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)[/INST]SELECT record FROM table_name_51 WHERE opponent = "winnipeg jets"</s>
CREATE TABLE table_13618584_1 (elected VARCHAR)
SELECT 2007 AS _result FROM table_13618584_1 WHERE elected = 1996
What was the 2007 result in the district where the incumbent was elected in 1996?
<s>[INST]What was the 2007 result in the district where the incumbent was elected in 1996? Context: CREATE TABLE table_13618584_1 (elected VARCHAR)[/INST]SELECT 2007 AS _result FROM table_13618584_1 WHERE elected = 1996</s>
CREATE TABLE table_2597876_2 (top_5 VARCHAR, avg_start VARCHAR)
SELECT top_5 FROM table_2597876_2 WHERE avg_start = "21.9"
What is every value for top 5 if average start is 21.9?
<s>[INST]What is every value for top 5 if average start is 21.9? Context: CREATE TABLE table_2597876_2 (top_5 VARCHAR, avg_start VARCHAR)[/INST]SELECT top_5 FROM table_2597876_2 WHERE avg_start = "21.9"</s>
CREATE TABLE table_name_49 (round VARCHAR, record VARCHAR)
SELECT round FROM table_name_49 WHERE record = "3-4"
What round has 3-4 as the record?
<s>[INST]What round has 3-4 as the record? Context: CREATE TABLE table_name_49 (round VARCHAR, record VARCHAR)[/INST]SELECT round FROM table_name_49 WHERE record = "3-4"</s>
CREATE TABLE table_name_29 (time VARCHAR, song_title VARCHAR)
SELECT time FROM table_name_29 WHERE song_title = "treat me nice"
What is the time from the song called Treat Me Nice?
<s>[INST]What is the time from the song called Treat Me Nice? Context: CREATE TABLE table_name_29 (time VARCHAR, song_title VARCHAR)[/INST]SELECT time FROM table_name_29 WHERE song_title = "treat me nice"</s>
CREATE TABLE table_name_19 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_19 WHERE time = "3:38"
What Records Time is 3:38?
<s>[INST]What Records Time is 3:38? Context: CREATE TABLE table_name_19 (record VARCHAR, time VARCHAR)[/INST]SELECT record FROM table_name_19 WHERE time = "3:38"</s>
CREATE TABLE table_name_24 (tournament VARCHAR)
SELECT tournament FROM table_name_24 WHERE 1983 = "0 / 1"
In 1983 what is the tournament that is 0 / 1?
<s>[INST]In 1983 what is the tournament that is 0 / 1? Context: CREATE TABLE table_name_24 (tournament VARCHAR)[/INST]SELECT tournament FROM table_name_24 WHERE 1983 = "0 / 1"</s>
CREATE TABLE table_name_63 (result VARCHAR, week VARCHAR, record VARCHAR)
SELECT result FROM table_name_63 WHERE week < 4 AND record = "1-0"
What is the result when the record was 1-0 and it was earlier than week 4?
<s>[INST]What is the result when the record was 1-0 and it was earlier than week 4? Context: CREATE TABLE table_name_63 (result VARCHAR, week VARCHAR, record VARCHAR)[/INST]SELECT result FROM table_name_63 WHERE week < 4 AND record = "1-0"</s>
CREATE TABLE table_name_60 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_60 WHERE loss = "johnson (11-7)"
What team did Johnson (11-7) play for?
<s>[INST]What team did Johnson (11-7) play for? Context: CREATE TABLE table_name_60 (opponent VARCHAR, loss VARCHAR)[/INST]SELECT opponent FROM table_name_60 WHERE loss = "johnson (11-7)"</s>
CREATE TABLE table_10015132_21 (no INTEGER, years_in_toronto VARCHAR)
SELECT MIN(no) FROM table_10015132_21 WHERE years_in_toronto = "1998-2001"
What number is the player that played 1998-2001
<s>[INST]What number is the player that played 1998-2001 Context: CREATE TABLE table_10015132_21 (no INTEGER, years_in_toronto VARCHAR)[/INST]SELECT MIN(no) FROM table_10015132_21 WHERE years_in_toronto = "1998-2001"</s>
CREATE TABLE table_name_34 (rank VARCHAR, name VARCHAR)
SELECT rank FROM table_name_34 WHERE name = "petria thomas"
What is the rank of the swimmer named Petria Thomas?
<s>[INST]What is the rank of the swimmer named Petria Thomas? Context: CREATE TABLE table_name_34 (rank VARCHAR, name VARCHAR)[/INST]SELECT rank FROM table_name_34 WHERE name = "petria thomas"</s>
CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_84 WHERE date = "bye"
What was the result when they had their bye week?
<s>[INST]What was the result when they had their bye week? Context: CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_84 WHERE date = "bye"</s>
CREATE TABLE table_24990183_7 (ws_points VARCHAR)
SELECT 08 AS _09_gp_jgp_2nd FROM table_24990183_7 WHERE ws_points = 947
If the WS points is 947, what is the 08-09 gp/jgp 2nd ?
<s>[INST]If the WS points is 947, what is the 08-09 gp/jgp 2nd ? Context: CREATE TABLE table_24990183_7 (ws_points VARCHAR)[/INST]SELECT 08 AS _09_gp_jgp_2nd FROM table_24990183_7 WHERE ws_points = 947</s>
CREATE TABLE table_name_24 (grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_24 WHERE constructor = "toyota" AND time_retired = "+1:09.718"
What is the grid with a Toyota constructor and +1:09.718 as time/retired?
<s>[INST]What is the grid with a Toyota constructor and +1:09.718 as time/retired? Context: CREATE TABLE table_name_24 (grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)[/INST]SELECT grid FROM table_name_24 WHERE constructor = "toyota" AND time_retired = "+1:09.718"</s>
CREATE TABLE table_27487310_5 (judges VARCHAR, country VARCHAR, air_dates VARCHAR)
SELECT judges FROM table_27487310_5 WHERE country = "Netherlands" AND air_dates = "28 November 2011 – 24 December 2011"
Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?
<s>[INST]Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011? Context: CREATE TABLE table_27487310_5 (judges VARCHAR, country VARCHAR, air_dates VARCHAR)[/INST]SELECT judges FROM table_27487310_5 WHERE country = "Netherlands" AND air_dates = "28 November 2011 – 24 December 20...
CREATE TABLE table_name_12 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_12 WHERE driver = "denny hulme"
What grid for denny hulme?
<s>[INST]What grid for denny hulme? Context: CREATE TABLE table_name_12 (grid VARCHAR, driver VARCHAR)[/INST]SELECT grid FROM table_name_12 WHERE driver = "denny hulme"</s>
CREATE TABLE cinema (LOCATION VARCHAR)
SELECT LOCATION, COUNT(*) FROM cinema GROUP BY LOCATION
Show each location and the number of cinemas there.
<s>[INST]Show each location and the number of cinemas there. Context: CREATE TABLE cinema (LOCATION VARCHAR)[/INST]SELECT LOCATION, COUNT(*) FROM cinema GROUP BY LOCATION</s>
CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_58 WHERE date = "december 17, 1995"
Who was the opponent on December 17, 1995?
<s>[INST]Who was the opponent on December 17, 1995? Context: CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_58 WHERE date = "december 17, 1995"</s>
CREATE TABLE table_name_33 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_33 WHERE date = "may 6"
Tell me who was the opponent on May 6
<s>[INST]Tell me who was the opponent on May 6 Context: CREATE TABLE table_name_33 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_33 WHERE date = "may 6"</s>
CREATE TABLE table_name_28 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_28 WHERE country = "spain"
What was the score for Spain?
<s>[INST]What was the score for Spain? Context: CREATE TABLE table_name_28 (score VARCHAR, country VARCHAR)[/INST]SELECT score FROM table_name_28 WHERE country = "spain"</s>
CREATE TABLE table_name_55 (birth VARCHAR, spouse VARCHAR, became_consort VARCHAR)
SELECT birth FROM table_name_55 WHERE spouse = "frederick iv" AND became_consort = "4 april 1721"
Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721
<s>[INST]Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721 Context: CREATE TABLE table_name_55 (birth VARCHAR, spouse VARCHAR, became_consort VARCHAR)[/INST]SELECT birth FROM table_name_55 WHERE spouse = "frederick iv" AND became_consort = "4 april 1721"</s>
CREATE TABLE table_name_71 (place VARCHAR, country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT place FROM table_name_71 WHERE country = "united states" AND money___$__ > 216 AND score = 74 - 70 - 71 - 69 = 284
Where did the player place who is from the United States, who made more than $216, and whose score was 74-70-71-69=284?
<s>[INST]Where did the player place who is from the United States, who made more than $216, and whose score was 74-70-71-69=284? Context: CREATE TABLE table_name_71 (place VARCHAR, country VARCHAR, money___$__ VARCHAR, score VARCHAR)[/INST]SELECT place FROM table_name_71 WHERE country = "united states" AND money___$__ ...
CREATE TABLE table_name_45 (company VARCHAR, country VARCHAR, author VARCHAR)
SELECT company FROM table_name_45 WHERE country = "greece" AND author = "aeschylus"
What is the company from Greece with author Aeschylus?
<s>[INST]What is the company from Greece with author Aeschylus? Context: CREATE TABLE table_name_45 (company VARCHAR, country VARCHAR, author VARCHAR)[/INST]SELECT company FROM table_name_45 WHERE country = "greece" AND author = "aeschylus"</s>
CREATE TABLE table_name_5 (brand__from_ VARCHAR, pick__number VARCHAR)
SELECT brand__from_ FROM table_name_5 WHERE pick__number = 3
Pick # 3 works for which brand?
<s>[INST]Pick # 3 works for which brand? Context: CREATE TABLE table_name_5 (brand__from_ VARCHAR, pick__number VARCHAR)[/INST]SELECT brand__from_ FROM table_name_5 WHERE pick__number = 3</s>
CREATE TABLE table_28188239_1 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_28188239_1 WHERE district = "PA-8"
Who is the incumbent of district pa-8?
<s>[INST]Who is the incumbent of district pa-8? Context: CREATE TABLE table_28188239_1 (incumbent VARCHAR, district VARCHAR)[/INST]SELECT incumbent FROM table_28188239_1 WHERE district = "PA-8"</s>
CREATE TABLE table_name_89 (tie_no INTEGER, away_team VARCHAR)
SELECT SUM(tie_no) FROM table_name_89 WHERE away_team = "chelsea"
What was the tie number for the round against visiting opponent Chelsea?
<s>[INST]What was the tie number for the round against visiting opponent Chelsea? Context: CREATE TABLE table_name_89 (tie_no INTEGER, away_team VARCHAR)[/INST]SELECT SUM(tie_no) FROM table_name_89 WHERE away_team = "chelsea"</s>
CREATE TABLE table_23248869_6 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT high_rebounds FROM table_23248869_6 WHERE high_points = "Larry Hughes (21)"
Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?
<s>[INST]Who did the high rebounds in the game where Larry Hughes (21) did the high ponts? Context: CREATE TABLE table_23248869_6 (high_rebounds VARCHAR, high_points VARCHAR)[/INST]SELECT high_rebounds FROM table_23248869_6 WHERE high_points = "Larry Hughes (21)"</s>
CREATE TABLE table_name_66 (time VARCHAR, rider VARCHAR)
SELECT time FROM table_name_66 WHERE rider = "anthony west"
Which time has a Rider of anthony west?
<s>[INST]Which time has a Rider of anthony west? Context: CREATE TABLE table_name_66 (time VARCHAR, rider VARCHAR)[/INST]SELECT time FROM table_name_66 WHERE rider = "anthony west"</s>
CREATE TABLE table_25229283_4 (opponent VARCHAR, points_for VARCHAR)
SELECT opponent FROM table_25229283_4 WHERE points_for = 177
Who was the opponent with a points for of 177?
<s>[INST]Who was the opponent with a points for of 177? Context: CREATE TABLE table_25229283_4 (opponent VARCHAR, points_for VARCHAR)[/INST]SELECT opponent FROM table_25229283_4 WHERE points_for = 177</s>
CREATE TABLE table_name_95 (name VARCHAR, locomotive VARCHAR)
SELECT name FROM table_name_95 WHERE locomotive = "n464"
What is the name for the locomotive n464?
<s>[INST]What is the name for the locomotive n464? Context: CREATE TABLE table_name_95 (name VARCHAR, locomotive VARCHAR)[/INST]SELECT name FROM table_name_95 WHERE locomotive = "n464"</s>
CREATE TABLE table_19860361_3 (yogi_bear VARCHAR, air_date VARCHAR)
SELECT yogi_bear FROM table_19860361_3 WHERE air_date = "1959.12.21"
What is the Yogi Bear that aired on 1959.12.21?
<s>[INST]What is the Yogi Bear that aired on 1959.12.21? Context: CREATE TABLE table_19860361_3 (yogi_bear VARCHAR, air_date VARCHAR)[/INST]SELECT yogi_bear FROM table_19860361_3 WHERE air_date = "1959.12.21"</s>
CREATE TABLE table_name_33 (tournament VARCHAR)
SELECT 2010 FROM table_name_33 WHERE tournament = "grand slam tournaments"
Name the 2010 with tournament of grand slam tournaments
<s>[INST]Name the 2010 with tournament of grand slam tournaments Context: CREATE TABLE table_name_33 (tournament VARCHAR)[/INST]SELECT 2010 FROM table_name_33 WHERE tournament = "grand slam tournaments"</s>
CREATE TABLE table_name_34 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_34 WHERE date = "december 14, 2003"
what is the attendance on december 14, 2003?
<s>[INST]what is the attendance on december 14, 2003? Context: CREATE TABLE table_name_34 (attendance VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_34 WHERE date = "december 14, 2003"</s>
CREATE TABLE table_17355628_10 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_17355628_10 WHERE date = "April 8"
Name the high assists for april 8
<s>[INST]Name the high assists for april 8 Context: CREATE TABLE table_17355628_10 (high_assists VARCHAR, date VARCHAR)[/INST]SELECT high_assists FROM table_17355628_10 WHERE date = "April 8"</s>
CREATE TABLE table_name_24 (teleplay VARCHAR, first_broadcast VARCHAR, director VARCHAR, season VARCHAR)
SELECT teleplay FROM table_name_24 WHERE director = "george mccowan" AND season < 1.1400000000000001 AND first_broadcast = "april 3, 1981"
What is Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981?
<s>[INST]What is Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981? Context: CREATE TABLE table_name_24 (teleplay VARCHAR, first_broadcast VARCHAR, director VARCHAR, season VARCHAR)[/INST]SELECT teleplay FROM table_name_24 WHERE director ...
CREATE TABLE table_name_92 (city VARCHAR, icao VARCHAR)
SELECT city FROM table_name_92 WHERE icao = "wadd"
Which city's ICAO is WADD?
<s>[INST]Which city's ICAO is WADD? Context: CREATE TABLE table_name_92 (city VARCHAR, icao VARCHAR)[/INST]SELECT city FROM table_name_92 WHERE icao = "wadd"</s>
CREATE TABLE table_name_75 (airport VARCHAR, country VARCHAR, icao VARCHAR)
SELECT airport FROM table_name_75 WHERE country = "angola" AND icao = "fnsa"
What is Angola's airport and ICAO of fnsa?
<s>[INST]What is Angola's airport and ICAO of fnsa? Context: CREATE TABLE table_name_75 (airport VARCHAR, country VARCHAR, icao VARCHAR)[/INST]SELECT airport FROM table_name_75 WHERE country = "angola" AND icao = "fnsa"</s>
CREATE TABLE Student_Tests_Taken (test_result VARCHAR)
SELECT test_result, COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC
List each test result and its count in descending order of count.
<s>[INST]List each test result and its count in descending order of count. Context: CREATE TABLE Student_Tests_Taken (test_result VARCHAR)[/INST]SELECT test_result, COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC</s>
CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_85 WHERE date = "may 25"
Who took the loss on May 25?
<s>[INST]Who took the loss on May 25? Context: CREATE TABLE table_name_85 (loss VARCHAR, date VARCHAR)[/INST]SELECT loss FROM table_name_85 WHERE date = "may 25"</s>
CREATE TABLE table_name_25 (pop__2010_ INTEGER, geo_id VARCHAR, water__sqmi_ VARCHAR)
SELECT MIN(pop__2010_) FROM table_name_25 WHERE geo_id = 3805373380 AND water__sqmi_ < 5.729
What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?
<s>[INST]What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729? Context: CREATE TABLE table_name_25 (pop__2010_ INTEGER, geo_id VARCHAR, water__sqmi_ VARCHAR)[/INST]SELECT MIN(pop__2010_) FROM table_name_25 WHERE geo_id = 3805373380 AND water__sqmi_ < 5.729</s>
CREATE TABLE table_name_56 (year INTEGER, start VARCHAR, stage VARCHAR)
SELECT MIN(year) FROM table_name_56 WHERE start = "saint-gaudens" AND stage < 15
What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?
<s>[INST]What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15? Context: CREATE TABLE table_name_56 (year INTEGER, start VARCHAR, stage VARCHAR)[/INST]SELECT MIN(year) FROM table_name_56 WHERE start = "saint-gaudens" AND stage < 15</s>
CREATE TABLE parties (payment_method_code VARCHAR)
SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING COUNT(*) > 3
Find the payment method code used by more than 3 parties.
<s>[INST]Find the payment method code used by more than 3 parties. Context: CREATE TABLE parties (payment_method_code VARCHAR)[/INST]SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING COUNT(*) > 3</s>
CREATE TABLE Staff (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR)
SELECT first_name, middle_name, last_name FROM Staff
List the first name middle name and last name of all staff.
<s>[INST]List the first name middle name and last name of all staff. Context: CREATE TABLE Staff (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR)[/INST]SELECT first_name, middle_name, last_name FROM Staff</s>
CREATE TABLE table_name_21 (first_appearance VARCHAR, character VARCHAR)
SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective"
Where did the character of Aiden Burn csi detective first appear?
<s>[INST]Where did the character of Aiden Burn csi detective first appear? Context: CREATE TABLE table_name_21 (first_appearance VARCHAR, character VARCHAR)[/INST]SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective"</s>
CREATE TABLE table_20871703_1 (height VARCHAR, position VARCHAR)
SELECT height FROM table_20871703_1 WHERE position = "OT"
What is the height if ot is the position?
<s>[INST]What is the height if ot is the position? Context: CREATE TABLE table_20871703_1 (height VARCHAR, position VARCHAR)[/INST]SELECT height FROM table_20871703_1 WHERE position = "OT"</s>
CREATE TABLE table_23285849_7 (date VARCHAR, record VARCHAR)
SELECT date FROM table_23285849_7 WHERE record = "27-14"
What was the date of the game when the record was 27-14?
<s>[INST]What was the date of the game when the record was 27-14? Context: CREATE TABLE table_23285849_7 (date VARCHAR, record VARCHAR)[/INST]SELECT date FROM table_23285849_7 WHERE record = "27-14"</s>
CREATE TABLE table_name_72 (floors VARCHAR, rank VARCHAR, city VARCHAR)
SELECT floors FROM table_name_72 WHERE rank > 41 AND city = "parel"
What is the number of floors when the r Rank larger than 41, and a City of parel?
<s>[INST]What is the number of floors when the r Rank larger than 41, and a City of parel? Context: CREATE TABLE table_name_72 (floors VARCHAR, rank VARCHAR, city VARCHAR)[/INST]SELECT floors FROM table_name_72 WHERE rank > 41 AND city = "parel"</s>
CREATE TABLE table_name_14 (points INTEGER, driver VARCHAR, top_10 VARCHAR)
SELECT MAX(points) FROM table_name_14 WHERE driver = "justin lofton" AND top_10 < 5
What are the highest points for Justin Lofton when his top 10 is lower than 5?
<s>[INST]What are the highest points for Justin Lofton when his top 10 is lower than 5? Context: CREATE TABLE table_name_14 (points INTEGER, driver VARCHAR, top_10 VARCHAR)[/INST]SELECT MAX(points) FROM table_name_14 WHERE driver = "justin lofton" AND top_10 < 5</s>
CREATE TABLE table_name_21 (rank VARCHAR, gross VARCHAR)
SELECT rank FROM table_name_21 WHERE gross = "$26,589,355"
What rank is the title with a gross of $26,589,355?
<s>[INST]What rank is the title with a gross of $26,589,355? Context: CREATE TABLE table_name_21 (rank VARCHAR, gross VARCHAR)[/INST]SELECT rank FROM table_name_21 WHERE gross = "$26,589,355"</s>
CREATE TABLE table_name_1 (name VARCHAR, index VARCHAR)
SELECT name FROM table_name_1 WHERE index = "f3"
What is the Name of Index F3?
<s>[INST]What is the Name of Index F3? Context: CREATE TABLE table_name_1 (name VARCHAR, index VARCHAR)[/INST]SELECT name FROM table_name_1 WHERE index = "f3"</s>
CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR)
SELECT races FROM table_name_77 WHERE points > 123 AND driver = "fernando alonso" AND percentage_of_possible_points = "74.44%"
Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?
<s>[INST]Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%? Context: CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR)[/INST]SELECT races FROM table_name_77 WHERE points > 123 AND driver =...
CREATE TABLE table_30007505_1 (mister_international INTEGER)
SELECT MIN(mister_international) FROM table_30007505_1
Name the least mister international
<s>[INST]Name the least mister international Context: CREATE TABLE table_30007505_1 (mister_international INTEGER)[/INST]SELECT MIN(mister_international) FROM table_30007505_1</s>
CREATE TABLE table_name_20 (tournament VARCHAR)
SELECT 2008 FROM table_name_20 WHERE 2012 = "a" AND tournament = "australian open"
Name the 2008 for 2012 being a and tournament of australian open
<s>[INST]Name the 2008 for 2012 being a and tournament of australian open Context: CREATE TABLE table_name_20 (tournament VARCHAR)[/INST]SELECT 2008 FROM table_name_20 WHERE 2012 = "a" AND tournament = "australian open"</s>
CREATE TABLE table_13399573_4 (points_for VARCHAR, losing_bonus VARCHAR)
SELECT points_for FROM table_13399573_4 WHERE losing_bonus = "1"
In the 2008/2009 season one team had 1 losing bonus, How many points did that team score that year?
<s>[INST]In the 2008/2009 season one team had 1 losing bonus, How many points did that team score that year? Context: CREATE TABLE table_13399573_4 (points_for VARCHAR, losing_bonus VARCHAR)[/INST]SELECT points_for FROM table_13399573_4 WHERE losing_bonus = "1"</s>
CREATE TABLE table_15463188_7 (school_club_team VARCHAR, season VARCHAR)
SELECT school_club_team FROM table_15463188_7 WHERE season = "2009-2011"
Name the school/club team when season is 2009-2011
<s>[INST]Name the school/club team when season is 2009-2011 Context: CREATE TABLE table_15463188_7 (school_club_team VARCHAR, season VARCHAR)[/INST]SELECT school_club_team FROM table_15463188_7 WHERE season = "2009-2011"</s>
CREATE TABLE table_name_70 (attendance INTEGER, save VARCHAR, record VARCHAR)
SELECT AVG(attendance) FROM table_name_70 WHERE save = "–" AND record = "94–36"
WHAT IS THE NUMBER OF Attendance WITH A RECORD 94–36
<s>[INST]WHAT IS THE NUMBER OF Attendance WITH A RECORD 94–36 Context: CREATE TABLE table_name_70 (attendance INTEGER, save VARCHAR, record VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_70 WHERE save = "–" AND record = "94–36"</s>
CREATE TABLE table_name_46 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_46 WHERE result = "l 38-14"
On what date was the Result l 38-14?
<s>[INST]On what date was the Result l 38-14? Context: CREATE TABLE table_name_46 (date VARCHAR, result VARCHAR)[/INST]SELECT date FROM table_name_46 WHERE result = "l 38-14"</s>
CREATE TABLE table_1990460_1 (division INTEGER, regular_season VARCHAR)
SELECT MIN(division) FROM table_1990460_1 WHERE regular_season = "6th, Great Lakes"
What's the lowest division number of the 6th, Great Lakes season?
<s>[INST]What's the lowest division number of the 6th, Great Lakes season? Context: CREATE TABLE table_1990460_1 (division INTEGER, regular_season VARCHAR)[/INST]SELECT MIN(division) FROM table_1990460_1 WHERE regular_season = "6th, Great Lakes"</s>
CREATE TABLE table_name_77 (result VARCHAR, category VARCHAR)
SELECT result FROM table_name_77 WHERE category = "directorial debut of the year"
What is the result of the directorial debut of the year award?
<s>[INST]What is the result of the directorial debut of the year award? Context: CREATE TABLE table_name_77 (result VARCHAR, category VARCHAR)[/INST]SELECT result FROM table_name_77 WHERE category = "directorial debut of the year"</s>
CREATE TABLE table_name_98 (engine VARCHAR, finish VARCHAR)
SELECT engine FROM table_name_98 WHERE finish = "27"
What Engine had a Finish of 27?
<s>[INST]What Engine had a Finish of 27? Context: CREATE TABLE table_name_98 (engine VARCHAR, finish VARCHAR)[/INST]SELECT engine FROM table_name_98 WHERE finish = "27"</s>
CREATE TABLE table_name_33 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_33 WHERE opponent = "new england patriots"
What was the result when the new england patriots played?
<s>[INST]What was the result when the new england patriots played? Context: CREATE TABLE table_name_33 (result VARCHAR, opponent VARCHAR)[/INST]SELECT result FROM table_name_33 WHERE opponent = "new england patriots"</s>
CREATE TABLE table_name_92 (championships INTEGER, established VARCHAR)
SELECT SUM(championships) FROM table_name_92 WHERE established = 1976
How many championships did the team or teams established in 1976 win?
<s>[INST]How many championships did the team or teams established in 1976 win? Context: CREATE TABLE table_name_92 (championships INTEGER, established VARCHAR)[/INST]SELECT SUM(championships) FROM table_name_92 WHERE established = 1976</s>
CREATE TABLE table_24466191_1 (team VARCHAR, season VARCHAR)
SELECT team FROM table_24466191_1 WHERE season = 2010
Name the team for season 2010
<s>[INST]Name the team for season 2010 Context: CREATE TABLE table_24466191_1 (team VARCHAR, season VARCHAR)[/INST]SELECT team FROM table_24466191_1 WHERE season = 2010</s>
CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT COUNT(year_won) FROM table_name_22 WHERE country = "australia" AND to_par > 16
What is the year won by Australia with a to par bigger than 16?
<s>[INST]What is the year won by Australia with a to par bigger than 16? Context: CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR)[/INST]SELECT COUNT(year_won) FROM table_name_22 WHERE country = "australia" AND to_par > 16</s>
CREATE TABLE table_name_68 (week INTEGER, date VARCHAR)
SELECT AVG(week) FROM table_name_68 WHERE date = "december 21, 1969"
In what week was the December 21, 1969 game?
<s>[INST]In what week was the December 21, 1969 game? Context: CREATE TABLE table_name_68 (week INTEGER, date VARCHAR)[/INST]SELECT AVG(week) FROM table_name_68 WHERE date = "december 21, 1969"</s>
CREATE TABLE table_name_14 (co_drivers VARCHAR, year VARCHAR, team VARCHAR)
SELECT co_drivers FROM table_name_14 WHERE year < 1986 AND team = "martini lancia"
Which co-driver was part of team Martini Lancia earlier than 1986?
<s>[INST]Which co-driver was part of team Martini Lancia earlier than 1986? Context: CREATE TABLE table_name_14 (co_drivers VARCHAR, year VARCHAR, team VARCHAR)[/INST]SELECT co_drivers FROM table_name_14 WHERE year < 1986 AND team = "martini lancia"</s>
CREATE TABLE table_name_76 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_76 WHERE home = "detroit" AND date = "february 24"
Which visitor has detroit as the home, and february 24 as the date?
<s>[INST]Which visitor has detroit as the home, and february 24 as the date? Context: CREATE TABLE table_name_76 (visitor VARCHAR, home VARCHAR, date VARCHAR)[/INST]SELECT visitor FROM table_name_76 WHERE home = "detroit" AND date = "february 24"</s>
CREATE TABLE swimmer (nationality VARCHAR)
SELECT nationality, COUNT(*) FROM swimmer GROUP BY nationality HAVING COUNT(*) > 1
List countries that have more than one swimmer.
<s>[INST]List countries that have more than one swimmer. Context: CREATE TABLE swimmer (nationality VARCHAR)[/INST]SELECT nationality, COUNT(*) FROM swimmer GROUP BY nationality HAVING COUNT(*) > 1</s>
CREATE TABLE table_name_28 (year INTEGER, partner VARCHAR, surface VARCHAR)
SELECT MAX(year) FROM table_name_28 WHERE partner = "marcel granollers" AND surface = "hard"
What is the highest listed year for the partner of Marcel Granollers and a hard surface?
<s>[INST]What is the highest listed year for the partner of Marcel Granollers and a hard surface? Context: CREATE TABLE table_name_28 (year INTEGER, partner VARCHAR, surface VARCHAR)[/INST]SELECT MAX(year) FROM table_name_28 WHERE partner = "marcel granollers" AND surface = "hard"</s>
CREATE TABLE table_name_34 (college VARCHAR, pick VARCHAR, player VARCHAR)
SELECT college FROM table_name_34 WHERE pick < 145 AND player = "jeff wilkins"
What is College, when Pick is less than 145, and when Player is Jeff Wilkins?
<s>[INST]What is College, when Pick is less than 145, and when Player is Jeff Wilkins? Context: CREATE TABLE table_name_34 (college VARCHAR, pick VARCHAR, player VARCHAR)[/INST]SELECT college FROM table_name_34 WHERE pick < 145 AND player = "jeff wilkins"</s>
CREATE TABLE table_name_87 (appeared INTEGER, rr_w_rate VARCHAR, player VARCHAR)
SELECT SUM(appeared) FROM table_name_87 WHERE rr_w_rate < 0.33 AND player = "angelique kerber"
For Angelique Kerber who had an RR Rate of less than 0.33, what's the appeared?
<s>[INST]For Angelique Kerber who had an RR Rate of less than 0.33, what's the appeared? Context: CREATE TABLE table_name_87 (appeared INTEGER, rr_w_rate VARCHAR, player VARCHAR)[/INST]SELECT SUM(appeared) FROM table_name_87 WHERE rr_w_rate < 0.33 AND player = "angelique kerber"</s>
CREATE TABLE table_name_85 (class VARCHAR, laps INTEGER)
SELECT class FROM table_name_85 WHERE laps < 77
Which class has laps under 77?
<s>[INST]Which class has laps under 77? Context: CREATE TABLE table_name_85 (class VARCHAR, laps INTEGER)[/INST]SELECT class FROM table_name_85 WHERE laps < 77</s>
CREATE TABLE table_name_19 (s VARCHAR, output VARCHAR)
SELECT COUNT(0 AS _100km_h), s FROM table_name_19 WHERE output = "ps (kw; hp) @4000 rpm"
What is the 0–100km/h,s for the output of ps (kw; hp) @4000 rpm?
<s>[INST]What is the 0–100km/h,s for the output of ps (kw; hp) @4000 rpm? Context: CREATE TABLE table_name_19 (s VARCHAR, output VARCHAR)[/INST]SELECT COUNT(0 AS _100km_h), s FROM table_name_19 WHERE output = "ps (kw; hp) @4000 rpm"</s>
CREATE TABLE table_name_57 (season VARCHAR, position VARCHAR, poles VARCHAR, series VARCHAR)
SELECT season FROM table_name_57 WHERE poles = "0" AND series = "gp2 series" AND position = "19th"
In which season did he have 0 Poles and 19th position in the GP2 Series?
<s>[INST]In which season did he have 0 Poles and 19th position in the GP2 Series? Context: CREATE TABLE table_name_57 (season VARCHAR, position VARCHAR, poles VARCHAR, series VARCHAR)[/INST]SELECT season FROM table_name_57 WHERE poles = "0" AND series = "gp2 series" AND position = "19th"</s>
CREATE TABLE table_name_59 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_59 WHERE date = "january 23, 2002"
What is the catalog of the release from January 23, 2002?
<s>[INST]What is the catalog of the release from January 23, 2002? Context: CREATE TABLE table_name_59 (catalog VARCHAR, date VARCHAR)[/INST]SELECT catalog FROM table_name_59 WHERE date = "january 23, 2002"</s>
CREATE TABLE Customers (amount_outstanding INTEGER)
SELECT MAX(amount_outstanding), MIN(amount_outstanding), AVG(amount_outstanding) FROM Customers
What is maximum, minimum and average amount of outstanding of customer?
<s>[INST]What is maximum, minimum and average amount of outstanding of customer? Context: CREATE TABLE Customers (amount_outstanding INTEGER)[/INST]SELECT MAX(amount_outstanding), MIN(amount_outstanding), AVG(amount_outstanding) FROM Customers</s>
CREATE TABLE table_name_52 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE home_team = "footscray"
What was Home team Footscray's score?
<s>[INST]What was Home team Footscray's score? Context: CREATE TABLE table_name_52 (home_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_52 WHERE home_team = "footscray"</s>
CREATE TABLE table_name_64 (owner VARCHAR, frequency VARCHAR)
SELECT owner FROM table_name_64 WHERE frequency = "00 99.3"
What is the Owner of Frequency 00 99.3?
<s>[INST]What is the Owner of Frequency 00 99.3? Context: CREATE TABLE table_name_64 (owner VARCHAR, frequency VARCHAR)[/INST]SELECT owner FROM table_name_64 WHERE frequency = "00 99.3"</s>
CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR)
SELECT ihsaa_football_class FROM table_name_50 WHERE location = "wabash" AND school = "wabash"
Which IHSAA Football Class has a Location of wabash, and a School of wabash?
<s>[INST]Which IHSAA Football Class has a Location of wabash, and a School of wabash? Context: CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR)[/INST]SELECT ihsaa_football_class FROM table_name_50 WHERE location = "wabash" AND school = "wabash"</s>
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_39 WHERE score = "6–3, 6–4"
When has a Score of 6–3, 6–4?
<s>[INST]When has a Score of 6–3, 6–4? Context: CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR)[/INST]SELECT date FROM table_name_39 WHERE score = "6–3, 6–4"</s>
CREATE TABLE table_14937957_1 (original_airdate VARCHAR, martial_art_style VARCHAR)
SELECT original_airdate FROM table_14937957_1 WHERE martial_art_style = "Brazilian Jiu-Jitsu"
When did the episode featuring a master using Brazilian jiu-jitsu air?
<s>[INST]When did the episode featuring a master using Brazilian jiu-jitsu air? Context: CREATE TABLE table_14937957_1 (original_airdate VARCHAR, martial_art_style VARCHAR)[/INST]SELECT original_airdate FROM table_14937957_1 WHERE martial_art_style = "Brazilian Jiu-Jitsu"</s>
CREATE TABLE table_name_26 (tournament VARCHAR)
SELECT tournament FROM table_name_26 WHERE 2013 = "2r" AND 2006 = "1r"
What is the Tournament when the 2013 is 2r, and a 2006 is 1r?
<s>[INST]What is the Tournament when the 2013 is 2r, and a 2006 is 1r? Context: CREATE TABLE table_name_26 (tournament VARCHAR)[/INST]SELECT tournament FROM table_name_26 WHERE 2013 = "2r" AND 2006 = "1r"</s>
CREATE TABLE table_name_96 (score VARCHAR, location VARCHAR)
SELECT score FROM table_name_96 WHERE location = "richfield coliseum"
Which Score has a Location of richfield coliseum?
<s>[INST]Which Score has a Location of richfield coliseum? Context: CREATE TABLE table_name_96 (score VARCHAR, location VARCHAR)[/INST]SELECT score FROM table_name_96 WHERE location = "richfield coliseum"</s>
CREATE TABLE table_name_73 (rating___percentage_ VARCHAR, channel VARCHAR)
SELECT rating___percentage_ FROM table_name_73 WHERE channel = "anhui satellite tv"
Name the rating % for channel of anhui satellite tv
<s>[INST]Name the rating % for channel of anhui satellite tv Context: CREATE TABLE table_name_73 (rating___percentage_ VARCHAR, channel VARCHAR)[/INST]SELECT rating___percentage_ FROM table_name_73 WHERE channel = "anhui satellite tv"</s>
CREATE TABLE table_name_4 (year INTEGER, position VARCHAR)
SELECT MIN(year) FROM table_name_4 WHERE position = "12th"
Name the lowest year for 12th position
<s>[INST]Name the lowest year for 12th position Context: CREATE TABLE table_name_4 (year INTEGER, position VARCHAR)[/INST]SELECT MIN(year) FROM table_name_4 WHERE position = "12th"</s>