Question: Which county has a greater area, Schuylkill County or Union County (which shares a border with Lycoming County)?
Choices:
Schuylkill County
Warren County
Union County
Fayette County
Cumberland County
Bucks County
Lehigh County
Franklin County
Allegheny County
Westmoreland County
Program:
function: Find
inputs: Schuylkill County
function: Find
inputs: Lycoming County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Union County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Schuylkill County" .  } UNION { ?e <pred:name> "Union County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Lycoming County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Schuylkill County