Here is the fiddle for this question: http://sqlfiddle.com/#!9/dc6523/2
I have a table for comments, with replies stored in the same table as follows.
CREA