I don’t think you can. OQL always returns unstructured data. You can join tables so you are able to add Employee’s id to the table using something like LEFT OUTER JOIN MyModule.Statistics/Statictic_Employee/MyModule.Employee as Emp
Then postprocess the results by retrieve, loop and change object Statistics.
I have looked at doing something with the ID’s. But whilst I can store the employee ID, I can’t seem to retrieve anything with it using XPath, with the message that they are incompatible datatypes (I have tried Long and String)