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