{ "data": { "question": { "questionId": "2495", "questionFrontendId": "2356", "boundTopicId": null, "title": "Number of Unique Subjects Taught by Each Teacher", "titleSlug": "number-of-unique-subjects-taught-by-each-teacher", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 2, "dislikes": 2, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": null, "categoryTitle": "Database", "contributors": [], "topicTags": [], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"76\", \"totalSubmission\": \"86\", \"totalAcceptedRaw\": 76, \"totalSubmissionRaw\": 86, \"acRate\": \"88.4%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Teacher\":[\"teacher_id\",\"subject_id\",\"dept_id\"]},\"rows\":{\"Teacher\":[[1,2,3],[1,2,4],[1,3,3],[2,1,1],[2,2,1],[2,3,1],[2,4,1]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Teacher (teacher_id int, subject_id int, dept_id int)\"\n ],\n \"mssql\": [\n \"Create table Teacher (teacher_id int, subject_id int, dept_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Teacher (teacher_id int, subject_id int, dept_id int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Teacher (teacher_id int, subject_id int, dept_id int)", "Truncate table Teacher", "insert into Teacher (teacher_id, subject_id, dept_id) values ('1', '2', '3')", "insert into Teacher (teacher_id, subject_id, dept_id) values ('1', '2', '4')", "insert into Teacher (teacher_id, subject_id, dept_id) values ('1', '3', '3')", "insert into Teacher (teacher_id, subject_id, dept_id) values ('2', '1', '1')", "insert into Teacher (teacher_id, subject_id, dept_id) values ('2', '2', '1')", "insert into Teacher (teacher_id, subject_id, dept_id) values ('2', '3', '1')", "insert into Teacher (teacher_id, subject_id, dept_id) values ('2', '4', '1')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"

MySQL 8.0.

\"], \"mssql\": [\"MS SQL Server\", \"

mssql server 2019.

\"], \"oraclesql\": [\"Oracle\", \"

Oracle Sql 11.2.

\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }