Question: How many Texas counties border another Texas county, which had a population of 4336853 in 2013?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Texas" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "4336853"^^xsd:double . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:year> 2013 .   }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
4336853
=
function: QFilterYear
dependencies: 1
inputs: point in time
2013
=
function: FilterConcept
dependencies: 2
inputs: county of Texas
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: county of Texas
function: Count
dependencies: 5