مِنْ هَذِهِ الْقَرْيَةِ الظَّالِمِ أَهْلُهَا
مِنْ: preposition.
هَذِهِ: indeclinable demonstrative, genitive in position after min.
الْقَرْيَةِ: apposition/explicative apposition to hādhihi, genitive by kasrah.
الظَّالِمِ: genitive relational adjective following al-qaryati in case and definiteness.
أَهْلُهَا: nominative agent of the active participle (ḍammah); -hā refers to the village.
Al-ẓālim is masculine to suit ahl, not qaryah.