SQL queries for movie rating database.