What is {part of constellation} of {has moon} of {HD 76700} ?
In the constellation HD 76700, which part has a moon?
What is the part of the constellation HD 76700 that has a moon?
SELECT ?c WHERE { resource:HD_76700 property:child_astronomical_body ?x . ?x property:constellation ?c }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1563424> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P398>. ?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/P59> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q1563424 wdt:P398 ?X . ?X wdt:P59 ?answer}
Volans