covariance for prepared query