Question: Which area is larger, Jackson County (the one that shares border with Kanawha County) or Stearns County?
Choices:
Stearns County
Lee County
Greene County
Orange County
San Juan County
Jackson County
Kent County
Cass County
African Union
Washoe County
Answer: Stearns County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jackson County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Kanawha County" .   } UNION { ?e <pred:name> "Stearns County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Kanawha County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Jackson County
function: And
dependencies: 1
2
function: Find
inputs: Stearns County
function: SelectBetween
dependencies: 3
4
inputs: area
greater