Question: Which has a larger area, Lancaster County, with a population of 286126, or Shelby County, which is 999 square kilometers?
Choices:
African Union
Cass County
Washoe County
Kent County
Lee County
Orange County
Delaware County
Shelby County
San Juan County
Lancaster County
Program:
function: Find
inputs: Lancaster County
function: FilterNum
dependencies: 0
inputs: population
286126
=
function: Find
inputs: Shelby County
function: FilterNum
dependencies: 2
inputs: area
999 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lancaster County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "286126"^^xsd:double . } UNION { ?e <pred:name> "Shelby County" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "999"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lancaster County