Question: How many Indiana counties have an inception time not in 1827 or share a border with Hamilton County (the one whose population is 802516)?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 11
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 != 1827 ) .  } UNION { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Hamilton County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "802516"^^xsd:double .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1827
!=
function: FilterConcept
dependencies: 1
inputs: county of Indiana
function: Find
inputs: Hamilton County
function: FilterNum
dependencies: 3
inputs: population
802516
=
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: county of Indiana
function: Or
dependencies: 2
6
function: Count
dependencies: 7