Question: Which area is smaller, Athens (the one that is the twinned administrative body of Los Angeles) or Southampton?
Choices:
Cork
Trieste
Athens
Dundee
Southampton
Kingston
Bergen
Kilkenny
Abidjan
Chihuahua
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Athens
function: And
dependencies: 1
2
function: Find
inputs: Southampton
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Athens" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Los Angeles" .   } UNION { ?e <pred:name> "Southampton" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Athens