Amazon interview question

Basic to advanced SQL queries and product/database analysis