which film writer writes about notable figures associated with the scientology handbook?
Entity Entity Entity
m.034np8 m.07r1h m.03wqxw
Jason Lee Tom Cruise Steve Berra
class class entity
film.writer religion.religion m.026gd45
film.writer religion.religion religion.religious_text
Film writer Religion The Scientology Handbook
none none none
religion.religion.notable_figures religion.religion.texts
Notable Figures 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 :film.writer . 
?x1 :type.object.type :religion.religion . 
VALUES ?x2 { :m.026gd45 } 
?x1 :religion.religion.notable_figures ?x0 . 
?x1 :religion.religion.texts ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND film.writer (JOIN (R religion.religion.notable_figures) (JOIN religion.religion.texts m.026gd45)))