Question: Which area has fewer people, Coimbatore or Fredericton?
Choices:
Trieste
Chihuahua
Cork
Bergen
Kingston
Kilkenny
Santo Domingo
Abidjan
Dundee
Fredericton
Program:
function: Find
inputs: Coimbatore
function: Find
inputs: Fredericton
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Coimbatore" .  } UNION { ?e <pred:name> "Fredericton" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fredericton