context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_28768925_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_28768925_1 WHERE us_viewers__million_ = "8.84"
What date did the episode that had 8.84 million u.s. viewers originally air?
<s>[INST]What date did the episode that had 8.84 million u.s. viewers originally air? Context: CREATE TABLE table_28768925_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT original_air_date FROM table_28768925_1 WHERE us_viewers__million_ = "8.84"</s>
CREATE TABLE party_events (event_name VARCHAR)
SELECT event_name FROM party_events GROUP BY event_name HAVING COUNT(*) > 2
find the event names that have more than 2 records.
<s>[INST]find the event names that have more than 2 records. Context: CREATE TABLE party_events (event_name VARCHAR)[/INST]SELECT event_name FROM party_events GROUP BY event_name HAVING COUNT(*) > 2</s>
CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_82 WHERE game = 5
What is the score for game 5?
<s>[INST]What is the score for game 5? Context: CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR)[/INST]SELECT score FROM table_name_82 WHERE game = 5</s>
CREATE TABLE table_182499_1 (porphyria VARCHAR, substrate VARCHAR)
SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = "δ-Aminolevulinic acid"
how many porphyria have substrate δ-aminolevulinic acid
<s>[INST]how many porphyria have substrate δ-aminolevulinic acid Context: CREATE TABLE table_182499_1 (porphyria VARCHAR, substrate VARCHAR)[/INST]SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = "δ-Aminolevulinic acid"</s>
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, tries VARCHAR, points VARCHAR)
SELECT position FROM table_name_58 WHERE tries > 4 AND points = 20 AND player = "lee gilmour"
What position did Lee Gilmour play while having more than 4 Tries and 20 points?
<s>[INST]What position did Lee Gilmour play while having more than 4 Tries and 20 points? Context: CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, tries VARCHAR, points VARCHAR)[/INST]SELECT position FROM table_name_58 WHERE tries > 4 AND points = 20 AND player = "lee gilmour"</s>
CREATE TABLE table_name_35 (losses VARCHAR, place VARCHAR, ties VARCHAR)
SELECT COUNT(losses) FROM table_name_35 WHERE place = 4 AND ties < 0
Name the total losses for 4 place and ties less than 0
<s>[INST]Name the total losses for 4 place and ties less than 0 Context: CREATE TABLE table_name_35 (losses VARCHAR, place VARCHAR, ties VARCHAR)[/INST]SELECT COUNT(losses) FROM table_name_35 WHERE place = 4 AND ties < 0</s>
CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_90 WHERE title = "the fugitive"
What is the Director of the Film The Fugitive?
<s>[INST]What is the Director of the Film The Fugitive? Context: CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR)[/INST]SELECT director FROM table_name_90 WHERE title = "the fugitive"</s>
CREATE TABLE table_2196127_1 (laps VARCHAR, year VARCHAR)
SELECT laps FROM table_2196127_1 WHERE year = "2002"
How many laps were there in 2002?
<s>[INST]How many laps were there in 2002? Context: CREATE TABLE table_2196127_1 (laps VARCHAR, year VARCHAR)[/INST]SELECT laps FROM table_2196127_1 WHERE year = "2002"</s>
CREATE TABLE table_name_15 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_15 WHERE time = "+39.476" AND grid > 11
Which Laps have a Time of +39.476, and a Grid larger than 11?
<s>[INST]Which Laps have a Time of +39.476, and a Grid larger than 11? Context: CREATE TABLE table_name_15 (laps INTEGER, time VARCHAR, grid VARCHAR)[/INST]SELECT AVG(laps) FROM table_name_15 WHERE time = "+39.476" AND grid > 11</s>
CREATE TABLE mission (Name VARCHAR, Ship_ID VARCHAR); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR)
SELECT Name FROM ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM mission)
List the name of ships that are not involved in any mission
<s>[INST]List the name of ships that are not involved in any mission Context: CREATE TABLE mission (Name VARCHAR, Ship_ID VARCHAR); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR)[/INST]SELECT Name FROM ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM mission)</s>
CREATE TABLE table_name_79 (appointment VARCHAR, credentials_presented VARCHAR)
SELECT appointment FROM table_name_79 WHERE credentials_presented = "jul 2, 1969"
What day was the appointment when Credentials Presented was jul 2, 1969?
<s>[INST]What day was the appointment when Credentials Presented was jul 2, 1969? Context: CREATE TABLE table_name_79 (appointment VARCHAR, credentials_presented VARCHAR)[/INST]SELECT appointment FROM table_name_79 WHERE credentials_presented = "jul 2, 1969"</s>
CREATE TABLE table_name_42 (city VARCHAR, name VARCHAR)
SELECT city FROM table_name_42 WHERE name = "estonian university of life sciences"
In what city is the Estonian University of Life Sciences located?
<s>[INST]In what city is the Estonian University of Life Sciences located? Context: CREATE TABLE table_name_42 (city VARCHAR, name VARCHAR)[/INST]SELECT city FROM table_name_42 WHERE name = "estonian university of life sciences"</s>
CREATE TABLE table_name_38 (races VARCHAR, points VARCHAR)
SELECT races FROM table_name_38 WHERE points = "125"
Which races did they accumulate at least 125 points?
<s>[INST]Which races did they accumulate at least 125 points? Context: CREATE TABLE table_name_38 (races VARCHAR, points VARCHAR)[/INST]SELECT races FROM table_name_38 WHERE points = "125"</s>
CREATE TABLE table_name_20 (round VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_20 WHERE nationality = "united states" AND player = "jeffrey foss"
What is the round number when nationality was United States, and player is Jeffrey Foss?
<s>[INST]What is the round number when nationality was United States, and player is Jeffrey Foss? Context: CREATE TABLE table_name_20 (round VARCHAR, nationality VARCHAR, player VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_20 WHERE nationality = "united states" AND player = "jeffrey foss"</s>
CREATE TABLE table_16729930_17 (memory VARCHAR, model_number VARCHAR)
SELECT memory FROM table_16729930_17 WHERE model_number = "Atom E640T"
Name the memory for meodel number for atom e640t
<s>[INST]Name the memory for meodel number for atom e640t Context: CREATE TABLE table_16729930_17 (memory VARCHAR, model_number VARCHAR)[/INST]SELECT memory FROM table_16729930_17 WHERE model_number = "Atom E640T"</s>
CREATE TABLE table_18305523_2 (comments VARCHAR, cover_date VARCHAR)
SELECT comments FROM table_18305523_2 WHERE cover_date = "14 March 1987"
What is the comment on the issue dated 14 March 1987?
<s>[INST]What is the comment on the issue dated 14 March 1987? Context: CREATE TABLE table_18305523_2 (comments VARCHAR, cover_date VARCHAR)[/INST]SELECT comments FROM table_18305523_2 WHERE cover_date = "14 March 1987"</s>
CREATE TABLE schedule (show_times_per_day INTEGER, cinema_id VARCHAR); CREATE TABLE cinema (name VARCHAR, cinema_id VARCHAR)
SELECT T2.name, SUM(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id
What is total number of show times per dat for each cinema?
<s>[INST]What is total number of show times per dat for each cinema? Context: CREATE TABLE schedule (show_times_per_day INTEGER, cinema_id VARCHAR); CREATE TABLE cinema (name VARCHAR, cinema_id VARCHAR)[/INST]SELECT T2.name, SUM(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id...
CREATE TABLE table_name_64 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_64 WHERE date = "october 10"
What location has October 10 as date?
<s>[INST]What location has October 10 as date? Context: CREATE TABLE table_name_64 (location VARCHAR, date VARCHAR)[/INST]SELECT location FROM table_name_64 WHERE date = "october 10"</s>
CREATE TABLE table_name_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)
SELECT started FROM table_name_23 WHERE country = "eng" AND loan_club = "sunderland" AND end_source = "south wales echo"
When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?
<s>[INST]When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo? Context: CREATE TABLE table_name_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)[/INST]SELECT started FROM table_name_23 WHERE country = "eng" AND loan_club = "sund...
CREATE TABLE table_17432028_1 (score VARCHAR, record VARCHAR)
SELECT score FROM table_17432028_1 WHERE record = "2-5"
Name the score for record of 2-5
<s>[INST]Name the score for record of 2-5 Context: CREATE TABLE table_17432028_1 (score VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_17432028_1 WHERE record = "2-5"</s>
CREATE TABLE table_name_80 (points INTEGER, chassis VARCHAR, entrant VARCHAR)
SELECT SUM(points) FROM table_name_80 WHERE chassis = "maserati 250f" AND entrant = "officine alfieri maserati"
Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati
<s>[INST]Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maserati Context: CREATE TABLE table_name_80 (points INTEGER, chassis VARCHAR, entrant VARCHAR)[/INST]SELECT SUM(points) FROM table_name_80 WHERE chassis = "maserati 250f" AND entrant = "officine alfieri maserati"</s>
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, county VARCHAR)
SELECT turbine_manufacturer FROM table_24837750_1 WHERE county = "Wheatland"
Who was the turbine manufacturer for the Wheatland county?
<s>[INST]Who was the turbine manufacturer for the Wheatland county? Context: CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, county VARCHAR)[/INST]SELECT turbine_manufacturer FROM table_24837750_1 WHERE county = "Wheatland"</s>
CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR)
SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006"
Name the january 15-16 where march 27-29 where march 29, 2006
<s>[INST]Name the january 15-16 where march 27-29 where march 29, 2006 Context: CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR)[/INST]SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006"</s>
CREATE TABLE table_name_41 (category VARCHAR, year VARCHAR)
SELECT category FROM table_name_41 WHERE year = 1991
Which category had a year of 1991?
<s>[INST]Which category had a year of 1991? Context: CREATE TABLE table_name_41 (category VARCHAR, year VARCHAR)[/INST]SELECT category FROM table_name_41 WHERE year = 1991</s>
CREATE TABLE table_name_26 (départ_de_la_main_gauche VARCHAR, mode VARCHAR)
SELECT départ_de_la_main_gauche FROM table_name_26 WHERE mode = "do"
What is the Depart de la main gauche of the do Mode?
<s>[INST]What is the Depart de la main gauche of the do Mode? Context: CREATE TABLE table_name_26 (départ_de_la_main_gauche VARCHAR, mode VARCHAR)[/INST]SELECT départ_de_la_main_gauche FROM table_name_26 WHERE mode = "do"</s>
CREATE TABLE table_26614365_1 (western VARCHAR, latin VARCHAR)
SELECT western FROM table_26614365_1 WHERE latin = "latrones"
What is the western word for "latrones" in Latin?
<s>[INST]What is the western word for "latrones" in Latin? Context: CREATE TABLE table_26614365_1 (western VARCHAR, latin VARCHAR)[/INST]SELECT western FROM table_26614365_1 WHERE latin = "latrones"</s>
CREATE TABLE table_name_34 (attendance INTEGER, visitor VARCHAR)
SELECT MIN(attendance) FROM table_name_34 WHERE visitor = "nashville"
When Nashville was the visiting team what was the lowest Attendance shown?
<s>[INST]When Nashville was the visiting team what was the lowest Attendance shown? Context: CREATE TABLE table_name_34 (attendance INTEGER, visitor VARCHAR)[/INST]SELECT MIN(attendance) FROM table_name_34 WHERE visitor = "nashville"</s>
CREATE TABLE table_27755603_8 (score VARCHAR, date VARCHAR)
SELECT COUNT(score) FROM table_27755603_8 WHERE date = "January 12"
Name the number of score for january 12
<s>[INST]Name the number of score for january 12 Context: CREATE TABLE table_27755603_8 (score VARCHAR, date VARCHAR)[/INST]SELECT COUNT(score) FROM table_27755603_8 WHERE date = "January 12"</s>
CREATE TABLE table_name_49 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_49 WHERE entrant = "modena team spa" AND year > 1991
What is the highest number of points for the Modena Team Spa after 1991?
<s>[INST]What is the highest number of points for the Modena Team Spa after 1991? Context: CREATE TABLE table_name_49 (points INTEGER, entrant VARCHAR, year VARCHAR)[/INST]SELECT MAX(points) FROM table_name_49 WHERE entrant = "modena team spa" AND year > 1991</s>
CREATE TABLE table_name_62 (run_1 VARCHAR, run_4 VARCHAR)
SELECT run_1 FROM table_name_62 WHERE run_4 = "1:56.59"
What is Run 1, when Run 4 is 1:56.59?
<s>[INST]What is Run 1, when Run 4 is 1:56.59? Context: CREATE TABLE table_name_62 (run_1 VARCHAR, run_4 VARCHAR)[/INST]SELECT run_1 FROM table_name_62 WHERE run_4 = "1:56.59"</s>
CREATE TABLE table_name_6 (entrant VARCHAR, engine VARCHAR, points VARCHAR)
SELECT entrant FROM table_name_6 WHERE engine = "ferrari v8" AND points < 4
what is the entrant for the ferrari v8 with points less than 4?
<s>[INST]what is the entrant for the ferrari v8 with points less than 4? Context: CREATE TABLE table_name_6 (entrant VARCHAR, engine VARCHAR, points VARCHAR)[/INST]SELECT entrant FROM table_name_6 WHERE engine = "ferrari v8" AND points < 4</s>
CREATE TABLE table_name_75 (tackles VARCHAR, int_yds VARCHAR, solo VARCHAR, sacks VARCHAR)
SELECT tackles FROM table_name_75 WHERE solo > 67 AND sacks < 2 AND int_yds > 1
What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1?
<s>[INST]What is the value for Tackles, when the value for Solo is greater than 67, when the value for Sacks is less than 2, and when the value for INT YDS is greater than 1? Context: CREATE TABLE table_name_75 (tackles VARCHAR, int_yds VARCHAR, solo VARCHAR, sacks VARCHAR)[/INST]SELECT tackles FROM table_name_75 WHERE...
CREATE TABLE table_name_83 (bronze VARCHAR, total VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_83 WHERE rank = 2 AND nation = "west germany" AND total < 1
What is the total number of bronze medals of West Germany, which is ranked 2 and has less than 1 total medals?
<s>[INST]What is the total number of bronze medals of West Germany, which is ranked 2 and has less than 1 total medals? Context: CREATE TABLE table_name_83 (bronze VARCHAR, total VARCHAR, rank VARCHAR, nation VARCHAR)[/INST]SELECT COUNT(bronze) FROM table_name_83 WHERE rank = 2 AND nation = "west germany" AND total < 1...
CREATE TABLE table_name_14 (block_a VARCHAR, el_nosawa_mendoza VARCHAR)
SELECT block_a FROM table_name_14 WHERE el_nosawa_mendoza = "kondo (7:08)"
What is the Block A value for an El NOSAWA Mendoza value of kondo (7:08)?
<s>[INST]What is the Block A value for an El NOSAWA Mendoza value of kondo (7:08)? Context: CREATE TABLE table_name_14 (block_a VARCHAR, el_nosawa_mendoza VARCHAR)[/INST]SELECT block_a FROM table_name_14 WHERE el_nosawa_mendoza = "kondo (7:08)"</s>
CREATE TABLE table_name_26 (finish VARCHAR, qual VARCHAR)
SELECT finish FROM table_name_26 WHERE qual = "123.660"
What was the finish place with a qual of 123.660?
<s>[INST]What was the finish place with a qual of 123.660? Context: CREATE TABLE table_name_26 (finish VARCHAR, qual VARCHAR)[/INST]SELECT finish FROM table_name_26 WHERE qual = "123.660"</s>
CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_35 WHERE home_team = "west ham united"
On what Date is West Ham United the Home team?
<s>[INST]On what Date is West Ham United the Home team? Context: CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)[/INST]SELECT date FROM table_name_35 WHERE home_team = "west ham united"</s>
CREATE TABLE table_14407512_23 (nationality VARCHAR, name VARCHAR)
SELECT COUNT(nationality) FROM table_14407512_23 WHERE name = "Tom Hilde"
Name the number of nationality is tom hilde
<s>[INST]Name the number of nationality is tom hilde Context: CREATE TABLE table_14407512_23 (nationality VARCHAR, name VARCHAR)[/INST]SELECT COUNT(nationality) FROM table_14407512_23 WHERE name = "Tom Hilde"</s>
CREATE TABLE table_name_1 (profession VARCHAR, name VARCHAR, entered_the_house VARCHAR, evicted VARCHAR)
SELECT profession FROM table_name_1 WHERE entered_the_house = "day 1" AND evicted = "day 29" AND name = "skaj vikler"
What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29?
<s>[INST]What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29? Context: CREATE TABLE table_name_1 (profession VARCHAR, name VARCHAR, entered_the_house VARCHAR, evicted VARCHAR)[/INST]SELECT profession FROM table_name_1 WHERE entered_the_house = "day 1" AND evicted = "day 29" A...
CREATE TABLE table_name_99 (no_units INTEGER, name VARCHAR, no_blocks VARCHAR)
SELECT AVG(no_units) FROM table_name_99 WHERE name = "fung shing court" AND no_blocks < 3
What is the average No Units, when the Name is Fung Shing Court, and when the No Blocks is fewer than 3?
<s>[INST]What is the average No Units, when the Name is Fung Shing Court, and when the No Blocks is fewer than 3? Context: CREATE TABLE table_name_99 (no_units INTEGER, name VARCHAR, no_blocks VARCHAR)[/INST]SELECT AVG(no_units) FROM table_name_99 WHERE name = "fung shing court" AND no_blocks < 3</s>
CREATE TABLE table_name_69 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_69 WHERE home_team = "collingwood"
What was the score of Collingwood?
<s>[INST]What was the score of Collingwood? Context: CREATE TABLE table_name_69 (home_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_69 WHERE home_team = "collingwood"</s>
CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "at los angeles rams" AND week > 12
Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?
<s>[INST]Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12? Context: CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "at los angeles rams" AND week > 12</s>
CREATE TABLE table_name_94 (player VARCHAR, school VARCHAR)
SELECT player FROM table_name_94 WHERE school = "hoover high school"
Which player attended Hoover High School?
<s>[INST]Which player attended Hoover High School? Context: CREATE TABLE table_name_94 (player VARCHAR, school VARCHAR)[/INST]SELECT player FROM table_name_94 WHERE school = "hoover high school"</s>
CREATE TABLE table_name_99 (county VARCHAR, median_family_income VARCHAR)
SELECT county FROM table_name_99 WHERE median_family_income = "$50,227"
Which county has a median family income of $50,227?
<s>[INST]Which county has a median family income of $50,227? Context: CREATE TABLE table_name_99 (county VARCHAR, median_family_income VARCHAR)[/INST]SELECT county FROM table_name_99 WHERE median_family_income = "$50,227"</s>
CREATE TABLE table_2367847_2 (high_schools INTEGER, district_wide VARCHAR)
SELECT MAX(high_schools) FROM table_2367847_2 WHERE district_wide = 31851
Name the most high schools for 31851
<s>[INST]Name the most high schools for 31851 Context: CREATE TABLE table_2367847_2 (high_schools INTEGER, district_wide VARCHAR)[/INST]SELECT MAX(high_schools) FROM table_2367847_2 WHERE district_wide = 31851</s>
CREATE TABLE table_name_81 (stadium VARCHAR, team VARCHAR)
SELECT stadium FROM table_name_81 WHERE team = "čakovec"
what is the stadium for čakovec?
<s>[INST]what is the stadium for čakovec? Context: CREATE TABLE table_name_81 (stadium VARCHAR, team VARCHAR)[/INST]SELECT stadium FROM table_name_81 WHERE team = "čakovec"</s>
CREATE TABLE table_name_1 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_1 WHERE bronze = 19 AND total > 58
Name the Silver which has a Bronze of 19, and a Total larger than 58?
<s>[INST]Name the Silver which has a Bronze of 19, and a Total larger than 58? Context: CREATE TABLE table_name_1 (silver INTEGER, bronze VARCHAR, total VARCHAR)[/INST]SELECT MIN(silver) FROM table_name_1 WHERE bronze = 19 AND total > 58</s>
CREATE TABLE table_name_34 (points VARCHAR, chassis VARCHAR, year VARCHAR)
SELECT COUNT(points) FROM table_name_34 WHERE chassis = "porsche 718" AND year < 1964
how many points are there for a Chassis of porsche 718, and a Year smaller than 1964?
<s>[INST]how many points are there for a Chassis of porsche 718, and a Year smaller than 1964? Context: CREATE TABLE table_name_34 (points VARCHAR, chassis VARCHAR, year VARCHAR)[/INST]SELECT COUNT(points) FROM table_name_34 WHERE chassis = "porsche 718" AND year < 1964</s>
CREATE TABLE table_name_36 (census_ranking VARCHAR, population VARCHAR, area_km_2 VARCHAR)
SELECT census_ranking FROM table_name_36 WHERE population < 879 AND area_km_2 > 537.62
Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?
<s>[INST]Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62? Context: CREATE TABLE table_name_36 (census_ranking VARCHAR, population VARCHAR, area_km_2 VARCHAR)[/INST]SELECT census_ranking FROM table_name_36 WHERE population < 879 AND area_km_2 > 537.62</s>
CREATE TABLE table_name_10 (hanja___kanji VARCHAR, kana VARCHAR)
SELECT hanja___kanji FROM table_name_10 WHERE kana = "ちゅうせいほくどう"
What is the Hanja/Kanji of the Province with a Kana of ちゅうせいほくどう?
<s>[INST]What is the Hanja/Kanji of the Province with a Kana of ちゅうせいほくどう? Context: CREATE TABLE table_name_10 (hanja___kanji VARCHAR, kana VARCHAR)[/INST]SELECT hanja___kanji FROM table_name_10 WHERE kana = "ちゅうせいほくどう"</s>
CREATE TABLE table_name_14 (manager VARCHAR, team VARCHAR)
SELECT manager FROM table_name_14 WHERE team = "manchester city"
Which manager has Manchester City as the team?
<s>[INST]Which manager has Manchester City as the team? Context: CREATE TABLE table_name_14 (manager VARCHAR, team VARCHAR)[/INST]SELECT manager FROM table_name_14 WHERE team = "manchester city"</s>
CREATE TABLE table_name_43 (rank VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12"
What rank did Poland receive with a time of 1:50.12?
<s>[INST]What rank did Poland receive with a time of 1:50.12? Context: CREATE TABLE table_name_43 (rank VARCHAR, nationality VARCHAR, time VARCHAR)[/INST]SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12"</s>
CREATE TABLE table_name_95 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda"
What did st kilda score at home?
<s>[INST]What did st kilda score at home? Context: CREATE TABLE table_name_95 (home_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda"</s>
CREATE TABLE table_name_42 (designer VARCHAR, restaurant_name VARCHAR)
SELECT designer FROM table_name_42 WHERE restaurant_name = "the citizen"
What designer has a restaurant named The Citizen?
<s>[INST]What designer has a restaurant named The Citizen? Context: CREATE TABLE table_name_42 (designer VARCHAR, restaurant_name VARCHAR)[/INST]SELECT designer FROM table_name_42 WHERE restaurant_name = "the citizen"</s>
CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_49 WHERE venue = "mcg"
What was the crowd when the VFL played MCG?
<s>[INST]What was the crowd when the VFL played MCG? Context: CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR)[/INST]SELECT MIN(crowd) FROM table_name_49 WHERE venue = "mcg"</s>
CREATE TABLE table_name_5 (ends VARCHAR, transfer_fee VARCHAR, moving_from VARCHAR)
SELECT ends FROM table_name_5 WHERE transfer_fee = "free" AND moving_from = "middlesbrough"
What is the ends with a free transfer fee and was moved from middlesbrough?
<s>[INST]What is the ends with a free transfer fee and was moved from middlesbrough? Context: CREATE TABLE table_name_5 (ends VARCHAR, transfer_fee VARCHAR, moving_from VARCHAR)[/INST]SELECT ends FROM table_name_5 WHERE transfer_fee = "free" AND moving_from = "middlesbrough"</s>
CREATE TABLE table_name_29 (size_difference VARCHAR, prefix VARCHAR)
SELECT size_difference FROM table_name_29 WHERE prefix = "exa"
What is the size difference for exa?
<s>[INST]What is the size difference for exa? Context: CREATE TABLE table_name_29 (size_difference VARCHAR, prefix VARCHAR)[/INST]SELECT size_difference FROM table_name_29 WHERE prefix = "exa"</s>
CREATE TABLE table_name_58 (venue VARCHAR, notes VARCHAR)
SELECT venue FROM table_name_58 WHERE notes = "1:23:07"
Which venue did the runner have a note of 1:23:07?
<s>[INST]Which venue did the runner have a note of 1:23:07? Context: CREATE TABLE table_name_58 (venue VARCHAR, notes VARCHAR)[/INST]SELECT venue FROM table_name_58 WHERE notes = "1:23:07"</s>
CREATE TABLE table_name_36 (team VARCHAR, run_1 VARCHAR)
SELECT team FROM table_name_36 WHERE run_1 = "1:17.44"
Which team has run 1 of 1:17.44?
<s>[INST]Which team has run 1 of 1:17.44? Context: CREATE TABLE table_name_36 (team VARCHAR, run_1 VARCHAR)[/INST]SELECT team FROM table_name_36 WHERE run_1 = "1:17.44"</s>
CREATE TABLE table_28652521_1 (for_shank_type VARCHAR, storage_case VARCHAR)
SELECT for_shank_type FROM table_28652521_1 WHERE storage_case = "red plastic box"
What's the shank type of the buttonholer with red plastic box as storage case?
<s>[INST]What's the shank type of the buttonholer with red plastic box as storage case? Context: CREATE TABLE table_28652521_1 (for_shank_type VARCHAR, storage_case VARCHAR)[/INST]SELECT for_shank_type FROM table_28652521_1 WHERE storage_case = "red plastic box"</s>
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (city VARCHAR)
SELECT city FROM addresses WHERE NOT city IN (SELECT DISTINCT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id)
Find the list of cities that no customer is living in.
<s>[INST]Find the list of cities that no customer is living in. Context: CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (city VARCHAR)[/INST]SELECT city FROM addres...
CREATE TABLE table_name_90 (taijiquan INTEGER, taijijian VARCHAR, total VARCHAR)
SELECT MIN(taijiquan) FROM table_name_90 WHERE taijijian = 9.7 AND total > 19.34
What is the lowest Taijiquan of the athlete who has a Taijijian of 9.7 and a total more than 19.34?
<s>[INST]What is the lowest Taijiquan of the athlete who has a Taijijian of 9.7 and a total more than 19.34? Context: CREATE TABLE table_name_90 (taijiquan INTEGER, taijijian VARCHAR, total VARCHAR)[/INST]SELECT MIN(taijiquan) FROM table_name_90 WHERE taijijian = 9.7 AND total > 19.34</s>
CREATE TABLE table_27932399_1 (artist VARCHAR, release_title VARCHAR)
SELECT artist FROM table_27932399_1 WHERE release_title = "HH"
Which artist had a release title of HH?
<s>[INST]Which artist had a release title of HH? Context: CREATE TABLE table_27932399_1 (artist VARCHAR, release_title VARCHAR)[/INST]SELECT artist FROM table_27932399_1 WHERE release_title = "HH"</s>
CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_16 WHERE event = "king of the cage: flash point"
Which Location has an Event of king of the cage: flash point?
<s>[INST]Which Location has an Event of king of the cage: flash point? Context: CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR)[/INST]SELECT location FROM table_name_16 WHERE event = "king of the cage: flash point"</s>
CREATE TABLE table_name_28 (draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -15
How many draws when there are fewer than 6 wins and the goal difference is less than -15?
<s>[INST]How many draws when there are fewer than 6 wins and the goal difference is less than -15? Context: CREATE TABLE table_name_28 (draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)[/INST]SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -15</s>
CREATE TABLE table_18600760_19 (land___sqmi__ VARCHAR, longitude VARCHAR)
SELECT COUNT(land___sqmi__) FROM table_18600760_19 WHERE longitude = "-100.895783"
how many lands with longitude of -100.895783 are?
<s>[INST]how many lands with longitude of -100.895783 are? Context: CREATE TABLE table_18600760_19 (land___sqmi__ VARCHAR, longitude VARCHAR)[/INST]SELECT COUNT(land___sqmi__) FROM table_18600760_19 WHERE longitude = "-100.895783"</s>
CREATE TABLE table_name_55 (pal_m VARCHAR, pal_i VARCHAR)
SELECT pal_m FROM table_name_55 WHERE pal_i = "50hz"
Which PAL M has a PAL I of 50HZ?
<s>[INST]Which PAL M has a PAL I of 50HZ? Context: CREATE TABLE table_name_55 (pal_m VARCHAR, pal_i VARCHAR)[/INST]SELECT pal_m FROM table_name_55 WHERE pal_i = "50hz"</s>
CREATE TABLE table_name_49 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_49 WHERE player = "dean caliguire"
What is the College with a Player that is dean caliguire?
<s>[INST]What is the College with a Player that is dean caliguire? Context: CREATE TABLE table_name_49 (college VARCHAR, player VARCHAR)[/INST]SELECT college FROM table_name_49 WHERE player = "dean caliguire"</s>
CREATE TABLE table_name_99 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT AVG(gold) FROM table_name_99 WHERE silver < 13 AND total > 18 AND bronze < 8
What is the average number of gold medals won among participants that won less than 13 silver, less than 8 bronze, and more than 18 medals overall?
<s>[INST]What is the average number of gold medals won among participants that won less than 13 silver, less than 8 bronze, and more than 18 medals overall? Context: CREATE TABLE table_name_99 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)[/INST]SELECT AVG(gold) FROM table_name_99 WHERE silver < 13 AND t...
CREATE TABLE table_name_34 (games_per_goal INTEGER, a_league VARCHAR)
SELECT MAX(games_per_goal) FROM table_name_34 WHERE a_league = "39 (110)"
Which player from A-League 39 (110) has the highest games per goal?
<s>[INST]Which player from A-League 39 (110) has the highest games per goal? Context: CREATE TABLE table_name_34 (games_per_goal INTEGER, a_league VARCHAR)[/INST]SELECT MAX(games_per_goal) FROM table_name_34 WHERE a_league = "39 (110)"</s>
CREATE TABLE table_11157122_5 (longest_run VARCHAR, player VARCHAR)
SELECT COUNT(longest_run) FROM table_11157122_5 WHERE player = "Eric Dickerson"
What was Eric Dickerson's longest run?
<s>[INST]What was Eric Dickerson's longest run? Context: CREATE TABLE table_11157122_5 (longest_run VARCHAR, player VARCHAR)[/INST]SELECT COUNT(longest_run) FROM table_11157122_5 WHERE player = "Eric Dickerson"</s>
CREATE TABLE table_name_80 (teams VARCHAR, season VARCHAR)
SELECT teams FROM table_name_80 WHERE season = "1954-55"
Which team had a season 1954-55?
<s>[INST]Which team had a season 1954-55? Context: CREATE TABLE table_name_80 (teams VARCHAR, season VARCHAR)[/INST]SELECT teams FROM table_name_80 WHERE season = "1954-55"</s>
CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR)
SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games"
What was the platform when the developer was Telltale Games?
<s>[INST]What was the platform when the developer was Telltale Games? Context: CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR)[/INST]SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games"</s>
CREATE TABLE table_16770037_3 (tries_for INTEGER)
SELECT MIN(tries_for) FROM table_16770037_3
What is the smallest number of tries for in a game?
<s>[INST]What is the smallest number of tries for in a game? Context: CREATE TABLE table_16770037_3 (tries_for INTEGER)[/INST]SELECT MIN(tries_for) FROM table_16770037_3</s>
CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_pre_release VARCHAR)
SELECT kinka_developer FROM table_name_70 WHERE kinka_pre_release = "no*"
Who is the developer when the pre-release is no*?
<s>[INST]Who is the developer when the pre-release is no*? Context: CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_pre_release VARCHAR)[/INST]SELECT kinka_developer FROM table_name_70 WHERE kinka_pre_release = "no*"</s>
CREATE TABLE table_name_13 (distance VARCHAR, stage VARCHAR)
SELECT distance FROM table_name_13 WHERE stage = "4"
What was the distance of the course for stage 4?
<s>[INST]What was the distance of the course for stage 4? Context: CREATE TABLE table_name_13 (distance VARCHAR, stage VARCHAR)[/INST]SELECT distance FROM table_name_13 WHERE stage = "4"</s>
CREATE TABLE table_name_1 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_1 WHERE score = "97-38"
On what day was the game that ended in a score of 97-38?
<s>[INST]On what day was the game that ended in a score of 97-38? Context: CREATE TABLE table_name_1 (date VARCHAR, score VARCHAR)[/INST]SELECT date FROM table_name_1 WHERE score = "97-38"</s>
CREATE TABLE table_name_50 (format VARCHAR, label VARCHAR, region VARCHAR, date VARCHAR)
SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "mightier than sword"
What is the format for the label Mightier than Sword on January 12, 2010 in the United States?
<s>[INST]What is the format for the label Mightier than Sword on January 12, 2010 in the United States? Context: CREATE TABLE table_name_50 (format VARCHAR, label VARCHAR, region VARCHAR, date VARCHAR)[/INST]SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "might...
CREATE TABLE table_name_45 (candidate VARCHAR, result VARCHAR)
SELECT candidate FROM table_name_45 WHERE result = "10 fired in week 2 (1-27-2005)"
Who is the candidate that had 10 fired in week 2 (1-27-2005)?
<s>[INST]Who is the candidate that had 10 fired in week 2 (1-27-2005)? Context: CREATE TABLE table_name_45 (candidate VARCHAR, result VARCHAR)[/INST]SELECT candidate FROM table_name_45 WHERE result = "10 fired in week 2 (1-27-2005)"</s>
CREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR)
SELECT network FROM table_name_8 WHERE genre = "music"
Which network's genre is music?
<s>[INST]Which network's genre is music? Context: CREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR)[/INST]SELECT network FROM table_name_8 WHERE genre = "music"</s>
CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_2 WHERE event = "time trial details" AND silver = "simon richardson great britain (gbr)"
Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)?
<s>[INST]Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)? Context: CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR)[/INST]SELECT gold FROM table_name_2 WHERE event = "time trial details" AND silver = "simon richardson great britain (gbr)"<...
CREATE TABLE table_name_84 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_84 WHERE school = "shakamak"
Which IHSAA Class has a School of shakamak?
<s>[INST]Which IHSAA Class has a School of shakamak? Context: CREATE TABLE table_name_84 (ihsaa_class VARCHAR, school VARCHAR)[/INST]SELECT ihsaa_class FROM table_name_84 WHERE school = "shakamak"</s>
CREATE TABLE table_name_95 (round INTEGER, record VARCHAR)
SELECT MIN(round) FROM table_name_95 WHERE record = "4-0"
What is the smallest round to have a record of 4-0?
<s>[INST]What is the smallest round to have a record of 4-0? Context: CREATE TABLE table_name_95 (round INTEGER, record VARCHAR)[/INST]SELECT MIN(round) FROM table_name_95 WHERE record = "4-0"</s>
CREATE TABLE table_23248940_9 (score VARCHAR, game VARCHAR)
SELECT score FROM table_23248940_9 WHERE game = 50
How did the game number 50 end?
<s>[INST]How did the game number 50 end? Context: CREATE TABLE table_23248940_9 (score VARCHAR, game VARCHAR)[/INST]SELECT score FROM table_23248940_9 WHERE game = 50</s>
CREATE TABLE table_name_99 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_99 WHERE pick = 8
What is the Position of the Pick 8 Player?
<s>[INST]What is the Position of the Pick 8 Player? Context: CREATE TABLE table_name_99 (position VARCHAR, pick VARCHAR)[/INST]SELECT position FROM table_name_99 WHERE pick = 8</s>
CREATE TABLE table_262508_1 (nickname VARCHAR, institution VARCHAR)
SELECT nickname FROM table_262508_1 WHERE institution = "Briar Cliff University"
What is Briar Cliff University's nickname?
<s>[INST]What is Briar Cliff University's nickname? Context: CREATE TABLE table_262508_1 (nickname VARCHAR, institution VARCHAR)[/INST]SELECT nickname FROM table_262508_1 WHERE institution = "Briar Cliff University"</s>
CREATE TABLE table_name_63 (overall VARCHAR, name VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_63 WHERE name = "derek smith" AND round > 3
how many times is the name Derek Smith when the round is higher than 3?
<s>[INST]how many times is the name Derek Smith when the round is higher than 3? Context: CREATE TABLE table_name_63 (overall VARCHAR, name VARCHAR, round VARCHAR)[/INST]SELECT COUNT(overall) FROM table_name_63 WHERE name = "derek smith" AND round > 3</s>
CREATE TABLE table_name_50 (population__2010_11_01_ VARCHAR, name VARCHAR)
SELECT population__2010_11_01_ FROM table_name_50 WHERE name = "bayan county"
What is the population as of 11-01-2010 for Bayan County?
<s>[INST]What is the population as of 11-01-2010 for Bayan County? Context: CREATE TABLE table_name_50 (population__2010_11_01_ VARCHAR, name VARCHAR)[/INST]SELECT population__2010_11_01_ FROM table_name_50 WHERE name = "bayan county"</s>
CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "north melbourne"
How many attended the game with north melbourne as the away side?
<s>[INST]How many attended the game with north melbourne as the away side? Context: CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR)[/INST]SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "north melbourne"</s>
CREATE TABLE table_name_92 (week VARCHAR, away_team VARCHAR)
SELECT week FROM table_name_92 WHERE away_team = "auckland"
In what week was the away team Auckland?
<s>[INST]In what week was the away team Auckland? Context: CREATE TABLE table_name_92 (week VARCHAR, away_team VARCHAR)[/INST]SELECT week FROM table_name_92 WHERE away_team = "auckland"</s>
CREATE TABLE table_name_12 (finals INTEGER, a_league VARCHAR, pre_season VARCHAR)
SELECT AVG(finals) FROM table_name_12 WHERE a_league = "0 6" AND pre_season > 0
Which Finals has a A-League of 0 6, and a Pre-Season larger than 0?
<s>[INST]Which Finals has a A-League of 0 6, and a Pre-Season larger than 0? Context: CREATE TABLE table_name_12 (finals INTEGER, a_league VARCHAR, pre_season VARCHAR)[/INST]SELECT AVG(finals) FROM table_name_12 WHERE a_league = "0 6" AND pre_season > 0</s>
CREATE TABLE table_name_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR)
SELECT moving_from FROM table_name_88 WHERE transfer_window = "summer" AND source = "kerkida.net"
Where is the moving from location with a transfer window of summer and the source kerkida.net?
<s>[INST]Where is the moving from location with a transfer window of summer and the source kerkida.net? Context: CREATE TABLE table_name_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR)[/INST]SELECT moving_from FROM table_name_88 WHERE transfer_window = "summer" AND source = "kerkida.net"</s>
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_35 WHERE date = "april 19"
What is the opponent from April 19?
<s>[INST]What is the opponent from April 19? Context: CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_35 WHERE date = "april 19"</s>
CREATE TABLE payment (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)
SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1
Which staff handled least number of payments? List the full name and the id.
<s>[INST]Which staff handled least number of payments? List the full name and the id. Context: CREATE TABLE payment (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)[/INST]SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = ...
CREATE TABLE table_name_8 (film_title_used_in_nomination VARCHAR, language VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_8 WHERE language = "german"
Name the film title for german
<s>[INST]Name the film title for german Context: CREATE TABLE table_name_8 (film_title_used_in_nomination VARCHAR, language VARCHAR)[/INST]SELECT film_title_used_in_nomination FROM table_name_8 WHERE language = "german"</s>
CREATE TABLE table_name_90 (year VARCHAR, score VARCHAR)
SELECT year FROM table_name_90 WHERE score = "4–6, 7–6, 7–5"
What year had a score of 4–6, 7–6, 7–5?
<s>[INST]What year had a score of 4–6, 7–6, 7–5? Context: CREATE TABLE table_name_90 (year VARCHAR, score VARCHAR)[/INST]SELECT year FROM table_name_90 WHERE score = "4–6, 7–6, 7–5"</s>
CREATE TABLE table_name_43 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_43 WHERE home = "toronto" AND date = "january 28"
What was teh score of the game where Toronto was the home team on January 28?
<s>[INST]What was teh score of the game where Toronto was the home team on January 28? Context: CREATE TABLE table_name_43 (score VARCHAR, home VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_43 WHERE home = "toronto" AND date = "january 28"</s>
CREATE TABLE Documents (template_id VARCHAR)
SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id
Show all template ids and number of documents using each template.
<s>[INST]Show all template ids and number of documents using each template. Context: CREATE TABLE Documents (template_id VARCHAR)[/INST]SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id</s>
CREATE TABLE table_name_14 (year_to INTEGER, engine VARCHAR, chassis VARCHAR)
SELECT MIN(year_to) FROM table_name_14 WHERE engine = 119.972 AND chassis < 129.067
Which Year To has an Engine of 119.972, and a Chassis smaller than 129.067?
<s>[INST]Which Year To has an Engine of 119.972, and a Chassis smaller than 129.067? Context: CREATE TABLE table_name_14 (year_to INTEGER, engine VARCHAR, chassis VARCHAR)[/INST]SELECT MIN(year_to) FROM table_name_14 WHERE engine = 119.972 AND chassis < 129.067</s>
CREATE TABLE table_name_11 (prize VARCHAR, event VARCHAR)
SELECT prize FROM table_name_11 WHERE event = "ept sanremo"
What is the Prize, when the Event is Ept Sanremo?
<s>[INST]What is the Prize, when the Event is Ept Sanremo? Context: CREATE TABLE table_name_11 (prize VARCHAR, event VARCHAR)[/INST]SELECT prize FROM table_name_11 WHERE event = "ept sanremo"</s>
CREATE TABLE table_15333005_1 (Ends VARCHAR, pa VARCHAR)
SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67
Name the ends lost for 67 pa
<s>[INST]Name the ends lost for 67 pa Context: CREATE TABLE table_15333005_1 (Ends VARCHAR, pa VARCHAR)[/INST]SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67</s>