Question: Is the length of the river located in or next to Greenville (the one whose population is 34400) less than 2500 miles long?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e_1 <located_in_or_next_to_body_of_water> ?e . ?e_1 <pred:name> "Greenville" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "34400"^^xsd:double . ?e <length> ?pv . ?pv <pred:unit> "mile" . ?pv <pred:value> ?v . FILTER ( ?v < "2500"^^xsd:double ) .  }
Program:
function: Find
inputs: Greenville
function: FilterNum
dependencies: 0
inputs: population
34400
=
function: Relate
dependencies: 1
inputs: located in or next to body of water
forward
function: FilterConcept
dependencies: 2
inputs: river
function: QueryAttr
dependencies: 3
inputs: length
function: VerifyNum
dependencies: 4
inputs: 2500 mile
<