Task: Text to Code
Input (English): Step 1: For each row in genre table, find the corresponding rows in song table.
Step 2: find each value of languages in the results of step 1 along with the average song's rating of the corresponding rows to each value
Output (English): SELECT T1.rating , Avg ( T2.rating ) FROM genre AS T1 JOIN song AS T2 ON T1.g_name = T2.genre_is GROUP BY T2.languages