Question: How many towns can be considered the death place of William Demarest or report SJ9173 as their OS grid reference ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" .  { ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "William Demarest" .  } UNION { ?e <OS_grid_reference> ?pv . ?pv <pred:value> "SJ9173" .  } }
Program:
function: Find
inputs: William Demarest
function: Relate
dependencies: 0
inputs: place of death
forward
function: FilterConcept
dependencies: 1
inputs: town
function: FindAll
function: FilterStr
dependencies: 3
inputs: OS grid reference
SJ9173
function: FilterConcept
dependencies: 4
inputs: town
function: Or
dependencies: 2
5
function: Count
dependencies: 6