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