Question: Which has a smaller population, Leeds with an area of 551720000 square metres, or Dhaka?
Choices:
Dhaka
Chihuahua
Cork
Kingston
Abidjan
Trieste
Santo Domingo
Kilkenny
Dundee
Leeds
Program:
function: Find
inputs: Leeds
function: FilterNum
dependencies: 0
inputs: area
551720000 square metre
=
function: Find
inputs: Dhaka
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leeds" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square metre" . ?pv_1 <pred:value> "551720000"^^xsd:double . } UNION { ?e <pred:name> "Dhaka" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Leeds