Question: Is the elevation lower in St. Joseph (founded on 1834-01-01) or Arcadia (zip codes 91006–91007)?
Choices:
Waukegan
Lansing
Greenville
Arcadia
Boulder
Oakland
St. Joseph
Franklin
Compton
Columbus
Program:
function: Find
inputs: St. Joseph
function: FilterDate
dependencies: 0
inputs: inception
1834-01-01
=
function: Find
inputs: Arcadia
function: FilterStr
dependencies: 2
inputs: postal code
91006–91007
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "St. Joseph" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1834-01-01"^^xsd:date . } UNION { ?e <pred:name> "Arcadia" . ?e <postal_code> ?pv_2 . ?pv_2 <pred:value> "91006–91007" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Arcadia