Question: Does Amy Irving's native Palo Alto or Charleston, population 51400, have the lower elevation?
Choices:
Palo Alto
Columbus
Boulder
Lansing
Greenville
Franklin
Compton
Waukegan
Oakland
Charleston
Answer: Palo Alto
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palo Alto" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Amy Irving" . } UNION { ?e <pred:name> "Charleston" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "51400"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Amy Irving
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Palo Alto
function: And
dependencies: 1
2
function: Find
inputs: Charleston
function: FilterNum
dependencies: 4
inputs: population
51400
=
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
less