Question: What is the number of male inhabitants of the human settlement with a total population of 8015 according to census?
Choices:
13692101
8987326
4774477
17458910
580663
1371957
4482
30966657
31491260
182549
Answer: 4482
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "8015"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv_1 ] <determination_method> ?qpv . ?qpv <pred:value> "census" . ?e <male_population> ?pv .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
8015
=
function: QFilterStr
dependencies: 1
inputs: determination method
census
function: FilterConcept
dependencies: 2
inputs: human settlement
function: QueryAttr
dependencies: 3
inputs: male population