Question: What number of towns have postal code BL9 or where William Demarest died?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
BL9
function: FilterConcept
dependencies: 1
inputs: town
function: Find
inputs: William Demarest
function: Relate
dependencies: 3
inputs: place of death
forward
function: FilterConcept
dependencies: 4
inputs: town
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" .  { ?e <postal_code> ?pv . ?pv <pred:value> "BL9" .  } UNION { ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "William Demarest" .  } }
Answer: 2