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