skeleton code for sql outlier summary