Meta interview question

Basic sql manipulations, etc, along with product sense