Question: Which has lower elevation above sea level, Moscow established in 1871 or Galveston?
Choices:
Waukegan
Greenville
New Haven
Galveston
Oakland
Franklin
Boulder
Compton
Columbus
Moscow
Program:
function: Find
inputs: Moscow
function: FilterYear
dependencies: 0
inputs: inception
1871
=
function: Find
inputs: Galveston
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Moscow" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1871 . } UNION { ?e <pred:name> "Galveston" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Galveston