Question: Is the population smaller for Belgrade or Medina (population 1180770)?
Choices: Abidjan
Bergen
Chihuahua
Kilkenny
Medina
Santo Domingo
Belgrade
Kingston
Cork
Trieste
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Belgrade" . } UNION { ?e <pred:name> "Medina" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1180770"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Belgrade
function: Find
inputs: Medina
function: FilterNum
dependencies: 1
inputs: population
1180770
=
function: SelectBetween
dependencies: 0
2
inputs: population
less
Answer: Medina