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