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