Question: Which area is smaller, Polk County (the one that is an administrative division of Wisconsin) or Columbia County (the one whose population is 56833)?
Choices:
Pierce County
La Crosse County
Polk County
Wood County
Outagamie County
Jefferson County
Columbia County
Jackson County
Fond du Lac County
Waukesha County
Answer: Columbia County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Polk County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Wisconsin" . } UNION { ?e <pred:name> "Columbia County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "56833"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Wisconsin
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Polk County
function: And
dependencies: 1
2
function: Find
inputs: Columbia County
function: FilterNum
dependencies: 4
inputs: population
56833
=
function: SelectBetween
dependencies: 3
5
inputs: area
less