Question: Which Alabama county that is an administrative division of Alabama (that is an administrative division of the United States of America) has the smallest area?
Choices: Mobile County
Montgomery County
Jackson County
Washington County
Monroe County
Dallas County
Jefferson County
Shelby County
Madison County
Baldwin County
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Alabama" . ?e_2 <contains_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "United States of America" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Alabama
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of Alabama
function: SelectAmong
dependencies: 5
inputs: area
smallest
Answer: Montgomery County