Question: Which area has lower elevation above sea level, Santa Fe (the one whose official website is http://www.santafenm.gov/) or Birmingham (the one whose local dialing code is 248)?
Choices:
Oakland
Santa Fe
Greenville
Birmingham
Columbus
Compton
Boulder
New Haven
Waukegan
Lansing
Answer: Birmingham
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Fe" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.santafenm.gov/" . } UNION { ?e <pred:name> "Birmingham" . ?e <local_dialing_code> ?pv_2 . ?pv_2 <pred:value> "248" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Santa Fe
function: FilterStr
dependencies: 0
inputs: official website
http://www.santafenm.gov/
function: Find
inputs: Birmingham
function: FilterStr
dependencies: 2
inputs: local dialing code
248
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less