Question: Does Monroe County that borders Baldwin County or Baldwin County have less area?
Choices: Dallas County
Mobile County
Shelby County
Monroe County
Madison County
Montgomery County
Washington County
Baldwin County
Jackson County
Jefferson County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monroe County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Baldwin County" .   } UNION { ?e <pred:name> "Baldwin County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Baldwin County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Monroe County
function: And
dependencies: 1
2
function: Find
inputs: Baldwin County
function: SelectBetween
dependencies: 3
4
inputs: area
less
Answer: Monroe County