Question: Does Amritsar or Cairo (whose population is 570062) have less area?
Choices:
Kingston
Santo Domingo
Chihuahua
Cairo
Dundee
Abidjan
Amritsar
Kilkenny
Bergen
Trieste
Program:
function: Find
inputs: Amritsar
function: Find
inputs: Cairo
function: FilterNum
dependencies: 1
inputs: population
570062
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Amritsar" . } UNION { ?e <pred:name> "Cairo" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "570062"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Amritsar