Question: Did the sovereign state where Port-au-Prince is, have a total fertility rate of less than 5.2 in 2006?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <country> ?e . ?e_1 <pred:name> "Port-au-Prince" .  ?e <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "5.2"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <total_fertility_rate> ; <pred:fact_t> ?pv ] <point_in_time> ?qpv . ?qpv <pred:year> 2006 .  }
Program:
function: Find
inputs: Port-au-Prince
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: QueryAttrUnderCondition
dependencies: 2
inputs: total fertility rate
point in time
2006
function: VerifyNum
dependencies: 3
inputs: 5.2
<