added compare query filter