Question: Which area has higher elevation above sea level, Fort Wayne or Detroit (the one that is the headquarter location of Wayne State University)?
Choices:
Fort Wayne
New Haven
Franklin
Lansing
Oakland
Columbus
Waukegan
Greenville
Boulder
Detroit
Answer: Fort Wayne
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fort Wayne" .  } UNION { ?e <pred:name> "Detroit" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "Wayne State University" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Fort Wayne
function: Find
inputs: Wayne State University
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Detroit
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater