instruction: Score as function of Datalength of Post body weighted by number of questions.
response: WITH cte AS (SELECT NTILE(10) OVER (ORDER BY Body_length) * 10 AS "Percentile", Body_length, Id FROM (SELECT Id, DATALENGTH(Body) AS Body_length FROM Posts WHERE PostTypeId = 2) AS p) SELECT Percentile, AVG(Body_length) AS "Average Post Length", SUM(Score) / COUNT(Score) AS "Average Votes per Post" FROM Posts AS p INNER JOIN cte ON p.Id = cte.Id GROUP BY Percentile ORDER BY Percentile