Question: Which area is larger, Kiev or Tehran (the one that is the twinned administrative body of Manila)?
Choices:
Mexico City
New Delhi
Sarajevo
Riga
Lausanne
Tallinn
Tehran
Moscow
Kiev
Doha
Program:
function: Find
inputs: Kiev
function: Find
inputs: Manila
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Tehran
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kiev" .  } UNION { ?e <pred:name> "Tehran" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Manila" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kiev