Question: Is the larger area occupied by Oak Park or by Charleston, capital of West Virginia?
Choices:
Waukegan
New Haven
Charleston
Columbus
Compton
Greenville
Oak Park
Franklin
Oakland
Boulder
Program:
function: Find
inputs: Oak Park
function: Find
inputs: West Virginia
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Charleston
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oak Park" .  } UNION { ?e <pred:name> "Charleston" . ?e_1 <capital> ?e . ?e_1 <pred:name> "West Virginia" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Charleston