{ "data": { "question": { "questionId": "1914", "questionFrontendId": "1767", "boundTopicId": null, "title": "Find the Subtasks That Did Not Execute", "titleSlug": "find-the-subtasks-that-did-not-execute", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 158, "dislikes": 12, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\": {\"Tasks\": [\"task_id\", \"subtasks_count\"], \"Executed\": [\"task_id\", \"subtask_id\"]}, \"rows\": {\"Tasks\": [[1, 3], [2, 2], [3, 4]], \"Executed\": [[1, 2], [3, 1], [3, 2], [3, 3], [3, 4]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"10.2K\", \"totalSubmission\": \"13.1K\", \"totalAcceptedRaw\": 10226, \"totalSubmissionRaw\": 13126, \"acRate\": \"77.9%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Tasks\": [\"task_id\", \"subtasks_count\"], \"Executed\": [\"task_id\", \"subtask_id\"]}, \"rows\": {\"Tasks\": [[1, 3], [2, 2], [3, 4]], \"Executed\": [[1, 2], [3, 1], [3, 2], [3, 3], [3, 4]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Tasks (task_id int, subtasks_count int)\", \"Create table If Not Exists Executed (task_id int, subtask_id int)\"], \"mssql\": [\"Create table Tasks (task_id int, subtasks_count int)\", \"Create table Executed (task_id int, subtask_id int)\"], \"oraclesql\": [\"Create table Tasks (task_id int, subtasks_count int)\", \"Create table Executed (task_id int, subtask_id int)\"], \"database\": true, \"name\": \"find_subtasks\", \"pythondata\": [\"Tasks = pd.DataFrame([], columns=['task_id', 'subtasks_count']).astype({'task_id':'Int64', 'subtasks_count':'Int64'})\", \"Executed = pd.DataFrame([], columns=['task_id', 'subtask_id']).astype({'task_id':'Int64', 'subtask_id':'Int64'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Tasks (task_id int, subtasks_count int)\\n\", \"Create table If Not Exists Executed (task_id int, subtask_id int)\"], \"database_schema\": {\"Tasks\": {\"task_id\": \"INT\", \"subtasks_count\": \"INT\"}, \"Executed\": {\"task_id\": \"INT\", \"subtask_id\": \"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Tasks (task_id int, subtasks_count int)", "Create table If Not Exists Executed (task_id int, subtask_id int)", "Truncate table Tasks", "insert into Tasks (task_id, subtasks_count) values ('1', '3')", "insert into Tasks (task_id, subtasks_count) values ('2', '2')", "insert into Tasks (task_id, subtasks_count) values ('3', '4')", "Truncate table Executed", "insert into Executed (task_id, subtask_id) values ('1', '2')", "insert into Executed (task_id, subtask_id) values ('3', '1')", "insert into Executed (task_id, subtask_id) values ('3', '2')", "insert into Executed (task_id, subtask_id) values ('3', '3')", "insert into Executed (task_id, subtask_id) values ('3', '4')" ], "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.

\"], \"pythondata\": [\"Pandas\", \"

Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0

\"], \"postgresql\": [\"PostgreSQL\", \"

PostgreSQL 16

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