{ "data": { "question": { "questionId": "1882", "questionFrontendId": "1731", "boundTopicId": null, "title": "The Number of Employees Which Report to Each Employee", "titleSlug": "the-number-of-employees-which-report-to-each-employee", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 55, "dislikes": 14, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Employees\":[\"employee_id\",\"name\",\"reports_to\",\"age\"]},\"rows\":{\"Employees\":[[9,\"Hercy\",null,43],[6,\"Alice\",9,41],[4,\"Bob\",9,36],[2,\"Winston\",null,37]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"9.7K\", \"totalSubmission\": \"19.7K\", \"totalAcceptedRaw\": 9670, \"totalSubmissionRaw\": 19697, \"acRate\": \"49.1%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Employees\":[\"employee_id\",\"name\",\"reports_to\",\"age\"]},\"rows\":{\"Employees\":[[9,\"Hercy\",null,43],[6,\"Alice\",9,41],[4,\"Bob\",9,36],[2,\"Winston\",null,37]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Employees(employee_id int, name varchar(20), reports_to int, age int)\"\n ],\n \"mssql\": [\n \"Create table Employees(employee_id int, name varchar(20), reports_to int, age int)\"\n ],\n \"oraclesql\": [\n \"Create table Employees(employee_id int, name varchar(20), reports_to int, age int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Employees(employee_id int, name varchar(20), reports_to int, age int)", "Truncate table Employees", "insert into Employees (employee_id, name, reports_to, age) values ('9', 'Hercy', 'None', '43')", "insert into Employees (employee_id, name, reports_to, age) values ('6', 'Alice', '9', '41')", "insert into Employees (employee_id, name, reports_to, age) values ('4', 'Bob', '9', '36')", "insert into Employees (employee_id, name, reports_to, age) values ('2', 'Winston', 'None', '37')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.