EPAM Systems interview question

Write couple of SQL queries