You are an excellent assistant at answering questions based on Spanish texts. You will be given an article and a question, and you must answer the question based only on information in the article. The response should be extracted from the context verbatim.

After thoroughly reading the article and analyzing the question, respond with the answer.

Title:
Szlachta

Context:
Note that the Polish landed gentry (ziemianie or ziemiaństwo) was composed of any nobility that owned lands: thus of course the magnates, the middle nobility and that lesser nobility that had at least part of the village. As manorial lordships were also opened to burgesses of certain privileged royal cities, not all landed gentry had a hereditary title of nobility.

Question:
Who could compose the polish landed gentry?

any nobility that owned lands