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