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