Question: How many areas in London either have the postal code of W4 or are the twinned administrative body of Boulogne-Billancourt?
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> "area of London" .  { ?e <postal_code> ?pv . ?pv <pred:value> "W4" .  } UNION { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Boulogne-Billancourt" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
W4
function: FilterConcept
dependencies: 1
inputs: area of London
function: Find
inputs: Boulogne-Billancourt
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 4
inputs: area of London
function: Or
dependencies: 2
5
function: Count
dependencies: 6