Question: Which has a larger population, Cupertino or Longview (the one that is the birthplace of Forest Whitaker)?
Choices:
Boulder
Franklin
New Haven
Waukegan
Lansing
Cupertino
Columbus
Compton
Longview
Greenville
Program:
function: Find
inputs: Cupertino
function: Find
inputs: Forest Whitaker
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Longview
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cupertino" .  } UNION { ?e <pred:name> "Longview" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Forest Whitaker" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Longview