Question: Which area is larger, Douglas County (the one that shares border with Cobb County) or Linn County (the one whose inception time is 1839)?
Choices:
San Juan County
Washoe County
Douglas County
Kent County
Delaware County
Greene County
Cass County
African Union
Lee County
Linn County
Program:
function: Find
inputs: Cobb County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Douglas County
function: And
dependencies: 1
2
function: Find
inputs: Linn County
function: FilterYear
dependencies: 4
inputs: inception
1839
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Douglas County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Cobb County" . } UNION { ?e <pred:name> "Linn County" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1839 . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Linn County