Question: Which one has a larger area, Leipzig or Johannesburg?
Choices: Cork
Trieste
Johannesburg
Chihuahua
Santo Domingo
Bergen
Kingston
Abidjan
Leipzig
Kilkenny
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
Program:
function: Find
inputs: Leipzig
function: Find
inputs: Johannesburg
function: SelectBetween
dependencies: 0
1
inputs: area
greater
Answer: Johannesburg