What is the {galaxy} for {child astronomical body} of {Andromeda Galaxy}
Andromeda is the parent of what galaxy?
Andromeda is the parent of what galaxy?
SELECT DISTINCT ?c WHERE { resource:Andromeda_Galaxy property:child_astronomical_body ?c . ?c rdf:type ontology:galaxy }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2469> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P398> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q318> } 
 select distinct ?obj where { wd:Q2469 wdt:P398 ?obj . ?obj wdt:P31 wd:Q318 } 
Andromeda XX