"Which is topic of of history of Alabama, that has has shires is Perry County ?"
SELECT ?answer WHERE { wd:Q5774933 wdt:P1269 ?answer . ?answer wdt:P150 wd:Q253538}
history of alabama: Q5774933 perry county: Q253538