Query Builder does "NOT" have relationship?

I'm working with the KG Customer 360 knowledge kit. How would I create a query that shows me the customers that made a purchase in 2021 but did NOT make a purchase in 2022. How do you write queries that need to find the results for the "NOT IN" class, not in data rage, not in a list type of questions?