Question: Is there less area in Columbia County (the one that shares border with Dutchess County) or Dutchess County?
Choices:
Albany County
Warren County
Rensselaer County
Columbia County
Cayuga County
Dutchess County
Jefferson County
Clinton County
Niagara County
Greene County
Program:
function: Find
inputs: Dutchess County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Columbia County
function: And
dependencies: 1
2
function: Find
inputs: Dutchess County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Columbia County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Dutchess County" .   } UNION { ?e <pred:name> "Dutchess County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Columbia County