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