Query efficiency in Snowflake