Updating query for subscription query.