query filter indicators function