Question: Gandalf is a fictional character played by English stage and screen actor, Ian McKellen, in what two J.R.R. Tolkien novels turned films?
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