Did {Ian_McKellen} {notable work} {X-Men}?
Do the notable works of Ian McKellen include X-Men?
Was X-Men among the notable works of Ian McKellen?
ASK WHERE { resource:Ian_McKellen property:notable_work resource:X-Men }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170510> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P800> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q106182>. } 
ASK WHERE { wd:Q170510 wdt:P800 wd:Q106182 }