Question: Does Maui or Trinidad have a greater population?
Choices:
Puerto Rico
Guernsey
Long Island
Trinidad
Hawaii
Ireland
Newfoundland
Cyprus
Tasmania
Staten Island
Program:
function: Find
inputs: Maui
function: Find
inputs: Trinidad
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Maui" .  } UNION { ?e <pred:name> "Trinidad" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Trinidad