Question: How many New Jersey counties have an inception time after 1753 or an area less than 3600 square kilometres?
Choices:
11
12
13
14
15
16
17
18
19
20
Answer: 20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1753 ) .  } UNION { ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "3600"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1753
>
function: FilterConcept
dependencies: 1
inputs: county of New Jersey
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
3600 square kilometre
<
function: FilterConcept
dependencies: 4
inputs: county of New Jersey
function: Or
dependencies: 2
5
function: Count
dependencies: 6