Question: How many cities of New Yorkare located in Newfoundland Standard time zone or were founded before 1834?
Choices:
7
8
9
10
11
12
13
14
15
16
Program:
function: Find
inputs: Newfoundland Standard time
function: Relate
dependencies: 0
inputs: located in time zone
backward
function: FilterConcept
dependencies: 1
inputs: city of New York
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1834
<
function: FilterConcept
dependencies: 4
inputs: city of New York
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 New York" .  { ?e <located_in_time_zone> ?e_1 . ?e_1 <pred:name> "Newfoundland Standard time" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1834 ) .  } }
Answer: 8