Question: How many non-metro district comprise an enclave within Woking (the one whose OS grid reference is TQ0040358550) or consist of an area of less than 690,000 hectares ?
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> "non-metropolitan district" .  { ?e <area> ?pv . ?pv <pred:unit> "hectare" . ?pv <pred:value> ?v . FILTER ( ?v < "690000"^^xsd:double ) .  } UNION { ?e <enclave_within> ?e_1 . ?e_1 <pred:name> "Woking" . ?e_1 <OS_grid_reference> ?pv . ?pv <pred:value> "TQ0040358550" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
690000 hectare
<
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: Woking
function: FilterStr
dependencies: 3
inputs: OS grid reference
TQ0040358550
function: Relate
dependencies: 4
inputs: enclave within
backward
function: FilterConcept
dependencies: 5
inputs: non-metropolitan district
function: Or
dependencies: 2
6
function: Count
dependencies: 7