Data Metric Function in Snowflake | Query Optimization in Snowflake (QOSF)