Question: Which has more area, Sullivan County that borders Luzerne County or Columbia County that borders Schuylkill County?
Choices:
Lehigh County
Bucks County
Warren County
Franklin County
Allegheny County
Sullivan County
Cumberland County
Columbia County
Westmoreland County
York County
Program:
function: Find
inputs: Luzerne County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Sullivan County
function: And
dependencies: 1
2
function: Find
inputs: Schuylkill County
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Columbia County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sullivan County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Luzerne County" .   } UNION { ?e <pred:name> "Columbia County" . ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Schuylkill County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Columbia County