which planets make up the solar-system?
Entity Entity
m.0c3qy m.0gb731
Pluto Eris
class entity
astronomy.plutoid m.06p5g
astronomy.plutoid astronomy.star_system
Plutoid solar-system
none none
astronomy.plutoid.star_system
Star System
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :astronomy.plutoid . 
VALUES ?x1 { :m.06p5g } 
?x0 :astronomy.plutoid.star_system ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.plutoid (JOIN astronomy.plutoid.star_system m.06p5g))