{ "data": { "question": { "questionId": "1842", "questionFrontendId": "1699", "boundTopicId": null, "title": "Number of Calls Between Two Persons", "titleSlug": "number-of-calls-between-two-persons", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 278, "dislikes": 14, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Calls\":[\"from_id\",\"to_id\",\"duration\"]},\"rows\":{\"Calls\":[[1,2,59],[2,1,11],[1,3,20],[3,4,100],[3,4,200],[3,4,200],[4,3,499]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"37.7K\", \"totalSubmission\": \"46.5K\", \"totalAcceptedRaw\": 37744, \"totalSubmissionRaw\": 46458, \"acRate\": \"81.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Calls\":[\"from_id\",\"to_id\",\"duration\"]},\"rows\":{\"Calls\":[[1,2,59],[2,1,11],[1,3,20],[3,4,100],[3,4,200],[3,4,200],[4,3,499]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Calls (from_id int, to_id int, duration int)\"], \"mssql\": [\"Create table Calls (from_id int, to_id int, duration int)\"], \"oraclesql\": [\"Create table Calls (from_id int, to_id int, duration int)\"], \"database\": true, \"name\": \"number_of_calls\", \"pythondata\": [\"Calls = pd.DataFrame([], columns=['from_id', 'to_id', 'duration']).astype({'from_id':'Int64', 'to_id':'Int64', 'duration':'Int64'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Calls (from_id int, to_id int, duration int)\"], \"database_schema\": {\"Calls\": {\"from_id\": \"INT\", \"to_id\": \"INT\", \"duration\": \"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Calls (from_id int, to_id int, duration int)", "Truncate table Calls", "insert into Calls (from_id, to_id, duration) values ('1', '2', '59')", "insert into Calls (from_id, to_id, duration) values ('2', '1', '11')", "insert into Calls (from_id, to_id, duration) values ('1', '3', '20')", "insert into Calls (from_id, to_id, duration) values ('3', '4', '100')", "insert into Calls (from_id, to_id, duration) values ('3', '4', '200')", "insert into Calls (from_id, to_id, duration) values ('3', '4', '200')", "insert into Calls (from_id, to_id, duration) values ('4', '3', '499')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.
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" } } }