Question: How many belief systems have a headquarter location in Battle Creek (the one whose population is 18563) or an OSM tag or key of Tag:religion=sikh?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "belief system" .  { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Battle Creek" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "18563"^^xsd:double .  } UNION { ?e <OSM_tag_or_key> ?pv . ?pv <pred:value> "Tag:religion=sikh" .  } }
Program:
function: Find
inputs: Battle Creek
function: FilterNum
dependencies: 0
inputs: population
18563
=
function: Relate
dependencies: 1
inputs: headquarters location
backward
function: FilterConcept
dependencies: 2
inputs: belief system
function: FindAll
function: FilterStr
dependencies: 4
inputs: OSM tag or key
Tag:religion=sikh
function: FilterConcept
dependencies: 5
inputs: belief system
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2