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