Question: Tell me the one with the larger population, Patna or Allahabad.
Choices:
Trieste
Abidjan
Patna
Chihuahua
Kilkenny
Kingston
Bergen
Cork
Santo Domingo
Allahabad
Program:
function: Find
inputs: Patna
function: Find
inputs: Allahabad
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Patna" .  } UNION { ?e <pred:name> "Allahabad" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Allahabad