Question: Does Washington County (the one that shares border with Yamhill County) or Linn County (the one whose population is 118765) have less area?
Choices: Douglas County
Marion County
Lake County
Clackamas County
Columbia County
Washington County
Yamhill County
Lane County
Tillamook County
Linn County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Washington County" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Yamhill County" . } UNION { ?e <pred:name> "Linn County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "118765"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Yamhill County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Washington County
function: And
dependencies: 1
2
function: Find
inputs: Linn County
function: FilterNum
dependencies: 4
inputs: population
118765
=
function: SelectBetween
dependencies: 3
5
inputs: area
less
Answer: Washington County