Original: Immigration from outside the United States resulted in a net increase of 5,004 people, and migration within the country produced a net increase of 36,804 people.
Simplified: Immigration from outside the United States made a net increase of 5,004 people, and migration within the country made a net increase of 36,804 people.