Question: What dynasty ended in December 1004?
Sentence: The Samanid dynasty came to its end in December 1004.
Answer in sentence: yes