What is the {human} for {spouse} of {Katy Perry}
Who is the { human } of { Katy Perry }'s { spouse }
Who is the {human} for {spouse} of {Katy Perry}
SELECT DISTINCT ?o WHERE { ?o property:spouse resource:Katy_Perry . ?o rdf:type ontology:human }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q42493> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5> } 
 select distinct ?sbj where { ?sbj wdt:P26 wd:Q42493 . ?sbj wdt:P31 wd:Q5 } 
Russell Brand