Question: Is Essex County, population 786943, or Morris County smaller, area-wise?
Choices:
Cape May County
Monmouth County
Essex County
Passaic County
Morris County
Hudson County
Hunterdon County
Gloucester County
Cumberland County
Bergen County
Program:
function: Find
inputs: Essex County
function: FilterNum
dependencies: 0
inputs: population
786943
=
function: Find
inputs: Morris County
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Essex County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "786943"^^xsd:double . } UNION { ?e <pred:name> "Morris County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Essex County