TDM 19000: Week 4 Questions — Summer 2026
Dataset
%sql sqlite:////anvil/projects/tdm/data/movies_and_tv/imdb2024/imdb2Aug2026.db
Question 1
-
How many people from the IMDB database were born in the same year as you?
-
How many were born in the year that Dr Ward was born (1976)?
-
Find your favorite actor or actress in the IMDB database. Check their
nconston www.imdb.com (in the URL for their page) and compare it with their entry in thenametable. What year were they born?
Question 2
In which years was the tvSeries House of Cards broadcast? Hint: You likely need to limit the results so that the titleType is tvSeries.
Question 3
-
Consider the tvSeries The West Wing. How many episodes of this tvSeries aired altogether?
-
Now, consider your favorite tvSeries: how many episodes does your favorite show have?
Question 4
During the years 1980 to 1990, how many people (from the name table) were born in each year?
Question 5
-
Lookup the
nconstfor Whoopi Goldberg on IMDB from the URL of her www.imdb.com webpage. Using hernconst, how many entries does she have in theprincipalstable? -
She appears altogether with 6 different types of
category, namely:actress,archive_footage,director,producer,self,writer. How many times does she appear in each type of these categories?
Question 6
How many titles have Adventure as one of the genres? In which year did the most titles appear, with Adventure as one of the genres?
Question 7
-
Who was the Director of the movie
Say Anything…? Hint: Start by finding the movie titleSay Anything…in thebasicstable. Thenjointhebasicstable to thecrewtable, to find out which person was the director ofSay Anything…. (P.S. This is Dr Ward’s all-time favorite movie.) -
Starting with only the
nconstof this Director, use (only one) SQL query to find their name and also the titles of all of the movies that they have directed in their career.
Question 8
-
Join the
basicstable and theratingstable, to see how many rows have tvEpisode as thetitleTypeand have more than 200000 votes. -
How many episodes of The West Wing had rating 9 or higher?
Question 9
Which of George Clooney’s movies are the most popular? (By "popularity", you can choose to either analyze the ratings or the number of votes; either way is OK with us! Just be sure to explain what you did in your solution.)
Question 10
Identify the six most popular episodes of the show Grey’s Anatomy (where "popular" denotes a high rating).
Submitting your Work
Once you have completed the questions, save your Jupyter notebook. You can then download the notebook and submit it to Gradescope.
-
firstname_lastname_week4.ipynb
|
You must double check your You will not receive full credit if your |