Question: Which area has higher elevation above sea level, Kansas (the one whose native label is State of Kansas) or New York (the one that overlaps New York metropolitan area)?
Choices: Iowa
New Mexico
Colorado
New Jersey
Massachusetts
Kansas
Illinois
Florida
New York
Hawaii
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "State of Kansas" . } UNION { ?e <pred:name> "New York" . ?e_1 <territory_overlaps> ?e . ?e_1 <pred:name> "New York metropolitan area" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Kansas
function: FilterStr
dependencies: 0
inputs: native label
State of Kansas
function: Find
inputs: New York metropolitan area
function: Relate
dependencies: 2
inputs: territory overlaps
forward
function: Find
inputs: New York
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
greater
Answer: Kansas