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