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