{ "data": { "question": { "questionId": "2622", "questionFrontendId": "2480", "boundTopicId": null, "title": "Form a Chemical Bond", "titleSlug": "form-a-chemical-bond", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 0, "dislikes": 2, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": null, "categoryTitle": "Database", "contributors": [], "topicTags": [], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"45\", \"totalSubmission\": \"63\", \"totalAcceptedRaw\": 45, \"totalSubmissionRaw\": 63, \"acRate\": \"71.4%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Elements\": [\"symbol\", \"type\", \"electrons\"]}, \"rows\": {\"Elements\": [[\"He\", \"Noble\", 0], [\"Na\", \"Metal\", 1], [\"Ca\", \"Metal\", 2], [\"La\", \"Metal\", 3], [\"Cl\", \"Nonmetal\", 1], [\"O\", \"Nonmetal\", 2], [\"N\", \"Nonmetal\", 3]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Elements (symbol varchar(2), type ENUM('Metal','Nonmetal','Noble'), electrons int)\"\n ],\n \"mssql\": [\n \"Create table Elements (symbol varchar(2), type varchar(8) not null check(type in ('Metal','Nonmetal','Noble')), electrons int)\\n\"\n ],\n \"oraclesql\": [\n \"Create table Elements (symbol varchar(2), type varchar(8) not null check(type in ('Metal','Nonmetal','Noble')), electrons int)\\n\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Elements (symbol varchar(2), type ENUM('Metal','Nonmetal','Noble'), electrons int)", "Truncate table Elements", "insert into Elements (symbol, type, electrons) values ('He', 'Noble', '0')", "insert into Elements (symbol, type, electrons) values ('Na', 'Metal', '1')", "insert into Elements (symbol, type, electrons) values ('Ca', 'Metal', '2')", "insert into Elements (symbol, type, electrons) values ('La', 'Metal', '3')", "insert into Elements (symbol, type, electrons) values ('Cl', 'Nonmetal', '1')", "insert into Elements (symbol, type, electrons) values ('O', 'Nonmetal', '2')", "insert into Elements (symbol, type, electrons) values ('N', 'Nonmetal', '3')" ], "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.

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