Question: Does Carlsbad or Richmond, established 1806-01-01, have the lower elevation?
Choices:
Lansing
Greenville
Franklin
New Haven
Waukegan
Columbus
Boulder
Richmond
Oakland
Carlsbad
Answer: Carlsbad
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carlsbad" . } UNION { ?e <pred:name> "Richmond" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1806-01-01"^^xsd:date . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Carlsbad
function: Find
inputs: Richmond
function: FilterDate
dependencies: 1
inputs: inception
1806-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less