split company queries into by filter and by category