the soyuz programme has which space program that has space mission?
Entity
m.035rfz
Soviet space program
class class entity
spaceflight.space_program spaceflight.space_mission m.0f0z3
spaceflight.space_program spaceflight.space_mission spaceflight.space_program
Space program Space Mission Soyuz programme
none none none
spaceflight.space_program.missions spaceflight.space_mission.space_program
Missions Space program
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.space_program . 
?x1 :type.object.type :spaceflight.space_mission . 
VALUES ?x2 { :m.0f0z3 } 
?x0 :spaceflight.space_program.missions ?x1 . 
?x1 :spaceflight.space_mission.space_program ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND spaceflight.space_program (JOIN spaceflight.space_program.missions (JOIN spaceflight.space_mission.space_program m.0f0z3)))