Question: Does the river located in Montana (the one that shares border with British Columbia) have a discharge of less than 7100 cu meters per second?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Montana" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "British Columbia" .  ?e <discharge> ?pv . ?pv <pred:unit> "cubic metre per second" . ?pv <pred:value> ?v . FILTER ( ?v < "7100"^^xsd:double ) .  }
Program:
function: Find
inputs: British Columbia
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Montana
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: river
function: QueryAttr
dependencies: 5
inputs: discharge
function: VerifyNum
dependencies: 6
inputs: 7100 cubic metre per second
<
Answer: yes