Question: Does Tasmania that is located on the continent of Oceania or Crete have the lower elevation above sea level?
Choices:
Newfoundland
Guernsey
Maui
Tasmania
Long Island
Cyprus
Puerto Rico
Crete
Trinidad
Hawaii
Program:
function: Find
inputs: Oceania
function: Relate
dependencies: 0
inputs: continent
backward
function: Find
inputs: Tasmania
function: And
dependencies: 1
2
function: Find
inputs: Crete
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tasmania" . ?e <continent> ?e_1 . ?e_1 <pred:name> "Oceania" .   } UNION { ?e <pred:name> "Crete" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tasmania