Question: Which has more area, Jefferson County whose area is 4810 square kilometres or Erie County that borders Cattaraugus County?
Choices: Clinton County
Erie County
Warren County
Orange County
Niagara County
Cayuga County
Rensselaer County
Albany County
Greene County
Jefferson County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jefferson County" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "4810"^^xsd:double . } UNION { ?e <pred:name> "Erie County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Cattaraugus County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Jefferson County
function: FilterNum
dependencies: 0
inputs: area
4810 square kilometre
=
function: Find
inputs: Cattaraugus County
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Erie County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
Answer: Jefferson County