{ "data": { "question": { "questionId": "1377", "questionFrontendId": "1241", "boundTopicId": null, "title": "Number of Comments per Post", "titleSlug": "number-of-comments-per-post", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 124, "dislikes": 396, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Submissions\":[\"sub_id\",\"parent_id\"]},\"rows\":{\"Submissions\":[[1,null],[2,null],[1,null],[12,null],[3,1],[5,2],[3,1],[4,1],[9,1],[10,2],[6,7]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"25.7K\", \"totalSubmission\": \"37.8K\", \"totalAcceptedRaw\": 25661, \"totalSubmissionRaw\": 37774, \"acRate\": \"67.9%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Submissions\":[\"sub_id\",\"parent_id\"]},\"rows\":{\"Submissions\":[[1,null],[2,null],[1,null],[12,null],[3,1],[5,2],[3,1],[4,1],[9,1],[10,2],[6,7]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Submissions (sub_id int, parent_id int)\"\n ],\n \"mssql\": [\n \"Create table Submissions (sub_id int, parent_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Submissions (sub_id int, parent_id int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Submissions (sub_id int, parent_id int)", "Truncate table Submissions", "insert into Submissions (sub_id, parent_id) values ('1', 'None')", "insert into Submissions (sub_id, parent_id) values ('2', 'None')", "insert into Submissions (sub_id, parent_id) values ('1', 'None')", "insert into Submissions (sub_id, parent_id) values ('12', 'None')", "insert into Submissions (sub_id, parent_id) values ('3', '1')", "insert into Submissions (sub_id, parent_id) values ('5', '2')", "insert into Submissions (sub_id, parent_id) values ('3', '1')", "insert into Submissions (sub_id, parent_id) values ('4', '1')", "insert into Submissions (sub_id, parent_id) values ('9', '1')", "insert into Submissions (sub_id, parent_id) values ('10', '2')", "insert into Submissions (sub_id, parent_id) values ('6', '7')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.