In جَاءَنِي الْقَاضِي, yāʾ is the object pronoun and the judge is the subject.

Noun Case Class 8 — The Manqūṣ Noun