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