{ "data": { "question": { "questionId": "2376", "questionFrontendId": "2238", "categoryTitle": "Database", "boundTopicId": 1422071, "title": "Number of Times a Driver Was a Passenger", "titleSlug": "number-of-times-a-driver-was-a-passenger", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 0, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"72\", \"totalSubmission\": \"93\", \"totalAcceptedRaw\": 72, \"totalSubmissionRaw\": 93, \"acRate\": \"77.4%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Rides\":[\"ride_id\",\"driver_id\",\"passenger_id\"]},\"rows\":{\"Rides\":[[1,7,1],[2,7,2],[3,11,1],[4,11,7],[5,11,7],[6,11,3]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Rides (ride_id int, driver_id int, passenger_id int)\"\n ],\n \"mssql\": [\n \"Create table Rides (ride_id int, driver_id int, passenger_id int)\"\n ],\n \"oraclesql\": [\n \"Create table Rides (ride_id int, driver_id int, passenger_id int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Rides (ride_id int, driver_id int, passenger_id int)", "Truncate table Rides", "insert into Rides (ride_id, driver_id, passenger_id) values ('1', '7', '1')", "insert into Rides (ride_id, driver_id, passenger_id) values ('2', '7', '2')", "insert into Rides (ride_id, driver_id, passenger_id) values ('3', '11', '1')", "insert into Rides (ride_id, driver_id, passenger_id) values ('4', '11', '7')", "insert into Rides (ride_id, driver_id, passenger_id) values ('5', '11', '7')", "insert into Rides (ride_id, driver_id, passenger_id) values ('6', '11', '3')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"

\\u7248\\u672c\\uff1aMySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"

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\":{\"Rides\":[\"ride_id\",\"driver_id\",\"passenger_id\"]},\"rows\":{\"Rides\":[[1,7,1],[2,7,2],[3,11,1],[4,11,7],[5,11,7],[6,11,3]]}}", "__typename": "QuestionNode" } } }