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