Question: What number of metropolitan borough with 7000000000016726 as TOID or Stockport (the one whose local dialing code is 0161) as their capital?
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> "metropolitan borough" .  { ?e <TOID> ?pv . ?pv <pred:value> "7000000000016726" .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Stockport" . ?e_1 <local_dialing_code> ?pv . ?pv <pred:value> "0161" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
7000000000016726
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: Find
inputs: Stockport
function: FilterStr
dependencies: 3
inputs: local dialing code
0161
function: Relate
dependencies: 4
inputs: capital of
forward
function: FilterConcept
dependencies: 5
inputs: metropolitan borough
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 2