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