Did {Ewan_McGregor} {family name} {McGregor}?
Is the family name of Ewan McGregor actually McGregor?
Is Ewan McGregor's family name McGregor?
ASK WHERE { resource:Ewan_McGregor property:family_name resource:McGregor }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165518> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P734> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q16876691>. } 
ASK WHERE { wd:Q165518 wdt:P734 wd:Q16876691 }