fixed histogram query