Question: Which has more people, West Hartford or Florence which is the capital of Pinal County?
Choices:
West Hartford
Bedford
Florence
Chapel Hill
Amherst
Litchfield
Uxbridge
Greenwich
Westport
Brookline
Answer: West Hartford
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "West Hartford" .  } UNION { ?e <pred:name> "Florence" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Pinal County" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: West Hartford
function: Find
inputs: Pinal County
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Florence
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater