I'm trying to query for dates that come the week before Labor Day. Labor Day is a US federal holiday on the first Monday of every September. I'm trying to select labor day and the full week before labor day. I'm somewhat close with this sort of query
select * from `bigquery-public-data.ghcn_d.ghcnd_1991`
where extract(month from date) = 9
and extract(dayofweek from date) = 2
and extract(week from date) = 36
But it's not always the 36th week, sometimes its the 35th (so the query above is wrong).
I'm guessing I'll have to do a date subtraction in order to get the full week before labor day...but for now I just need help finding how to query the first Monday of every September.