select p.postid postid,p.posttypeid posttypeid, (select count(parentid) as no_of_answers from post where parentid=p.postid), p.title title, p.body body ,