Question: What is the number of New York counties that has an inception time other than 1812 or that has an inception time after 1838
Choices:
44
45
46
47
48
49
50
51
52
53
Answer: 44
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1812 ) .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1838 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1812
!=
function: FilterConcept
dependencies: 1
inputs: county of New York
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1838
>
function: FilterConcept
dependencies: 4
inputs: county of New York
function: Or
dependencies: 2
5
function: Count
dependencies: 6