added ViewEarningBySugery and ViewEarningByTime queries