Question: Which has more area, Delaware County in Pennsylvania or Lycoming County?
Choices:
Cumberland County
Westmoreland County
Franklin County
Allegheny County
Lehigh County
Lycoming County
Warren County
Delaware County
York County
Fayette County
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Delaware County
function: And
dependencies: 1
2
function: Find
inputs: Lycoming County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Delaware County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Pennsylvania" .   } UNION { ?e <pred:name> "Lycoming County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lycoming County