Question: How many Protestantisms set up in Battle Creek (the one whose area is 113.269885 square kilometres) or have the United States of America as a country?
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> "Protestantism" .  { ?e <location_of_formation> ?e_1 . ?e_1 <pred:name> "Battle Creek" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "113.269885"^^xsd:double .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: Battle Creek
function: FilterNum
dependencies: 0
inputs: area
113.269885 square kilometre
=
function: Relate
dependencies: 1
inputs: location of formation
backward
function: FilterConcept
dependencies: 2
inputs: Protestantism
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: Protestantism
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2