Question: Which has more people, Bloemfontein or Dhaka?
Choices:
Bloemfontein
Bergen
Dhaka
Kingston
Cork
Chihuahua
Abidjan
Santo Domingo
Kilkenny
Dundee
Program:
function: Find
inputs: Bloemfontein
function: Find
inputs: Dhaka
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bloemfontein" .  } UNION { ?e <pred:name> "Dhaka" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dhaka