Question: Which area is larger in size, Blair County or Lancaster County (the one that shares border with Cecil County)?
Choices:
Franklin County
Westmoreland County
Bucks County
York County
Lancaster County
Fayette County
Cumberland County
Lehigh County
Warren County
Blair County
Program:
function: Find
inputs: Blair County
function: Find
inputs: Cecil County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Lancaster County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Blair County" .  } UNION { ?e <pred:name> "Lancaster County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Cecil County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lancaster County