{ "data": { "question": { "questionId": "614", "questionFrontendId": "614", "boundTopicId": null, "title": "Second Degree Follower", "titleSlug": "second-degree-follower", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 152, "dislikes": 742, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Follow\":[\"followee\",\"follower\"]},\"rows\":{\"Follow\":[[\"Alice\", \"Bob\"], [\"Bob\", \"Cena\"], [\"Bob\", \"Donald\"], [\"Donald\", \"Edward\"]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"50.2K\", \"totalSubmission\": \"132K\", \"totalAcceptedRaw\": 50170, \"totalSubmissionRaw\": 132010, \"acRate\": \"38.0%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Follow\":[\"followee\",\"follower\"]},\"rows\":{\"Follow\":[[\"Alice\", \"Bob\"], [\"Bob\", \"Cena\"], [\"Bob\", \"Donald\"], [\"Donald\", \"Edward\"]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Follow (followee varchar(255), follower varchar(255))\"], \"mssql\": [\"Create table Follow (followee varchar(255), follower varchar(255))\"], \"oraclesql\": [\"Create table Follow (followee varchar(255), follower varchar(255))\"], \"database\": true, \"name\": \"second_degree_follower\", \"pythondata\": [\"Follow = pd.DataFrame([], columns=['followee', 'follower']).astype({'followee':'object', 'follower':'object'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Follow (followee varchar(255), follower varchar(255))\"], \"database_schema\": {\"Follow\": {\"followee\": \"VARCHAR(255)\", \"follower\": \"VARCHAR(255)\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Follow (followee varchar(255), follower varchar(255))", "Truncate table Follow", "insert into Follow (followee, follower) values ('Alice', 'Bob')", "insert into Follow (followee, follower) values ('Bob', 'Cena')", "insert into Follow (followee, follower) values ('Bob', 'Donald')", "insert into Follow (followee, follower) values ('Donald', 'Edward')" ], "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" } } }