It seems that SQL's definition of "week of year" is clashing with MongoDB's.
According to the PostgreSQL docs:
By definition, ISO weeks start on Mondays and the first week of a year contains January 4 of that year.
Whereas MongoDB has this:
Weeks begin on Sundays, and week 1 begins with the first Sunday of the year... This behavior is the same as the “%U” operator to the strftime standard library function.
Quasar (the query engine behind SlamData) is using the MongoDB operator directly in this case, so that's the behavior you'll see.
I suspect it's possible to get one from the other, which is what Quasar should be doing, and I encourage you to write a github issue reporting this as a bug: https://github.com/quasar-analytics/quasar/issues.
It should also be possible to express the same fix in SQL as a workaround, but it's not likely to be pretty. If I end up fixing the bug in Quasar, I'll update this answer with the formula I come up with.