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