Does the sentence "The Samanid dynasty came to its end in December 1004." answer the question "What dynasty ended in December 1004?"
yes