Write a query to find the top three performing product lines based on monthly output.
Use the provided production records and identify the three highest-output product lines for each calendar month. Rank ties alphabetically by product line name.
output_month, product_line_name, monthly_output, and monthly_rank.| Column | Type | Description |
|---|---|---|
| product_line_idPK | INT | Unique product line identifier |
| product_line_name | VARCHAR(100) | Display name of the product line |
| manager_name | VARCHAR(100) | Assigned product line manager |
| Column | Type | Description |
|---|---|---|
| output_idPK | INT | Unique production output record identifier |
| product_line_id | INT | Product line associated with the output |
| output_date | DATE | Date on which output was recorded |
| output_quantity | INT | Quantity produced in the record |