Question: Which area is smaller, Allegheny County or Jefferson County (the one that is an administrative division of Pennsylvania)?
Choices:
Bucks County
Jefferson County
Allegheny County
York County
Lehigh County
Warren County
Franklin County
Cumberland County
Fayette County
Erie County
Program:
function: Find
inputs: Allegheny County
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: Find
inputs: Jefferson County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Allegheny County" .  } UNION { ?e <pred:name> "Jefferson 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: Jefferson County