Question: Which has fewer people, Harrisburg or Lancaster (the one that is the birthplace of Billy Bletcher)?
Choices:
Greensburg
Wilkes-Barre
Philadelphia
Johnstown
Bethlehem
Harrisburg
Erie
York
Pittsburgh
Lancaster
Program:
function: Find
inputs: Harrisburg
function: Find
inputs: Billy Bletcher
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Lancaster
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Harrisburg" .  } UNION { ?e <pred:name> "Lancaster" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Billy Bletcher" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Harrisburg