Skip to content
Intermediate SQL practice with Cinema and a bit of Python
Intermediate SQL
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.
Note: When using sample integrations such as those that contain course data, you have read-only access. You can run queries, but cannot make any changes such as adding, deleting, or modifying the data (e.g., creating tables, views, etc.).
Take Notes
Add notes about the concepts you've learned and SQL cells with queries you want to keep.
Add your notes here
DataFrameas
df
variable
-- Add your own queries here
SELECT *
FROM cinema.reviews
ORDER BY imdb_score DESC, num_votes DESC
LIMIT 10Explore Datasets
Use the descriptions, films, people, reviews, and roles tables to explore the data and practice your skills!
- Which titles in the reviewstable have an IMDB score higher than 8.5?
- Select all titles from Germany released after 2010 from the filmstable.
- Calculate a count of all movies by country using the filmstable.
DataFrameas
df1
variable
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
df_sorted= df.sort_values(['imdb_score', 'num_votes'], ascending=[False, False])
df_top10= df_top10.head(10)
df_top10