Question: Which area is smaller, Palmerston North or Bergen?
Choices:
Dundee
Trieste
Kingston
Cork
Kilkenny
Bergen
Santo Domingo
Cairo
Palmerston North
Chihuahua
Program:
function: Find
inputs: Palmerston North
function: Find
inputs: Bergen
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palmerston North" .  } UNION { ?e <pred:name> "Bergen" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Palmerston North