Question: Does Delaware County, sharing a border with Otsego County, or Essex County, having a population of 39370, have a smaller area?
Choices:
Delaware County
Greene County
Jefferson County
Clinton County
Orange County
Niagara County
Warren County
Essex County
Albany County
Cayuga County
Program:
function: Find
inputs: Otsego County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Delaware County
function: And
dependencies: 1
2
function: Find
inputs: Essex County
function: FilterNum
dependencies: 4
inputs: population
39370
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Delaware County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Otsego County" . } UNION { ?e <pred:name> "Essex County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "39370"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Delaware County