Question: Is the smaller area occupied by Ontario County or by Columbia County that borders Rensselaer County?
Choices: Orange County
Cayuga County
Ontario County
Columbia County
Albany County
Jefferson County
Greene County
Rensselaer County
Clinton County
Warren County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ontario County" .  } UNION { ?e <pred:name> "Columbia County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Rensselaer County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Ontario County
function: Find
inputs: Rensselaer County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Columbia County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
Answer: Columbia County