What is {has moon} of {star} of {Tarantula Nebula} ?
What moon orbits the stars of the Tarantula Nebula?
What is the moon of the star of Tarantula Nebula?
SELECT ?y WHERE { resource:Tarantula_Nebula property:parent_astronomical_body ?t . ?t property:child_astronomical_body ?y }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q224145> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P397>. ?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/P398> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q224145 wdt:P397 ?X . ?X wdt:P398 ?answer}