Calculating Geometric Mean of values in a column using SQL | Query Optimization in Snowflake (QOSF)