Question: How many non-metropolitan districts have a mean age more than 40 or that are located in Norfolk whose NUTS code is UKH13?
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> "non-metropolitan district" .  { ?e <mean_age> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "40"^^xsd:double ) .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Norfolk" . ?e_1 <NUTS_code> ?pv . ?pv <pred:value> "UKH13" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: mean age
40
>
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: Norfolk
function: FilterStr
dependencies: 3
inputs: NUTS code
UKH13
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: non-metropolitan district
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 4