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