Question: Which area is smaller in size, Douala or San Juan (the one whose area is 5.95 square kilometre)?
Choices: Trieste
Dundee
Douala
Abidjan
San Juan
Kingston
Kilkenny
Bergen
Chihuahua
Santo Domingo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Douala" . } UNION { ?e <pred:name> "San Juan" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "5.95"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Douala
function: Find
inputs: San Juan
function: FilterNum
dependencies: 1
inputs: area
5.95 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
Answer: San Juan