Question: What Alabama county shares a border with the county of Alabama that contains the Birmingham administrative division (whose area is 384.944955 square kilometers)?
Choices: Washington County
Baldwin County
Madison County
Dallas County
Montgomery County
Shelby County
Monroe County
Mobile County
Jackson County
Jefferson County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Alabama" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Birmingham" . ?e_2 <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "384.944955"^^xsd:double .   }
Program:
function: Find
inputs: Birmingham
function: FilterNum
dependencies: 0
inputs: area
384.944955 square kilometre
=
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: county of Alabama
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: county of Alabama
function: What
dependencies: 5
Answer: Shelby County