Meta interview question

Two SQL query