What is {partner} of {written by} of {Sailor Moon} ?
Give me the wife of the author of Sailor Moon.
Who is the spouse of the Sailor Moon author?
SELECT ?a WHERE { ?t property:spouse ?a . resource:Sailor_Moon property:screenwriter ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q704353> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P58>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q704353 wdt:P58 ?X . ?X wdt:P26 ?answer}
Yoshihiro Togashi