Question: Does the lower elevation belong to Rochester, of telephone area code 585, or Mesa in Maricopa County?
Choices:
Lansing
Oakland
Mesa
Compton
Waukegan
Rochester
Columbus
Franklin
Greenville
Boulder
Program:
function: Find
inputs: Rochester
function: FilterStr
dependencies: 0
inputs: local dialing code
585
function: Find
inputs: Maricopa County
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Mesa
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rochester" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "585" . } UNION { ?e <pred:name> "Mesa" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Maricopa County" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rochester