Question: Are there more people living in Dorchester (in Boston) or Hollywood (where Samuel Fuller died)?
Choices:
Hollywood
Astoria
Sherman Oaks
Encino
Pacific Palisades
Roxbury
Dorchester
Northridge
Woodland Hills
Jamaica
Program:
function: Find
inputs: Boston
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Dorchester
function: And
dependencies: 1
2
function: Find
inputs: Samuel Fuller
function: Relate
dependencies: 4
inputs: place of death
forward
function: Find
inputs: Hollywood
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dorchester" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Boston" .   } UNION { ?e <pred:name> "Hollywood" . ?e_2 <place_of_death> ?e . ?e_2 <pred:name> "Samuel Fuller" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hollywood