Correct all grammatical mistakes in the following paragraph:
My wife and them are nurses and worked in a same hospital up until 3 years ago, when we moved to Osaka from Nagoya due to my company transfer.
They and my wife are nurses and worked in the same hospital up until 3 years ago when we moved to Osaka from Nagoya due to my company transfer.