Percentile procedure
SQL queries