Question: Which has more people, Sheffield (the one that shares border with Barnsley) or Belfast?
Choices: Abidjan
Cork
Kingston
Dundee
Kilkenny
Bergen
Belfast
Chihuahua
Trieste
Sheffield
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sheffield" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Barnsley" .   } UNION { ?e <pred:name> "Belfast" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Barnsley
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Sheffield
function: And
dependencies: 1
2
function: Find
inputs: Belfast
function: SelectBetween
dependencies: 3
4
inputs: population
greater
Answer: Sheffield