Question: How many Indiana counties were established after 1835 or are an administrative division of Indiana?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Indiana" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1835 ) .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Indiana" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1835
>
function: FilterConcept
dependencies: 1
inputs: county of Indiana
function: Find
inputs: Indiana
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Indiana
function: Or
dependencies: 2
5
function: Count
dependencies: 6