Question: Which area has higher elevation above sea level, Winchester (the one whose country is United States of America) or Williamsburg?
Choices:
Winchester
Hampton
Fairfax
Charlottesville
Williamsburg
Lynchburg
Lexington
Roanoke
Suffolk
Falls Church
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Winchester
function: And
dependencies: 1
2
function: Find
inputs: Williamsburg
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winchester" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Williamsburg" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Winchester