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