queryPercentile function

Percentile-rank query.