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