Question: Is the smaller area occupied by the Tasmania in proximity to the Indian Ocean or by Aruba?
Choices:
Guernsey
Trinidad
Aruba
Newfoundland
Ireland
Long Island
Tasmania
Cyprus
Hawaii
Maui
Program:
function: Find
inputs: Indian Ocean
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: Find
inputs: Tasmania
function: And
dependencies: 1
2
function: Find
inputs: Aruba
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tasmania" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Indian Ocean" .   } UNION { ?e <pred:name> "Aruba" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Aruba