Question: Is the larger area occupied by Douglas County, population 140733, or Essex County, bordering Grafton County?
Choices:
Lee County
Greene County
Washoe County
Douglas County
Essex County
Delaware County
Orange County
African Union
Kent County
Cass County
Program:
function: Find
inputs: Douglas County
function: FilterNum
dependencies: 0
inputs: population
140733
=
function: Find
inputs: Grafton County
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Essex County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Douglas County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "140733"^^xsd:double . } UNION { ?e <pred:name> "Essex County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Grafton County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Essex County