CREATE TABLE rating (rid NUMBER, mid NUMBER, stars NUMBER, ratingdate TIME)
CREATE TABLE reviewer (rid NUMBER, name CLOB)
CREATE TABLE movie (mid NUMBER, title CLOB, year NUMBER, director CLOB)

For each movie that received more than 3 reviews, what is the average rating?
SELECT mid, AVG(stars) FROM rating GROUP BY mid HAVING COUNT(*) >= 2
SELECT "mid", AVG("stars") FROM "rating" GROUP BY "mid" HAVING COUNT(*) >= 2