Question: How many cities in New York are the formation location of Vickers-Armstrongs or is the local dialing code of 518?
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> "city of New York" .  { ?e_1 <location_of_formation> ?e . ?e_1 <pred:name> "Vickers-Armstrongs" .  } UNION { ?e <local_dialing_code> ?pv . ?pv <pred:value> "518" .  } }
Program:
function: Find
inputs: Vickers-Armstrongs
function: Relate
dependencies: 0
inputs: location of formation
forward
function: FilterConcept
dependencies: 1
inputs: city of New York
function: FindAll
function: FilterStr
dependencies: 3
inputs: local dialing code
518
function: FilterConcept
dependencies: 4
inputs: city of New York
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2