Question: How many New York cities were established before 1832 or whose population is not 600?
Choices: 13
14
15
16
17
18
19
20
21
22
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of New York" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1832 ) .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "600"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1832
<
function: FilterConcept
dependencies: 1
inputs: city of New York
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
600
!=
function: FilterConcept
dependencies: 4
inputs: city of New York
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 14