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