query priv test