locate the astronaut who belongs to the space agency ministry of general machine building.
Entity Entity Entity Entity Entity Entity Entity Entity
m.087q9 m.0h4tps9 m.0h4tpsj m.04r84 m.05hr2l8 m.0h4sq7c m.0h4tpnj m.0h4sq74
Yuri Gagarin Veterok Ugolyok Laika Strelka Pchyolka Zvyozdochka Mushka
class entity
spaceflight.astronaut m.0gg5ss4
spaceflight.astronaut spaceflight.space_agency
Astronaut Ministry of General Machine Building
none none
spaceflight.astronaut.space_agency
Space Agency
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 :spaceflight.astronaut . 
VALUES ?x1 { :m.0gg5ss4 } 
?x0 :spaceflight.astronaut.space_agency ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND spaceflight.astronaut (JOIN spaceflight.astronaut.space_agency m.0gg5ss4))