What is the {inner planet} for {child astronomical body} of {International Space Station}
In relative to the International Space Station, which planet is the closest?
What is the closest planet to International Space Station ?
SELECT DISTINCT ?r WHERE { ?r property:child_astronomical_body resource:International_Space_Station . ?r rdf:type ontology:inner_planet }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?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> <http://wikidata.dbpedia.org/resource/Q25271> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3504248> } 
 select distinct ?sbj where { ?sbj wdt:P398 wd:Q25271 . ?sbj wdt:P31 wd:Q3504248 } 
Earth