Question: How many California counties have an establishment date of 1889-03-11 or a population that is not 2700?
Choices:
36
37
38
39
40
41
42
43
44
45
Answer: 40
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" .  { ?e <inception> ?pv . ?pv <pred:date> "1889-03-11"^^xsd:date .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "2700"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterDate
dependencies: 0
inputs: inception
1889-03-11
=
function: FilterConcept
dependencies: 1
inputs: county of California
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
2700
!=
function: FilterConcept
dependencies: 4
inputs: county of California
function: Or
dependencies: 2
5
function: Count
dependencies: 6