what number of planets are on the heliocentric orbits?
Value
7
class entity
astronomy.planet m.06q2bd
astronomy.planet astronomy.orbit_type
Planet heliocentric orbits
count none
astronomy.orbit_type.orbiting_bodies
Orbiting bodies
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 (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :astronomy.planet . 
VALUES ?x1 { :m.06q2bd } 
?x1 :astronomy.orbit_type.orbiting_bodies ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND astronomy.planet (JOIN (R astronomy.orbit_type.orbiting_bodies) m.06q2bd)))