Question: Which has higher elevation above sea level, Iowa City or Charlotte (the one that is located in Mecklenburg County)?
Choices: Columbus
Greenville
New Haven
Franklin
Charlotte
Oakland
Iowa City
Waukegan
Compton
Lansing
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Iowa City" .  } UNION { ?e <pred:name> "Charlotte" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Mecklenburg County" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Iowa City
function: Find
inputs: Mecklenburg County
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Charlotte
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
Answer: Charlotte