Vedak Interview Question

Write SQL query with some condition