Question: Which one has bigger population, San Marino (the one whose postal code is RSM-47890) or Lagos ?
Choices: Bergen
Abidjan
Santo Domingo
San Marino
Cork
Chihuahua
Kilkenny
Dundee
Trieste
Lagos
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Marino" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "RSM-47890" . } UNION { ?e <pred:name> "Lagos" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: San Marino
function: FilterStr
dependencies: 0
inputs: postal code
RSM-47890
function: Find
inputs: Lagos
function: SelectBetween
dependencies: 1
2
inputs: population
greater
Answer: Lagos