Question: Which area is smaller, Monroe County (the one that shares border with Lackawanna County) or Sullivan County (the one that shares border with Lycoming County)?
Choices: Franklin County
Allegheny County
Sullivan County
York County
Westmoreland County
Warren County
Monroe County
Fayette County
Lehigh County
Cumberland County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monroe County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Lackawanna County" .   } UNION { ?e <pred:name> "Sullivan County" . ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Lycoming County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Lackawanna County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Monroe County
function: And
dependencies: 1
2
function: Find
inputs: Lycoming County
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Sullivan County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less
Answer: Sullivan County