Task: Text to Code
Input (English): Step 1: For each row in artwork table, find the corresponding rows in nomination table.
Step 2: for each value of Festival_ID in the results of step 1, find the number of rows along with artwork's Artwork_ID and Name
Output (English): SELECT T1.Artwork_ID , T1.Name , Count ( * ) FROM artwork AS T1 JOIN nomination AS T2 ON T1.Artwork_ID = T2.Artwork_ID GROUP BY T2.Festival_ID