Question: How many Pennsylvanian cities were founded in a year other than 1682 or are the place where Logan International Airport was built?
Choices:
15
16
17
18
19
20
21
22
23
24
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1682
!=
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: Find
inputs: Logan International Airport
function: Relate
dependencies: 3
inputs: location of formation
forward
function: FilterConcept
dependencies: 4
inputs: city of Pennsylvania
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1682 ) .  } UNION { ?e_1 <location_of_formation> ?e . ?e_1 <pred:name> "Logan International Airport" .  } }
Answer: 15