Working on deals query