Add query.compress method