added check employee spending(advanced query)