Question: Which area is larger, Invercargill or Christchurch?
Choices:
Christchurch
Abidjan
Santo Domingo
Invercargill
Cork
Dundee
Kilkenny
Kingston
Chihuahua
Bergen
Program:
function: Find
inputs: Invercargill
function: Find
inputs: Christchurch
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Invercargill" .  } UNION { ?e <pred:name> "Christchurch" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Christchurch