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