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