4

First of all, I would rewrite this condition. As it is, it can't use any index effectively.:
datefromparts(cast(year as char(4)),cast(month as char(2)),'01') < getdate()
Rewrite it so there is no functions or calculations applied to the columns:
( year < year(getdate())
or year = year(getda...