Question: Is the Human Development Index lower for Porto Alegre or for Salvador, population  2921087?
Choices:
Cork
Porto Alegre
Bergen
Santo Domingo
Dundee
Salvador
Chihuahua
Trieste
Kingston
Abidjan
Program:
function: Find
inputs: Porto Alegre
function: Find
inputs: Salvador
function: FilterNum
dependencies: 1
inputs: population
2921087
=
function: SelectBetween
dependencies: 0
2
inputs: Human Development Index
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Porto Alegre" . } UNION { ?e <pred:name> "Salvador" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2921087"^^xsd:double . } ?e <Human_Development_Index> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Salvador