Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE reviewer ( rid number, name text )
TABLE: CREATE TABLE movie ( mid number, title text, year number, director text )
TABLE: CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time )

### Question ###
Find the average rating star for each movie that received at least 2 ratings.

### Accurate SQL ###

SELECT mid, AVG(stars) FROM rating GROUP BY mid HAVING COUNT(*) >= 2