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 g_name in the results of step 1 along with the average song's rating of the corresponding rows to each value
Output (English): SELECT Avg ( T2.rating ) , T2.languages FROM genre AS T1 JOIN song AS T2 ON T1.g_name = T2.genre_is GROUP BY T1.g_name