Skip to content
Intermediate SQL Queries
Here you can access every table used in the course. To access each table, you will need to specify the cinema
schema in your queries (e.g., cinema.reviews
for the reviews
table.
Take Notes
Add notes about the concepts you've learned and SQL cells with queries you want to keep.
Add your notes here
Unknown integration
DataFrameavailable as
movie_info
variable
-- Add your own queries here
SELECT *
FROM cinema.reviews
LIMIT 5
Explore Datasets
Use the tables to explore the data and practice your skills!
- Select the
film_id
,imdb_score
, andnum_votes
in thereviews
table.- Filter your results for records where:
- The
imdb_score
is greater than 8. - The number of votes (
num_votes
) is more than 1 million (1000000).
- The
- Filter your results for records where:
- Return the average cost to make a movie (
budget
) by thecountry
of origin in thefilms
table.- Exclude
NULL
values in thebudget
column. - Order your results by the average budget in descending order.
- Exclude
- Return the
language
, totalbudget
(aliased astotal_budget
), and totalgross
(aliased astotal_gross
) from thefilms
table.- Filter the records for films with a duration greater than 90.
- Only include languages where the total gross is over 1 million (1000000).
- Order your results by the total gross in descending order.