Question: By what year had Portugal established itself as an independent kingdom?
Sentence: By 1139, Portugal had established itself as a kingdom independent from León.
Answer in sentence: yes