Explain the UNNEST operator in BigQuery and how it is used to flatten ARRAYs or STRUCTs.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how the UNNEST operator in BigQuery flattens repeated ARRAY data into rows and how it applies to arrays of STRUCTs. Tests correlated joins, row-count effects, handling of empty arrays, and the difference between flattening arrays and reading struct fields.