qnli 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.