Task: Text to Code
Input (English): Find the average rating star for each movie that received at least 2 ratings.
Output (English): SELECT mID ,  avg(stars) FROM Rating GROUP BY mID HAVING count(*)  >=  2