Question: How many Ohio counties have a population greater than 420000 or are the origin of the name Clinton County (whose population is 37762)?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ohio" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "420000"^^xsd:double ) .  } UNION { ?e_1 <named_after> ?e . ?e_1 <pred:name> "Clinton County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "37762"^^xsd:double .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
420000
>
function: FilterConcept
dependencies: 1
inputs: county of Ohio
function: Find
inputs: Clinton County
function: FilterNum
dependencies: 3
inputs: population
37762
=
function: Relate
dependencies: 4
inputs: named after
forward
function: FilterConcept
dependencies: 5
inputs: county of Ohio
function: Or
dependencies: 2
6
function: Count
dependencies: 7