how many people in the military has an episcopalian religion?
Value
2
class entity
military.military_person m.04hysg0
military.military_person religion.religion
Military Person Episcopalian
count none
people.person.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 :military.military_person . 
VALUES ?x1 { :m.04hysg0 } 
?x0 :people.person.religion ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND military.military_person (JOIN people.person.religion m.04hysg0)))