Question: Which area is larger, Washington County (the one that is located in Iowa) or Washington County (the one that shares border with Dakota County)?
Choices:
Kent County
Delaware County
Washington County
Washington County
Washoe County
San Juan County
Cass County
Lee County
Greene County
African Union
Program:
function: Find
inputs: Iowa
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Washington County
function: And
dependencies: 1
2
function: Find
inputs: Dakota County
function: Relate
dependencies: 4
inputs: shares border with
forward
function: Find
inputs: Washington County
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Washington County" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Iowa" .   } UNION { ?e <pred:name> "Washington County" . ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Dakota County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Washington County