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