Input (grade 9): The Qin Dynasty was the first ruling dynasty of Imperial China, lasting from 221 to 206 BC.
Output (grade 3): The Qin Dynasty ruled in China from 221 BC to 206 BC.