Question: Is there less area in Madison County (the administrative division of North Carolina) or the 1468 square km Davidson County?
Choices:
Davidson County
Brunswick County
Cumberland County
Mecklenburg County
Franklin County
Madison County
Wake County
Guilford County
Gaston County
Polk County
Program:
function: Find
inputs: North Carolina
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Madison County
function: And
dependencies: 1
2
function: Find
inputs: Davidson County
function: FilterNum
dependencies: 4
inputs: area
1468 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Madison County" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "North Carolina" . } UNION { ?e <pred:name> "Davidson County" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "1468"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Madison County