which religious leadership roles do the patriarch of all romania have?
Entity
m.017qzd
Patriarch
class entity
religion.religious_leadership_role m.03qctng
religion.religious_leadership_role religion.religious_leadership_title
Religious Leadership Role Patriarch of All Romania
none none
religion.religious_leadership_role.religious_titles
Religious titles
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.religious_leadership_role . 
VALUES ?x1 { :m.03qctng } 
?x0 :religion.religious_leadership_role.religious_titles ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND religion.religious_leadership_role (JOIN religion.religious_leadership_role.religious_titles m.03qctng))