Question: How many Pennsylvania counties were founded more recently than 1749 or in any year except 1847?
Choices: 34
35
36
37
38
39
40
41
42
43
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1847 ) .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1749 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1847
!=
function: FilterConcept
dependencies: 1
inputs: county of Pennsylvania
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1749
>
function: FilterConcept
dependencies: 4
inputs: county of Pennsylvania
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 39