Whenever you're ready, walk me through how you'd approach this.
Write efficient SQL queries to extract, filter, and aggregate large-scale datasets under strict time constraints.
Explain how you would structure the queries, choose indexes or partitions, avoid unnecessary data processing, and validate performance with query-plan tools. Include representative SQL and discuss how your approach changes for joins, filtering, and aggregation at scale.