Question: How many ranks were there in civil service in the Qing dynasty?
Sentence: The Qing divided the positions into civil and military positions, each having nine grades or ranks, each subdivided into a and b categories.
Answer in sentence: yes