Question: Which area is smaller, Somerset County (the one that shares border with Cambria County) or Lancaster County (the one whose PermID is 5035885149)?
Choices: Westmoreland County
Cumberland County
Franklin County
Bucks County
Fayette County
Warren County
Lehigh County
Allegheny County
Lancaster County
Somerset County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somerset County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Cambria County" . } UNION { ?e <pred:name> "Lancaster County" . ?e <PermID> ?pv_1 . ?pv_1 <pred:value> "5035885149" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Cambria County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Somerset County
function: And
dependencies: 1
2
function: Find
inputs: Lancaster County
function: FilterStr
dependencies: 4
inputs: PermID
5035885149
function: SelectBetween
dependencies: 3
5
inputs: area
less
Answer: Lancaster County