what is the number of architects who share a religion with omar?
Value
6
class class entity
architecture.architect religion.religion m.0ks83_
architecture.architect religion.religion music.group_member
Architect Religion omar
count none none
people.person.religion people.person.religion
Religion Religion
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 (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :architecture.architect . 
?x1 :type.object.type :religion.religion . 
VALUES ?x2 { :m.0ks83_ } 
?x0 :people.person.religion ?x1 . 
?x2 :people.person.religion ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(COUNT (AND architecture.architect (JOIN people.person.religion (JOIN (R people.person.religion) m.0ks83_))))