Question: Which has a smaller Human Development Index, Porto Alegre or Salvador (whose short name is SSA)?
Choices: Salvador
Kingston
Cork
Dundee
Bergen
Abidjan
Porto Alegre
Chihuahua
Kilkenny
Trieste
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Porto Alegre" . } UNION { ?e <pred:name> "Salvador" . ?e <short_name> ?pv_1 . ?pv_1 <pred:value> "SSA" . } ?e <Human_Development_Index> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Porto Alegre
function: Find
inputs: Salvador
function: FilterStr
dependencies: 1
inputs: short name
SSA
function: SelectBetween
dependencies: 0
2
inputs: Human Development Index
less
Answer: Salvador