Question: Does Tripoli (that is located in Libya) or Kōbe have the larger land area?
Choices:
Dundee
Bergen
Chihuahua
Kilkenny
Tripoli
Kōbe
Santo Domingo
Cork
Trieste
Abidjan
Program:
function: Find
inputs: Libya
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Tripoli
function: And
dependencies: 1
2
function: Find
inputs: Kōbe
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tripoli" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Libya" .   } UNION { ?e <pred:name> "Kōbe" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kōbe