Question: Does Dorchester (that is the birthplace of Dennis Lehane) or Astoria have the larger population?
Choices:
Encino
Astoria
Monte Carlo
Woodland Hills
Pacific Palisades
Jamaica
Studio City
Roxbury
Dorchester
Northridge
Program:
function: Find
inputs: Dennis Lehane
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Dorchester
function: And
dependencies: 1
2
function: Find
inputs: Astoria
function: SelectBetween
dependencies: 3
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dorchester" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Dennis Lehane" .   } UNION { ?e <pred:name> "Astoria" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dorchester