instruction: Average question score by account age (separated by question year).
response: SELECT Age, '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018' FROM (SELECT DATEDIFF(MONTH, u.CreationDate, CreationDate) AS "Age", CAST(p.Score AS FLOAT) AS "Score", YEAR(p.CreationDate) AS "Year_" FROM Posts AS p INNER JOIN Users AS u ON p.OwnerUserId = u.Id WHERE p.PostTypeId = 1 AND DATEDIFF(MONTH, u.CreationDate, CreationDate) >= 0) AS temp PIVOT(AVG(Score) FOR Year_ IN ('2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018')) AS temp2 ORDER BY Age