If my friend gives me an egg, will the original trainer (there's a place which shows the trainer who caught the Pokemon)be me or my friend
Now that you ask, I realize I hadn't given that much thought either. However, it appears you'll be the OT if you hatch the egg yourself. If you were to return the egg to your friend, and they hatched it, they would be the OT.
Found that answered here: https://gamefaqs.gamespot.com/boards/187277-pokemon-moon/75991328