Maximize revenue by choosing one query type | Snowflake Interview Question