Ramp interview question

SQL questions that we needed to find bugs in