which comic book penciler has a religion that uses the thousandth anniversary of islam mosque?
Entity
m.09mm4d
Adi Granov
class class entity
comic_books.comic_book_penciler religion.religion m.02rfl_r
comic_books.comic_book_penciler religion.religion religion.place_of_worship
Comic Book Penciler Religion The Thousandth Anniversary of Islam Mosque
none none none
people.person.religion religion.place_of_worship.religion
Religion Currently used by religion(s)
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 :comic_books.comic_book_penciler . 
?x1 :type.object.type :religion.religion . 
VALUES ?x2 { :m.02rfl_r } 
?x0 :people.person.religion ?x1 . 
?x2 :religion.place_of_worship.religion ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND comic_books.comic_book_penciler (JOIN people.person.religion (JOIN (R religion.place_of_worship.religion) m.02rfl_r)))