Question: Is the population of Kentucky (area of 104,659 square kilometre) below 13 millions (determined using a demographic balance) ?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:name> "Kentucky" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "104659"^^xsd:double . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "13000000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <determination_method> ?qpv . ?qpv <pred:value> "demographic balance" .  }
Program:
function: Find
inputs: Kentucky
function: FilterNum
dependencies: 0
inputs: area
104659 square kilometre
=
function: QueryAttrUnderCondition
dependencies: 1
inputs: population
determination method
demographic balance
function: VerifyNum
dependencies: 2
inputs: 13000000
<
Answer: yes