which stars of spectral type g2v have exoplanets?
(AND base.exoplanetology.exoplanet (JOIN (R astronomy.star.planet_s) (JOIN astronomy.star.spectral_type m.02nvp6w)))