Question: How many cities in Pennsylvania have the official website http://www.yorkcity.org or the area code 412?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://www.yorkcity.org" .  } UNION { ?e <local_dialing_code> ?pv . ?pv <pred:value> "412" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.yorkcity.org
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: FindAll
function: FilterStr
dependencies: 3
inputs: local dialing code
412
function: FilterConcept
dependencies: 4
inputs: city of Pennsylvania
function: Or
dependencies: 2
5
function: Count
dependencies: 6