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