Write SQL query to solve given problem: What is the average ranking episodes that are nominated for an award?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM(T1.rating) / COUNT(T1.episode) FROM Episode AS T1 INNER JOIN Award AS T2 ON T1.episode_id = T2.episode_id