Question: How many areas of London are the residence of Seal, the one whose birth name is Henry Olusegun Adeola Samuel, or have the local dialing code of 020?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "area of London" .  { ?e_1 <residence> ?e . ?e_1 <pred:name> "Seal" . ?e_1 <birth_name> ?pv . ?pv <pred:value> "Henry Olusegun Adeola Samuel" .  } UNION { ?e <local_dialing_code> ?pv . ?pv <pred:value> "020" .  } }
Program:
function: Find
inputs: Seal
function: FilterStr
dependencies: 0
inputs: birth name
Henry Olusegun Adeola Samuel
function: Relate
dependencies: 1
inputs: residence
forward
function: FilterConcept
dependencies: 2
inputs: area of London
function: FindAll
function: FilterStr
dependencies: 4
inputs: local dialing code
020
function: FilterConcept
dependencies: 5
inputs: area of London
function: Or
dependencies: 3
6
function: Count
dependencies: 7