answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT place FROM table_name_8 WHERE player = "peter jacobsen"
What is Peter Jacobsen's Place?
CREATE TABLE table_name_8 (place VARCHAR, player VARCHAR)
SELECT neon FROM table_name_91 WHERE atomic_property = "average valence electron energy (avee)"
Which Neon has Atomic property of average valence electron energy (avee)?
CREATE TABLE table_name_91 (neon VARCHAR, atomic_property VARCHAR)
SELECT high_points FROM table_name_59 WHERE score = "w 108–105 (ot)"
Who had the high points when the score was w 108–105 (ot)?
CREATE TABLE table_name_59 (high_points VARCHAR, score VARCHAR)
SELECT MAX(swedish_championship_titles) FROM table_name_62 WHERE introduced < 2006
What is the highest amount of swedish championship titles for the team that was introduced before 2006?
CREATE TABLE table_name_62 (swedish_championship_titles INTEGER, introduced INTEGER)
SELECT date FROM table_name_31 WHERE opponents = "lincoln city" AND h___a = "a"
When is The Opponents of lincoln city and a H / A of a?
CREATE TABLE table_name_31 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)
SELECT COUNT(number_of_clubs) FROM table_17632217_2 WHERE runners_up = "Liaoning Fushun"
What is the total number of clubs when the runner-up was Liaoning Fushun?
CREATE TABLE table_17632217_2 (number_of_clubs VARCHAR, runners_up VARCHAR)
SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010
Find the cities which were once a host city after 2010?
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, year INTEGER)
SELECT record FROM table_name_29 WHERE february = 23
What is the team's record on februrary 23?
CREATE TABLE table_name_29 (record VARCHAR, february VARCHAR)
SELECT school FROM table_name_68 WHERE hometown = "winter park, fl"
Which school has a hometown of winter park, FL?
CREATE TABLE table_name_68 (school VARCHAR, hometown VARCHAR)
SELECT weight FROM table_name_65 WHERE series = "iii series" AND reverse = "modern pentathlon"
How much did the Modern Pentathlon III Series coin weigh?
CREATE TABLE table_name_65 (weight VARCHAR, series VARCHAR, reverse VARCHAR)
SELECT heat FROM table_name_54 WHERE rank < 18 AND result = "55.15"
What is the Heat of the Player with a Rank of 18 or less and Result of 55.15?
CREATE TABLE table_name_54 (heat VARCHAR, rank VARCHAR, result VARCHAR)
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_doubles = "Anneke Feinya Agustin Wenny Setiawati"
When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?
CREATE TABLE table_14319023_2 (mixed_doubles VARCHAR, girls_doubles VARCHAR)
SELECT party FROM table_1342451_13 WHERE incumbent = "Burton E. Sweet"
What political party for burton e. sweet?
CREATE TABLE table_1342451_13 (party VARCHAR, incumbent VARCHAR)
SELECT round FROM table_name_92 WHERE opponent = "manny gamburyan"
What round was the opponent Manny Gamburyan?
CREATE TABLE table_name_92 (round VARCHAR, opponent VARCHAR)
SELECT chinese_name FROM table_name_25 WHERE type = "chinese" AND tamil_name = "சந்திர புத்தாண்டு (தினம் 3)"
What is the Chinese Type Chinese Name of the holiday with a Tamil Name of சந்திர புத்தாண்டு (தினம் 3)?
CREATE TABLE table_name_25 (chinese_name VARCHAR, type VARCHAR, tamil_name VARCHAR)
SELECT finals FROM table_name_40 WHERE name = "grant brebner"
What finals have grant brebner as the name?
CREATE TABLE table_name_40 (finals VARCHAR, name VARCHAR)
SELECT COUNT(operating_mode) FROM table_24620684_2 WHERE epa_rated_combined_fuel_economy = "87 mpg-e (39kW-hrs/100mi)"
When 87 mpg-e (39kw-hrs/100mi) is the epa rated combined fuel economy how many operating modes are there?
CREATE TABLE table_24620684_2 (operating_mode VARCHAR, epa_rated_combined_fuel_economy VARCHAR)
SELECT circuit FROM table_name_1 WHERE fastest_lap = "phil hill"
What is the name of the circuit when Phil Hill has the fastest lap?
CREATE TABLE table_name_1 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_name_49 WHERE set_1 = "20:22"
What is Date, when Set 1 is "20:22"?
CREATE TABLE table_name_49 (date VARCHAR, set_1 VARCHAR)
SELECT surface FROM table_name_58 WHERE rally_hq = "salou"
What Surface had a Rally HQ of salou?
CREATE TABLE table_name_58 (surface VARCHAR, rally_hq VARCHAR)
SELECT frequency FROM table_name_33 WHERE branding = "dzec radyo agila 1062"
What frequency does branding dzec radyo agila 1062 have?
CREATE TABLE table_name_33 (frequency VARCHAR, branding VARCHAR)
SELECT class FROM table_name_10 WHERE wa = "0-8-0"
What class is associated with a W.A. of 0-8-0?
CREATE TABLE table_name_10 (class VARCHAR, wa VARCHAR)
SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = "Presentation"
What are the template ids with template type description "Presentation".
CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR); CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)
SELECT date FROM table_name_52 WHERE result = "82-92"
On what Date was the Result 82-92?
CREATE TABLE table_name_52 (date VARCHAR, result VARCHAR)
SELECT driving_force_gt FROM table_name_34 WHERE feature = "gear stick"
Feature of gear stick involves which driving force gt?
CREATE TABLE table_name_34 (driving_force_gt VARCHAR, feature VARCHAR)
SELECT white FROM table_name_80 WHERE moves > 19 AND black = "kasparov" AND year < 2000 AND opening = "e93 king's indian defence"
What's the white of E93 King's Indian Defence when Kasparov was black, moves were greater than 19, and happened before 2000?
CREATE TABLE table_name_80 (white VARCHAR, opening VARCHAR, year VARCHAR, moves VARCHAR, black VARCHAR)
SELECT isbn FROM table_name_54 WHERE japanese_title = "霧の訪問者 (kiri no hōmonsha)"
What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?
CREATE TABLE table_name_54 (isbn VARCHAR, japanese_title VARCHAR)
SELECT district FROM table_name_33 WHERE party = "republican" AND first_elected = 1998
In which district is the incumbent a republican first elected in 1998?
CREATE TABLE table_name_33 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT class_aA FROM table_name_26 WHERE school_year = "1994-95"
Who was Class AA in School Year 1994-95?
CREATE TABLE table_name_26 (class_aA VARCHAR, school_year VARCHAR)
SELECT MIN(squad_no) FROM table_name_81 WHERE goals < 0
What was the lowest squad with 0 goals?
CREATE TABLE table_name_81 (squad_no INTEGER, goals INTEGER)
SELECT COUNT(points) FROM table_10705060_1 WHERE position = "10th"
What is the total for 10th position?
CREATE TABLE table_10705060_1 (points VARCHAR, position VARCHAR)
SELECT SUM(total) FROM table_name_77 WHERE to_par > 7 AND player = "corey pavin"
If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?
CREATE TABLE table_name_77 (total INTEGER, to_par VARCHAR, player VARCHAR)
SELECT daytime FROM table_name_22 WHERE name = "exmouth"
Name the Daytime which has a Name of exmouth?
CREATE TABLE table_name_22 (daytime VARCHAR, name VARCHAR)
SELECT crystal_structure FROM table_name_67 WHERE no_of_cu_o_planes_in_unit_cell = 3 AND t_c__k_ = 110
Which crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit cell is 3?
CREATE TABLE table_name_67 (crystal_structure VARCHAR, no_of_cu_o_planes_in_unit_cell VARCHAR, t_c__k_ VARCHAR)
SELECT margin_of_victory FROM table_name_75 WHERE date = "5 jun 1988"
What is the margin of victory of the tournament on 5 Jun 1988?
CREATE TABLE table_name_75 (margin_of_victory VARCHAR, date VARCHAR)
SELECT MIN(wins) FROM table_name_46 WHERE club = "broadview hawks" AND points_against > 594
What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594?
CREATE TABLE table_name_46 (wins INTEGER, club VARCHAR, points_against VARCHAR)
SELECT round FROM table_name_40 WHERE method = "submission (reverse armbar)"
What is Round, when Method is "submission (reverse armbar)"?
CREATE TABLE table_name_40 (round VARCHAR, method VARCHAR)
SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = "11.21"
Who is the director when there is 11.21 million viewers?
CREATE TABLE table_24910733_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT 2004 FROM table_name_19 WHERE 2003 = "36,026"
Name the 2004 which has a 2003 of 36,026?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = "słyszałeś był / słyszałaś była"
Name the greek modern for słyszałeś był / słyszałaś była
CREATE TABLE table_1841901_1 (greek__modern_ VARCHAR, polish__extinct_ VARCHAR)
SELECT 2 AS nd_leg FROM table_name_44 WHERE team__number1 = "rubin kazan"
What is the 2nd leg when team #1 is Rubin Kazan?
CREATE TABLE table_name_44 (team__number1 VARCHAR)
SELECT finish FROM table_name_35 WHERE to_par = "+21"
What finish has +21 as the to par?
CREATE TABLE table_name_35 (finish VARCHAR, to_par VARCHAR)
SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = "english")
Find the distinct names of all songs that have a higher resolution than some songs in English.
CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR)
SELECT MAX(total) FROM table_name_61 WHERE finish = "t12"
What is the highest total with a t12 finish?
CREATE TABLE table_name_61 (total INTEGER, finish VARCHAR)
SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = "yuvan shankar raja" AND film = "billa ii"
Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii
CREATE TABLE table_name_23 (song VARCHAR, film VARCHAR, year VARCHAR, music_director VARCHAR)
SELECT location FROM table_name_33 WHERE class___type = "sloop"
What is Location, when Class / Type is "Sloop"?
CREATE TABLE table_name_33 (location VARCHAR, class___type VARCHAR)
SELECT model_number FROM table_name_30 WHERE sspec_number = "slbjg(b1)"
What Model number has the sSpec numebr of SLBJG(B1)?
CREATE TABLE table_name_30 (model_number VARCHAR, sspec_number VARCHAR)
SELECT score FROM table_name_30 WHERE date = "july 18"
What was the score of the game from July 18?
CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_89 WHERE date = "february 20, 2002"
What is the Catalog with a Date that is february 20, 2002?
CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
SELECT date FROM table_12262182_2 WHERE titles = "Lineal Super lightweight (140)"
What is the date of the match for the lineal super lightweight (140)?
CREATE TABLE table_12262182_2 (date VARCHAR, titles VARCHAR)
SELECT SUM(game) FROM table_name_82 WHERE team = "@ miami"
What number game was it that the Spurs were @ Miami?
CREATE TABLE table_name_82 (game INTEGER, team VARCHAR)
SELECT County_name FROM county ORDER BY Population LIMIT 3
Show the 3 counties with the smallest population.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT format FROM table_name_86 WHERE region = "europe" AND catalog = "74321 45851 2"
What Format has the Region of Europe and a Catalog of 74321 45851 2?
CREATE TABLE table_name_86 (format VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT T2.Fname, T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140
What are the first names and last names of the students that minor in the department with DNO 140.
CREATE TABLE STUDENT (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE MINOR_IN (StuID VARCHAR, DNO VARCHAR)
SELECT location_attendance FROM table_name_59 WHERE team = "denver"
What was the attendance at the Denver game?
CREATE TABLE table_name_59 (location_attendance VARCHAR, team VARCHAR)
SELECT tyres FROM table_name_22 WHERE year > 1984
What were the Tyres after 1984?
CREATE TABLE table_name_22 (tyres VARCHAR, year INTEGER)
SELECT high_points FROM table_name_88 WHERE date = "march 29"
What were the high points on March 29?
CREATE TABLE table_name_88 (high_points VARCHAR, date VARCHAR)
SELECT imprint FROM table_name_22 WHERE title = "owari no chronicle (ahead series)"
what is the imprint when the title is owari no chronicle (ahead series)?
CREATE TABLE table_name_22 (imprint VARCHAR, title VARCHAR)
SELECT winter_olympics FROM table_174491_2 WHERE winner = "Karl Schnabl"
What year did Karl Schnabl win the Winter Olympics?
CREATE TABLE table_174491_2 (winter_olympics VARCHAR, winner VARCHAR)
SELECT manufacturer FROM table_2241841_1 WHERE year = "2004"
What manufacturer made the car that won in 2004?
CREATE TABLE table_2241841_1 (manufacturer VARCHAR, year VARCHAR)
SELECT result FROM table_name_71 WHERE attendance > 67 OFFSET 702
What is the result of the game with an attendance greater than 67,702?
CREATE TABLE table_name_71 (result VARCHAR, attendance INTEGER)
SELECT band FROM table_name_80 WHERE freq_currently = "8tab (hpon)"
Which band has a current freq of 8tab (hpon)?
CREATE TABLE table_name_80 (band VARCHAR, freq_currently VARCHAR)
SELECT MIN(gold) FROM table_name_64 WHERE nation = "australia" AND bronze < 1
Name the Gold which has a Nation of australia, and a Bronze smaller than 1?
CREATE TABLE table_name_64 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT SUM(attendance) FROM table_name_52 WHERE decision = "parent" AND record = "42–18–10"
How many people attended the game with parent recording the decision and a Record of 42–18–10?
CREATE TABLE table_name_52 (attendance INTEGER, decision VARCHAR, record VARCHAR)
SELECT phoneme FROM table_name_18 WHERE letter_name = "zɛn"
What is the Phoneme symbol for the letter name zɛn?
CREATE TABLE table_name_18 (phoneme VARCHAR, letter_name VARCHAR)
SELECT status FROM table_2801185_2 WHERE successor = "Wiltshire"
What are the statuses of the districts whose successor is Wiltshire?
CREATE TABLE table_2801185_2 (status VARCHAR, successor VARCHAR)
SELECT power FROM table_name_73 WHERE years = "1972"
What is the power of an engine of 1972?
CREATE TABLE table_name_73 (power VARCHAR, years VARCHAR)
SELECT MAX(total) FROM table_name_10 WHERE horse = "carlson"
Tell me the most total for horse of carlson
CREATE TABLE table_name_10 (total INTEGER, horse VARCHAR)
SELECT date FROM table_name_98 WHERE opponents_in_the_final = "michael berrer & kenneth carlsen"
On which date is the tournament final with the opponents michael berrer & kenneth carlsen?
CREATE TABLE table_name_98 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT MIN(diameter__km_) FROM table_name_78 WHERE latitude = "52.0s"
WHAT IS THE LOWEST DIAMETER FOR A LATITIDE OF 52.0S?
CREATE TABLE table_name_78 (diameter__km_ INTEGER, latitude VARCHAR)
SELECT unit FROM table_name_94 WHERE location = "argentina"
What unit is in Argentina?
CREATE TABLE table_name_94 (unit VARCHAR, location VARCHAR)
SELECT AVG(urban_population__2010_) FROM table_name_7 WHERE city = "fuzhou"
What is the urban population for the city of Fuzhou?
CREATE TABLE table_name_7 (urban_population__2010_ INTEGER, city VARCHAR)
SELECT MAX(year) FROM table_name_89 WHERE accolade = "singles of 1999" AND rank = "22"
Name the highest year with rank of 22 and accolade of singles of 1999
CREATE TABLE table_name_89 (year INTEGER, accolade VARCHAR, rank VARCHAR)
SELECT driver FROM table_name_72 WHERE points = 26
Which river had 26 points?
CREATE TABLE table_name_72 (driver VARCHAR, points VARCHAR)
SELECT MIN(game) FROM table_23186738_9 WHERE score = "L 93–109 (OT)"
Name the least game for score of l 93–109 (ot)
CREATE TABLE table_23186738_9 (game INTEGER, score VARCHAR)
SELECT career_with_the_franchise_[b_] FROM table_name_59 WHERE player = "willie anderson category:articles with hcards"
What is Career with the franchise [b ], when Player is "Willie Anderson Category:Articles with hCards"?
CREATE TABLE table_name_59 (career_with_the_franchise_ VARCHAR, b_ VARCHAR, player VARCHAR)
SELECT centerfold_model FROM table_1566848_6 WHERE interview_subject = "Steve Jobs"
Name the centerfold model when interview subject is steve jobs
CREATE TABLE table_1566848_6 (centerfold_model VARCHAR, interview_subject VARCHAR)
SELECT home_ground_s_ FROM table_name_11 WHERE name = "melville cricket club"
What's the Home ground(s) listed for the Name Melville Cricket Club?
CREATE TABLE table_name_11 (home_ground_s_ VARCHAR, name VARCHAR)
SELECT others FROM table_name_60 WHERE cons = "21%" AND lead = "24%"
Name the others for cons of 21% and lead of 24%
CREATE TABLE table_name_60 (others VARCHAR, cons VARCHAR, lead VARCHAR)
SELECT length FROM table_name_46 WHERE barrel_length = "750mm / 29.5 in"
What is Length, when Barrel Length is 750mm / 29.5 in?
CREATE TABLE table_name_46 (length VARCHAR, barrel_length VARCHAR)
SELECT netflix FROM table_15187735_16 WHERE segment_a = "Digital Dentistry"
Whats the season/episode of segment a digital dentistry
CREATE TABLE table_15187735_16 (netflix VARCHAR, segment_a VARCHAR)
SELECT MIN(year) FROM table_name_60 WHERE total_score = "305"
What's the year with a score of 305?
CREATE TABLE table_name_60 (year INTEGER, total_score VARCHAR)
SELECT MAX(game) FROM table_name_76 WHERE points < 92 AND score = "1–3"
Which Game is the highest one that has Points smaller than 92, and a Score of 1–3?
CREATE TABLE table_name_76 (game INTEGER, points VARCHAR, score VARCHAR)
SELECT SUM(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85
What is the total money requested by entrepreneurs with height more than 1.85?
CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE entrepreneur (Money_Requested INTEGER, People_ID VARCHAR)
SELECT T1.name, T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) < 2
Find the name and partition id for users who tweeted less than twice.
CREATE TABLE user_profiles (name VARCHAR, partitionid VARCHAR, uid VARCHAR); CREATE TABLE tweets (uid VARCHAR)
SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless"
Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR)
SELECT school FROM table_name_82 WHERE height = "6-9"
Tell me the school with a height of 6-9
CREATE TABLE table_name_82 (school VARCHAR, height VARCHAR)
SELECT score FROM table_name_62 WHERE venue = "vasil levski national stadium, sofia"
What score does Vasil Levski National Stadium, Sofia earn?
CREATE TABLE table_name_62 (score VARCHAR, venue VARCHAR)
SELECT place FROM table_name_28 WHERE score = 70 - 68 = 138
What is the Place of the Player with a Score of 70-68=138?
CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR)
SELECT visiting_team FROM table_name_41 WHERE date = "september 15"
Who was the visiting team that played on September 15?
CREATE TABLE table_name_41 (visiting_team VARCHAR, date VARCHAR)
SELECT player FROM table_name_48 WHERE position = "infielder" AND hometown = "atlanta, ga"
Which player has a Position of infielder, and a Hometown of atlanta, ga?
CREATE TABLE table_name_48 (player VARCHAR, position VARCHAR, hometown VARCHAR)
SELECT SUM(area_km_2) FROM table_name_10 WHERE official_name = "allardville" AND population < 2 OFFSET 151
What is the Area of the Allardville Parish with a Population smaller than 2,151?
CREATE TABLE table_name_10 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
SELECT COUNT(result) FROM table_26375386_17 WHERE vote_percentage = "3.1%"
How many results where given for the vote percentage 3.1%?
CREATE TABLE table_26375386_17 (result VARCHAR, vote_percentage VARCHAR)
SELECT best FROM table_name_31 WHERE qual_2 = "1:00.588"
What is the Best of the racer with a Qual 2 of 1:00.588?
CREATE TABLE table_name_31 (best VARCHAR, qual_2 VARCHAR)
SELECT date FROM table_name_67 WHERE home_team = "grimsby town"
What is the date when Grimsby Town is the home team?
CREATE TABLE table_name_67 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(points) FROM table_name_39 WHERE series = "italian formula renault 2.0" AND poles < 0
What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
CREATE TABLE table_name_39 (points VARCHAR, series VARCHAR, poles VARCHAR)
SELECT MAX(attendance) FROM table_name_17 WHERE date = "february 7, 2009" AND points > 49
What was the highest attendance of February 7, 2009 and more than 49 points?
CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, points VARCHAR)
SELECT australia FROM table_name_84 WHERE japan = "march 17, 2005"
Tell me the Australia march 17, 2005
CREATE TABLE table_name_84 (australia VARCHAR, japan VARCHAR)
SELECT COUNT(pick) FROM table_name_52 WHERE college = "perpetual help" AND pba_team = "coca-cola tigers"
What is the pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team?
CREATE TABLE table_name_52 (pick VARCHAR, college VARCHAR, pba_team VARCHAR)
SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'
How many documents are using the template with type code 'PPT'?
CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)