Question: Which area is smaller, Madison County (the one whose population is 72382) or Washington County (the one that shares border with Saratoga County)?
Choices:
Orange County
Greene County
Cayuga County
Albany County
Clinton County
Rensselaer County
Madison County
Niagara County
Washington County
Jefferson County
Program:
function: Find
inputs: Madison County
function: FilterNum
dependencies: 0
inputs: population
72382
=
function: Find
inputs: Saratoga County
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Washington County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Madison County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "72382"^^xsd:double . } UNION { ?e <pred:name> "Washington County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Saratoga County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Madison County