BAQ to calculate total estimated labor

Hi, I’ve done some searching but can’t seem to find what I’m looking for. I need to get a total of all estimated labor based on a BOM. I’ve tried using some CTE queries I have, but the total labor does not seem to be adding up. I am using the PartOpr table to get the estimated setup and estimated production hours. Anyone out there have a BAQ like this they wouldn’t mind sharing?