Question: Which area is smaller, Mogadishu or Gloucester (the one whose local dialing code is 01452)?
Choices:
Trieste
Chihuahua
Mogadishu
Kilkenny
Bergen
Kingston
Santo Domingo
Cork
Gloucester
Abidjan
Answer: Gloucester
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mogadishu" . } UNION { ?e <pred:name> "Gloucester" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01452" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Mogadishu
function: Find
inputs: Gloucester
function: FilterStr
dependencies: 1
inputs: local dialing code
01452
function: SelectBetween
dependencies: 0
2
inputs: area
less