Question: How many non-metropolitan counties whose TOID is 7000000000013688 or that contains Craven?
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 <TOID> ?pv . ?pv <pred:value> "7000000000013688" .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Craven" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
7000000000013688
function: FilterConcept
dependencies: 1
inputs: non-metropolitan county
function: Find
inputs: Craven
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan county
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2