Question: Which area is smaller, Lehigh County or Columbia County (the one that is an administrative division of Pennsylvania)?
Choices:
Erie County
Cumberland County
Allegheny County
Bucks County
Columbia County
Westmoreland County
Warren County
Lehigh County
York County
Fayette County
Program:
function: Find
inputs: Lehigh County
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: Find
inputs: Columbia County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lehigh County" .  } UNION { ?e <pred:name> "Columbia County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Pennsylvania" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lehigh County