Data Structure Questions Leetcode Sql Queries