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