Health Catalyst interview question

SQL