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