Question: Which is smaller, area-wise: Scarborough that occupies 187.7 square km, or Santiago de Cuba?
Choices: Abidjan
Chihuahua
Santo Domingo
Kingston
Trieste
Bergen
Cork
Scarborough
Dundee
Santiago de Cuba
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scarborough" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "187.7"^^xsd:double . } UNION { ?e <pred:name> "Santiago de Cuba" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Scarborough
function: FilterNum
dependencies: 0
inputs: area
187.7 square kilometre
=
function: Find
inputs: Santiago de Cuba
function: SelectBetween
dependencies: 1
2
inputs: area
less
Answer: Scarborough