{ "data": { "question": { "questionId": "3284", "questionFrontendId": "2987", "boundTopicId": null, "title": "Find Expensive Cities", "titleSlug": "find-expensive-cities", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 3, "dislikes": 2, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Listings\":[\"listing_id\",\"city\",\"price\"]},\"rows\":{\"Listings\":[[113,\"LosAngeles\",7560386],[136,\"SanFrancisco\",2380268],[92,\"Chicago\",9833209],[60,\"Chicago\",5147582],[8,\"Chicago\",5274441],[79,\"SanFrancisco\",8372065],[37,\"Chicago\",7939595],[53,\"LosAngeles\",4965123],[178,\"SanFrancisco\",999207],[51,\"NewYork\",5951718],[121,\"NewYork\",2893760]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"305\", \"totalSubmission\": \"364\", \"totalAcceptedRaw\": 305, \"totalSubmissionRaw\": 364, \"acRate\": \"83.8%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Listings\":[\"listing_id\",\"city\",\"price\"]},\"rows\":{\"Listings\":[[113,\"LosAngeles\",7560386],[136,\"SanFrancisco\",2380268],[92,\"Chicago\",9833209],[60,\"Chicago\",5147582],[8,\"Chicago\",5274441],[79,\"SanFrancisco\",8372065],[37,\"Chicago\",7939595],[53,\"LosAngeles\",4965123],[178,\"SanFrancisco\",999207],[51,\"NewYork\",5951718],[121,\"NewYork\",2893760]]}}", "metaData": "{\"mysql\": [\"Create Table if Not Exists Listings (listing_id int, city varchar(50), price int)\"], \"mssql\": [\"Create Table Listings (listing_id int, city varchar(50), price int)\"], \"oraclesql\": [\"Create Table Listings (listing_id int, city varchar(50), price int)\"], \"database\": true, \"languages\": [\"mysql\", \"mssql\", \"oraclesql\"], \"database_schema\": {\"Listings\": {\"listing_id\": \"INT\", \"city\": \"VARCHAR(50)\", \"price\": \"INT\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create Table if Not Exists Listings (listing_id int, city varchar(50), price int)", "Truncate table Listings", "insert into Listings (listing_id, city, price) values ('113', 'LosAngeles', '7560386')", "insert into Listings (listing_id, city, price) values ('136', 'SanFrancisco', '2380268')", "insert into Listings (listing_id, city, price) values ('92', 'Chicago', '9833209')", "insert into Listings (listing_id, city, price) values ('60', 'Chicago', '5147582')", "insert into Listings (listing_id, city, price) values ('8', 'Chicago', '5274441')", "insert into Listings (listing_id, city, price) values ('79', 'SanFrancisco', '8372065')", "insert into Listings (listing_id, city, price) values ('37', 'Chicago', '7939595')", "insert into Listings (listing_id, city, price) values ('53', 'LosAngeles', '4965123')", "insert into Listings (listing_id, city, price) values ('178', 'SanFrancisco', '999207')", "insert into Listings (listing_id, city, price) values ('51', 'NewYork', '5951718')", "insert into Listings (listing_id, city, price) values ('121', 'NewYork', '2893760')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"
MySQL 8.0
.
mssql server 2019
.
Oracle Sql 11.2
.