context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR)
SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers"
What is the name of the Leading scorer when the Home was the Trail blazers?
<s>[INST]What is the name of the Leading scorer when the Home was the Trail blazers? Context: CREATE TABLE table_name_61 (leading_scorer VARCHAR, home VARCHAR)[/INST]SELECT leading_scorer FROM table_name_61 WHERE home = "trail blazers"</s>
CREATE TABLE table_name_66 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_66 WHERE player = "bill bray"
Which pick was Bill Bray?
<s>[INST]Which pick was Bill Bray? Context: CREATE TABLE table_name_66 (pick INTEGER, player VARCHAR)[/INST]SELECT SUM(pick) FROM table_name_66 WHERE player = "bill bray"</s>
CREATE TABLE table_name_50 (attendance VARCHAR, home VARCHAR, decision VARCHAR)
SELECT COUNT(attendance) FROM table_name_50 WHERE home = "detroit" AND decision = "hasek"
What is the total attendance for Detroit on hasek?
<s>[INST]What is the total attendance for Detroit on hasek? Context: CREATE TABLE table_name_50 (attendance VARCHAR, home VARCHAR, decision VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_50 WHERE home = "detroit" AND decision = "hasek"</s>
CREATE TABLE table_2331549_1 (host_city VARCHAR, host_school VARCHAR)
SELECT host_city FROM table_2331549_1 WHERE host_school = "École de technologie supérieure"
What was the host city in years where the host school was école de technologie supérieure?
<s>[INST]What was the host city in years where the host school was école de technologie supérieure? Context: CREATE TABLE table_2331549_1 (host_city VARCHAR, host_school VARCHAR)[/INST]SELECT host_city FROM table_2331549_1 WHERE host_school = "École de technologie supérieure"</s>
CREATE TABLE table_name_10 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
SELECT method FROM table_name_10 WHERE round = "1" AND res = "win" AND record = "13-5"
What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5?
<s>[INST]What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5? Context: CREATE TABLE table_name_10 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)[/INST]SELECT method FROM table_name_10 WHERE round = "1" AND res = "win" AND record = "13-5"</s>
CREATE TABLE table_name_42 (city_of_license VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_42 WHERE erp_w > 3 AND call_sign = "k218dz"
What is City of License, when ERP W is greater than 3, and when Call Sign is K218DZ?
<s>[INST]What is City of License, when ERP W is greater than 3, and when Call Sign is K218DZ? Context: CREATE TABLE table_name_42 (city_of_license VARCHAR, erp_w VARCHAR, call_sign VARCHAR)[/INST]SELECT city_of_license FROM table_name_42 WHERE erp_w > 3 AND call_sign = "k218dz"</s>
CREATE TABLE table_name_4 (crew VARCHAR, duration VARCHAR)
SELECT crew FROM table_name_4 WHERE duration = "12 minutes"
Who was the crew for the duration of 12 minutes?
<s>[INST]Who was the crew for the duration of 12 minutes? Context: CREATE TABLE table_name_4 (crew VARCHAR, duration VARCHAR)[/INST]SELECT crew FROM table_name_4 WHERE duration = "12 minutes"</s>
CREATE TABLE table_name_8 (race_title VARCHAR, team VARCHAR, circuit VARCHAR)
SELECT race_title FROM table_name_8 WHERE team = "jps team bmw" AND circuit = "oran park raceway"
What is the race title of the Oran Park raceway circuit with team jps team bmw?
<s>[INST]What is the race title of the Oran Park raceway circuit with team jps team bmw? Context: CREATE TABLE table_name_8 (race_title VARCHAR, team VARCHAR, circuit VARCHAR)[/INST]SELECT race_title FROM table_name_8 WHERE team = "jps team bmw" AND circuit = "oran park raceway"</s>
CREATE TABLE table_22355_71 (silver INTEGER)
SELECT MAX(silver) FROM table_22355_71
How many silver medalist was won?
<s>[INST]How many silver medalist was won? Context: CREATE TABLE table_22355_71 (silver INTEGER)[/INST]SELECT MAX(silver) FROM table_22355_71</s>
CREATE TABLE table_name_97 (year VARCHAR, award VARCHAR)
SELECT COUNT(year) FROM table_name_97 WHERE award = "american music awards"
What year has american music awards?
<s>[INST]What year has american music awards? Context: CREATE TABLE table_name_97 (year VARCHAR, award VARCHAR)[/INST]SELECT COUNT(year) FROM table_name_97 WHERE award = "american music awards"</s>
CREATE TABLE table_name_45 (giant_slalom VARCHAR, career VARCHAR, victories VARCHAR, slalom VARCHAR)
SELECT giant_slalom FROM table_name_45 WHERE victories > 27 AND slalom = "–" AND career = "1996–2009"
What Giant Slalom has Victories larger than 27, a Slalom of –, and a Career of 1996–2009?
<s>[INST]What Giant Slalom has Victories larger than 27, a Slalom of –, and a Career of 1996–2009? Context: CREATE TABLE table_name_45 (giant_slalom VARCHAR, career VARCHAR, victories VARCHAR, slalom VARCHAR)[/INST]SELECT giant_slalom FROM table_name_45 WHERE victories > 27 AND slalom = "–" AND career = "1996–2009"</s>
CREATE TABLE table_name_92 (money_requested__£_ VARCHAR, investing_dragon_s_ VARCHAR, episode VARCHAR)
SELECT money_requested__£_ FROM table_name_92 WHERE investing_dragon_s_ = "peter jones" AND episode = "episode 2"
How much was requested from Investing Dragon Peter Jones request in episode 2?
<s>[INST]How much was requested from Investing Dragon Peter Jones request in episode 2? Context: CREATE TABLE table_name_92 (money_requested__£_ VARCHAR, investing_dragon_s_ VARCHAR, episode VARCHAR)[/INST]SELECT money_requested__£_ FROM table_name_92 WHERE investing_dragon_s_ = "peter jones" AND episode = "episode 2"</s>
CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_23 WHERE date = "january 23"
What was the final score for the January 23 game?
<s>[INST]What was the final score for the January 23 game? Context: CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_23 WHERE date = "january 23"</s>
CREATE TABLE table_name_14 (estd INTEGER, college_or_campus_name VARCHAR)
SELECT SUM(estd) FROM table_name_14 WHERE college_or_campus_name = "anna university - panruti campus"
In what year was anna university - panruti campus established?
<s>[INST]In what year was anna university - panruti campus established? Context: CREATE TABLE table_name_14 (estd INTEGER, college_or_campus_name VARCHAR)[/INST]SELECT SUM(estd) FROM table_name_14 WHERE college_or_campus_name = "anna university - panruti campus"</s>
CREATE TABLE table_19018191_5 (player VARCHAR, l_apps VARCHAR)
SELECT player FROM table_19018191_5 WHERE l_apps = 27
Name the player for l apps is 27
<s>[INST]Name the player for l apps is 27 Context: CREATE TABLE table_19018191_5 (player VARCHAR, l_apps VARCHAR)[/INST]SELECT player FROM table_19018191_5 WHERE l_apps = 27</s>
CREATE TABLE table_24302700_2 (event_2_truck_pull VARCHAR, event_1_medley VARCHAR)
SELECT COUNT(event_2_truck_pull) FROM table_24302700_2 WHERE event_1_medley = "6 (16.6m)"
How many men had an event 1 medley score of 6 (16.6m)?
<s>[INST]How many men had an event 1 medley score of 6 (16.6m)? Context: CREATE TABLE table_24302700_2 (event_2_truck_pull VARCHAR, event_1_medley VARCHAR)[/INST]SELECT COUNT(event_2_truck_pull) FROM table_24302700_2 WHERE event_1_medley = "6 (16.6m)"</s>
CREATE TABLE table_name_33 (matrix INTEGER, recording_date VARCHAR)
SELECT MAX(matrix) FROM table_name_33 WHERE recording_date = "1926/03"
what is the highest matrix when the recording date is 1926/03?
<s>[INST]what is the highest matrix when the recording date is 1926/03? Context: CREATE TABLE table_name_33 (matrix INTEGER, recording_date VARCHAR)[/INST]SELECT MAX(matrix) FROM table_name_33 WHERE recording_date = "1926/03"</s>
CREATE TABLE table_12261806_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT COUNT(trofeo_fast_team) FROM table_12261806_2 WHERE stage = "16"
Name the total number of trofeo fast team of stage 16
<s>[INST]Name the total number of trofeo fast team of stage 16 Context: CREATE TABLE table_12261806_2 (trofeo_fast_team VARCHAR, stage VARCHAR)[/INST]SELECT COUNT(trofeo_fast_team) FROM table_12261806_2 WHERE stage = "16"</s>
CREATE TABLE table_name_18 (val_de_marne VARCHAR, seine_saint_denis VARCHAR)
SELECT val_de_marne FROM table_name_18 WHERE seine_saint_denis = "2.7%"
WHAT IS THE VAL-DE-MARNE WITH A Seine-Saint-Denis of 2.7%?
<s>[INST]WHAT IS THE VAL-DE-MARNE WITH A Seine-Saint-Denis of 2.7%? Context: CREATE TABLE table_name_18 (val_de_marne VARCHAR, seine_saint_denis VARCHAR)[/INST]SELECT val_de_marne FROM table_name_18 WHERE seine_saint_denis = "2.7%"</s>
CREATE TABLE table_name_44 (qual VARCHAR, rank VARCHAR, year VARCHAR)
SELECT qual FROM table_name_44 WHERE rank = "18" AND year = "1964"
What is the qual for rank 18 in 1964?
<s>[INST]What is the qual for rank 18 in 1964? Context: CREATE TABLE table_name_44 (qual VARCHAR, rank VARCHAR, year VARCHAR)[/INST]SELECT qual FROM table_name_44 WHERE rank = "18" AND year = "1964"</s>
CREATE TABLE table_22014431_3 (team_name VARCHAR, tumbling VARCHAR)
SELECT team_name FROM table_22014431_3 WHERE tumbling = "44.5"
Which team names have 44.5 for tumbling?
<s>[INST]Which team names have 44.5 for tumbling? Context: CREATE TABLE table_22014431_3 (team_name VARCHAR, tumbling VARCHAR)[/INST]SELECT team_name FROM table_22014431_3 WHERE tumbling = "44.5"</s>
CREATE TABLE table_name_66 (opponent VARCHAR, game VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_66 WHERE game > 3 AND date = "may 9"
On May 9 after Game 3, what was the Opponent?
<s>[INST]On May 9 after Game 3, what was the Opponent? Context: CREATE TABLE table_name_66 (opponent VARCHAR, game VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_66 WHERE game > 3 AND date = "may 9"</s>
CREATE TABLE table_2150068_1 (launch_date__utc_ VARCHAR, diameter_m_ VARCHAR, usage VARCHAR, mass_kg_ VARCHAR)
SELECT launch_date__utc_ FROM table_2150068_1 WHERE usage = "ado" AND mass_kg_ = "4" AND diameter_m_ = "3"
What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter?
<s>[INST]What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter? Context: CREATE TABLE table_2150068_1 (launch_date__utc_ VARCHAR, diameter_m_ VARCHAR, usage VARCHAR, mass_kg_ VARCHAR)[/INST]SELECT launch_date__utc_ FROM table_2150068_1 WHERE usage = "ado" AND mass_kg_ = "4" AND diameter_m_ = "3"</s>
CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR)
SELECT average FROM table_name_47 WHERE matches = "11"
What is the average when the matches are 11?
<s>[INST]What is the average when the matches are 11? Context: CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR)[/INST]SELECT average FROM table_name_47 WHERE matches = "11"</s>
CREATE TABLE table_name_73 (matches VARCHAR, runs VARCHAR, wickets VARCHAR, career VARCHAR)
SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = "1898/99-1919/20" AND runs > 4476
Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476
<s>[INST]Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476 Context: CREATE TABLE table_name_73 (matches VARCHAR, runs VARCHAR, wickets VARCHAR, career VARCHAR)[/INST]SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = "1898/99-1919/20" AND runs > 4476</s>
CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_6 WHERE country = "australia" AND player = "peter lonard"
What was Australia's score when Peter Lonard played?
<s>[INST]What was Australia's score when Peter Lonard played? Context: CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_6 WHERE country = "australia" AND player = "peter lonard"</s>
CREATE TABLE table_name_12 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_12 WHERE attendance = "69,149"
How many weeks had an attendance at 69,149?
<s>[INST]How many weeks had an attendance at 69,149? Context: CREATE TABLE table_name_12 (week VARCHAR, attendance VARCHAR)[/INST]SELECT COUNT(week) FROM table_name_12 WHERE attendance = "69,149"</s>
CREATE TABLE table_name_56 (team VARCHAR, manner_of_departure VARCHAR)
SELECT team FROM table_name_56 WHERE manner_of_departure = "end of tenure as caretaker"
What team did the manager come from who departed due to an end of tenure as caretaker?
<s>[INST]What team did the manager come from who departed due to an end of tenure as caretaker? Context: CREATE TABLE table_name_56 (team VARCHAR, manner_of_departure VARCHAR)[/INST]SELECT team FROM table_name_56 WHERE manner_of_departure = "end of tenure as caretaker"</s>
CREATE TABLE table_29273115_1 (title VARCHAR, production_code VARCHAR)
SELECT COUNT(title) FROM table_29273115_1 WHERE production_code = "IP02003"
How many different titles does the episode with production code IP02003 have?
<s>[INST]How many different titles does the episode with production code IP02003 have? Context: CREATE TABLE table_29273115_1 (title VARCHAR, production_code VARCHAR)[/INST]SELECT COUNT(title) FROM table_29273115_1 WHERE production_code = "IP02003"</s>
CREATE TABLE table_name_16 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_16 WHERE venue = "lübker golf resort"
What is the latest Year, when the Venue is Lübker Golf Resort?
<s>[INST]What is the latest Year, when the Venue is Lübker Golf Resort? Context: CREATE TABLE table_name_16 (year INTEGER, venue VARCHAR)[/INST]SELECT MAX(year) FROM table_name_16 WHERE venue = "lübker golf resort"</s>
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_62 WHERE date = "19 february 2005"
Name the most attendance for 19 february 2005
<s>[INST]Name the most attendance for 19 february 2005 Context: CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_62 WHERE date = "19 february 2005"</s>
CREATE TABLE table_name_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_name_47 WHERE result = "re-elected" AND incumbent = "sylvester c. smith"
What was the lowest re-elected result for Sylvester C. Smith?
<s>[INST]What was the lowest re-elected result for Sylvester C. Smith? Context: CREATE TABLE table_name_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)[/INST]SELECT MIN(first_elected) FROM table_name_47 WHERE result = "re-elected" AND incumbent = "sylvester c. smith"</s>
CREATE TABLE table_name_23 (game INTEGER, points VARCHAR, march VARCHAR)
SELECT AVG(game) FROM table_name_23 WHERE points < 84 AND march = 8
What is the average game for March 8 with less than 84 points?
<s>[INST]What is the average game for March 8 with less than 84 points? Context: CREATE TABLE table_name_23 (game INTEGER, points VARCHAR, march VARCHAR)[/INST]SELECT AVG(game) FROM table_name_23 WHERE points < 84 AND march = 8</s>
CREATE TABLE table_name_55 (group_position VARCHAR, date VARCHAR)
SELECT group_position FROM table_name_55 WHERE date = "24 september 2002"
Date of 24 september 2002 is what group position?
<s>[INST]Date of 24 september 2002 is what group position? Context: CREATE TABLE table_name_55 (group_position VARCHAR, date VARCHAR)[/INST]SELECT group_position FROM table_name_55 WHERE date = "24 september 2002"</s>
CREATE TABLE table_name_3 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_3 WHERE player = "tiger woods"
What is the country for the player Tiger Woods?
<s>[INST]What is the country for the player Tiger Woods? Context: CREATE TABLE table_name_3 (country VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_3 WHERE player = "tiger woods"</s>
CREATE TABLE table_20745685_1 (score VARCHAR, _number VARCHAR)
SELECT score FROM table_20745685_1 WHERE _number = 7
What is the score for game #7?
<s>[INST]What is the score for game #7? Context: CREATE TABLE table_20745685_1 (score VARCHAR, _number VARCHAR)[/INST]SELECT score FROM table_20745685_1 WHERE _number = 7</s>
CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) LIMIT 1
What is the payment method of the customer that has purchased the least quantity of items?
<s>[INST]What is the payment method of the customer that has purchased the least quantity of items? Context: CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)[/INST]SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) LIMIT 1</s>
CREATE TABLE table_13998897_1 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT frequency_mhz FROM table_13998897_1 WHERE city_of_license = "Chattanooga, Tennessee"
what's the frequency mhz with city of license being chattanooga, tennessee
<s>[INST]what's the frequency mhz with city of license being chattanooga, tennessee Context: CREATE TABLE table_13998897_1 (frequency_mhz VARCHAR, city_of_license VARCHAR)[/INST]SELECT frequency_mhz FROM table_13998897_1 WHERE city_of_license = "Chattanooga, Tennessee"</s>
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT 1992 FROM table_name_3 WHERE 2001 = "1r" AND 1994 = "1r" AND 2002 = "qf"
What shows for 1992 when 2001 is 1r, 1994 is 1r, and the 2002 is qf?
<s>[INST]What shows for 1992 when 2001 is 1r, 1994 is 1r, and the 2002 is qf? Context: CREATE TABLE table_name_3 (Id VARCHAR)[/INST]SELECT 1992 FROM table_name_3 WHERE 2001 = "1r" AND 1994 = "1r" AND 2002 = "qf"</s>
CREATE TABLE table_name_57 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_57 WHERE score = "1-6, 3-6"
What Opponent has a Score that is 1-6, 3-6?
<s>[INST]What Opponent has a Score that is 1-6, 3-6? Context: CREATE TABLE table_name_57 (opponent VARCHAR, score VARCHAR)[/INST]SELECT opponent FROM table_name_57 WHERE score = "1-6, 3-6"</s>
CREATE TABLE table_name_20 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_20 WHERE partner = "kristof vliegen"
What is the Outcome when the partner was kristof vliegen?
<s>[INST]What is the Outcome when the partner was kristof vliegen? Context: CREATE TABLE table_name_20 (outcome VARCHAR, partner VARCHAR)[/INST]SELECT outcome FROM table_name_20 WHERE partner = "kristof vliegen"</s>
CREATE TABLE table_name_79 (santo_domingo_ VARCHAR, _dominican VARCHAR, world_record VARCHAR)
SELECT santo_domingo_, _dominican FROM table_name_79 WHERE world_record = "clean & jerk"
What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk?
<s>[INST]What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk? Context: CREATE TABLE table_name_79 (santo_domingo_ VARCHAR, _dominican VARCHAR, world_record VARCHAR)[/INST]SELECT santo_domingo_, _dominican FROM table_name_79 WHERE world_record = "clean & jerk"</s>
CREATE TABLE table_name_52 (time VARCHAR, laps VARCHAR)
SELECT time FROM table_name_52 WHERE laps = 14
What is the total time that it took for the driver to finish 14 laps?
<s>[INST]What is the total time that it took for the driver to finish 14 laps? Context: CREATE TABLE table_name_52 (time VARCHAR, laps VARCHAR)[/INST]SELECT time FROM table_name_52 WHERE laps = 14</s>
CREATE TABLE table_name_7 (film VARCHAR, nominating_festival VARCHAR)
SELECT film FROM table_name_7 WHERE nominating_festival = "prix uip vilo do conde"
The Prix UIP Vilo Do Conde festival nominated which film?
<s>[INST]The Prix UIP Vilo Do Conde festival nominated which film? Context: CREATE TABLE table_name_7 (film VARCHAR, nominating_festival VARCHAR)[/INST]SELECT film FROM table_name_7 WHERE nominating_festival = "prix uip vilo do conde"</s>
CREATE TABLE table_name_50 (record VARCHAR, number VARCHAR)
SELECT record FROM table_name_50 WHERE number = 23
What's the record of game number 23?
<s>[INST]What's the record of game number 23? Context: CREATE TABLE table_name_50 (record VARCHAR, number VARCHAR)[/INST]SELECT record FROM table_name_50 WHERE number = 23</s>
CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)
SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'
What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?
<s>[INST]What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ? Context: CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)[/INST]SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'</s>
CREATE TABLE table_name_92 (plural VARCHAR, plural_gender VARCHAR, meaning VARCHAR)
SELECT plural FROM table_name_92 WHERE plural_gender = "n" AND meaning = "python"
What is the plural if the meaning is python and the plural gender is n?
<s>[INST]What is the plural if the meaning is python and the plural gender is n? Context: CREATE TABLE table_name_92 (plural VARCHAR, plural_gender VARCHAR, meaning VARCHAR)[/INST]SELECT plural FROM table_name_92 WHERE plural_gender = "n" AND meaning = "python"</s>
CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, power VARCHAR)
SELECT engine FROM table_name_8 WHERE year > 2006 AND power = "bhp (kw)"
Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?
<s>[INST]Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)? Context: CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, power VARCHAR)[/INST]SELECT engine FROM table_name_8 WHERE year > 2006 AND power = "bhp (kw)"</s>
CREATE TABLE table_name_88 (l3_cache VARCHAR, sspec_number VARCHAR)
SELECT l3_cache FROM table_name_88 WHERE sspec_number = "sr0r2(l1)sr0t6(l1)"
What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)?
<s>[INST]What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)? Context: CREATE TABLE table_name_88 (l3_cache VARCHAR, sspec_number VARCHAR)[/INST]SELECT l3_cache FROM table_name_88 WHERE sspec_number = "sr0r2(l1)sr0t6(l1)"</s>
CREATE TABLE country (Population VARCHAR, Region VARCHAR, Name VARCHAR)
SELECT Population, Region FROM country WHERE Name = "Angola"
What are the region and population of Angola?
<s>[INST]What are the region and population of Angola? Context: CREATE TABLE country (Population VARCHAR, Region VARCHAR, Name VARCHAR)[/INST]SELECT Population, Region FROM country WHERE Name = "Angola"</s>
CREATE TABLE table_name_83 (to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280
what is the to par for $242,813 with score 68-72-74-66=280
<s>[INST]what is the to par for $242,813 with score 68-72-74-66=280 Context: CREATE TABLE table_name_83 (to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)[/INST]SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280</s>
CREATE TABLE table_name_33 (tournament VARCHAR, winner_and_score VARCHAR)
SELECT tournament FROM table_name_33 WHERE winner_and_score = "goran ivanišević 6–4, 6–2, 7–6(2)"
Which Tournament has a Winner and score of goran ivanišević 6–4, 6–2, 7–6(2)?
<s>[INST]Which Tournament has a Winner and score of goran ivanišević 6–4, 6–2, 7–6(2)? Context: CREATE TABLE table_name_33 (tournament VARCHAR, winner_and_score VARCHAR)[/INST]SELECT tournament FROM table_name_33 WHERE winner_and_score = "goran ivanišević 6–4, 6–2, 7–6(2)"</s>
CREATE TABLE table_name_9 (floors INTEGER, pinnacle_height_ft__m_ VARCHAR, pinn_rank VARCHAR)
SELECT AVG(floors) FROM table_name_9 WHERE pinnacle_height_ft__m_ = "1,136 (346)" AND pinn_rank > 4
Which Floors have a Pinnacle height ft (m) of 1,136 (346), and a Pinn Rank larger than 4?
<s>[INST]Which Floors have a Pinnacle height ft (m) of 1,136 (346), and a Pinn Rank larger than 4? Context: CREATE TABLE table_name_9 (floors INTEGER, pinnacle_height_ft__m_ VARCHAR, pinn_rank VARCHAR)[/INST]SELECT AVG(floors) FROM table_name_9 WHERE pinnacle_height_ft__m_ = "1,136 (346)" AND pinn_rank > 4</s>
CREATE TABLE table_name_81 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_81 WHERE week > 2 AND date = "november 19, 1995"
Which Opponent has a Week larger than 2 on november 19, 1995?
<s>[INST]Which Opponent has a Week larger than 2 on november 19, 1995? Context: CREATE TABLE table_name_81 (opponent VARCHAR, week VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_81 WHERE week > 2 AND date = "november 19, 1995"</s>
CREATE TABLE table_16384596_4 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_16384596_4 WHERE production_code = 209
Who directed the episode with the production code 209?
<s>[INST]Who directed the episode with the production code 209? Context: CREATE TABLE table_16384596_4 (directed_by VARCHAR, production_code VARCHAR)[/INST]SELECT directed_by FROM table_16384596_4 WHERE production_code = 209</s>
CREATE TABLE table_1341663_10 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(incumbent) FROM table_1341663_10 WHERE candidates = "Dan Mica (D) 55.3% Bill James (R) 44.7%"
how many times was the candidates dan mica (d) 55.3% bill james (r) 44.7%?
<s>[INST]how many times was the candidates dan mica (d) 55.3% bill james (r) 44.7%? Context: CREATE TABLE table_1341663_10 (incumbent VARCHAR, candidates VARCHAR)[/INST]SELECT COUNT(incumbent) FROM table_1341663_10 WHERE candidates = "Dan Mica (D) 55.3% Bill James (R) 44.7%"</s>
CREATE TABLE table_26561508_1 (production_code VARCHAR, patient_portrayer VARCHAR)
SELECT production_code FROM table_26561508_1 WHERE patient_portrayer = "Kathy Lamkin"
What is the production code for the episode where the patient portrayer is Kathy Lamkin?
<s>[INST]What is the production code for the episode where the patient portrayer is Kathy Lamkin? Context: CREATE TABLE table_26561508_1 (production_code VARCHAR, patient_portrayer VARCHAR)[/INST]SELECT production_code FROM table_26561508_1 WHERE patient_portrayer = "Kathy Lamkin"</s>
CREATE TABLE table_27537870_6 (location_attendance VARCHAR, opponent VARCHAR)
SELECT location_attendance FROM table_27537870_6 WHERE opponent = "@ Boston Bruins"
If the opponent was @ Boston Bruins, what was the Location/Attendance?
<s>[INST]If the opponent was @ Boston Bruins, what was the Location/Attendance? Context: CREATE TABLE table_27537870_6 (location_attendance VARCHAR, opponent VARCHAR)[/INST]SELECT location_attendance FROM table_27537870_6 WHERE opponent = "@ Boston Bruins"</s>
CREATE TABLE table_2544694_3 (indonesia_super_series_2008 VARCHAR, runner_up VARCHAR)
SELECT indonesia_super_series_2008 FROM table_2544694_3 WHERE runner_up = "Semi-Finalist" AND 780000 = "6420.00"
Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00?
<s>[INST]Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00? Context: CREATE TABLE table_2544694_3 (indonesia_super_series_2008 VARCHAR, runner_up VARCHAR)[/INST]SELECT indonesia_super_series_2008 FROM table_2544694_3 WHERE runner_up = "Semi-Finalist" AND 780000 = "6420.00"</s>
CREATE TABLE table_24852622_1 (class_a_winner VARCHAR, class_c_winner VARCHAR)
SELECT class_a_winner FROM table_24852622_1 WHERE class_c_winner = "David Haynes"
Who was the Class A winner when the Class C winner was David Haynes?
<s>[INST]Who was the Class A winner when the Class C winner was David Haynes? Context: CREATE TABLE table_24852622_1 (class_a_winner VARCHAR, class_c_winner VARCHAR)[/INST]SELECT class_a_winner FROM table_24852622_1 WHERE class_c_winner = "David Haynes"</s>
CREATE TABLE table_name_58 (team VARCHAR, difference VARCHAR, lost VARCHAR, position VARCHAR)
SELECT team FROM table_name_58 WHERE lost < 13 AND position < 4 AND difference = "42"
What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42?
<s>[INST]What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42? Context: CREATE TABLE table_name_58 (team VARCHAR, difference VARCHAR, lost VARCHAR, position VARCHAR)[/INST]SELECT team FROM table_name_58 WHERE lost < 13 AND position < 4 AND difference = "42"</s>
CREATE TABLE table_2267857_1 (year VARCHAR, driver VARCHAR)
SELECT COUNT(year) FROM table_2267857_1 WHERE driver = "Dick Hutcherson"
Name the number of year for dick hutcherson
<s>[INST]Name the number of year for dick hutcherson Context: CREATE TABLE table_2267857_1 (year VARCHAR, driver VARCHAR)[/INST]SELECT COUNT(year) FROM table_2267857_1 WHERE driver = "Dick Hutcherson"</s>
CREATE TABLE table_171356_2 (status VARCHAR, official_name VARCHAR)
SELECT COUNT(status) FROM table_171356_2 WHERE official_name = "Gagetown"
How many statuses are listed for the parish officially named Gagetown?
<s>[INST]How many statuses are listed for the parish officially named Gagetown? Context: CREATE TABLE table_171356_2 (status VARCHAR, official_name VARCHAR)[/INST]SELECT COUNT(status) FROM table_171356_2 WHERE official_name = "Gagetown"</s>
CREATE TABLE table_name_91 (area_1996_km² INTEGER, pop_1999 VARCHAR, area_2006_km² VARCHAR)
SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = "17,510" AND area_2006_km² > 30
Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30?
<s>[INST]Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30? Context: CREATE TABLE table_name_91 (area_1996_km² INTEGER, pop_1999 VARCHAR, area_2006_km² VARCHAR)[/INST]SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = "17,510" AND area_2006_km² > 30</s>
CREATE TABLE LOCATIONS (Address VARCHAR, Location_Name VARCHAR)
SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery"
What is the address of the location "UK Gallery"?
<s>[INST]What is the address of the location "UK Gallery"? Context: CREATE TABLE LOCATIONS (Address VARCHAR, Location_Name VARCHAR)[/INST]SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery"</s>
CREATE TABLE table_name_35 (location VARCHAR, school VARCHAR)
SELECT location FROM table_name_35 WHERE school = "terre haute north"
Where is Terre Haute North located?
<s>[INST]Where is Terre Haute North located? Context: CREATE TABLE table_name_35 (location VARCHAR, school VARCHAR)[/INST]SELECT location FROM table_name_35 WHERE school = "terre haute north"</s>
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1
What is the department name of the students with lowest gpa belongs to?
<s>[INST]What is the department name of the students with lowest gpa belongs to? Context: CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)[/INST]SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1</s>
CREATE TABLE table_name_86 (torque VARCHAR, engine VARCHAR)
SELECT torque FROM table_name_86 WHERE engine = "1.3 16v multijet"
Which torque value is associated with the 1.3 16V multijet engine?
<s>[INST]Which torque value is associated with the 1.3 16V multijet engine? Context: CREATE TABLE table_name_86 (torque VARCHAR, engine VARCHAR)[/INST]SELECT torque FROM table_name_86 WHERE engine = "1.3 16v multijet"</s>
CREATE TABLE table_12164707_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT mens_doubles FROM table_12164707_1 WHERE womens_singles = "Karina de Wit"
Who won the Men's Doubles when Karina de Wit won the Women's Singles?
<s>[INST]Who won the Men's Doubles when Karina de Wit won the Women's Singles? Context: CREATE TABLE table_12164707_1 (mens_doubles VARCHAR, womens_singles VARCHAR)[/INST]SELECT mens_doubles FROM table_12164707_1 WHERE womens_singles = "Karina de Wit"</s>
CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR)
SELECT power FROM table_250230_2 WHERE model = "Spirit R (Type B)"
What is the power for the Spirit R (Type B)?
<s>[INST]What is the power for the Spirit R (Type B)? Context: CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR)[/INST]SELECT power FROM table_250230_2 WHERE model = "Spirit R (Type B)"</s>
CREATE TABLE table_16799784_4 (longitude VARCHAR, name VARCHAR)
SELECT longitude FROM table_16799784_4 WHERE name = "Grechukha Tholi"
Grechukha Tholi has what longitude?
<s>[INST]Grechukha Tholi has what longitude? Context: CREATE TABLE table_16799784_4 (longitude VARCHAR, name VARCHAR)[/INST]SELECT longitude FROM table_16799784_4 WHERE name = "Grechukha Tholi"</s>
CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR)
SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = "50.33"
What is the desired rate when the rate limit (p) is 50.33?
<s>[INST]What is the desired rate when the rate limit (p) is 50.33? Context: CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR)[/INST]SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = "50.33"</s>
CREATE TABLE table_name_45 (date VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_45 WHERE margin_of_victory = "3 and 2"
Which date's margin of victory was 3 and 2?
<s>[INST]Which date's margin of victory was 3 and 2? Context: CREATE TABLE table_name_45 (date VARCHAR, margin_of_victory VARCHAR)[/INST]SELECT date FROM table_name_45 WHERE margin_of_victory = "3 and 2"</s>
CREATE TABLE table_name_93 (season_3 VARCHAR, season_7 VARCHAR)
SELECT season_3 FROM table_name_93 WHERE season_7 = "jim treliving"
Which Season 3 has a Season 7 of jim treliving?
<s>[INST]Which Season 3 has a Season 7 of jim treliving? Context: CREATE TABLE table_name_93 (season_3 VARCHAR, season_7 VARCHAR)[/INST]SELECT season_3 FROM table_name_93 WHERE season_7 = "jim treliving"</s>
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE party (party_name VARCHAR, region_id VARCHAR)
SELECT T1.party_name, T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id
Show all party names and their region names.
<s>[INST]Show all party names and their region names. Context: CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE party (party_name VARCHAR, region_id VARCHAR)[/INST]SELECT T1.party_name, T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id</s>
CREATE TABLE table_name_79 (year VARCHAR, organization VARCHAR)
SELECT year FROM table_name_79 WHERE organization = "legatum institute"
What year for the legatum institute?
<s>[INST]What year for the legatum institute? Context: CREATE TABLE table_name_79 (year VARCHAR, organization VARCHAR)[/INST]SELECT year FROM table_name_79 WHERE organization = "legatum institute"</s>
CREATE TABLE table_23346983_1 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_23346983_1 WHERE record = "5-1"
Who did the Orangemen play against when their record was 5-1?
<s>[INST]Who did the Orangemen play against when their record was 5-1? Context: CREATE TABLE table_23346983_1 (opponent VARCHAR, record VARCHAR)[/INST]SELECT opponent FROM table_23346983_1 WHERE record = "5-1"</s>
CREATE TABLE table_name_97 (type VARCHAR, newspaper_magazine VARCHAR)
SELECT type FROM table_name_97 WHERE newspaper_magazine = "telecoms & it magazine"
What is Type, when Newspaper/Magazine is Telecoms & It Magazine?
<s>[INST]What is Type, when Newspaper/Magazine is Telecoms & It Magazine? Context: CREATE TABLE table_name_97 (type VARCHAR, newspaper_magazine VARCHAR)[/INST]SELECT type FROM table_name_97 WHERE newspaper_magazine = "telecoms & it magazine"</s>
CREATE TABLE table_25691838_12 (guest VARCHAR, original_airdate VARCHAR)
SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07"
Who were the guests for the episode with an original airdate of december 07?
<s>[INST]Who were the guests for the episode with an original airdate of december 07? Context: CREATE TABLE table_25691838_12 (guest VARCHAR, original_airdate VARCHAR)[/INST]SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07"</s>
CREATE TABLE table_name_60 (call_sign VARCHAR, branding VARCHAR)
SELECT call_sign FROM table_name_60 WHERE branding = "cbc radio one"
Which Call sign has a Branding of cbc radio one?
<s>[INST]Which Call sign has a Branding of cbc radio one? Context: CREATE TABLE table_name_60 (call_sign VARCHAR, branding VARCHAR)[/INST]SELECT call_sign FROM table_name_60 WHERE branding = "cbc radio one"</s>
CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_3 WHERE week = 6
What day did the play on week 6?
<s>[INST]What day did the play on week 6? Context: CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR)[/INST]SELECT date FROM table_name_3 WHERE week = 6</s>
CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_70 WHERE attendance = "23,493"
What was the score when the Rangers' attendance was 23,493?
<s>[INST]What was the score when the Rangers' attendance was 23,493? Context: CREATE TABLE table_name_70 (score VARCHAR, attendance VARCHAR)[/INST]SELECT score FROM table_name_70 WHERE attendance = "23,493"</s>
CREATE TABLE table_29565601_2 (l INTEGER)
SELECT MAX(l) FROM table_29565601_2
What is the largest number in L?
<s>[INST]What is the largest number in L? Context: CREATE TABLE table_29565601_2 (l INTEGER)[/INST]SELECT MAX(l) FROM table_29565601_2</s>
CREATE TABLE table_name_8 (catalog VARCHAR, format VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_8 WHERE format = "digipak album" AND date = "june 29, 1999"
What Catalog released on June 29, 1999 has a Digipak Album Format?
<s>[INST]What Catalog released on June 29, 1999 has a Digipak Album Format? Context: CREATE TABLE table_name_8 (catalog VARCHAR, format VARCHAR, date VARCHAR)[/INST]SELECT catalog FROM table_name_8 WHERE format = "digipak album" AND date = "june 29, 1999"</s>
CREATE TABLE table_name_60 (attendance VARCHAR, week VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_60 WHERE week > 10 AND result = "l 22-21"
I want the attendance for week larger than 10 and result of l 22-21
<s>[INST]I want the attendance for week larger than 10 and result of l 22-21 Context: CREATE TABLE table_name_60 (attendance VARCHAR, week VARCHAR, result VARCHAR)[/INST]SELECT attendance FROM table_name_60 WHERE week > 10 AND result = "l 22-21"</s>
CREATE TABLE table_name_22 (game VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT game FROM table_name_22 WHERE home_team = "san francisco" AND date = "april 22"
Which Game has a Home Team of san francisco, and a Date of april 22?
<s>[INST]Which Game has a Home Team of san francisco, and a Date of april 22? Context: CREATE TABLE table_name_22 (game VARCHAR, home_team VARCHAR, date VARCHAR)[/INST]SELECT game FROM table_name_22 WHERE home_team = "san francisco" AND date = "april 22"</s>
CREATE TABLE table_name_95 (date_of_official_foundation_of_municipality VARCHAR)
SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918
What is the total number in 2006, which has an official foundation of municipality of 1918?
<s>[INST]What is the total number in 2006, which has an official foundation of municipality of 1918? Context: CREATE TABLE table_name_95 (date_of_official_foundation_of_municipality VARCHAR)[/INST]SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918</s>
CREATE TABLE table_2828803_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_2828803_1 WHERE directed_by = "Dennis Smith"
What is the name of the episode that was directed by Dennis Smith?
<s>[INST]What is the name of the episode that was directed by Dennis Smith? Context: CREATE TABLE table_2828803_1 (title VARCHAR, directed_by VARCHAR)[/INST]SELECT title FROM table_2828803_1 WHERE directed_by = "Dennis Smith"</s>
CREATE TABLE table_name_52 (success_rate VARCHAR, year VARCHAR)
SELECT success_rate FROM table_name_52 WHERE year = "2012"
What is the success rate for the year 2012?
<s>[INST]What is the success rate for the year 2012? Context: CREATE TABLE table_name_52 (success_rate VARCHAR, year VARCHAR)[/INST]SELECT success_rate FROM table_name_52 WHERE year = "2012"</s>
CREATE TABLE table_17111812_1 (winner VARCHAR, fourth VARCHAR)
SELECT COUNT(winner) FROM table_17111812_1 WHERE fourth = "Plan B"
How many times was Plan B 4th place?
<s>[INST]How many times was Plan B 4th place? Context: CREATE TABLE table_17111812_1 (winner VARCHAR, fourth VARCHAR)[/INST]SELECT COUNT(winner) FROM table_17111812_1 WHERE fourth = "Plan B"</s>
CREATE TABLE table_name_90 (written_by VARCHAR, original_airdate VARCHAR)
SELECT written_by FROM table_name_90 WHERE original_airdate = "june 6, 1999"
Who wrote the program that originally aired on June 6, 1999?
<s>[INST]Who wrote the program that originally aired on June 6, 1999? Context: CREATE TABLE table_name_90 (written_by VARCHAR, original_airdate VARCHAR)[/INST]SELECT written_by FROM table_name_90 WHERE original_airdate = "june 6, 1999"</s>
CREATE TABLE table_1217448_1 (estimated_value VARCHAR, cover_date VARCHAR)
SELECT estimated_value FROM table_1217448_1 WHERE cover_date = "August 1962"
what's the estimated value where cover date is august 1962
<s>[INST] what's the estimated value where cover date is august 1962 Context: CREATE TABLE table_1217448_1 (estimated_value VARCHAR, cover_date VARCHAR)[/INST]SELECT estimated_value FROM table_1217448_1 WHERE cover_date = "August 1962"</s>
CREATE TABLE table_1875157_2 (starts INTEGER, avg_finish VARCHAR)
SELECT MAX(starts) FROM table_1875157_2 WHERE avg_finish = "16.5"
What is the maximum starts that result in an average finish of 16.5?
<s>[INST]What is the maximum starts that result in an average finish of 16.5? Context: CREATE TABLE table_1875157_2 (starts INTEGER, avg_finish VARCHAR)[/INST]SELECT MAX(starts) FROM table_1875157_2 WHERE avg_finish = "16.5"</s>
CREATE TABLE table_name_31 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_31 WHERE first_elected = 1904 AND incumbent = "duncan e. mckinlay"
Which District has a First Elected of 1904 and an Incumbent of Duncan E. Mckinlay?
<s>[INST]Which District has a First Elected of 1904 and an Incumbent of Duncan E. Mckinlay? Context: CREATE TABLE table_name_31 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)[/INST]SELECT district FROM table_name_31 WHERE first_elected = 1904 AND incumbent = "duncan e. mckinlay"</s>
CREATE TABLE table_name_64 (ra___j2000__ VARCHAR, name VARCHAR)
SELECT ra___j2000__ FROM table_name_64 WHERE name = "ngc 1515"
Which R.A. (J2000) has a Name of ngc 1515?
<s>[INST]Which R.A. (J2000) has a Name of ngc 1515? Context: CREATE TABLE table_name_64 (ra___j2000__ VARCHAR, name VARCHAR)[/INST]SELECT ra___j2000__ FROM table_name_64 WHERE name = "ngc 1515"</s>
CREATE TABLE table_1733457_1 (kerry_number INTEGER, others_number VARCHAR)
SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47
Name the maximum kerry # for where others is 47
<s>[INST]Name the maximum kerry # for where others is 47 Context: CREATE TABLE table_1733457_1 (kerry_number INTEGER, others_number VARCHAR)[/INST]SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47</s>
CREATE TABLE table_name_63 (league VARCHAR, playoffs VARCHAR, record VARCHAR)
SELECT league FROM table_name_63 WHERE playoffs = "league champs" AND record = "77-63"
Playoffs of league champs, and a Record of 77-63 is in what league?
<s>[INST]Playoffs of league champs, and a Record of 77-63 is in what league? Context: CREATE TABLE table_name_63 (league VARCHAR, playoffs VARCHAR, record VARCHAR)[/INST]SELECT league FROM table_name_63 WHERE playoffs = "league champs" AND record = "77-63"</s>
CREATE TABLE table_24172157_3 (incoming_manager VARCHAR, outgoing_manager VARCHAR, team VARCHAR)
SELECT COUNT(incoming_manager) FROM table_24172157_3 WHERE outgoing_manager = "Roy Hodgson" AND team = "Fulham"
How many incoming managers were there after Roy Hodgson left the position for the Fulham team?
<s>[INST]How many incoming managers were there after Roy Hodgson left the position for the Fulham team? Context: CREATE TABLE table_24172157_3 (incoming_manager VARCHAR, outgoing_manager VARCHAR, team VARCHAR)[/INST]SELECT COUNT(incoming_manager) FROM table_24172157_3 WHERE outgoing_manager = "Roy Hodgson" AND team = "Fulham"</s>
CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR)
SELECT date_made FROM table_name_46 WHERE notes = "45/48 renumbered 15/16; two sold to sl&ncr"
When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?
<s>[INST]When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr? Context: CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR)[/INST]SELECT date_made FROM table_name_46 WHERE notes = "45/48 renumbered 15/16; two sold to sl&ncr"</s>
CREATE TABLE table_name_44 (category VARCHAR, year INTEGER)
SELECT category FROM table_name_44 WHERE year < 2011
What is the category that came before 2011?
<s>[INST]What is the category that came before 2011? Context: CREATE TABLE table_name_44 (category VARCHAR, year INTEGER)[/INST]SELECT category FROM table_name_44 WHERE year < 2011</s>