Question: Does Anne Arundel County or Carroll County (that shares a border with Baltimore County) have the larger area?
Choices:
Allegany County
Harford County
Charles County
Baltimore County
Kent County
Carroll County
Frederick County
Anne Arundel County
Cecil County
Prince George's County
Answer: Anne Arundel County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anne Arundel County" .  } UNION { ?e <pred:name> "Carroll County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Baltimore County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Anne Arundel County
function: Find
inputs: Baltimore County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Carroll County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater