Question: Which has less population, Durban or Niagara Falls whose area is 209.71 square kilometers?
Choices:
Cork
Abidjan
Bergen
Kilkenny
Chihuahua
Kingston
Niagara Falls
Trieste
Durban
Dundee
Answer: Niagara Falls
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Durban" . } UNION { ?e <pred:name> "Niagara Falls" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "209.71"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Durban
function: Find
inputs: Niagara Falls
function: FilterNum
dependencies: 1
inputs: area
209.71 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: population
less