Question: What is the watershed area of Amazon (the one whose outlet is Atlantic Ocean)?
Choices:
207200 square kilometre
7050000 square kilometre
58800 square kilometre
817000 square kilometre
2981000 square kilometre
1371010 square kilometre
15300 square kilometre
185000 square kilometre
668217 square kilometre
34600 square kilometre
Answer: 7050000 square kilometre
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Amazon" . ?e <mouth_of_the_watercourse> ?e_1 . ?e_1 <pred:name> "Atlantic Ocean" .  ?e <watershed_area> ?pv .  }
Program:
function: Find
inputs: Atlantic Ocean
function: Relate
dependencies: 0
inputs: mouth of the watercourse
backward
function: Find
inputs: Amazon
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: watershed area