Question: Does Jefferson County which borders Armstrong County or Armstrong County have greater area?
Choices:
Lehigh County
Fayette County
Bucks County
Armstrong County
Franklin County
Cumberland County
York County
Jefferson County
Allegheny County
Westmoreland County
Program:
function: Find
inputs: Armstrong County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Jefferson County
function: And
dependencies: 1
2
function: Find
inputs: Armstrong County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jefferson County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Armstrong County" .   } UNION { ?e <pred:name> "Armstrong County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Armstrong County