Corrected query for outlier records