{ "data": { "question": { "questionId": "2296", "questionFrontendId": "2153", "boundTopicId": null, "title": "The Number of Passengers in Each Bus II", "titleSlug": "the-number-of-passengers-in-each-bus-ii", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Hard", "likes": 18, "dislikes": 7, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Buses\":[\"bus_id\",\"arrival_time\",\"capacity\"],\"Passengers\":[\"passenger_id\",\"arrival_time\"]},\"rows\":{\"Buses\":[[1,2,1],[2,4,10],[3,7,2]],\"Passengers\":[[11,1],[12,1],[13,5],[14,6],[15,7]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"453\", \"totalSubmission\": \"896\", \"totalAcceptedRaw\": 453, \"totalSubmissionRaw\": 896, \"acRate\": \"50.6%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Buses\":[\"bus_id\",\"arrival_time\",\"capacity\"],\"Passengers\":[\"passenger_id\",\"arrival_time\"]},\"rows\":{\"Buses\":[[1,2,1],[2,4,10],[3,7,2]],\"Passengers\":[[11,1],[12,1],[13,5],[14,6],[15,7]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Buses (bus_id int, arrival_time int, capacity int)\",\n \"Create table If Not Exists Passengers (passenger_id int, arrival_time int)\"\n ],\n \"mssql\": [\n \"Create table Buses (bus_id int, arrival_time int, capacity int)\",\n \"Create table Passengers (passenger_id int, arrival_time int)\"\n ],\n \"oraclesql\": [\n \"Create table Buses (bus_id int, arrival_time int, capacity int)\",\n \"Create table Passengers (passenger_id int, arrival_time int)\"\n ],\n \"database\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Buses (bus_id int, arrival_time int, capacity int)", "Create table If Not Exists Passengers (passenger_id int, arrival_time int)", "Truncate table Buses", "insert into Buses (bus_id, arrival_time, capacity) values ('1', '2', '1')", "insert into Buses (bus_id, arrival_time, capacity) values ('2', '4', '10')", "insert into Buses (bus_id, arrival_time, capacity) values ('3', '7', '2')", "Truncate table Passengers", "insert into Passengers (passenger_id, arrival_time) values ('11', '1')", "insert into Passengers (passenger_id, arrival_time) values ('12', '1')", "insert into Passengers (passenger_id, arrival_time) values ('13', '5')", "insert into Passengers (passenger_id, arrival_time) values ('14', '6')", "insert into Passengers (passenger_id, arrival_time) values ('15', '7')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.