Question: Does Sardinia (that is located on the continent of Europe) or Oahu have less land area?
Choices:
Oahu
Maui
Trinidad
Puerto Rico
Hawaii
Ireland
Newfoundland
Long Island
Sardinia
Cyprus
Program:
function: Find
inputs: Europe
function: Relate
dependencies: 0
inputs: continent
backward
function: Find
inputs: Sardinia
function: And
dependencies: 1
2
function: Find
inputs: Oahu
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sardinia" . ?e <continent> ?e_1 . ?e_1 <pred:name> "Europe" .   } UNION { ?e <pred:name> "Oahu" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Oahu