Question: Are there more people living in Fredericton or Patna?
Choices:
Patna
Kingston
Chihuahua
Santo Domingo
Trieste
Kilkenny
Dundee
Abidjan
Bergen
Fredericton
Program:
function: Find
inputs: Fredericton
function: Find
inputs: Patna
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fredericton" .  } UNION { ?e <pred:name> "Patna" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Patna