Question: what is the number of towns whose local dialing code is 01226 or that is different from St Helens (the one that is an administrative division of Merseyside) ?
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> "town" .  { ?e <local_dialing_code> ?pv . ?pv <pred:value> "01226" .  } UNION { ?e_1 <different_from> ?e . ?e_1 <pred:name> "St Helens" . ?e_2 <contains_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Merseyside" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
01226
function: FilterConcept
dependencies: 1
inputs: town
function: Find
inputs: Merseyside
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: Find
inputs: St Helens
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: different from
forward
function: FilterConcept
dependencies: 7
inputs: town
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1