Context: CREATE TABLE Rating (mID VARCHAR, stars INTEGER)
Question: Find the average rating star for each movie that received at least 2 ratings.
Answer: SELECT mID, AVG(stars) FROM Rating GROUP BY mID HAVING COUNT(*) >= 2