{ "data": { "question": { "questionId": "2302", "questionFrontendId": "2159", "boundTopicId": null, "title": "Order Two Columns Independently", "titleSlug": "order-two-columns-independently", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 68, "dislikes": 18, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Data\":[\"first_col\",\"second_col\"]},\"rows\":{\"Data\":[[4,2],[2,3],[3,1],[1,4]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"6.2K\", \"totalSubmission\": \"10.5K\", \"totalAcceptedRaw\": 6213, \"totalSubmissionRaw\": 10508, \"acRate\": \"59.1%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Data\":[\"first_col\",\"second_col\"]},\"rows\":{\"Data\":[[4,2],[2,3],[3,1],[1,4]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Data (first_col int, second_col int)\"], \"mssql\": [\"Create table Data (first_col int, second_col int)\"], \"oraclesql\": [\"Create table Data (first_col int, second_col int)\"], \"database\": true, \"name\": \"order_two_columns\", \"pythondata\": [\"Data = pd.DataFrame([], columns=['first_col', 'second_col']).astype({'first_col':'Int64', 'second_col':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists Data (first_col int, second_col int)\"], \"database_schema\": {\"Data\": {\"first_col\": \"INT\", \"second_col\": \"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Data (first_col int, second_col int)", "Truncate table Data", "insert into Data (first_col, second_col) values ('4', '2')", "insert into Data (first_col, second_col) values ('2', '3')", "insert into Data (first_col, second_col) values ('3', '1')", "insert into Data (first_col, second_col) values ('1', '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" } } }