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