Snowflake interview question

lots of results for random nested function calls