Question: Does Chautauqua County or Fulton County that shares border with Saratoga County have less area?
Choices:
Niagara County
Greene County
Fulton County
Albany County
Warren County
Rensselaer County
Cayuga County
Jefferson County
Orange County
Chautauqua County
Program:
function: Find
inputs: Saratoga County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Fulton County
function: And
dependencies: 1
2
function: Find
inputs: Chautauqua County
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fulton County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Saratoga County" .   } UNION { ?e <pred:name> "Chautauqua County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fulton County