[PATCH 2/2] reg: Support use of registry views in the 'query' operation