Question: Does Palo Alto, death place of John Heard, or Greensboro have more people?
Choices:
Lansing
Greensboro
Compton
Boulder
Columbus
Palo Alto
Waukegan
Oakland
Franklin
Greenville
Program:
function: Find
inputs: John Heard
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Palo Alto
function: And
dependencies: 1
2
function: Find
inputs: Greensboro
function: SelectBetween
dependencies: 3
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palo Alto" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "John Heard" .   } UNION { ?e <pred:name> "Greensboro" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Greensboro