Question: Which has fewer people, Winston-Salem or Niagara Falls (the one that is the birthplace of Franchot Tone)?
Choices:
Oakland
Winston-Salem
Boulder
Franklin
Greenville
Lansing
Compton
Niagara Falls
Waukegan
New Haven
Program:
function: Find
inputs: Winston-Salem
function: Find
inputs: Franchot Tone
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Niagara Falls
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Winston-Salem" .  } UNION { ?e <pred:name> "Niagara Falls" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Franchot Tone" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Niagara Falls