"Which is {topic of} of {history of Alabama}, that has {has shires} is {Perry County} ?"
SELECT ?answer WHERE { wd:/history of Alabama/ wdt:/facet of/ ?answer . ?answer wdt:/contains the administrative territorial entity/ wd:/Perry County/}