Question: Which one,  Flagstaff or Charleston (the one that is the capital of Charleston County), has greater elevation (above sea level)?
Choices:
New Haven
Lansing
Oakland
Charleston
Waukegan
Compton
Flagstaff
Greenville
Boulder
Columbus
Answer: Flagstaff
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Flagstaff" .  } UNION { ?e <pred:name> "Charleston" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Charleston County" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Flagstaff
function: Find
inputs: Charleston County
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Charleston
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater