Question: Is the population lower for Niagara Falls, with 82997 inhabitants, or for Kelowna?
Choices: Dundee
Bergen
Cork
Chihuahua
Kilkenny
Trieste
Niagara Falls
Abidjan
Kingston
Santo Domingo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Niagara Falls" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "82997"^^xsd:double . } UNION { ?e <pred:name> "Kelowna" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Niagara Falls
function: FilterNum
dependencies: 0
inputs: population
82997
=
function: Find
inputs: Kelowna
function: SelectBetween
dependencies: 1
2
inputs: population
less
Answer: Niagara Falls