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