Question: Is the smaller area occupied by Hamilton County, population 4787, or Sullivan County, with FIPS 6-4 (US counties) code 36105?
Choices:
Rensselaer County
Albany County
Niagara County
Jefferson County
Sullivan County
Greene County
Warren County
Hamilton County
Cayuga County
Orange County
Answer: Sullivan County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4787"^^xsd:double . } UNION { ?e <pred:name> "Sullivan County" . ?e <FIPS_6-4_(US_counties)> ?pv_2 . ?pv_2 <pred:value> "36105" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hamilton County
function: FilterNum
dependencies: 0
inputs: population
4787
=
function: Find
inputs: Sullivan County
function: FilterStr
dependencies: 2
inputs: FIPS 6-4 (US counties)
36105
function: SelectBetween
dependencies: 1
3
inputs: area
less