{ "data": { "question": { "questionId": "2281", "questionFrontendId": "2142", "boundTopicId": null, "title": "The Number of Passengers in Each Bus I", "titleSlug": "the-number-of-passengers-in-each-bus-i", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 31, "dislikes": 4, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Buses\":[\"bus_id\",\"arrival_time\"],\"Passengers\":[\"passenger_id\",\"arrival_time\"]},\"rows\":{\"Buses\":[[1,2],[2,4],[3,7]],\"Passengers\":[[11,1],[12,5],[13,6],[14,7]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"1.9K\", \"totalSubmission\": \"3.8K\", \"totalAcceptedRaw\": 1950, \"totalSubmissionRaw\": 3837, \"acRate\": \"50.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Buses\":[\"bus_id\",\"arrival_time\"],\"Passengers\":[\"passenger_id\",\"arrival_time\"]},\"rows\":{\"Buses\":[[1,2],[2,4],[3,7]],\"Passengers\":[[11,1],[12,5],[13,6],[14,7]]}}", "metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Buses (bus_id int, arrival_time 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)\",\n \"Create table Passengers (passenger_id int, arrival_time int)\"\n ],\n \"oraclesql\": [\n \"Create table Buses (bus_id int, arrival_time 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)", "Create table If Not Exists Passengers (passenger_id int, arrival_time int)", "Truncate table Buses", "insert into Buses (bus_id, arrival_time) values ('1', '2')", "insert into Buses (bus_id, arrival_time) values ('2', '4')", "insert into Buses (bus_id, arrival_time) values ('3', '7')", "Truncate table Passengers", "insert into Passengers (passenger_id, arrival_time) values ('11', '1')", "insert into Passengers (passenger_id, arrival_time) values ('12', '5')", "insert into Passengers (passenger_id, arrival_time) values ('13', '6')", "insert into Passengers (passenger_id, arrival_time) values ('14', '7')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"

MySQL 8.0.

\"], \"mssql\": [\"MS SQL Server\", \"

mssql server 2019.

\"], \"oraclesql\": [\"Oracle\", \"

Oracle Sql 11.2.

\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }