Question: Which area is larger, San Juan County (the one that is located in Washington) or Snohomish County?
Choices:
Spokane County
San Juan County
Okanogan County
Whatcom County
King County
Douglas County
Snohomish County
Grays Harbor County
Clark County
Yakima County
Program:
function: Find
inputs: Washington
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: San Juan County
function: And
dependencies: 1
2
function: Find
inputs: Snohomish County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Juan County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Washington" .   } UNION { ?e <pred:name> "Snohomish County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Snohomish County