Question: Which has a greater area, Louisville or Toledo (which is the capital of Lucas County)?
Choices:
Boulder
New Haven
Franklin
Louisville
Waukegan
Compton
Oakland
Toledo
Greenville
Lansing
Answer: Toledo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Louisville" .  } UNION { ?e <pred:name> "Toledo" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Lucas County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Louisville
function: Find
inputs: Lucas County
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Toledo
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater