Singular Analysts interview question

SQL basics