Question: Which counties of Washington share the border with Douglas County (the one whose population is 39309) and has the smallest area?
Choices: Pierce County
Clark County
Douglas County
Yakima County
Spokane County
San Juan County
Snohomish County
Okanogan County
King County
Grant County
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Washington" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Douglas County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "39309"^^xsd:double . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Douglas County
function: FilterNum
dependencies: 0
inputs: population
39309
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: county of Washington
function: SelectAmong
dependencies: 3
inputs: area
smallest
Answer: Grant County