Question: Which one has more elevation above the sea level between St. Louis and Salem (the one whose area is 47.397114 square kilometers)
Choices:
Greenville
St. Louis
Lansing
Franklin
Oakland
Boulder
Waukegan
Compton
Columbus
Salem
Answer: St. Louis
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "St. Louis" . } UNION { ?e <pred:name> "Salem" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "47.397114"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: St. Louis
function: Find
inputs: Salem
function: FilterNum
dependencies: 1
inputs: area
47.397114 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater