Given a table of experimental runs, write a query to find the top three longest-running assays per department using dense rank functions.
Use PostgreSQL and include every assay whose duration rank is 1, 2, or 3 within its department.
department, assay_name, duration_minutes, and duration_rank.| Column | Type | Description |
|---|---|---|
| run_idPK | INT | Unique identifier for the experimental run |
| department | VARCHAR(100) | Department responsible for the assay |
| assay_name | VARCHAR(150) | Name of the assay performed |
| duration_minutes | INT | Elapsed assay duration in minutes |