What is the {film character} for {spouse} of {Princess Leia}
Which is the film character of the spouse of Princess Leia?
Which is the film character of the husband of Princess Leia?
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:film_character . ?h property:spouse resource:Leia_Organa }
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/Q51797> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q15773347> } 
 select distinct ?sbj where { ?sbj wdt:P26 wd:Q51797 . ?sbj wdt:P31 wd:Q15773347 } 
Han Solo