Question: Which one has more elevation above sea level between Miami (the one that is the twinned administrative body of Port-au-Prince) or Carmel-by-the-Sea?
Choices:
Waukegan
Oakland
Columbus
Boulder
Franklin
Lansing
Carmel-by-the-Sea
Greenville
New Haven
Miami
Program:
function: Find
inputs: Port-au-Prince
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: Miami
function: And
dependencies: 1
2
function: Find
inputs: Carmel-by-the-Sea
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Miami" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Port-au-Prince" .   } UNION { ?e <pred:name> "Carmel-by-the-Sea" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Carmel-by-the-Sea