Question: Which area is smaller, Hollywood (the one that is the death place of Edwin B. Willis) or Pacific Palisades (the one that shares border with Santa Monica)?
Choices:
Northridge
Jamaica
Woodland Hills
Hollywood
Pacific Palisades
Monte Carlo
Roxbury
Encino
Sherman Oaks
Astoria
Program:
function: Find
inputs: Edwin B. Willis
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Hollywood
function: And
dependencies: 1
2
function: Find
inputs: Santa Monica
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Pacific Palisades
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hollywood" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Edwin B. Willis" .   } UNION { ?e <pred:name> "Pacific Palisades" . ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Santa Monica" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Pacific Palisades