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