What is the {character from Star Wars} for {spouse} of {Princess Leia}
[]
Which character from Star Wars is the husband of Princess Leia?
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:character_from_Star_Wars . ?p 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/Q33125444> } 
 select distinct ?sbj where { ?sbj wdt:P26 wd:Q51797 . ?sbj wdt:P31 wd:Q33125444 } 
Han Solo