Change the retention query.