Question: Who directed the film where the actor who played Gandalf played Cogsworth?
Sentence (from "Ian McKellen, roles and awards"): His notable film roles include Gandalf in "The Lord of the Rings" and "The Hobbit" trilogies, Magneto in the "X-Men" films, Sir Leigh Teabing in "The Da Vinci Code" (2006), Sherlock Holmes in "Mr. Holmes" (2015) and Cogsworth in "Beauty and the Beast" (2017).
Relevant evidence: Yes