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