Task: Text to Code
Input (English): Step 1: For each row in Movie table, find the corresponding rows in Rating table.
Step 2: find the average stars of each value of title in the results of step 1.
Step 3: find title in the results of step 1 whose corresponding value in step 2 is greater than 2
Output (English): SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.title HAVING Avg ( T2.stars ) > 2