三教九流

sān jiào jiǔ liú

the Three Religions (Daoism, Confucianism, Buddhism) and Nine Schools (Confucians, Daoists, Yin-Yang, Legalists, Logicians, Mohists, Political Strategists, Eclectics, Agriculturists)

fig. people from all trades (often derog.)

sān

three

jiào

(bound form) to teach; to instruct

jiǔ

nine

liú

to flow