{ "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": 117, "dislikes": 7, "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\": \"16.6K\", \"totalSubmission\": \"19.2K\", \"totalAcceptedRaw\": 16556, \"totalSubmissionRaw\": 19246, \"acRate\": \"86.0%\"}", "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": "{\n \"mysql\": [\n \"Create table If Not Exists Calls (from_id int, to_id int, duration int)\"\n ],\n \"mssql\": [\n \"Create table Calls (from_id int, to_id int, duration int)\"\n ],\n \"oraclesql\": [\n \"Create table Calls (from_id int, to_id int, duration int)\"\n ],\n \"database\": true\n}", "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
.