Q&A for programmers
select avg(len(a.body)) as [Answer body length] from posts q join posts a on q.id = a.parentid where q.posttypeid = 1 and a.posttypeid = 2 and q.closeddate is null and DATEPART(yyyy, q.CreationDate) = 2012 and a.owneruserid = q.owneruserid and datediff(DD, q.CreationDate, a.creationDate) < 1 and a.score >= 1 and q.score >= 0 and not exists ( select 1 from posts where parentid = a.parentid and id <> a.id and score > 0 and CreationDate < a.CreationDate )
Error: looks like you typed in the wrong words - try again