what is the spectral type of the star that is in the galactocentric orbit?
Entity
m.02nvp6w
G2V
class class entity
astronomy.spectral_type astronomy.star m.04109yh
astronomy.spectral_type astronomy.star astronomy.orbit_type
Spectral Type Star Galactocentric orbit
none none none
astronomy.spectral_type.celestial_objects_of_this_spectral_type astronomy.orbital_relationship.orbit_type
Objects of this spectral type Orbit Type
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.spectral_type . 
?x1 :type.object.type :astronomy.star . 
VALUES ?x2 { :m.04109yh } 
?x0 :astronomy.spectral_type.celestial_objects_of_this_spectral_type ?x1 . 
?x1 :astronomy.orbital_relationship.orbit_type ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND astronomy.spectral_type (JOIN astronomy.spectral_type.celestial_objects_of_this_spectral_type (JOIN astronomy.orbital_relationship.orbit_type m.04109yh)))