Question: Is the smaller area occupied by Baltimore County, or by Frederick County that borders Loudoun County?
Choices:
Cecil County
Kent County
Prince George's County
Charles County
Howard County
Carroll County
Allegany County
Anne Arundel County
Frederick County
Harford County
Answer: Frederick County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Baltimore County" .  } UNION { ?e <pred:name> "Frederick County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Loudoun County" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Baltimore County
function: Find
inputs: Loudoun County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Frederick County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less