Question: How many Ohio counties have a population greater than 400000000 or share a border with Warren County (which began on 1803-03-24)?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 5
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 > "400000000"^^xsd:double ) .  } UNION { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Warren County" . ?e_1 <inception> ?pv . ?pv <pred:date> "1803-03-24"^^xsd:date .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
400000000
>
function: FilterConcept
dependencies: 1
inputs: county of Ohio
function: Find
inputs: Warren County
function: FilterDate
dependencies: 3
inputs: inception
1803-03-24
=
function: Relate
dependencies: 4
inputs: shares border with
backward
function: FilterConcept
dependencies: 5
inputs: county of Ohio
function: Or
dependencies: 2
6
function: Count
dependencies: 7