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