Write a SQL query to find the conversion rate of leads generated from paid search campaigns month-over-month at Tempus AI.
Treat a lead as converted when its status is converted. Include only leads associated with campaigns whose channel is paid_search.
month_start, total_leads, converted_leads, conversion_rate, and mom_change_percentage_points.| Column | Type | Description |
|---|---|---|
| campaign_idPK | INT | Unique campaign identifier |
| campaign_name | VARCHAR(150) | Campaign name |
| channel | VARCHAR(50) | Marketing acquisition channel |
| Column | Type | Description |
|---|---|---|
| lead_idPK | INT | Unique lead identifier |
| campaign_id | INT | Campaign associated with the lead |
| generated_at | TIMESTAMP | Timestamp when the lead was generated |
| status | VARCHAR(30) | Lead lifecycle status |