Question: Does the city with the official name of Ghana hae a population smaller than 9400000 (the point in time of this statement is 1960)?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Ghana" . ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "9400000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <population> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:year> 1960 .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official name
Ghana
function: FilterConcept
dependencies: 1
inputs: city
function: QueryAttrUnderCondition
dependencies: 2
inputs: population
point in time
1960
function: VerifyNum
dependencies: 3
inputs: 9400000
<
Answer: yes