what exoplanet is in a constellation of gamma phoenicis?
Entity Entity Entity Entity
m.04y5swc m.04ggc45 m.03cxbzs m.03cxbvp
HD 6434 b HD 142 b WASP-5 b WASP-4 b
class class entity
base.exoplanetology.exoplanet astronomy.constellation m.0py1fky
base.exoplanetology.exoplanet astronomy.constellation astronomy.star
Exoplanet Constellation Gamma Phoenicis
none none none
base.exoplanetology.exoplanet.constellation astronomy.star.constellation
Constellation Constellation
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.constellation . 
VALUES ?x2 { :m.0py1fky } 
?x0 :base.exoplanetology.exoplanet.constellation ?x1 . 
?x2 :astronomy.star.constellation ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND base.exoplanetology.exoplanet (JOIN base.exoplanetology.exoplanet.constellation (JOIN (R astronomy.star.constellation) m.0py1fky)))