I thing you should forget the AOT for a while and first make a plan what query you want to build there.
Let me give you a few hints:
- HcmWorker is connected to DirPerson table via DirPerson_FK relation.
- DirPersonName table contains FirstName and LastName fields.
- DirPersonName is connected to DirPerson via DirPerson_FK relation.
- How is your XyzRecord table connected to HcmWorker is unknown to me - it's up to you to define it.