Question: Which has more people, Great Britain or South Island?
Choices:
Maui
Hawaii
Long Island
South Island
Ireland
Tasmania
Great Britain
Trinidad
Newfoundland
Cyprus
Program:
function: Find
inputs: Great Britain
function: Find
inputs: South Island
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Great Britain" .  } UNION { ?e <pred:name> "South Island" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Great Britain