who was also a founding figure of a religion such as gregory hill?
Entity
m.019gjc
Kerry Wendell Thornley
class class entity
religion.founding_figure religion.religion m.05531j
religion.founding_figure religion.religion religion.founding_figure
Founding Figure Religion gregory hill
none none none
religion.founding_figure.religion_founded religion.founding_figure.religion_founded
Religion Founded Religion Founded
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 :religion.founding_figure . 
?x1 :type.object.type :religion.religion . 
VALUES ?x2 { :m.05531j } 
?x0 :religion.founding_figure.religion_founded ?x1 . 
?x2 :religion.founding_figure.religion_founded ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND religion.founding_figure (JOIN religion.founding_figure.religion_founded (JOIN (R religion.founding_figure.religion_founded) m.05531j)))