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