Question: As of 2011-07-01, how many Ohio counties have a common border with the Ohio county that has a population of 41930?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Ohio" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Ohio" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "41930"^^xsd:double . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <population> ; <pred:fact_t> ?pv_1 ] <point_in_time> ?qpv . ?qpv <pred:date> "2011-07-01"^^xsd:date .   }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
41930
=
function: QFilterDate
dependencies: 1
inputs: point in time
2011-07-01
=
function: FilterConcept
dependencies: 2
inputs: county of Ohio
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: county of Ohio
function: Count
dependencies: 5