{ "data": { "question": { "questionId": "574", "questionFrontendId": "574", "categoryTitle": "Database", "boundTopicId": 2649, "title": "Winning Candidate", "titleSlug": "winning-candidate", "content": null, "translatedTitle": "当选者", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 32, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"17.3K\", \"totalSubmission\": \"26.4K\", \"totalAcceptedRaw\": 17344, \"totalSubmissionRaw\": 26370, \"acRate\": \"65.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Candidate\":[\"id\",\"Name\"],\"Vote\":[\"id\",\"CandidateId\"]},\"rows\":{\"Candidate\":[[1,\"A\"],[2,\"B\"],[3,\"C\"],[4,\"D\"],[5,\"E\"]],\"Vote\":[[1,2],[2,4],[3,3],[4,2],[5,5]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Candidate (id int, name varchar(255))\",\n \"Create table If Not Exists Vote (id int, candidateId int)\"\n ],\n \"mssql\": [\n \"Create table Candidate (id int, name varchar(255))\",\n \"Create table Vote (id int, candidateId int)\"\n ],\n \"oraclesql\": [\n \"Create table Candidate (id int, name varchar(255))\",\n \"Create table Vote (id int, candidateId int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Candidate (id int, name varchar(255))", "Create table If Not Exists Vote (id int, candidateId int)", "Truncate table Candidate", "insert into Candidate (id, name) values ('1', 'A')", "insert into Candidate (id, name) values ('2', 'B')", "insert into Candidate (id, name) values ('3', 'C')", "insert into Candidate (id, name) values ('4', 'D')", "insert into Candidate (id, name) values ('5', 'E')", "Truncate table Vote", "insert into Vote (id, candidateId) values ('1', '2')", "insert into Vote (id, candidateId) values ('2', '4')", "insert into Vote (id, candidateId) values ('3', '3')", "insert into Vote (id, candidateId) values ('4', '2')", "insert into Vote (id, candidateId) values ('5', '5')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\" Oracle Sql 11.2.<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\":{\"Candidate\":[\"id\",\"name\"],\"Vote\":[\"id\",\"candidateId\"]},\"rows\":{\"Candidate\":[[1,\"A\"],[2,\"B\"],[3,\"C\"],[4,\"D\"],[5,\"E\"]],\"Vote\":[[1,2],[2,4],[3,3],[4,2],[5,5]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"