Question: Between Kumasi and Rio de Janeiro, population 811443, which is physically larger?
Choices:
Cork
Trieste
Dundee
Kumasi
Kilkenny
Kingston
Rio de Janeiro
Santo Domingo
Abidjan
Chihuahua
Answer: Rio de Janeiro
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kumasi" . } UNION { ?e <pred:name> "Rio de Janeiro" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "811443"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Kumasi
function: Find
inputs: Rio de Janeiro
function: FilterNum
dependencies: 1
inputs: population
811443
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater