What is the role of قَاضٍ in مَرَرْتُ بِقَاضٍ?

Noun Case Class 8 — The Manqūṣ Noun