Question: Does Coimbatore or Mysore have the larger population?
Choices:
Trieste
Chihuahua
Cork
Santo Domingo
Bergen
Mysore
Dundee
Coimbatore
Kingston
Kilkenny
Program:
function: Find
inputs: Coimbatore
function: Find
inputs: Mysore
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Coimbatore" .  } UNION { ?e <pred:name> "Mysore" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Coimbatore