Question: What number of city boroughs are twinned administrative entities of Durban or West Yorkshire admin divisions?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: West Yorkshire
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: Find
inputs: Durban
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: metropolitan borough
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> "metropolitan borough" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "West Yorkshire" .  } UNION { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Durban" .  } }
Answer: 3