Question: Does Madison County (that shares a border with Buncombe County) or Cumberland County (whose population is 323011) have less area?
Choices:
Polk County
Mecklenburg County
Guilford County
Madison County
Franklin County
Gaston County
Buncombe County
Davidson County
Wake County
Cumberland County
Program:
function: Find
inputs: Buncombe County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Madison County
function: And
dependencies: 1
2
function: Find
inputs: Cumberland County
function: FilterNum
dependencies: 4
inputs: population
323011
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Madison County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Buncombe County" . } UNION { ?e <pred:name> "Cumberland County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "323011"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Madison County