Question: Which area is smaller, Lancaster County (the one that shares border with Berks County) or Union County (the one whose population is 44867)?
Choices:
Lancaster County
Warren County
Union County
Fayette County
Westmoreland County
York County
Franklin County
Bucks County
Cumberland County
Lehigh County
Program:
function: Find
inputs: Berks County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Lancaster County
function: And
dependencies: 1
2
function: Find
inputs: Union County
function: FilterNum
dependencies: 4
inputs: population
44867
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lancaster County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Berks County" . } UNION { ?e <pred:name> "Union County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "44867"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Union County