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