Question: Which has the larger area, Monroe County, population 747000, or Allegany County, which is 2679 square kilometers?
Choices:
Niagara County
Clinton County
Jefferson County
Warren County
Cayuga County
Albany County
Monroe County
Orange County
Greene County
Rensselaer County
Program:
function: Find
inputs: Monroe County
function: FilterNum
dependencies: 0
inputs: population
747000
=
function: Find
inputs: Allegany County
function: FilterNum
dependencies: 2
inputs: area
2679 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monroe County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "747000"^^xsd:double . } UNION { ?e <pred:name> "Allegany County" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "2679"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Monroe County