Question: Which is physically smaller: Davidson County that borders Guilford County or Guilford County?
Choices: Buncombe County
Franklin County
Polk County
Brunswick County
Wake County
Guilford County
Cumberland County
Davidson County
Gaston County
Madison County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Davidson County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Guilford County" .   } UNION { ?e <pred:name> "Guilford County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Guilford County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Davidson County
function: And
dependencies: 1
2
function: Find
inputs: Guilford County
function: SelectBetween
dependencies: 3
4
inputs: area
less
Answer: Davidson County