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