поставить правельно вопрос Did they lived in a small house
Did they live in a small house? Пишем глагол в наст.времени, так как в начале предложения используем did.
Did they live in a small house?