Ramp Interview Question

Live code in SQL to extract data