Lnt Infotech interview question

Sql with complex queries and features