What does the QUALIFY clause do in GoogleSQL, and why is it useful?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what the QUALIFY clause does in GoogleSQL, the BigQuery dialect, and why it is useful. Tests whether you know where window functions sit in the evaluation order, how QUALIFY replaces a filtering subquery, and how to use it for deduplication and top-N per group.