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