Question: Who get the flag at a military funeral?
Answer: the next of kin
next of kin
Natural Questions answer: the next of kin (from the Wikipedia article "Military funerals in the United States")