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