Question: Is Erie County (headquartered in Erie) or Centre County smaller by area?
Choices:
Lehigh County
Fayette County
York County
Franklin County
Warren County
Centre County
Erie County
Bucks County
Allegheny County
Cumberland County
Program:
function: Find
inputs: Erie
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: Find
inputs: Erie County
function: And
dependencies: 1
2
function: Find
inputs: Centre County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Erie County" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Erie" .   } UNION { ?e <pred:name> "Centre County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Centre County