Question: Which area has lower elevation above sea level, San Francisco (the one whose postal code is 94105) or Canberra (the one whose subreddit is canberra)?
Choices:
Bergen
Abidjan
San Francisco
Kingston
Dundee
Kilkenny
Santo Domingo
Cork
Canberra
Chihuahua
Answer: San Francisco
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Francisco" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "94105" . } UNION { ?e <pred:name> "Canberra" . ?e <subreddit> ?pv_2 . ?pv_2 <pred:value> "canberra" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: San Francisco
function: FilterStr
dependencies: 0
inputs: postal code
94105
function: Find
inputs: Canberra
function: FilterStr
dependencies: 2
inputs: subreddit
canberra
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less