Question: Tell me the one with the bigger population, Wellington or Tunis.
Choices:
Sarajevo
Riga
Doha
Tunis
Manila
Lausanne
Moscow
Wellington
Mexico City
New Delhi
Program:
function: Find
inputs: Tunis
function: Find
inputs: Wellington
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tunis" .  } UNION { ?e <pred:name> "Wellington" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tunis