which astronauts belonged to the religion that has the texts of sunnah?
Entity Entity Entity Entity
m.03klhp m.038jsd m.0grwgc m.02jh0g
Muhammed Faris Anousheh Ansari Sheikh Muszaphar Shukor Sultan bin Salman Al Saud
class class entity
spaceflight.astronaut religion.religion m.074jc
spaceflight.astronaut religion.religion religion.religious_text
Astronaut Religion Sunnah
none none none
people.person.religion religion.religion.texts
Religion Texts
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 . 
?x1 :type.object.type :religion.religion . 
VALUES ?x2 { :m.074jc } 
?x0 :people.person.religion ?x1 . 
?x1 :religion.religion.texts ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND spaceflight.astronaut (JOIN people.person.religion (JOIN religion.religion.texts m.074jc)))