Question: What is the number of geographic regions that are a part of Saint Lucia and that has a tributary Amazon (the one whose length is 6800 kilometre) ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "geographic region" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Saint Lucia" .  ?e <tributary> ?e_2 . ?e_2 <pred:name> "Amazon" . ?e_2 <length> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> "6800"^^xsd:double .  }
Program:
function: Find
inputs: Saint Lucia
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: geographic region
function: Find
inputs: Amazon
function: FilterNum
dependencies: 3
inputs: length
6800 kilometre
=
function: Relate
dependencies: 4
inputs: tributary
backward
function: FilterConcept
dependencies: 5
inputs: geographic region
function: And
dependencies: 2
6
function: Count
dependencies: 7
Answer: 0