MovieRating and Users tables on user_id and group the result by user_id.LIMIT 1 to get the user with the most ratings.MovieRating and Movies tables on movie_id and filter the ratings to only include those from February 2020.movie_id and calculate the average rating for each movie.LIMIT 1 to get the movie with the highest average rating.UNION ALL.
erDiagram
Movies {
int movie_id PK
varchar title
}
Users {
int user_id PK
varchar name
}
MovieRating {
int movie_id PK
int user_id PK
int rating
date created_at
}