Building TaskQueryService API