Meta Interview Question

Basic sql manipulations, etc, along with product sense