Question: Does Sheffield (that shares a border with Barnsley) or Southampton have the lower population?
Choices:
Abidjan
Kilkenny
Chihuahua
Trieste
Sheffield
Cork
Dundee
Southampton
Santo Domingo
Bergen
Answer: Southampton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sheffield" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Barnsley" .   } UNION { ?e <pred:name> "Southampton" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Barnsley
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Sheffield
function: And
dependencies: 1
2
function: Find
inputs: Southampton
function: SelectBetween
dependencies: 3
4
inputs: population
less