What is the {inner planet} for {parent astronomical body} of {Mir}
What's the name of the planet that Mir orbits?
Which planet does Mir orbit?
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:inner_planet . resource:Mir property:parent_astronomical_body ?h }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q48604> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P397> . ?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/Q3504248> } 
 select distinct ?obj where { wd:Q48604 wdt:P397 ?obj . ?obj wdt:P31 wd:Q3504248 } 
Earth