_VOIS interview question

SQL query against a condition