Q&A for programmers
select count(distinct q.id) from posts q left outer join posts a on q.id = a.parentid and a.posttypeid = 2 where q.posttypeid = 1 and q.closeddate is null and DATEPART(yyyy, q.CreationDate) = 2012 and q.score > 0 and a.id is null
Error: looks like you typed in the wrong words - try again