Amazon Interview Question

SQL queries followed by HR round