{ "data": { "question": { "questionId": "3078", "questionFrontendId": "2820", "categoryTitle": "Database", "boundTopicId": 2392746, "title": "Election Results", "titleSlug": "election-results", "content": null, "translatedTitle": "选举结果", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 0, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"28\", \"totalSubmission\": \"36\", \"totalAcceptedRaw\": 28, \"totalSubmissionRaw\": 36, \"acRate\": \"77.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Votes\":[\"voter\",\"candidate\"]},\"rows\":{\"Votes\":[[\"Kathy\",null],[\"Charles\",\"Ryan\"],[\"Charles\",\"Christine\"],[\"Charles\",\"Kathy\"],[\"Benjamin\",\"Christine\"],[\"Anthony\",\"Ryan\"],[\"Edward\",\"Ryan\"],[\"Terry\",null],[\"Evelyn\",\"Kathy\"],[\"Arthur\",\"Christine\"]]}}", "metaData": "{\"mysql\":[\"Create table if not exists Votes(voter varchar(30), candidate varchar(30))\"],\"mssql\":[\"Create table Votes(voter varchar(30),candidate varchar(30))\"],\"oraclesql\":[\"Create table Votes(voter varchar(30),candidate varchar(30))\"],\"database\":true,\"languages\":[\"mysql\",\"mssql\",\"oraclesql\"],\"database_schema\":{\"Votes\":{\"voter\":\"VARCHAR(30)\",\"candidate\":\"VARCHAR(30)\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table if not exists Votes(voter varchar(30), candidate varchar(30))", "Truncate table Votes", "insert into Votes (voter, candidate) values ('Kathy', 'None')", "insert into Votes (voter, candidate) values ('Charles', 'Ryan')", "insert into Votes (voter, candidate) values ('Charles', 'Christine')", "insert into Votes (voter, candidate) values ('Charles', 'Kathy')", "insert into Votes (voter, candidate) values ('Benjamin', 'Christine')", "insert into Votes (voter, candidate) values ('Anthony', 'Ryan')", "insert into Votes (voter, candidate) values ('Edward', 'Ryan')", "insert into Votes (voter, candidate) values ('Terry', 'None')", "insert into Votes (voter, candidate) values ('Evelyn', 'Kathy')", "insert into Votes (voter, candidate) values ('Arthur', 'Christine')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\" Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\" Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Votes\":[\"voter\",\"candidate\"]},\"rows\":{\"Votes\":[[\"Kathy\",null],[\"Charles\",\"Ryan\"],[\"Charles\",\"Christine\"],[\"Charles\",\"Kathy\"],[\"Benjamin\",\"Christine\"],[\"Anthony\",\"Ryan\"],[\"Edward\",\"Ryan\"],[\"Terry\",null],[\"Evelyn\",\"Kathy\"],[\"Arthur\",\"Christine\"]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"