Question: Which has more people, Redwood City or Tacoma where Bing Crosby was born?
Choices:
Compton
Greenville
Lansing
Oakland
Boulder
Columbus
Redwood City
Waukegan
Tacoma
Franklin
Program:
function: Find
inputs: Redwood City
function: Find
inputs: Bing Crosby
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Tacoma
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Redwood City" .  } UNION { ?e <pred:name> "Tacoma" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Bing Crosby" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tacoma