what are the exoplanets of stars of spectral type g2v?
Entity
m.0c31h
Neptune
class class entity
base.exoplanetology.exoplanet astronomy.star m.02nvp6w
base.exoplanetology.exoplanet astronomy.star astronomy.spectral_type
Exoplanet Star G2V
none none none
astronomy.star.planet_s astronomy.star.spectral_type
Planets Spectral 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 :base.exoplanetology.exoplanet . 
?x1 :type.object.type :astronomy.star . 
VALUES ?x2 { :m.02nvp6w } 
?x1 :astronomy.star.planet_s ?x0 . 
?x1 :astronomy.star.spectral_type ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND base.exoplanetology.exoplanet (JOIN (R astronomy.star.planet_s) (JOIN astronomy.star.spectral_type m.02nvp6w)))