Write SQL query to solve given problem: What is the average rating of all the movies starring Tom Cruise?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT AVG(T1.Rating) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Tom Cruise'