Question: Which has less elevation above sea level, Atlanta that is the birthplace of Spike Lee or Alexandria whose local dialing code is 318?
Choices:
New Haven
Franklin
Lansing
Atlanta
Alexandria
Columbus
Greenville
Boulder
Waukegan
Compton
Program:
function: Find
inputs: Spike Lee
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Atlanta
function: And
dependencies: 1
2
function: Find
inputs: Alexandria
function: FilterStr
dependencies: 4
inputs: local dialing code
318
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Atlanta" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Spike Lee" . } UNION { ?e <pred:name> "Alexandria" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "318" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alexandria