I am trying to create a row count pattern that would look something like this
|Id | Row_Count |
|--- | --------- |
|1 | 1 |
|2 | 2 |
|3 | 3 |
|4 | 4 |
|5 | 5 |
|6 | 1 |
|7 | 2 |
|8 | 3 |
|9 | 4 |
|10 | 5 |
|11 | 1 |
|12 | 2 |
|13 | 3 |
|14 | 4 |
|15 | 5 |
|16 | 6 |
|17 | 1 |
|18 | 2 |
|19 | 3 |
|20 | 4 |
|21 | 5 |
I would like to have the count go up to 5 twice then go up to 6 once then go up to 5 twice again then 6 and so on. I can’t seem to find a way to do that.

Use below (BigQuery Standard SQL)
with output
you can test it with below