#295

Comments Under Posts

For each post (rows where parent_id IS NULL) count the number of unique comments. Return post_id and number_of_comments.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

post_idnumber_of_comments
13
22
31

Your query result will appear here