What is the {named after} and the {child astronomical body} of {Andromeda_Galaxy} ?
Who is the child astronomical body of Andromeda_Galaxy named after?
What is the named after and the child astronomical body of Andromeda_Galaxy ?
SELECT ?l ?t WHERE { resource:Andromeda_Galaxy property:named_after ?l . resource:Andromeda_Galaxy property:child_astronomical_body ?t }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2469> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_1. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2469> . ?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> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q2469 wdt:P138 ?ans_1 . wd:Q2469 wdt:P398 ?ans_2 }
Andromeda Messier 110 Andromeda Messier 32 Andromeda Triangulum Galaxy Andromeda Andromeda II Andromeda NGC 185 Andromeda NGC 147 Andromeda Andromeda XXI Andromeda Andromeda IX Andromeda Cassiopeia Dwarf Andromeda Pegasus Dwarf Spheroidal Galaxy Andromeda Andromeda IV Andromeda Andromeda VIII Andromeda Andromeda III Andromeda Andromeda V Andromeda Andromeda I Andromeda Andromeda XIX Andromeda Andromeda XXII Andromeda Andromeda X Andromeda Andromeda XII Andromeda Andromeda XIII Andromeda Andromeda XVIII Andromeda Andromeda XXIII Andromeda Andromeda XI Andromeda Andromeda XIV Andromeda Andromeda XX