Question: How many non-metro counties include the administrative division West Dorset or belong to the United Kingdom?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan county" .  { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "West Dorset" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } }
Program:
function: Find
inputs: West Dorset
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: non-metropolitan county
function: Find
inputs: United Kingdom
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan county
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 9