{
    "data": {
        "question": {
            "questionId": "615",
            "questionFrontendId": "615",
            "boundTopicId": null,
            "title": "Average Salary: Departments VS Company",
            "titleSlug": "average-salary-departments-vs-company",
            "content": null,
            "translatedTitle": null,
            "translatedContent": null,
            "isPaidOnly": true,
            "difficulty": "Hard",
            "likes": 171,
            "dislikes": 58,
            "isLiked": null,
            "similarQuestions": "[{\"title\": \"Countries You Can Safely Invest In\", \"titleSlug\": \"countries-you-can-safely-invest-in\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
            "exampleTestcases": "{\"headers\":{\"Salary\":[\"id\",\"employee_id\",\"amount\",\"pay_date\"],\"Employee\":[\"employee_id\",\"department_id\"]},\"rows\":{\"Salary\":[[1,1,9000,\"2017/03/31\"],[2,2,6000,\"2017/03/31\"],[3,3,10000,\"2017/03/31\"],[4,1,7000,\"2017/02/28\"],[5,2,6000,\"2017/02/28\"],[6,3,8000,\"2017/02/28\"]],\"Employee\":[[1,1],[2,2],[3,2]]}}",
            "categoryTitle": "Database",
            "contributors": [],
            "topicTags": [
                {
                    "name": "Database",
                    "slug": "database",
                    "translatedName": null,
                    "__typename": "TopicTagNode"
                }
            ],
            "companyTagStats": null,
            "codeSnippets": null,
            "stats": "{\"totalAccepted\": \"25.2K\", \"totalSubmission\": \"44.9K\", \"totalAcceptedRaw\": 25183, \"totalSubmissionRaw\": 44907, \"acRate\": \"56.1%\"}",
            "hints": [],
            "solution": {
                "id": "169",
                "canSeeDetail": true,
                "paidOnly": false,
                "hasVideoSolution": false,
                "paidOnlyVideo": true,
                "__typename": "ArticleNode"
            },
            "status": null,
            "sampleTestCase": "{\"headers\":{\"Salary\":[\"id\",\"employee_id\",\"amount\",\"pay_date\"],\"Employee\":[\"employee_id\",\"department_id\"]},\"rows\":{\"Salary\":[[1,1,9000,\"2017/03/31\"],[2,2,6000,\"2017/03/31\"],[3,3,10000,\"2017/03/31\"],[4,1,7000,\"2017/02/28\"],[5,2,6000,\"2017/02/28\"],[6,3,8000,\"2017/02/28\"]],\"Employee\":[[1,1],[2,2],[3,2]]}}",
            "metaData": "{\n  \"mysql\": [\n    \"Create table If Not Exists Salary (id int, employee_id int, amount int, pay_date date)\",\n    \"Create table If Not Exists Employee (employee_id int, department_id int)\"\n  ],\n  \"mssql\": [\n    \"Create table Salary (id int, employee_id int, amount int, pay_date date)\",\n    \"Create table Employee (employee_id int, department_id int)\"\n  ],\n  \"oraclesql\": [\n    \"Create table Salary (id int, employee_id int, amount int, pay_date date)\",\n    \"Create table Employee (employee_id int, department_id int)\",\n    \"alter SESSION set NLS_DATE_FORMAT = 'YYYY/MM/DD'\"\n  ],\n  \"database\": true\n}",
            "judgerAvailable": true,
            "judgeType": "large",
            "mysqlSchemas": [
                "Create table If Not Exists Salary (id int, employee_id int, amount int, pay_date date)",
                "Create table If Not Exists Employee (employee_id int, department_id int)",
                "Truncate table Salary",
                "insert into Salary (id, employee_id, amount, pay_date) values ('1', '1', '9000', '2017/03/31')",
                "insert into Salary (id, employee_id, amount, pay_date) values ('2', '2', '6000', '2017/03/31')",
                "insert into Salary (id, employee_id, amount, pay_date) values ('3', '3', '10000', '2017/03/31')",
                "insert into Salary (id, employee_id, amount, pay_date) values ('4', '1', '7000', '2017/02/28')",
                "insert into Salary (id, employee_id, amount, pay_date) values ('5', '2', '6000', '2017/02/28')",
                "insert into Salary (id, employee_id, amount, pay_date) values ('6', '3', '8000', '2017/02/28')",
                "Truncate table Employee",
                "insert into Employee (employee_id, department_id) values ('1', '1')",
                "insert into Employee (employee_id, department_id) values ('2', '2')",
                "insert into Employee (employee_id, department_id) values ('3', '2')"
            ],
            "enableRunCode": true,
            "enableTestMode": false,
            "enableDebugger": false,
            "envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"]}",
            "libraryUrl": null,
            "adminUrl": null,
            "challengeQuestion": null,
            "__typename": "QuestionNode"
        }
    }
}