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