How many movies in the database were produced by Pixar Animation Studios?
Options:
16 14 18 20
My incorrect solution
SELECT COUNT(movie_id)
FROM productioncompanies
NATURAL JOIN movies
NATURAL JOIN productioncompanies
WHERE production_company_name = "Pixar Animation Studios"
COUNT(movie_id)
4803

You should join
productioncompaniestoproductioncompanymap.The table
moviesis not needed because the details of the movies are irrelevant:or, with an
INNERjoin:or, with a correlated subquery: