Question: How many inhabitants did Portugal have by 2007?
Sentence: By 2007, Portugal had 10,617,575 inhabitants of whom about 332,137 were legal immigrants.
Answer in sentence: yes