what founding figure is a member of the same religion featured by st john's eve?
Entity Entity Entity
m.060nc m.045m1_ m.071wp
Paul the Apostle Jesus Christ Saint Peter
class class entity
religion.founding_figure religion.religion m.02dyc5
religion.founding_figure religion.religion time.holiday
Founding Figure Religion St John's Eve
none none none
religion.founding_figure.religion_founded time.holiday.featured_in_religions
Religion Founded Featured in religions
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.02dyc5 } 
?x0 :religion.founding_figure.religion_founded ?x1 . 
?x2 :time.holiday.featured_in_religions ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND religion.founding_figure (JOIN religion.founding_figure.religion_founded (JOIN (R time.holiday.featured_in_religions) m.02dyc5)))