report queries calculate