Basic query filter.