Question: Which place is less populous, Lakewood or Warwick, which is the place where Nathanael Greene was born?
Choices:
Columbus
Compton
Greenville
Oakland
Boulder
New Haven
Warwick
Waukegan
Franklin
Lakewood
Program:
function: Find
inputs: Nathanael Greene
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Warwick
function: And
dependencies: 1
2
function: Find
inputs: Lakewood
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Warwick" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Nathanael Greene" .   } UNION { ?e <pred:name> "Lakewood" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lakewood