Google Ads team wants to refine their billing by identifying "low-quality" clicks. A low-quality click is defined as an instance where a user clicked an ad but spent 5 seconds or less on the destination landing page.
Write an SQL query to find all ad_ids where a click occurred but the stay duration was 5 seconds or less.
| ad_id(INTEGER) | clicked(BOOLEAN) | stay_duration_seconds(INTEGER) |
|---|---|---|
| 101 | true | 2 |
| 102 | true | 15 |
| 103 | false | 0 |
| 104 | true | 5 |
| 105 | true | 1 |
| 106 | true | 6 |
| ad_id(INTEGER) | stay_duration_seconds(INTEGER) |
|---|---|
| 105 | 1 |
| 101 | 2 |
| 104 | 5 |