{ "data": { "question": { "questionId": "2252", "questionFrontendId": "2112", "boundTopicId": null, "title": "The Airport With the Most Traffic", "titleSlug": "the-airport-with-the-most-traffic", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 60, "dislikes": 8, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Flights\":[\"departure_airport\",\"arrival_airport\",\"flights_count\"]},\"rows\":{\"Flights\":[[1,2,4],[2,1,5],[2,4,5]]}}\n{\"headers\":{\"Flights\":[\"departure_airport\",\"arrival_airport\",\"flights_count\"]},\"rows\":{\"Flights\":[[1,2,4],[2,1,5],[3,4,5],[4,3,4],[5,6,7]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"7.2K\", \"totalSubmission\": \"10.4K\", \"totalAcceptedRaw\": 7182, \"totalSubmissionRaw\": 10438, \"acRate\": \"68.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Flights\":[\"departure_airport\",\"arrival_airport\",\"flights_count\"]},\"rows\":{\"Flights\":[[1,2,4],[2,1,5],[2,4,5]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Flights (departure_airport int, arrival_airport int, flights_count int)\"], \"mssql\": [\"Create table Flights (departure_airport int, arrival_airport int, flights_count int)\"], \"oraclesql\": [\"Create table Flights (departure_airport int, arrival_airport int, flights_count int)\"], \"database\": true, \"name\": \"airport_with_most_traffic\", \"pythondata\": [\"Flights = pd.DataFrame([], columns=['departure_airport', 'arrival_airport', 'flights_count']).astype({'departure_airport':'Int64', 'arrival_airport':'Int64', 'flights_count':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists Flights (departure_airport int, arrival_airport int, flights_count int)\"], \"database_schema\": {\"Flights\": {\"departure_airport\": \"INT\", \"arrival_airport\": \"INT\", \"flights_count\": \"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Flights (departure_airport int, arrival_airport int, flights_count int)", "Truncate table Flights", "insert into Flights (departure_airport, arrival_airport, flights_count) values ('1', '2', '4')", "insert into Flights (departure_airport, arrival_airport, flights_count) values ('2', '1', '5')", "insert into Flights (departure_airport, arrival_airport, flights_count) values ('2', '4', '5')" ], "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.

\"], \"pythondata\": [\"Pandas\", \"

Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0

\"], \"postgresql\": [\"PostgreSQL\", \"

PostgreSQL 16

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