2022-03-27 18:27:43 +08:00
{
"data" : {
"question" : {
"questionId" : "1494" ,
"questionFrontendId" : "1355" ,
"boundTopicId" : null ,
"title" : "Activity Participants" ,
"titleSlug" : "activity-participants" ,
"content" : null ,
"translatedTitle" : null ,
"translatedContent" : null ,
"isPaidOnly" : true ,
"difficulty" : "Medium" ,
2023-12-09 18:50:08 +08:00
"likes" : 139 ,
"dislikes" : 48 ,
2022-03-27 18:27:43 +08:00
"isLiked" : null ,
"similarQuestions" : "[]" ,
"exampleTestcases" : "{\"headers\": {\"Friends\": [\"id\", \"name\", \"activity\"], \"Activities\": [\"id\", \"name\"]}, \"rows\": {\"Friends\": [[1, \"Jonathan D.\", \"Eating\"], [2, \"Jade W.\", \"Singing\"], [3, \"Victor J.\", \"Singing\"], [4, \"Elvis Q.\", \"Eating\"], [5, \"Daniel A.\", \"Eating\"], [6, \"Bob B.\", \"Horse Riding\"]], \"Activities\": [[1, \"Eating\"], [2, \"Singing\"], [3, \"Horse Riding\"]]}}" ,
"categoryTitle" : "Database" ,
"contributors" : [ ] ,
"topicTags" : [
{
"name" : "Database" ,
"slug" : "database" ,
"translatedName" : null ,
"__typename" : "TopicTagNode"
}
] ,
"companyTagStats" : null ,
"codeSnippets" : null ,
2023-12-09 18:50:08 +08:00
"stats" : "{\"totalAccepted\": \"27.3K\", \"totalSubmission\": \"37.6K\", \"totalAcceptedRaw\": 27347, \"totalSubmissionRaw\": 37618, \"acRate\": \"72.7%\"}" ,
2022-03-27 18:27:43 +08:00
"hints" : [ ] ,
2023-12-09 18:50:08 +08:00
"solution" : {
"id" : "2179" ,
"canSeeDetail" : true ,
"paidOnly" : false ,
"hasVideoSolution" : false ,
"paidOnlyVideo" : true ,
"__typename" : "ArticleNode"
} ,
2022-03-27 18:27:43 +08:00
"status" : null ,
"sampleTestCase" : "{\"headers\": {\"Friends\": [\"id\", \"name\", \"activity\"], \"Activities\": [\"id\", \"name\"]}, \"rows\": {\"Friends\": [[1, \"Jonathan D.\", \"Eating\"], [2, \"Jade W.\", \"Singing\"], [3, \"Victor J.\", \"Singing\"], [4, \"Elvis Q.\", \"Eating\"], [5, \"Daniel A.\", \"Eating\"], [6, \"Bob B.\", \"Horse Riding\"]], \"Activities\": [[1, \"Eating\"], [2, \"Singing\"], [3, \"Horse Riding\"]]}}" ,
2023-12-09 18:50:08 +08:00
"metaData" : "{\"mysql\": [\"Create table If Not Exists Friends (id int, name varchar(30), activity varchar(30))\", \"Create table If Not Exists Activities (id int, name varchar(30))\"], \"mssql\": [\"Create table Friends (id int, name varchar(30), activity varchar(30))\", \"Create table Activities (id int, name varchar(30))\"], \"oraclesql\": [\"Create table Friends (id int, name varchar(30), activity varchar(30))\", \"Create table Activities (id int, name varchar(30))\"], \"database\": true, \"name\": \"activity_participants\", \"pythondata\": [\"Friends = pd.DataFrame([], columns=['id', 'name', 'activity']).astype({'id':'Int64', 'name':'object', 'activity':'object'})\", \"Activities = pd.DataFrame([], columns=['id', 'name']).astype({'id':'Int64', 'name':'object'})\"], \"postgresql\": [\"Create table If Not Exists Friends (id int, name varchar(30), activity varchar(30))\", \"Create table If Not Exists Activities (id int, name varchar(30))\"], \"database_schema\": {\"Friends\": {\"id\": \"INT\", \"name\": \"VARCHAR(30)\", \"activity\": \"VARCHAR(30)\"}, \"Activities\": {\"id\": \"INT\", \"name\": \"VARCHAR(30)\"}}}" ,
2022-03-27 18:27:43 +08:00
"judgerAvailable" : true ,
"judgeType" : "large" ,
"mysqlSchemas" : [
"Create table If Not Exists Friends (id int, name varchar(30), activity varchar(30))" ,
"Create table If Not Exists Activities (id int, name varchar(30))" ,
"Truncate table Friends" ,
"insert into Friends (id, name, activity) values ('1', 'Jonathan D.', 'Eating')" ,
"insert into Friends (id, name, activity) values ('2', 'Jade W.', 'Singing')" ,
"insert into Friends (id, name, activity) values ('3', 'Victor J.', 'Singing')" ,
"insert into Friends (id, name, activity) values ('4', 'Elvis Q.', 'Eating')" ,
"insert into Friends (id, name, activity) values ('5', 'Daniel A.', 'Eating')" ,
"insert into Friends (id, name, activity) values ('6', 'Bob B.', 'Horse Riding')" ,
"Truncate table Activities" ,
"insert into Activities (id, name) values ('1', 'Eating')" ,
"insert into Activities (id, name) values ('2', 'Singing')" ,
"insert into Activities (id, name) values ('3', 'Horse Riding')"
] ,
"enableRunCode" : true ,
"enableTestMode" : false ,
"enableDebugger" : false ,
2023-12-09 18:50:08 +08:00
"envInfo" : "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}" ,
2022-03-27 18:27:43 +08:00
"libraryUrl" : null ,
"adminUrl" : null ,
"challengeQuestion" : null ,
"__typename" : "QuestionNode"
}
}
}