Ответ:

Question: Have they got hats?

Answer: Yes, they have.