swipejobs Interview Question

Implement a SQL query to select some data with condition