Question: Which has the larger area, Northampton County, with a population of 299791, or Fulton County, population 14870?
Choices:
Westmoreland County
Northampton County
Cumberland County
Franklin County
Lehigh County
Fulton County
Warren County
Fayette County
York County
Allegheny County
Program:
function: Find
inputs: Northampton County
function: FilterNum
dependencies: 0
inputs: population
299791
=
function: Find
inputs: Fulton County
function: FilterNum
dependencies: 2
inputs: population
14870
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northampton County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "299791"^^xsd:double . } UNION { ?e <pred:name> "Fulton County" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "14870"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Fulton County