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